Skip to content

fix: ootb TS2300 + wizard→zipx DRY + README.en 对齐 - #54

Merged
Tanya7z merged 2 commits into
mainfrom
cursor/bc-c6a175aa-c163-4f49-87b6-921afea700bb-60e1
Jul 23, 2026
Merged

fix: ootb TS2300 + wizard→zipx DRY + README.en 对齐#54
Tanya7z merged 2 commits into
mainfrom
cursor/bc-c6a175aa-c163-4f49-87b6-921afea700bb-60e1

Conversation

@cursor

@cursor cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

审查 main@e95d81e(README AI 声明 push)。该提交本身为文档;但 main 上 ootb 仍因 #51+#52 合并残留而红(run 30023292009 / 30023000049)。本 PR 直接修 CI,并收敛相关 DRY/LSP 债。

注:#53(draft)仅含重复 import 一行修复;本 PR 包含同等修复并扩展,合入后可关闭 #53

BLOCKER — DRY(修 ootb)

  • bds-tools/src/check-update.ts 双份 import { extractZipFileToDir } from "./zipx.js"TS2300
  • 保留单次 import(字母序)

MAJOR — DRY / DIP

  • 导出 @sfmc-bds/bds-tools/zipx
  • sfmc/wizard SEA 资产解压改走 extractZipBufferToDir,删除本地 JSZip/safeJoin 副本与 jszip 直接依赖

MAJOR — LSP(文档契约)

  • README.en.md License 误写 MIT,与 LICENSE(AGPL-3.0)及中文 README 不一致 → 改为 AGPL-3.0 并补条款摘要
  • 英文 README 补齐 AI Assistance Disclaimer(与本轮中文 push 对齐)

Test plan

  • npm run build --workspaces --if-present
  • cd bds-tools && npm test → 18/18
  • cd sfmc && npm run typecheck
  • SFMC_ROOT=$PWD node tools/check-ootb.mjs → 12/12
Open in Web View Automation 

cursoragent and others added 2 commits July 23, 2026 16:05
- 去除 check-update 重复 extractZipFileToDir import(修 #51+#52 合并残留 TS2300)
- 导出 @sfmc-bds/bds-tools/zipx;wizard SEA 资产解压改走同一权威,去掉本地 JSZip 副本
- README.en:AI 声明与中文版对齐;License 误写 MIT 改为 AGPL-3.0

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
@Tanya7z
Tanya7z marked this pull request as ready for review July 23, 2026 16:06
@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Tanya7z
Tanya7z merged commit 3b4c8b1 into main Jul 23, 2026
1 check passed
cursor Bot pushed a commit that referenced this pull request Jul 23, 2026
审查 main@e95d81e ootb 红(#51+#52 合并残留)后 #54 已修 TS2300;
本补丁收敛遗留 SOLID 债:
- MAJOR(DRY): tools/fetch-module 解压委托 @sfmc-bds/bds-tools/zipx
- MAJOR(LSP): readWorldPackListResult 恢复 doctor parseFail 信号
- MINOR(DRY): cmdUpdate 直接 stripTaskbarOsc,去掉无用 stripOsc 别名

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
Tanya7z added a commit that referenced this pull request Jul 23, 2026
…9ca3-f890d4e559e9-9412

fix: fetch-module→zipx DRY + doctor parseFail(审查 e95d81e / #54 后债)
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.

2 participants