Skip to content

🚀 feat(cli): 版本联动制——CLI pin Core + update 整体更新与生效验证 - #53

Merged
liguochuan00 merged 1 commit into
mainfrom
fix/lockstep-versioning
Aug 28, 2026
Merged

🚀 feat(cli): 版本联动制——CLI pin Core + update 整体更新与生效验证#53
liguochuan00 merged 1 commit into
mainfrom
fix/lockstep-versioning

Conversation

@liguochuan00

Copy link
Copy Markdown
Collaborator

背景

用户实测 flow2spec update --core 假成功:npm 全局嵌套依赖遮蔽导致顶级孤儿 Core 永不生效,且旧实现无生效验证。

方案:版本联动制

  • CLI 依赖 Core 改为精确 pin(3.7.2),Core/Template 发版必带 CLI patch 联动发布
  • update --check/--cli/--core 统一为整体更新,安装后校验全局生效 Core 版本,失败 exit 1 给手动命令;依赖树异常时先卸再装强制重建
  • version 输出 Core Range → Core Pinned
  • workspace-version:set-core 联动同步 CLI pin+lock,check 强制 pin 一致
  • 文档/模板全量对齐:升级指南、使用说明、kb-upgrade SKILL、hook、统一入口规则(zh/en)+ 本仓 topics

版本

CLI 3.6.2 / Core 3.7.2 / Template 3.6.2

验证

  • npm test 14 项全绿
  • kb check --strict 通过
  • L3 深度安全扫描 0 发现

- CLI 依赖 Core 改为精确 pin(3.7.2),Core/Template 发版必带 CLI patch 联动发布
- update --check/--cli/--core 统一为整体更新:npm i -g CLI@latest,安装后校验全局生效 Core 版本,失败 exit 1 并给手动重装命令;CLI 已最新但 Core 依赖树异常时先卸再装强制重建
- version 输出 Core Range -> Core Pinned
- workspace-version:set-core 联动同步 CLI pin+lockfile,check 强制 pin 与 Core 精确一致
- 文档/模板全量对齐联动口径:升级指南(zh/en)、使用说明(zh/en)、kb-upgrade SKILL(zh/en)、update-check hook(zh/en)、统一入口规则(zh/en)、本仓 topics
- 版本:CLI 3.6.2 / Core 3.7.2 / Template 3.6.2;npm test 14 项全绿
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