fix(ootb@67069bf): module/mod HELP 别名打红 + chalk.map 乱码 - #33
Merged
Tanya7z merged 3 commits intoJul 22, 2026
Conversation
feat@8fc0989 将 HELP 改为 module/mod 后,check-ootb 的 /module\s+(list|install)/ 误报失败。同步: - ootb 剥离 ANSI,匹配 module[/|]mod 展示 - MODULE_CMD_NAMES 作为 HELP/分发/USAGE 唯一来源 - 移除误提交的 npm pack *.tgz 并 gitignore Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
.map(paint) 会把 (value,index,array) 传给 chalk,HELP 变成 「module 0 module,mod/...」乱码;改为显式 paint(name)。 Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
Tanya7z
marked this pull request as ready for review
July 22, 2026 17:04
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. |
This was referenced Jul 22, 2026
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
ootb在main@8fc0989/67069bf连续失败(runs 29940097714、29940147800)。feat@8fc0989把 CLI HELP 从module list改为module/mod list,但tools/check-ootb.mjs仍用/module\s+(list|install)/,导致「sfmc CLI module 子命令已注册」误报。审查结论(DRY / OCP / DIP / LSP / Demeter)
module\\s+module[/\|]mod+ 剥 ANSImodule/mod在 HELP、main、repl、USAGE 多处硬编码MODULE_CMD_NAMES+isModuleCommand/paintModuleCmdAlias.map(paint)把(value,index,array)喂给 chalk,HELP 乱码paint(name)sfmc-bds-sfmc-0.1.0.tgz*.tgzgitignore未在本 PR 重复处理:已开的 #31(模块鉴权注入 / configs/all / tx 契约)。
验证