@c4a/context-cli 0.6.18 → 0.6.19

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 (46) hide show
  1. package/README.md +6 -2
  2. package/README.zh-CN.md +5 -2
  3. package/cli.js +8551 -5388
  4. package/docs/document-optimization.md +35 -11
  5. package/docs/document-optimization.zh-CN.md +29 -9
  6. package/package.json +2 -2
  7. package/plugins/VERSION +1 -1
  8. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  9. package/plugins/claude/commands/context.md +36 -6
  10. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  11. package/plugins/codex/skills/context/SKILL.md +36 -6
  12. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  13. package/plugins/cursor/commands/c4a-context.md +36 -6
  14. package/plugins/skills/c4a-context/SKILL.md +36 -6
  15. package/providers/context/actions/apply-code-index-guidance.yaml +5 -0
  16. package/providers/context/actions/maintain-evidence.yaml +1 -1
  17. package/providers/context/actions/migrate-codeindex.yaml +5 -0
  18. package/providers/context/actions/register-source-batch.yaml +1 -1
  19. package/providers/context/actions/restore-repository-sources.yaml +1 -1
  20. package/providers/context/codes.yaml +2 -0
  21. package/providers/context/graphs/workspace.yaml +32 -2
  22. package/providers/context/manifest.json +76 -58
  23. package/providers/context/provider.yaml +1 -1
  24. package/providers/context/resources/dialogue/code-extraction.md +12 -0
  25. package/providers/context/resources/dialogue/document-classification.md +1 -1
  26. package/providers/context/resources/dialogue/knowledge-review.md +7 -1
  27. package/providers/context/resources/dialogue/source-boundary.md +9 -1
  28. package/providers/context/resources/dialogue/workflow-mode-after-capture.md +11 -8
  29. package/providers/context/resources/dialogue/workflow-mode-after-creation.md +6 -4
  30. package/providers/context/resources/manuals/guides/lark-resources.md +7 -0
  31. package/providers/context/resources/manuals/guides/package-outputs.md +3 -3
  32. package/providers/context/resources/manuals/reference/code-extractors.md +5 -4
  33. package/providers/context/resources/manuals/reference/package-templates.md +18 -10
  34. package/providers/context/resources/manuals/reference/project-api.md +47 -22
  35. package/providers/context/resources/procedures/close-and-build.md +24 -9
  36. package/providers/context/resources/procedures/code-extraction.md +35 -11
  37. package/providers/context/resources/procedures/code-index-audit.md +53 -13
  38. package/providers/context/resources/procedures/document-capture.md +9 -0
  39. package/providers/context/resources/procedures/document-optimization.md +69 -21
  40. package/providers/context/resources/procedures/document-revision.md +11 -6
  41. package/providers/context/resources/procedures/knowledge-review.md +4 -1
  42. package/providers/context/resources/procedures/source-boundary.md +20 -8
  43. package/providers/context/resources/semantic/align/structure-planning.md +4 -4
  44. package/providers/context/resources/semantic/code-index/classification.md +8 -5
  45. package/providers/context/schemas/document-optimization-decisions.schema.json +29 -6
  46. package/providers/context/schemas/source-batch-input.schema.json +18 -3
package/README.md CHANGED
@@ -169,11 +169,15 @@ for maintainers, automation, and diagnostics:
169
169
  - `context plugin status` checks installed Agent projections;
170
170
  - `context debug enable` records optional traces below
171
171
  `.tmp/context-runtime/debug/`;
172
- - new workspaces enable conservative document revisions by default;
172
+ - new workspaces enable source-constrained editorial revisions by default;
173
173
  `context optimize-docs enable|disable` changes that workspace preference
174
174
  without modifying approved `knowledge/`;
175
175
  - `context revise "<title or approved path>"` starts one conversational
176
176
  correction and routes its validation before the next package build;
177
+ - code extraction writes `knowledge/codeindex/**` and independently audits
178
+ source analysis, stable-boundary coverage, content density, evidence scope,
179
+ and page size before Review; legacy `codegraph` workspaces migrate through
180
+ the returned Route action;
177
181
  - `context clean-cache --dry-run` previews cleanup of Context-owned stale
178
182
  plugin caches.
179
183
 
@@ -181,7 +185,7 @@ Revision-bound commands should be copied from `workflow.current`; examples in
181
185
  documentation are orientation, not a substitute for the current Route. See the
182
186
  [installed quickstart](./docs/quickstart.md) and
183
187
  [debug tracing guide](./docs/debug-tracing.md).
184
- See also [document revisions](./docs/document-optimization.md).
188
+ See also [source-constrained editorial revisions](./docs/document-optimization.md).
185
189
 
186
190
  ## Documentation and development
187
191
 
package/README.zh-CN.md CHANGED
@@ -143,16 +143,19 @@ context/
143
143
  - `context <command> --help` 是当前参数的权威来源;
144
144
  - `context plugin status` 检查已安装的 Agent 投影;
145
145
  - `context debug enable` 在 `.tmp/context-runtime/debug/` 记录可选轨迹;
146
- - 新工作区默认开启保守的文档修订;`context optimize-docs enable|disable`
146
+ - 新工作区默认开启来源约束的编辑修订;`context optimize-docs enable|disable`
147
147
  可调整工作区偏好,同时保持 `knowledge/` 中的正式知识不变;
148
148
  - `context revise "<标题或正式知识路径>"` 从对话启动一次单页修正,校验后再由
149
149
  Route 提示重新构建;
150
+ - 代码提取写入 `knowledge/codeindex/**`,并在 Review 前分别检查输入分析、稳定边界
151
+ 覆盖、正文密度、证据范围和页面规模;旧 `codegraph` 工作区只通过 Route 返回的
152
+ 迁移动作升级;
150
153
  - `context clean-cache --dry-run` 预览 Context-owned 过期插件缓存清理。
151
154
 
152
155
  绑定 revision 的命令应从 `workflow.current` 原样复制;文档示例只用于理解入口,
153
156
  不能替代当前 Route。参见[安装后快速说明](./docs/quickstart.zh-CN.md)和
154
157
  [debug tracing](./docs/debug-tracing.md)。
155
- 文档编译优化与对话修订参见[文档修订页](./docs/document-optimization.zh-CN.md)。
158
+ 文档编译优化与对话修订参见[来源约束的编辑修订](./docs/document-optimization.zh-CN.md)。
156
159
 
157
160
  ## 文档与开发
158
161