@c4a/context-cli 0.7.10 → 0.7.12

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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/README.zh-CN.md +3 -3
  3. package/cli.js +1216 -450
  4. package/indexers/bundles/context-code-indexer/references/indexer.md +11 -1
  5. package/indexers/bundles/context-markdown-indexer/references/indexer.md +7 -2
  6. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +9 -6
  7. package/indexers/contracts/profile-contract.json +245 -245
  8. package/indexers/release-manifest.json +6 -6
  9. package/package.json +12 -12
  10. package/parserEntryWorker.js +26 -2
  11. package/plugins/README.md +1 -1
  12. package/plugins/README_CN.md +1 -1
  13. package/plugins/VERSION +1 -1
  14. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  15. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  16. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  17. package/plugins/skills/context-code-indexer/references/indexer.md +11 -1
  18. package/plugins/skills/context-markdown-indexer/references/indexer.md +7 -2
  19. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +9 -6
  20. package/providers/context/graphs/workspace.yaml +1 -22
  21. package/providers/context/manifest.json +29 -65
  22. package/providers/context/provider.yaml +1 -1
  23. package/providers/context/resources/manuals/guides/knowledge-updates.md +87 -3
  24. package/providers/context/resources/manuals/guides/package-outputs.md +39 -1
  25. package/providers/context/resources/manuals/guides/workspace-prepare.md +3 -0
  26. package/providers/context/resources/manuals/reference/project-api.md +21 -2
  27. package/providers/context/resources/procedures/knowledge-review.md +18 -2
  28. package/providers/context/resources/procedures/knowledge-updates.md +87 -3
  29. package/providers/context/resources/procedures/package-output.md +18 -0
  30. package/providers/context/resources/procedures/production-stage-files.md +21 -0
  31. package/providers/context/resources/procedures/repository-source-recovery.md +5 -3
  32. package/providers/context/resources/procedures/task-recovery.md +6 -0
  33. package/providers/context/resources/procedures/work-start-report.md +14 -7
  34. package/providers/context/resources/procedures/workspace-prepare.md +3 -0
  35. package/providers/context/resources/templates/work-start-report.md +11 -6
  36. package/providers/context/actions/inspect-repository-recovery.yaml +0 -6
  37. package/providers/context/actions/restore-repository-sources.yaml +0 -7
  38. package/providers/context/resources/dialogue/repository-source-recovery.md +0 -23
  39. package/providers/context/schemas/repository-source-recovery.schema.json +0 -40
package/README.md CHANGED
@@ -82,7 +82,7 @@ selects instead of carrying the entire lifecycle in its prompt.
82
82
  |---|---|---|
83
83
  | Goal and sources | Confirm what knowledge is needed and which materials are in scope | Source identity, permission boundary, pinned repository or document inputs |
84
84
  | Capture and extraction | The Agent reads documents or inspects a confirmed code boundary | Complete bodies, resources, symbols, relations, fingerprints, and freshness |
85
- | Structure and compile | Review the proposed knowledge organization and content | Source-bound Nodes and Sections, coverage, continuity, and stable identities |
85
+ | Planning and writing | Review the proposed knowledge organization and content | Articles and source-linked sections, coverage, continuity, and stable identities |
86
86
  | Review and close | Approve, reject, or adjust the candidate set | Atomic review application, durable decisions, and closed structure projection |
87
87
  | Verify and build | Choose an output and receive a reusable package | Validation, package templates, asset policy, and build inventory |
88
88
 
@@ -230,7 +230,7 @@ for maintainers, automation, and diagnostics:
230
230
  and do not create a retry ledger or override Gate;
231
231
  - required material gaps block the ordinary lifecycle until new captured input
232
232
  reruns the affected workset. The ordinary `context close` writes approved
233
- structure and clears completed runtime lifecycle state;
233
+ structure; task cleanup follows successful delivery, not close alone;
234
234
  - `context clean-cache --dry-run` previews cleanup of Context-owned stale
235
235
  plugin caches.
236
236
 
package/README.zh-CN.md CHANGED
@@ -108,8 +108,8 @@ context/
108
108
  ```
109
109
 
110
110
  这些目录具有不同的持久性契约。`sources/` 和 `knowledge/` 是项目状态,`dist/` 是
111
- 可重复构建产物,lifecycle 和 debug 目录是被忽略的运行状态。成功 close 会清理
112
- 已经完成的 lifecycle 暂存区。不要通过手工编辑或删除 CLI-owned 状态修复流程,
111
+ 可重复构建产物,lifecycle 和 debug 目录是被忽略的运行状态。任务暂存区在成功交付后
112
+ 按工作区准备指引清理,不在 close 后立即清空。不要通过手工编辑或删除 CLI-owned 状态修复流程,
113
113
  应执行当前 Route 返回的恢复动作。
114
114
 
115
115
  ## 证据和安全边界
@@ -172,7 +172,7 @@ context/
172
172
  Author 或 Composer workset 后重新编译,建议性的 profile metric 只作为 warning,不建立重试账本或
173
173
  override Gate;
174
174
  - 必需 material gap 会阻塞普通生命周期,直到新增 capture 重新运行受影响 workset;普通
175
- `context close` 写入 approved structure 并清理已完成的运行时生命周期状态;
175
+ `context close` 写入 approved structure;任务清理在成功交付后进行;
176
176
  - `context clean-cache --dry-run` 预览 Context-owned 过期插件缓存清理。
177
177
 
178
178
  绑定 revision 的命令应从 `workflow.current` 原样复制;文档示例只用于理解入口,