Repository navigation
🐛 fix(kb): 非主题版本更新直接代跑 init,移除 f2s-kb-migrate (#40) - #44
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
[摘要] 升级提示改为 agent 直接代跑 flow2spec init,按 projectRev/pkgRev 判定是否再走完整升级;下线旧版迁移技能。 - hook 与统一入口新增 agent-instruction:init 后 projectRev == pkgRev(非主题更新)即完成,不等再走 f2s-kb-upgrade(从步骤 2c 起) - f2s-kb-upgrade:V1 旧版布局不再内置迁移,命中即停止并告知处理方式(历史版本包一次性迁移 / 手动迁入 .Knowledge) - 移除 intent-routing / topic-authoring / 统一入口中对 f2s-kb-migrate 的引用(模板目录删除已随配置根分发提交) - packages/core/lib/updateCheck.js buildNotice 同口径更新 Closes #40 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- workspace / core / cli / manifest 版本 3.4.1 → 3.5.0(含 lockfile 与四处 manifest-routing) - docs zh/en 各 4 份:删除 f2s-kb-migrate 章节与速查表行,upgrade 章节改写为「非主题更新直 init / V1 停技能」新口径;.Knowledge/stock-docs 终稿同步 - KB 新增 topic flow2spec-core-package(含 matcher / manifest / index 路由),记录 core 包三层职责与 CLI/legacy shim 消费关系 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
背景
Closes #40。
需求两条:
.Knowledge/manifest-routing.json落后 npm latest 但主题层未变)可由 agent 直接代跑flow2spec init完成,无需进入f2s-kb-upgrade完整流程。f2s-kb-migrateskill(历史版本迁移使用,后续不再兼容)。改动
1. 升级提示改为「直接代跑 init」
templates/{zh-CN,en-US}/hooks/f2s-update-check.js:buildNotice新增 agent-instruction — 转告后可直接执行flow2spec init <已初始化的 agents>完成更新;init 后读.Knowledge/manifest-routing.json,projectRev == pkgRev(非主题更新)即完成并删.Knowledge/update-check.json;两者不等(含主题层变更)再走f2s-kb-upgrade完整流程(从步骤 2c 起,不重复 init)。templates/*/rules/f2s-flow2spec-unified-entry.md的「知识库版本自检」双保险第 2、3 条同口径更新。packages/core/lib/updateCheck.js中英buildNotice文案更新。2. 移除
f2s-kb-migratetemplates/+packages/core/templates/)× 双语言(zh-CN + en-US)共 4 处 skill 目录。packages/core/lib/init.js既有清理逻辑自动删除(模板中不存在的f2s-*skill 会被 init 移除),无需新增代码。f2s-kb-upgradeSKILL:V1 分支改为「停止本技能 + 告知两条出路」——用历史版本包(@3.4.x及更早)一次性迁移,或手动迁入.Knowledge;description、主必控分流、自检项同步改写;新增「非主题版本更新:agent 可直接代跑 init(无需进入本技能)」一节。f2s-intent-routing(删映射行)、f2s-topic-authoring、统一入口的技能列表引用全部清理。3. 文档 + 知识库同步
docs/zh + en 共 8 份:删除f2s-kb-migrate章节与速查表行,upgrade 章节改写为「非主题更新直 init / V1 停技能」新口径。.Knowledge/stock-docs/flow2spec架构说明_终稿.md流程四同步。flow2spec-core-package(含 matcher / manifest / index 路由),沉淀本会话 Q&A 中提炼的 core 包三层职责与消费关系(首次入库)。4. 版本 bump
manifest-routing.json.version。flow2spec-core-package),按f2s-kb-upgrade发版纪律需 bump,但projectRev已在本仓f2s-kb-upgrade完整流程末尾维护,本 PR 不涉及。5. 项目类型标记
.uniai-project.json固化仓库为tech模式,团队 pull 后 uniai-commit 直接跳过需求关联步骤。验证
npm test全套通过(kb check ok、topics: 18、routing drift: no、模板 / 初始化 / doctor / tarball 安装测试全绿)。npm run pack:check通过(double-coding-flow2spec-3.5.0.tgz)。用户手上待做
npm i -g @double-coding/flow2spec@latest。.dsh/与根AGENTS.md仍是旧 init 产物(含旧 migrate 文案),合入后执行node ./cli.js init codex claude cursor dsh一次刷新。🤖 Generated with Claude Code