Skip to content

fix(wf@ec7986b): TS6133 + banned_items/canDisable LSP after #37 - #39

Merged
Tanya7z merged 2 commits into
mainfrom
cursor/bc-52d8f5d4-ffbe-4e2b-9fab-b3fe49cc163e-c8f1
Jul 22, 2026
Merged

fix(wf@ec7986b): TS6133 + banned_items/canDisable LSP after #37#39
Tanya7z merged 2 commits into
mainfrom
cursor/bc-52d8f5d4-ffbe-4e2b-9fab-b3fe49cc163e-c8f1

Conversation

@cursor

@cursor cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

合入 #37ootbBuild 阶段仍失败:sfmc/src/repl.ts 遗留未使用的 MODULE_HELP_LABELTS6133#32/#33 合并残留;#34/#35/#36 未合入前被 #37 抢先落地了热启停/交互 tx)。

本 PR 修 CI,并补上审查发现的可验证 SOLID 债:

级别 原则 修复
BLOCKER DRY HELP 用 paintModuleCmdAlias 一次染色为 MODULE_HELP_LABEL;删除未使用的 MODULE_CMD_ALIAS_LABEL
MAJOR LSP configs/all.banned_items 改为 string[](与 /banned_items、ConfigManager 契约对齐)
MAJOR DRY getAllConfigs 委托单资源 helpers,消除双写
MAJOR LSP moduleCanDisable 供 list/disable 同源(省略 canDisable 视为可禁用)
MAJOR DRY/OCP builtin 热启停按 moduleId 卸装,去掉 serviceNames 硬编码副本
MINOR OCP/DRY db/tx 交互会话改路由表扩展,勿复制四份 try/catch
MINOR LSP ConfigManager 兼容历史 {item_id}service.get 保留服务端 code

#37 已完成 interactive db.tx + enable 热同步;本 PR 不重复那部分,只修残留 CI/LSP/DRY。
建议关闭重复草稿 #34 / #35 / #36(已被 #37 + 本 PR 覆盖)。

Test plan

  • npm run build --workspaces --if-present
  • cd db-server && npm test(12/12)
  • SFMC_ROOT=$PWD node tools/check-ootb.mjs11/11 PASS
Open in Web View Automation 

cursoragent and others added 2 commits July 23, 2026 01:59
ootb Build 在合入 #37 后仍红:sfmc MODULE_HELP_LABEL 未使用(TS6133)。
HELP 改用 paintModuleCmdAlias 一次染色常量;删未使用 MODULE_CMD_ALIAS_LABEL。

SOLID:
- LSP:configs/all.banned_items 改为 string[](与 /banned_items、ConfigManager 同源)
- DRY:getAllConfigs 委托单资源 helpers
- LSP:moduleCanDisable 供 list/disable 同源(省略 canDisable 视为可禁用)
- DRY/OCP:builtin 热启停按 moduleId 卸装,去掉 serviceNames 副本
- OCP/DRY:db/tx 交互会话路由表扩展,勿复制四份 try/catch
- LSP:ConfigManager 兼容历史 {item_id};service.get 保留服务端 code

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
…联合类型

db-routes 会话表入参避免 step:undefined 触碰 exactOptionalPropertyTypes;
ConfigManager.banned_items 标注 string|{item_id} 以匹配兼容解析。

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
@Tanya7z
Tanya7z force-pushed the cursor/bc-52d8f5d4-ffbe-4e2b-9fab-b3fe49cc163e-c8f1 branch from 1a61394 to 211f247 Compare July 22, 2026 18:05
@Tanya7z
Tanya7z marked this pull request as ready for review July 22, 2026 18:05
@cursor

cursor Bot commented Jul 22, 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 e16b101 into main Jul 22, 2026
1 check passed
@Tanya7z
Tanya7z deleted the cursor/bc-52d8f5d4-ffbe-4e2b-9fab-b3fe49cc163e-c8f1 branch July 22, 2026 18:05

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

审查报告 — push merge #39main@e16b101

CI

  • ootb run 29945175741success(Build / check-ootb / smoke 全绿)
  • 此前 #37ec7986b 的 TS6133 Build 失败已由本 PR 修复

DRY / OCP / DIP / LSP / Demeter

级别 原则 结论
无新 BLOCKER
FIXED DRY MODULE_HELP_LABEL 死代码 → TS6133 ✅ 本 PR
FIXED LSP banned_items / moduleCanDisable ✅ 本 PR
FIXED DRY/OCP builtin 按 moduleId 卸装(去 serviceNames ✅ 本 PR
FIXED OCP/DRY db/tx sessionOps 表 ✅ 本 PR
MINOR Demeter cleanupModule 仍无参清全部 context 另开补丁 PR(#41 SDK 差额)
MINOR DRY/LSP 平台 legacy {success} vs v2 {ok} 有意延后(SDK dual-accept)

建议

  • 关闭与本 PR 重叠的草稿 #41(db-server 已合入;仅 SDK LoD 仍缺)
  • 合入承接 LoD 的后续补丁 PR
Open in Web View Automation 

Sent by Cursor Automation: SFMC-Review

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