Skip to content

feat(cli): flutter-symbols upload command#11

Open
Fiona2016 wants to merge 6 commits into
mainfrom
feat/flutter-symbols
Open

feat(cli): flutter-symbols upload command#11
Fiona2016 wants to merge 6 commits into
mainfrom
feat/flutter-symbols

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

FlashCat CLI 的 flutter-symbols upload 命令 —— Flutter 符号化 pipeline(看板卡 [[2026-07-13-rum-flutter-symbolication]])的 CLI 侧上传入口。配套后端 fc-rum#131、前端 fc-saas-rum#242

主改动(本 feature)

  • 2fb0830 flashcat-cli flutter-symbols upload:仿 upload-miniprogram,glob app.<platform>-<arch>.symbols,origin flashcat-cli_flutter;服务端抽 build-id,故 CLI 保持哑上传。4 测试,全套 103 测试绿。

⚠️ 本枝夹带的既有未合并 commit(一并入本 PR)

feat/flutter-symbolsorigin/main 起但领先 5 条,除 flutter 外还含以下此前未合入 main 的提交,本 PR 会一并合入(经 Fiona 确认整枝 PR):

三点 diff 共 12 文件 / +798−7,主要为 flutter-symbols + miniprogram + apikey helper + CHANGELOG/版本。

🤖 Generated with Claude Code

Fiona2016 and others added 6 commits May 15, 2026 18:21
New `flashcat-cli sourcemaps upload-miniprogram` for WeChat miniprogram
sourcemap.zip uploads.

- Multipart payload: event (application/json, no filename) carrying
  type=miniprogram_sourcemap + service/version/appid/cli_version, plus
  sourcemap_archive (the zip file).
- Header DD-EVP-ORIGIN=flashcat-cli_miniprogram routes the upload to
  fc-rum's MiniProgramProcessor.
- Options: --service, --release-version, --sourcemap-zip, --appid,
  --dry-run, --quiet. appid is optional (omitted from event when not set).
- Tests cover happy path, omitted-appid, and missing-zip error paths.
Release @flashcatcloud/flashcat-cli v0.1.3 with Windows sourcemap path normalization and clearer upload error classification.
Uploads Flutter (Dart AOT) debug symbols for crash de-obfuscation. Points at
a --split-debug-info directory, discovers every app.<platform>-<arch>.symbols
file, parses platform+arch from the filename, and posts each to /sourcemap/upload
with DD-EVP-ORIGIN flashcat-cli_flutter and event.type flutter_symbol_file.
The server extracts the build-id, so the CLI stays a dumb uploader. Modeled on
the upload-miniprogram command; uploads run with bounded concurrency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	src/commands/sourcemaps/__tests__/miniprogram.test.ts
#	src/commands/sourcemaps/miniprogram.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant