@c4a/context-cli 0.6.17 → 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.
- package/README.md +6 -2
- package/README.zh-CN.md +5 -2
- package/cli.js +11452 -7269
- package/docs/document-optimization.md +35 -11
- package/docs/document-optimization.zh-CN.md +29 -9
- package/package.json +2 -2
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +44 -6
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +44 -6
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +44 -6
- package/plugins/skills/c4a-context/SKILL.md +44 -6
- package/providers/context/actions/apply-code-index-guidance.yaml +5 -0
- package/providers/context/actions/apply-forced-review.yaml +5 -0
- package/providers/context/actions/maintain-evidence.yaml +1 -1
- package/providers/context/actions/migrate-codeindex.yaml +5 -0
- package/providers/context/actions/register-source-batch.yaml +1 -1
- package/providers/context/actions/restore-repository-sources.yaml +1 -1
- package/providers/context/actions/revise-code-index-audit.yaml +5 -0
- package/providers/context/actions/submit-code-index-audit.yaml +6 -0
- package/providers/context/codes.yaml +5 -0
- package/providers/context/graphs/workspace.yaml +82 -2
- package/providers/context/manifest.json +128 -56
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/dialogue/code-extraction.md +12 -0
- package/providers/context/resources/dialogue/document-classification.md +1 -1
- package/providers/context/resources/dialogue/knowledge-review.md +16 -1
- package/providers/context/resources/dialogue/source-boundary.md +9 -1
- package/providers/context/resources/dialogue/workflow-mode-after-capture.md +11 -8
- package/providers/context/resources/dialogue/workflow-mode-after-creation.md +6 -4
- package/providers/context/resources/manuals/guides/lark-resources.md +7 -0
- package/providers/context/resources/manuals/guides/package-outputs.md +3 -3
- package/providers/context/resources/manuals/reference/code-extractors.md +5 -4
- package/providers/context/resources/manuals/reference/package-templates.md +18 -10
- package/providers/context/resources/manuals/reference/project-api.md +56 -24
- package/providers/context/resources/procedures/close-and-build.md +26 -3
- package/providers/context/resources/procedures/code-extraction.md +45 -7
- package/providers/context/resources/procedures/code-index-audit.md +83 -0
- package/providers/context/resources/procedures/document-capture.md +9 -0
- package/providers/context/resources/procedures/document-optimization.md +69 -21
- package/providers/context/resources/procedures/document-revision.md +11 -6
- package/providers/context/resources/procedures/knowledge-review.md +10 -1
- package/providers/context/resources/procedures/source-boundary.md +20 -8
- package/providers/context/resources/semantic/align/structure-planning.md +4 -4
- package/providers/context/resources/semantic/code-index/classification.md +8 -5
- package/providers/context/resources/views/code-index-audit.yaml +6 -0
- package/providers/context/schemas/code-index-audit-decision.schema.json +94 -0
- package/providers/context/schemas/document-optimization-decisions.schema.json +29 -6
- 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
|
|
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 [
|
|
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
|
-
-
|
|
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
|
-
文档编译优化与对话修订参见[
|
|
158
|
+
文档编译优化与对话修订参见[来源约束的编辑修订](./docs/document-optimization.zh-CN.md)。
|
|
156
159
|
|
|
157
160
|
## 文档与开发
|
|
158
161
|
|