@c4a/context-cli 0.6.13 → 0.6.17

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 (52) hide show
  1. package/README.md +6 -0
  2. package/README.zh-CN.md +5 -0
  3. package/cli.js +6114 -3390
  4. package/docs/document-optimization.md +58 -0
  5. package/docs/document-optimization.zh-CN.md +50 -0
  6. package/package.json +3 -2
  7. package/plugins/VERSION +1 -1
  8. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  9. package/plugins/claude/commands/context.md +43 -2
  10. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  11. package/plugins/codex/skills/context/SKILL.md +43 -2
  12. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  13. package/plugins/cursor/commands/c4a-context.md +43 -2
  14. package/plugins/skills/c4a-context/SKILL.md +43 -2
  15. package/providers/context/actions/optimize-documents.yaml +6 -0
  16. package/providers/context/actions/preview-extraction-batch.yaml +5 -0
  17. package/providers/context/actions/revise-document.yaml +5 -0
  18. package/providers/context/codes.yaml +6 -0
  19. package/providers/context/graphs/workspace.yaml +118 -3
  20. package/providers/context/manifest.json +242 -26
  21. package/providers/context/provider.yaml +1 -1
  22. package/providers/context/resources/dialogue/code-extraction.md +39 -9
  23. package/providers/context/resources/dialogue/package-output.md +5 -8
  24. package/providers/context/resources/manuals/guides/package-outputs.md +14 -20
  25. package/providers/context/resources/manuals/reference/code-extractors.md +75 -18
  26. package/providers/context/resources/manuals/reference/package-templates.md +26 -33
  27. package/providers/context/resources/manuals/reference/project-api.md +156 -14
  28. package/providers/context/resources/manuals/reference/template-variables.md +4 -3
  29. package/providers/context/resources/procedures/close-and-build.md +5 -0
  30. package/providers/context/resources/procedures/code-extraction.md +86 -13
  31. package/providers/context/resources/procedures/document-optimization.md +43 -0
  32. package/providers/context/resources/procedures/document-revision.md +31 -0
  33. package/providers/context/resources/procedures/package-output.md +10 -34
  34. package/providers/context/resources/semantic/code-index/classification.md +267 -0
  35. package/providers/context/resources/semantic/code-index/templates/adapter.md +109 -0
  36. package/providers/context/resources/semantic/code-index/templates/api-service.md +116 -0
  37. package/providers/context/resources/semantic/code-index/templates/background-runtime.md +109 -0
  38. package/providers/context/resources/semantic/code-index/templates/cli-tool.md +129 -0
  39. package/providers/context/resources/semantic/code-index/templates/contract-source.md +73 -0
  40. package/providers/context/resources/semantic/code-index/templates/cross-module-chain.md +78 -0
  41. package/providers/context/resources/semantic/code-index/templates/derived-source.md +116 -0
  42. package/providers/context/resources/semantic/code-index/templates/domain-service.md +109 -0
  43. package/providers/context/resources/semantic/code-index/templates/event-flow.md +62 -0
  44. package/providers/context/resources/semantic/code-index/templates/monorepo-container.md +124 -0
  45. package/providers/context/resources/semantic/code-index/templates/persistence-boundary.md +56 -0
  46. package/providers/context/resources/semantic/code-index/templates/plugin-extension.md +52 -0
  47. package/providers/context/resources/semantic/code-index/templates/protocol-boundary.md +88 -0
  48. package/providers/context/resources/semantic/code-index/templates/sdk-library.md +132 -0
  49. package/providers/context/resources/semantic/code-index/templates/web-application.md +145 -0
  50. package/providers/context/resources/views/document-optimization-current.yaml +6 -0
  51. package/providers/context/resources/views/extraction-preview.yaml +6 -0
  52. package/providers/context/schemas/document-optimization-decisions.schema.json +34 -0
package/README.md CHANGED
@@ -169,6 +169,11 @@ 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;
173
+ `context optimize-docs enable|disable` changes that workspace preference
174
+ without modifying approved `knowledge/`;
175
+ - `context revise "<title or approved path>"` starts one conversational
176
+ correction and routes its validation before the next package build;
172
177
  - `context clean-cache --dry-run` previews cleanup of Context-owned stale
173
178
  plugin caches.
174
179
 
@@ -176,6 +181,7 @@ Revision-bound commands should be copied from `workflow.current`; examples in
176
181
  documentation are orientation, not a substitute for the current Route. See the
177
182
  [installed quickstart](./docs/quickstart.md) and
178
183
  [debug tracing guide](./docs/debug-tracing.md).
184
+ See also [document revisions](./docs/document-optimization.md).
179
185
 
180
186
  ## Documentation and development
181
187
 
package/README.zh-CN.md CHANGED
@@ -143,11 +143,16 @@ 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`
147
+ 可调整工作区偏好,同时保持 `knowledge/` 中的正式知识不变;
148
+ - `context revise "<标题或正式知识路径>"` 从对话启动一次单页修正,校验后再由
149
+ Route 提示重新构建;
146
150
  - `context clean-cache --dry-run` 预览 Context-owned 过期插件缓存清理。
147
151
 
148
152
  绑定 revision 的命令应从 `workflow.current` 原样复制;文档示例只用于理解入口,
149
153
  不能替代当前 Route。参见[安装后快速说明](./docs/quickstart.zh-CN.md)和
150
154
  [debug tracing](./docs/debug-tracing.md)。
155
+ 文档编译优化与对话修订参见[文档修订页](./docs/document-optimization.zh-CN.md)。
151
156
 
152
157
  ## 文档与开发
153
158