Skip to content

fix: fetch-module→zipx DRY + doctor parseFail(审查 e95d81e / #54 后债) - #55

Merged
Tanya7z merged 1 commit into
mainfrom
cursor/bc-befed2ff-5027-43ca-9ca3-f890d4e559e9-9412
Jul 23, 2026
Merged

fix: fetch-module→zipx DRY + doctor parseFail(审查 e95d81e / #54 后债)#55
Tanya7z merged 1 commit into
mainfrom
cursor/bc-befed2ff-5027-43ca-9ca3-f890d4e559e9-9412

Conversation

@cursor

@cursor cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

背景

main@e95d81e ootb 因 #51+#52 合并残留 extractZipFileToDir 重复 import(TS2300)失败;#54 已合入修复并额外完成 wizard→zipx。本 PR 收敛审查后仍开放的 SOLID 债。

改动

MAJOR — DRY

  • tools/fetch-module.mjs 本地 JSZip 解压删除,改走 @sfmc-bds/bds-tools/zipx(与 world-packs / updater / wizard 同一权威)
  • tools 声明对 bds-tools 的依赖;根 package.json 去掉仅供 fetch-module 的 jszip

MAJOR — LSP / Demeter

MINOR — DRY

  • sfmc/commands 去掉无用的 stripOsc 透传,直接调用 stripTaskbarOsc

验证

npm run build --workspaces --if-present
cd bds-tools && npm test   # 19/19
SFMC_ROOT=$PWD node tools/check-ootb.mjs  # 12/12

审查原则

DRY · OCP · DIP · LSP · Law of Demeter

仍开放(未在本 PR)

  • pack-lifecycle 仍 spawn CLI、world-packs 直 import 库(双路径 DIP)
Open in Web View Automation 

审查 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
Tanya7z marked this pull request as ready for review July 23, 2026 16:15
@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 d883626 into main Jul 23, 2026
1 check passed
@Tanya7z
Tanya7z deleted the cursor/bc-befed2ff-5027-43ca-9ca3-f890d4e559e9-9412 branch July 23, 2026 16:15
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