@cat-kit/agent-context 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,10 +11,12 @@ import{ACTION_NAMES as e,ACTION_RENDERERS as t}from"./actions.js";function n(n){
11
11
  | 给需求出计划、拆分任务 | plan | \`actions/plan.md\` |
12
12
  | 重做计划、调整方案 | replan | \`actions/replan.md\` |
13
13
  | 按计划开始做、实现当前计划 | implement | \`actions/implement.md\` |
14
- | 补一个小改动、在当前结果上修 | patch | \`actions/patch.md\` |
15
- | 快速出计划并实施 | rush | \`actions/rush.md\` |
14
+ | 实施后不满意、追加需求、修补问题 | patch | \`actions/patch.md\` |
15
+ | 无活跃计划时快速出计划并实施 | rush | \`actions/rush.md\` |
16
16
  | 任务彻底完成、归档当前计划 | done | 运行 \`agent-context done\` |
17
17
 
18
+ > **消歧**:存在已执行的当前计划时,用户提出任何变更需求 → 一律走 **patch**,禁止走 plan / rush。
19
+
18
20
  ## 全局约束
19
21
 
20
22
  - 状态机两态:\`未执行\`、\`已执行\`。
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/content/index.ts"],"sourcesContent":["import type { SkillArtifacts, ToolTarget } from '../types.js'\nimport { ACTION_NAMES, ACTION_RENDERERS } from './actions.js'\n\nconst SKILL_NAME = 'ac-workflow'\nconst SKILL_DESCRIPTION =\n '管理 .agent-context 计划生命周期,按 init、plan、replan、implement、patch、rush、done 协议推进任务。'\n\nexport function renderSkillArtifacts(target: ToolTarget): SkillArtifacts {\n const files: SkillArtifacts['files'] = [\n { relativePath: 'SKILL.md', body: renderNavigator(target) },\n ...ACTION_NAMES.map((name) => ({\n relativePath: `actions/${name}.md`,\n body: ACTION_RENDERERS[name]()\n }))\n ]\n\n if (target.metadataFiles.includes('openai')) {\n files.push({ relativePath: 'agents/openai.yaml', body: renderOpenAIMetadata() })\n }\n\n return { files }\n}\n\n// ── Navigator ────────────────────────────────────────\n\nfunction renderNavigator(target: ToolTarget): string {\n return `${renderFrontmatter(target)}\n# Agent Context\n\n管理项目中的 \\`.agent-context/\\` 计划生命周期。匹配用户意图后,读取对应协议文件(相对于本文件所在目录)严格执行。\n\n## 意图匹配\n\n| 用户意图 | 动作 | 协议文件 |\n|----------|------|----------|\n| 初始化项目上下文、补全 AGENTS | init | \\`actions/init.md\\` |\n| 给需求出计划、拆分任务 | plan | \\`actions/plan.md\\` |\n| 重做计划、调整方案 | replan | \\`actions/replan.md\\` |\n| 按计划开始做、实现当前计划 | implement | \\`actions/implement.md\\` |\n| 补一个小改动、在当前结果上修 | patch | \\`actions/patch.md\\` |\n| 快速出计划并实施 | rush | \\`actions/rush.md\\` |\n| 任务彻底完成、归档当前计划 | done | 运行 \\`agent-context done\\` |\n\n## 全局约束\n\n- 状态机两态:\\`未执行\\`、\\`已执行\\`。\n- 任意时刻最多一个当前计划:\\`.agent-context/plan-{number}\\`。\n- 多个当前计划 → 拒绝执行,提示恢复单活跃状态。\n- 计划编号全局递增,不复用。补丁编号在单计划目录内递增,不复用。\n\n## 目录结构\n\n\\`\\`\\`text\n.agent-context/\n├── plan-{N}/ # 当前计划(最多一个)\n│ ├── plan.md\n│ └── patch-{N}.md\n├── preparing/ # 待执行计划队列\n│ └── plan-{N}/\n└── done/ # 已归档计划\n └── plan-{N}-{YYYYMMDD}/\n\\`\\`\\`\n\n编号规则:扫描全部 \\`plan-N\\` 目录取 \\`max(N)+1\\`。\n`\n}\n\n// ── Frontmatter & Metadata ──────────────────────────\n\nfunction renderFrontmatter(target: ToolTarget): string {\n const lines = ['---', `name: ${SKILL_NAME}`, `description: ${SKILL_DESCRIPTION}`]\n\n if (target.frontmatterProfile === 'claude') {\n lines.push('argument-hint: [request]')\n }\n\n if (target.frontmatterProfile === 'copilot') {\n lines.push('license: MIT')\n }\n\n lines.push('---', '')\n return `${lines.join('\\n')}\\n`\n}\n\nfunction renderOpenAIMetadata(): string {\n return `interface:\n display_name: \"Agent Context Workflow\"\n short_description: \"统一管理 .agent-context 计划生命周期\"\n default_prompt: \"Use $ac-workflow to manage the current task through init, plan, replan, implement, patch, rush, or done.\"\n\npolicy:\n allow_implicit_invocation: true\n`\n}\n"],"mappings":"kEAOA,SAAgB,EAAqB,EAAoC,CACvE,IAAM,EAAiC,CACrC,CAAE,aAAc,WAAY,KAAM,EAAgB,EAAO,CAAE,CAC3D,GAAG,EAAa,IAAK,IAAU,CAC7B,aAAc,WAAW,EAAK,KAC9B,KAAM,EAAiB,IAAO,CAC/B,EAAE,CACJ,CAMD,OAJI,EAAO,cAAc,SAAS,SAAS,EACzC,EAAM,KAAK,CAAE,aAAc,qBAAsB,KAAM,GAAsB,CAAE,CAAC,CAG3E,CAAE,QAAO,CAKlB,SAAS,EAAgB,EAA4B,CACnD,MAAO,GAAG,EAAkB,EAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CtC,SAAS,EAAkB,EAA4B,CACrD,IAAM,EAAQ,CAAC,MAAO,oBAAuB,6FAAoC,CAWjF,OATI,EAAO,qBAAuB,UAChC,EAAM,KAAK,2BAA2B,CAGpC,EAAO,qBAAuB,WAChC,EAAM,KAAK,eAAe,CAG5B,EAAM,KAAK,MAAO,GAAG,CACd,GAAG,EAAM,KAAK;EAAK,CAAC,IAG7B,SAAS,GAA+B,CACtC,MAAO"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/content/index.ts"],"sourcesContent":["import type { SkillArtifacts, ToolTarget } from '../types.js'\nimport { ACTION_NAMES, ACTION_RENDERERS } from './actions.js'\n\nconst SKILL_NAME = 'ac-workflow'\nconst SKILL_DESCRIPTION =\n '管理 .agent-context 计划生命周期,按 init、plan、replan、implement、patch、rush、done 协议推进任务。'\n\nexport function renderSkillArtifacts(target: ToolTarget): SkillArtifacts {\n const files: SkillArtifacts['files'] = [\n { relativePath: 'SKILL.md', body: renderNavigator(target) },\n ...ACTION_NAMES.map((name) => ({\n relativePath: `actions/${name}.md`,\n body: ACTION_RENDERERS[name]()\n }))\n ]\n\n if (target.metadataFiles.includes('openai')) {\n files.push({ relativePath: 'agents/openai.yaml', body: renderOpenAIMetadata() })\n }\n\n return { files }\n}\n\n// ── Navigator ────────────────────────────────────────\n\nfunction renderNavigator(target: ToolTarget): string {\n return `${renderFrontmatter(target)}\n# Agent Context\n\n管理项目中的 \\`.agent-context/\\` 计划生命周期。匹配用户意图后,读取对应协议文件(相对于本文件所在目录)严格执行。\n\n## 意图匹配\n\n| 用户意图 | 动作 | 协议文件 |\n|----------|------|----------|\n| 初始化项目上下文、补全 AGENTS | init | \\`actions/init.md\\` |\n| 给需求出计划、拆分任务 | plan | \\`actions/plan.md\\` |\n| 重做计划、调整方案 | replan | \\`actions/replan.md\\` |\n| 按计划开始做、实现当前计划 | implement | \\`actions/implement.md\\` |\n| 实施后不满意、追加需求、修补问题 | patch | \\`actions/patch.md\\` |\n| 无活跃计划时快速出计划并实施 | rush | \\`actions/rush.md\\` |\n| 任务彻底完成、归档当前计划 | done | 运行 \\`agent-context done\\` |\n\n> **消歧**:存在已执行的当前计划时,用户提出任何变更需求 → 一律走 **patch**,禁止走 plan / rush。\n\n## 全局约束\n\n- 状态机两态:\\`未执行\\`、\\`已执行\\`。\n- 任意时刻最多一个当前计划:\\`.agent-context/plan-{number}\\`。\n- 多个当前计划 → 拒绝执行,提示恢复单活跃状态。\n- 计划编号全局递增,不复用。补丁编号在单计划目录内递增,不复用。\n\n## 目录结构\n\n\\`\\`\\`text\n.agent-context/\n├── plan-{N}/ # 当前计划(最多一个)\n│ ├── plan.md\n│ └── patch-{N}.md\n├── preparing/ # 待执行计划队列\n│ └── plan-{N}/\n└── done/ # 已归档计划\n └── plan-{N}-{YYYYMMDD}/\n\\`\\`\\`\n\n编号规则:扫描全部 \\`plan-N\\` 目录取 \\`max(N)+1\\`。\n`\n}\n\n// ── Frontmatter & Metadata ──────────────────────────\n\nfunction renderFrontmatter(target: ToolTarget): string {\n const lines = ['---', `name: ${SKILL_NAME}`, `description: ${SKILL_DESCRIPTION}`]\n\n if (target.frontmatterProfile === 'claude') {\n lines.push('argument-hint: [request]')\n }\n\n if (target.frontmatterProfile === 'copilot') {\n lines.push('license: MIT')\n }\n\n lines.push('---', '')\n return `${lines.join('\\n')}\\n`\n}\n\nfunction renderOpenAIMetadata(): string {\n return `interface:\n display_name: \"Agent Context Workflow\"\n short_description: \"统一管理 .agent-context 计划生命周期\"\n default_prompt: \"Use $ac-workflow to manage the current task through init, plan, replan, implement, patch, rush, or done.\"\n\npolicy:\n allow_implicit_invocation: true\n`\n}\n"],"mappings":"kEAOA,SAAgB,EAAqB,EAAoC,CACvE,IAAM,EAAiC,CACrC,CAAE,aAAc,WAAY,KAAM,EAAgB,EAAO,CAAE,CAC3D,GAAG,EAAa,IAAK,IAAU,CAC7B,aAAc,WAAW,EAAK,KAC9B,KAAM,EAAiB,IAAO,CAC/B,EAAE,CACJ,CAMD,OAJI,EAAO,cAAc,SAAS,SAAS,EACzC,EAAM,KAAK,CAAE,aAAc,qBAAsB,KAAM,GAAsB,CAAE,CAAC,CAG3E,CAAE,QAAO,CAKlB,SAAS,EAAgB,EAA4B,CACnD,MAAO,GAAG,EAAkB,EAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CtC,SAAS,EAAkB,EAA4B,CACrD,IAAM,EAAQ,CAAC,MAAO,oBAAuB,6FAAoC,CAWjF,OATI,EAAO,qBAAuB,UAChC,EAAM,KAAK,2BAA2B,CAGpC,EAAO,qBAAuB,WAChC,EAAM,KAAK,eAAe,CAG5B,EAAM,KAAK,MAAO,GAAG,CACd,GAAG,EAAM,KAAK;EAAK,CAAC,IAG7B,SAAS,GAA+B,CACtC,MAAO"}
package/dist/stats.html CHANGED
@@ -4930,7 +4930,7 @@ var drawChart = (function (exports) {
4930
4930
  </script>
4931
4931
  <script>
4932
4932
  /*<!--*/
4933
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"cli.d.ts","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/cli.d.ts","uid":"4f843d64-1"}]},{"name":"cli.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/cli.ts","uid":"4f843d64-3"}]},{"name":"commands/done.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/done.ts","uid":"4f843d64-5"}]},{"name":"commands/install.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/install.ts","uid":"4f843d64-7"}]},{"name":"commands/printer.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/printer.ts","uid":"4f843d64-9"}]},{"name":"commands/status.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/status.ts","uid":"4f843d64-11"}]},{"name":"commands/sync.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/sync.ts","uid":"4f843d64-13"}]},{"name":"commands/validate.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/validate.ts","uid":"4f843d64-15"}]},{"name":"content/actions.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/content/actions.ts","uid":"4f843d64-17"}]},{"name":"content/index.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/content/index.ts","uid":"4f843d64-19"}]},{"name":"context/archiver.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/context/archiver.ts","uid":"4f843d64-21"}]},{"name":"context/reader.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/context/reader.ts","uid":"4f843d64-23"}]},{"name":"context/validator.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/context/validator.ts","uid":"4f843d64-25"}]},{"name":"runner.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/runner.ts","uid":"4f843d64-27"}]},{"name":"tools.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/tools.ts","uid":"4f843d64-29"}]}],"isRoot":true},"nodeParts":{"4f843d64-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-0"},"4f843d64-3":{"renderedLength":1518,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-2"},"4f843d64-5":{"renderedLength":1349,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-4"},"4f843d64-7":{"renderedLength":985,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-6"},"4f843d64-9":{"renderedLength":909,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-8"},"4f843d64-11":{"renderedLength":944,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-10"},"4f843d64-13":{"renderedLength":745,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-12"},"4f843d64-15":{"renderedLength":758,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-14"},"4f843d64-17":{"renderedLength":8872,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-16"},"4f843d64-19":{"renderedLength":2866,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-18"},"4f843d64-21":{"renderedLength":1012,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-20"},"4f843d64-23":{"renderedLength":1573,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-22"},"4f843d64-25":{"renderedLength":1039,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-24"},"4f843d64-27":{"renderedLength":2037,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-26"},"4f843d64-29":{"renderedLength":2174,"gzipLength":0,"brotliLength":0,"metaUid":"4f843d64-28"}},"nodeMetas":{"4f843d64-0":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/cli.d.ts","moduleParts":{"cli.d.ts":"4f843d64-1"},"imported":[],"importedBy":[],"isEntry":true},"4f843d64-2":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/cli.ts","moduleParts":{"cli.js":"4f843d64-3"},"imported":[{"uid":"4f843d64-30"},{"uid":"4f843d64-31"},{"uid":"4f843d64-4"},{"uid":"4f843d64-6"},{"uid":"4f843d64-10"},{"uid":"4f843d64-12"},{"uid":"4f843d64-14"}],"importedBy":[],"isEntry":true},"4f843d64-4":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/done.ts","moduleParts":{"commands/done.js":"4f843d64-5"},"imported":[{"uid":"4f843d64-32"},{"uid":"4f843d64-33"},{"uid":"4f843d64-34"}],"importedBy":[{"uid":"4f843d64-2"}]},"4f843d64-6":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/install.ts","moduleParts":{"commands/install.js":"4f843d64-7"},"imported":[{"uid":"4f843d64-33"},{"uid":"4f843d64-26"},{"uid":"4f843d64-28"},{"uid":"4f843d64-8"}],"importedBy":[{"uid":"4f843d64-2"}]},"4f843d64-8":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/printer.ts","moduleParts":{"commands/printer.js":"4f843d64-9"},"imported":[{"uid":"4f843d64-32"}],"importedBy":[{"uid":"4f843d64-6"},{"uid":"4f843d64-12"}]},"4f843d64-10":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/status.ts","moduleParts":{"commands/status.js":"4f843d64-11"},"imported":[{"uid":"4f843d64-34"}],"importedBy":[{"uid":"4f843d64-2"}]},"4f843d64-12":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/sync.ts","moduleParts":{"commands/sync.js":"4f843d64-13"},"imported":[{"uid":"4f843d64-28"},{"uid":"4f843d64-26"},{"uid":"4f843d64-8"}],"importedBy":[{"uid":"4f843d64-2"}]},"4f843d64-14":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/validate.ts","moduleParts":{"commands/validate.js":"4f843d64-15"},"imported":[{"uid":"4f843d64-34"}],"importedBy":[{"uid":"4f843d64-2"}]},"4f843d64-16":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/content/actions.ts","moduleParts":{"content/actions.js":"4f843d64-17"},"imported":[],"importedBy":[{"uid":"4f843d64-18"}]},"4f843d64-18":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/content/index.ts","moduleParts":{"content/index.js":"4f843d64-19"},"imported":[{"uid":"4f843d64-16"}],"importedBy":[{"uid":"4f843d64-26"}]},"4f843d64-20":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/archiver.ts","moduleParts":{"context/archiver.js":"4f843d64-21"},"imported":[{"uid":"4f843d64-35"},{"uid":"4f843d64-32"}],"importedBy":[{"uid":"4f843d64-34"}]},"4f843d64-22":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/reader.ts","moduleParts":{"context/reader.js":"4f843d64-23"},"imported":[{"uid":"4f843d64-35"},{"uid":"4f843d64-30"},{"uid":"4f843d64-32"}],"importedBy":[{"uid":"4f843d64-34"}]},"4f843d64-24":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/validator.ts","moduleParts":{"context/validator.js":"4f843d64-25"},"imported":[{"uid":"4f843d64-30"},{"uid":"4f843d64-32"}],"importedBy":[{"uid":"4f843d64-34"}]},"4f843d64-26":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/runner.ts","moduleParts":{"runner.js":"4f843d64-27"},"imported":[{"uid":"4f843d64-32"},{"uid":"4f843d64-30"},{"uid":"4f843d64-35"},{"uid":"4f843d64-28"},{"uid":"4f843d64-18"}],"importedBy":[{"uid":"4f843d64-6"},{"uid":"4f843d64-12"}]},"4f843d64-28":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/tools.ts","moduleParts":{"tools.js":"4f843d64-29"},"imported":[{"uid":"4f843d64-30"},{"uid":"4f843d64-32"}],"importedBy":[{"uid":"4f843d64-6"},{"uid":"4f843d64-12"},{"uid":"4f843d64-26"}]},"4f843d64-30":{"id":"node:fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"4f843d64-2"},{"uid":"4f843d64-26"},{"uid":"4f843d64-28"},{"uid":"4f843d64-22"},{"uid":"4f843d64-24"}]},"4f843d64-31":{"id":"commander","moduleParts":{},"imported":[],"importedBy":[{"uid":"4f843d64-2"}]},"4f843d64-32":{"id":"node:path","moduleParts":{},"imported":[],"importedBy":[{"uid":"4f843d64-4"},{"uid":"4f843d64-26"},{"uid":"4f843d64-28"},{"uid":"4f843d64-8"},{"uid":"4f843d64-22"},{"uid":"4f843d64-24"},{"uid":"4f843d64-20"}]},"4f843d64-33":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"4f843d64-4"},{"uid":"4f843d64-6"}]},"4f843d64-34":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/index.ts","moduleParts":{},"imported":[{"uid":"4f843d64-22"},{"uid":"4f843d64-24"},{"uid":"4f843d64-20"}],"importedBy":[{"uid":"4f843d64-4"},{"uid":"4f843d64-10"},{"uid":"4f843d64-14"}]},"4f843d64-35":{"id":"node:fs/promises","moduleParts":{},"imported":[],"importedBy":[{"uid":"4f843d64-26"},{"uid":"4f843d64-22"},{"uid":"4f843d64-20"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4933
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"cli.d.ts","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/cli.d.ts","uid":"a194fe0a-1"}]},{"name":"cli.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/cli.ts","uid":"a194fe0a-3"}]},{"name":"commands/done.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/done.ts","uid":"a194fe0a-5"}]},{"name":"commands/install.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/install.ts","uid":"a194fe0a-7"}]},{"name":"commands/printer.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/printer.ts","uid":"a194fe0a-9"}]},{"name":"commands/status.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/status.ts","uid":"a194fe0a-11"}]},{"name":"commands/sync.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/sync.ts","uid":"a194fe0a-13"}]},{"name":"commands/validate.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/commands/validate.ts","uid":"a194fe0a-15"}]},{"name":"content/actions.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/content/actions.ts","uid":"a194fe0a-17"}]},{"name":"content/index.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/content/index.ts","uid":"a194fe0a-19"}]},{"name":"context/archiver.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/context/archiver.ts","uid":"a194fe0a-21"}]},{"name":"context/reader.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/context/reader.ts","uid":"a194fe0a-23"}]},{"name":"context/validator.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/context/validator.ts","uid":"a194fe0a-25"}]},{"name":"runner.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/runner.ts","uid":"a194fe0a-27"}]},{"name":"tools.js","children":[{"name":"home/whj/codes/cat-kit/packages/agent-context/src/tools.ts","uid":"a194fe0a-29"}]}],"isRoot":true},"nodeParts":{"a194fe0a-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-0"},"a194fe0a-3":{"renderedLength":1518,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-2"},"a194fe0a-5":{"renderedLength":1349,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-4"},"a194fe0a-7":{"renderedLength":985,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-6"},"a194fe0a-9":{"renderedLength":909,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-8"},"a194fe0a-11":{"renderedLength":944,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-10"},"a194fe0a-13":{"renderedLength":745,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-12"},"a194fe0a-15":{"renderedLength":758,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-14"},"a194fe0a-17":{"renderedLength":8872,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-16"},"a194fe0a-19":{"renderedLength":3024,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-18"},"a194fe0a-21":{"renderedLength":1012,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-20"},"a194fe0a-23":{"renderedLength":1573,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-22"},"a194fe0a-25":{"renderedLength":1039,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-24"},"a194fe0a-27":{"renderedLength":2037,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-26"},"a194fe0a-29":{"renderedLength":2174,"gzipLength":0,"brotliLength":0,"metaUid":"a194fe0a-28"}},"nodeMetas":{"a194fe0a-0":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/cli.d.ts","moduleParts":{"cli.d.ts":"a194fe0a-1"},"imported":[],"importedBy":[],"isEntry":true},"a194fe0a-2":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/cli.ts","moduleParts":{"cli.js":"a194fe0a-3"},"imported":[{"uid":"a194fe0a-30"},{"uid":"a194fe0a-31"},{"uid":"a194fe0a-4"},{"uid":"a194fe0a-6"},{"uid":"a194fe0a-10"},{"uid":"a194fe0a-12"},{"uid":"a194fe0a-14"}],"importedBy":[],"isEntry":true},"a194fe0a-4":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/done.ts","moduleParts":{"commands/done.js":"a194fe0a-5"},"imported":[{"uid":"a194fe0a-32"},{"uid":"a194fe0a-33"},{"uid":"a194fe0a-34"}],"importedBy":[{"uid":"a194fe0a-2"}]},"a194fe0a-6":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/install.ts","moduleParts":{"commands/install.js":"a194fe0a-7"},"imported":[{"uid":"a194fe0a-33"},{"uid":"a194fe0a-26"},{"uid":"a194fe0a-28"},{"uid":"a194fe0a-8"}],"importedBy":[{"uid":"a194fe0a-2"}]},"a194fe0a-8":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/printer.ts","moduleParts":{"commands/printer.js":"a194fe0a-9"},"imported":[{"uid":"a194fe0a-32"}],"importedBy":[{"uid":"a194fe0a-6"},{"uid":"a194fe0a-12"}]},"a194fe0a-10":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/status.ts","moduleParts":{"commands/status.js":"a194fe0a-11"},"imported":[{"uid":"a194fe0a-34"}],"importedBy":[{"uid":"a194fe0a-2"}]},"a194fe0a-12":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/sync.ts","moduleParts":{"commands/sync.js":"a194fe0a-13"},"imported":[{"uid":"a194fe0a-28"},{"uid":"a194fe0a-26"},{"uid":"a194fe0a-8"}],"importedBy":[{"uid":"a194fe0a-2"}]},"a194fe0a-14":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/commands/validate.ts","moduleParts":{"commands/validate.js":"a194fe0a-15"},"imported":[{"uid":"a194fe0a-34"}],"importedBy":[{"uid":"a194fe0a-2"}]},"a194fe0a-16":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/content/actions.ts","moduleParts":{"content/actions.js":"a194fe0a-17"},"imported":[],"importedBy":[{"uid":"a194fe0a-18"}]},"a194fe0a-18":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/content/index.ts","moduleParts":{"content/index.js":"a194fe0a-19"},"imported":[{"uid":"a194fe0a-16"}],"importedBy":[{"uid":"a194fe0a-26"}]},"a194fe0a-20":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/archiver.ts","moduleParts":{"context/archiver.js":"a194fe0a-21"},"imported":[{"uid":"a194fe0a-35"},{"uid":"a194fe0a-32"}],"importedBy":[{"uid":"a194fe0a-34"}]},"a194fe0a-22":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/reader.ts","moduleParts":{"context/reader.js":"a194fe0a-23"},"imported":[{"uid":"a194fe0a-35"},{"uid":"a194fe0a-30"},{"uid":"a194fe0a-32"}],"importedBy":[{"uid":"a194fe0a-34"}]},"a194fe0a-24":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/validator.ts","moduleParts":{"context/validator.js":"a194fe0a-25"},"imported":[{"uid":"a194fe0a-30"},{"uid":"a194fe0a-32"}],"importedBy":[{"uid":"a194fe0a-34"}]},"a194fe0a-26":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/runner.ts","moduleParts":{"runner.js":"a194fe0a-27"},"imported":[{"uid":"a194fe0a-32"},{"uid":"a194fe0a-30"},{"uid":"a194fe0a-35"},{"uid":"a194fe0a-28"},{"uid":"a194fe0a-18"}],"importedBy":[{"uid":"a194fe0a-6"},{"uid":"a194fe0a-12"}]},"a194fe0a-28":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/tools.ts","moduleParts":{"tools.js":"a194fe0a-29"},"imported":[{"uid":"a194fe0a-30"},{"uid":"a194fe0a-32"}],"importedBy":[{"uid":"a194fe0a-6"},{"uid":"a194fe0a-12"},{"uid":"a194fe0a-26"}]},"a194fe0a-30":{"id":"node:fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"a194fe0a-2"},{"uid":"a194fe0a-26"},{"uid":"a194fe0a-28"},{"uid":"a194fe0a-22"},{"uid":"a194fe0a-24"}]},"a194fe0a-31":{"id":"commander","moduleParts":{},"imported":[],"importedBy":[{"uid":"a194fe0a-2"}]},"a194fe0a-32":{"id":"node:path","moduleParts":{},"imported":[],"importedBy":[{"uid":"a194fe0a-4"},{"uid":"a194fe0a-26"},{"uid":"a194fe0a-28"},{"uid":"a194fe0a-8"},{"uid":"a194fe0a-22"},{"uid":"a194fe0a-24"},{"uid":"a194fe0a-20"}]},"a194fe0a-33":{"id":"@inquirer/prompts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a194fe0a-4"},{"uid":"a194fe0a-6"}]},"a194fe0a-34":{"id":"/home/whj/codes/cat-kit/packages/agent-context/src/context/index.ts","moduleParts":{},"imported":[{"uid":"a194fe0a-22"},{"uid":"a194fe0a-24"},{"uid":"a194fe0a-20"}],"importedBy":[{"uid":"a194fe0a-4"},{"uid":"a194fe0a-10"},{"uid":"a194fe0a-14"}]},"a194fe0a-35":{"id":"node:fs/promises","moduleParts":{},"imported":[],"importedBy":[{"uid":"a194fe0a-26"},{"uid":"a194fe0a-22"},{"uid":"a194fe0a-20"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4934
4934
 
4935
4935
  const run = () => {
4936
4936
  const width = window.innerWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-kit/agent-context",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "代理上下文管理工具",
5
5
  "bin": {
6
6
  "agent-context": "./dist/cli.js"
@@ -37,10 +37,12 @@ function renderNavigator(target: ToolTarget): string {
37
37
  | 给需求出计划、拆分任务 | plan | \`actions/plan.md\` |
38
38
  | 重做计划、调整方案 | replan | \`actions/replan.md\` |
39
39
  | 按计划开始做、实现当前计划 | implement | \`actions/implement.md\` |
40
- | 补一个小改动、在当前结果上修 | patch | \`actions/patch.md\` |
41
- | 快速出计划并实施 | rush | \`actions/rush.md\` |
40
+ | 实施后不满意、追加需求、修补问题 | patch | \`actions/patch.md\` |
41
+ | 无活跃计划时快速出计划并实施 | rush | \`actions/rush.md\` |
42
42
  | 任务彻底完成、归档当前计划 | done | 运行 \`agent-context done\` |
43
43
 
44
+ > **消歧**:存在已执行的当前计划时,用户提出任何变更需求 → 一律走 **patch**,禁止走 plan / rush。
45
+
44
46
  ## 全局约束
45
47
 
46
48
  - 状态机两态:\`未执行\`、\`已执行\`。