@c4a/context-cli 0.6.16 → 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.
- package/README.md +2 -1
- package/README.zh-CN.md +2 -2
- package/cli.js +10 -5
- package/docs/document-optimization.md +10 -14
- package/docs/document-optimization.zh-CN.md +9 -13
- 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 +19 -13
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +19 -13
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +19 -13
- package/plugins/skills/c4a-context/SKILL.md +19 -13
- package/providers/context/manifest.json +3 -3
- package/providers/context/provider.yaml +1 -1
package/README.md
CHANGED
|
@@ -169,7 +169,8 @@ 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
|
-
-
|
|
172
|
+
- new workspaces enable conservative document revisions by default;
|
|
173
|
+
`context optimize-docs enable|disable` changes that workspace preference
|
|
173
174
|
without modifying approved `knowledge/`;
|
|
174
175
|
- `context revise "<title or approved path>"` starts one conversational
|
|
175
176
|
correction and routes its validation before the next package build;
|
package/README.zh-CN.md
CHANGED
|
@@ -143,8 +143,8 @@ context/
|
|
|
143
143
|
- `context <command> --help` 是当前参数的权威来源;
|
|
144
144
|
- `context plugin status` 检查已安装的 Agent 投影;
|
|
145
145
|
- `context debug enable` 在 `.tmp/context-runtime/debug/` 记录可选轨迹;
|
|
146
|
-
-
|
|
147
|
-
中的正式知识不变;
|
|
146
|
+
- 新工作区默认开启保守的文档修订;`context optimize-docs enable|disable`
|
|
147
|
+
可调整工作区偏好,同时保持 `knowledge/` 中的正式知识不变;
|
|
148
148
|
- `context revise "<标题或正式知识路径>"` 从对话启动一次单页修正,校验后再由
|
|
149
149
|
Route 提示重新构建;
|
|
150
150
|
- `context clean-cache --dry-run` 预览 Context-owned 过期插件缓存清理。
|
package/cli.js
CHANGED
|
@@ -18626,6 +18626,8 @@ async function initContextProject(input) {
|
|
|
18626
18626
|
await enableContextDebug(projectRoot, "init");
|
|
18627
18627
|
if (input.optimizeDocs === true)
|
|
18628
18628
|
await enableDocumentOptimization(projectRoot);
|
|
18629
|
+
if (input.optimizeDocs === false)
|
|
18630
|
+
await disableDocumentOptimization(projectRoot);
|
|
18629
18631
|
return result;
|
|
18630
18632
|
}
|
|
18631
18633
|
async function loadContextProjectModule(root) {
|
|
@@ -109075,7 +109077,9 @@ function initCommand2(input, projectDir) {
|
|
|
109075
109077
|
args.push("--dev");
|
|
109076
109078
|
if (input.debug === true)
|
|
109077
109079
|
args.push("--debug");
|
|
109078
|
-
if (input.optimizeDocs ===
|
|
109080
|
+
if (input.optimizeDocs === false)
|
|
109081
|
+
args.push("--no-optimize-docs");
|
|
109082
|
+
else
|
|
109079
109083
|
args.push("--optimize-docs");
|
|
109080
109084
|
return args.map(shellQuote9).join(" ");
|
|
109081
109085
|
}
|
|
@@ -109171,7 +109175,7 @@ function formatContextEntry(result) {
|
|
|
109171
109175
|
|
|
109172
109176
|
// src/registerProjectLifecycleCommands.ts
|
|
109173
109177
|
function registerProjectEntryCommand(program2) {
|
|
109174
|
-
program2.command("entry [project-dir]").description("Resolve the single Context agent entry for initialization or workflow evaluation").option("--name <name>", "display/package name override when initialization is required").option("--language <language>", "workspace and starter-template language: en | zh-CN", "en").option("--dev", "plan initialization with the locally linked @c4a/context SDK").option("--debug", "plan initialization with workspace-local tracing enabled").option("--optimize-docs", "plan initialization with document optimization enabled").option("--managed", "use explicit current-conversation managed approval for workflow evaluation").addOption(new Option("--authority <authority>", "current-conversation scoped authority granted by the user; repeatable").argParser(collectWorkflowAuthorityOption).default([])).option("--format <format>", "output format: json", "json").action((projectDir, options) => {
|
|
109178
|
+
program2.command("entry [project-dir]").description("Resolve the single Context agent entry for initialization or workflow evaluation").option("--name <name>", "display/package name override when initialization is required").option("--language <language>", "workspace and starter-template language: en | zh-CN", "en").option("--dev", "plan initialization with the locally linked @c4a/context SDK").option("--debug", "plan initialization with workspace-local tracing enabled").option("--optimize-docs", "plan initialization with document optimization enabled").option("--no-optimize-docs", "plan initialization with document optimization disabled").option("--managed", "use explicit current-conversation managed approval for workflow evaluation").addOption(new Option("--authority <authority>", "current-conversation scoped authority granted by the user; repeatable").argParser(collectWorkflowAuthorityOption).default([])).option("--format <format>", "output format: json", "json").action((projectDir, options) => {
|
|
109175
109179
|
if (options.format !== "json") {
|
|
109176
109180
|
throw new ContextError(ExitCode.UserError, "--format must be json", {
|
|
109177
109181
|
category: ErrorCategory.UserInputInvalid
|
|
@@ -109184,16 +109188,17 @@ function registerProjectEntryCommand(program2) {
|
|
|
109184
109188
|
language: projectLanguage(options.language),
|
|
109185
109189
|
...options.dev === true ? { dev: true } : {},
|
|
109186
109190
|
...options.debug === true ? { debug: true } : {},
|
|
109187
|
-
...options.optimizeDocs ===
|
|
109191
|
+
...typeof options.optimizeDocs === "boolean" ? { optimizeDocs: options.optimizeDocs } : {},
|
|
109188
109192
|
...options.managed === true ? { managed: true } : {},
|
|
109189
109193
|
authorities: workflowAuthorities(options.authority)
|
|
109190
109194
|
})));
|
|
109191
109195
|
});
|
|
109192
109196
|
}
|
|
109193
109197
|
function registerProjectInitCommand(program2) {
|
|
109194
|
-
program2.command("init [project-dir]").description("Initialize a project-local context workspace").option("--name <name>", "display/package name override").option("--language <language>", "workspace and starter-template language: en | zh-CN").option("--dev", "initialize with the locally linked @c4a/context SDK").option("--debug", "enable workspace-local command and Agent Graph tracing").option("--optimize-docs", "enable conservative document revisions").option("--allow-nonempty", "after explicit confirmation, preserve existing files and initialize inside a non-empty non-Context directory").action(async (projectDir, options) => {
|
|
109198
|
+
program2.command("init [project-dir]").description("Initialize a project-local context workspace").option("--name <name>", "display/package name override").option("--language <language>", "workspace and starter-template language: en | zh-CN").option("--dev", "initialize with the locally linked @c4a/context SDK").option("--debug", "enable workspace-local command and Agent Graph tracing").option("--optimize-docs", "enable conservative document revisions (default for new workspaces)").option("--no-optimize-docs", "disable document revisions for the initialized workspace").option("--allow-nonempty", "after explicit confirmation, preserve existing files and initialize inside a non-empty non-Context directory").action(async (projectDir, options) => {
|
|
109195
109199
|
const targetRoot = resolveContextProjectInitTarget(process.cwd(), projectDir);
|
|
109196
109200
|
const wasContextWorkspace = isContextProjectRoot(targetRoot);
|
|
109201
|
+
const optimizeDocs = typeof options.optimizeDocs === "boolean" ? options.optimizeDocs : wasContextWorkspace ? undefined : true;
|
|
109197
109202
|
const result = await initContextProject({
|
|
109198
109203
|
cwd: process.cwd(),
|
|
109199
109204
|
...projectDir !== undefined ? { projectDir } : {},
|
|
@@ -109201,7 +109206,7 @@ function registerProjectInitCommand(program2) {
|
|
|
109201
109206
|
...typeof options.language === "string" ? { language: projectLanguage(options.language) } : {},
|
|
109202
109207
|
...options.dev === true ? { dev: true } : {},
|
|
109203
109208
|
...options.debug === true ? { debug: true } : {},
|
|
109204
|
-
...
|
|
109209
|
+
...optimizeDocs === undefined ? {} : { optimizeDocs },
|
|
109205
109210
|
...options.allowNonempty === true ? { allowNonempty: true } : {}
|
|
109206
109211
|
});
|
|
109207
109212
|
process.stdout.write(formatProjectInitResult(result));
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
# Document revisions
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
repairs presentation-level Markdown
|
|
5
|
-
page
|
|
3
|
+
New workspaces enable conservative document optimization by default. It is a
|
|
4
|
+
build phase for source-backed prose that repairs presentation-level Markdown,
|
|
5
|
+
links, and obvious local errors without changing the approved knowledge page or
|
|
6
|
+
broadly rewriting its meaning.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
To opt out during initialization:
|
|
8
9
|
|
|
9
10
|
```bash
|
|
10
|
-
context init context --optimize-docs
|
|
11
|
+
context init context --no-optimize-docs
|
|
11
12
|
```
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
Existing workspaces retain their current setting. Change it explicitly with:
|
|
14
15
|
|
|
15
16
|
```bash
|
|
16
17
|
context optimize-docs enable
|
|
18
|
+
context optimize-docs disable
|
|
17
19
|
context status --format json
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -52,11 +54,5 @@ broad document optimization was disabled, this entry activates only the target
|
|
|
52
54
|
page and keeps every other eligible page out of the pending batch. If upstream
|
|
53
55
|
content changes, the revision becomes a conflict and must be reviewed again.
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
context optimize-docs disable
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Revision pages move to Context runtime recovery storage, and the next build
|
|
62
|
-
uses approved knowledge directly.
|
|
57
|
+
Disabling moves active revision pages to Context runtime recovery storage. The
|
|
58
|
+
next build uses approved knowledge directly.
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
# 文档修订页
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
新工作区默认开启保守的文档编译优化。它是面向来源可追溯正文的构建阶段,只修复
|
|
4
|
+
Markdown 排版、链接和明显的局部错误,不修改正式知识页,也不大段改写原意。
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
初始化时如需关闭:
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
context init context --optimize-docs
|
|
9
|
+
context init context --no-optimize-docs
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
已有工作区保持当前设置,可显式调整:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
context optimize-docs enable
|
|
16
|
+
context optimize-docs disable
|
|
16
17
|
context status --format json
|
|
17
18
|
```
|
|
18
19
|
|
|
@@ -42,13 +43,8 @@ CLI 只在目标唯一时创建或复用该页修订,并由 Agent Graph 返回
|
|
|
42
43
|
否则询问用户。Agent 只编辑面向读者的正文,不修改来源信息和
|
|
43
44
|
`context:section` 边界,随后运行 `context optimize-docs validate`。校验成功后,
|
|
44
45
|
请求自动结束;若产物因此过期,下一条 Route 会直接提示重新构建。即使工作区
|
|
45
|
-
|
|
46
|
+
此前关闭了整库文档编译优化,这个入口也只激活目标页面,不会让其他页面进入
|
|
46
47
|
待优化队列。上游内容变化后,旧修订页会成为冲突,不会被静默应用。
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
context optimize-docs disable
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
修订页会被移动到 Context 的运行时恢复目录,下一次构建直接使用正式知识。
|
|
49
|
+
关闭后,修订页会被移动到 Context 的运行时恢复目录,下一次构建直接使用正式
|
|
50
|
+
知识。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local runtime and Agent integration for traceable knowledge production",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@c4a/agent-graph": "0.2.6",
|
|
27
|
-
"@c4a/context": "0.6.
|
|
27
|
+
"@c4a/context": "0.6.17",
|
|
28
28
|
"commander": "^11.0.0",
|
|
29
29
|
"fast-xml-parser": "^5.10.1",
|
|
30
30
|
"handlebars": "^4.7.8",
|
package/plugins/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.17
|
|
@@ -28,12 +28,12 @@ context entry [project-dir] --language <language> --format json
|
|
|
28
28
|
|
|
29
29
|
Use the user's explicit language choice when present; otherwise pass `zh-CN`
|
|
30
30
|
for a Chinese conversation and `en` for an English conversation. Pass
|
|
31
|
-
`project-dir`, `--name`, `--dev`,
|
|
32
|
-
|
|
33
|
-
document compilation optimization
|
|
34
|
-
|
|
35
|
-
`--managed` only after the user
|
|
36
|
-
|
|
31
|
+
`project-dir`, `--name`, `--dev`, or `--debug` only when the user explicitly
|
|
32
|
+
requested that initialization choice. New workspaces enable conservative
|
|
33
|
+
document compilation optimization by default. Pass `--no-optimize-docs` only
|
|
34
|
+
when the user explicitly asks to disable it during initialization. Pass
|
|
35
|
+
`--managed` only after the user explicitly authorizes fully managed operation
|
|
36
|
+
in this conversation.
|
|
37
37
|
|
|
38
38
|
If the `context` process itself cannot start because the command is missing
|
|
39
39
|
(`ENOENT`, or shell exit 127 explicitly identifying `context` as the missing
|
|
@@ -90,13 +90,19 @@ before workflow evaluation. Debugging records traces below
|
|
|
90
90
|
`.tmp/context-runtime/debug/` but does not grant workflow authority or provide
|
|
91
91
|
source evidence.
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
Document optimization is enabled by default for newly initialized workspaces.
|
|
94
|
+
It conservatively repairs formatting, Markdown, links, and obvious local errors
|
|
95
|
+
without broadly rewriting source-backed prose. It keeps approved pages
|
|
96
|
+
source-faithful and stores only changed full-page revisions beside them as
|
|
97
|
+
`knowledge/**/*__revision.md`. Default knowledge discovery excludes those
|
|
98
|
+
reserved sidecars; validation and package compilation apply them to the
|
|
99
|
+
matching base page.
|
|
100
|
+
|
|
101
|
+
For an existing workspace, respect its current `package.json` setting. Run
|
|
102
|
+
`context optimize-docs enable` or `context optimize-docs disable` only when the
|
|
103
|
+
user explicitly changes that preference. If initialization is required and the
|
|
104
|
+
user opts out, pass `--no-optimize-docs` through `context entry`; otherwise let
|
|
105
|
+
the default initialization command enable it.
|
|
100
106
|
Follow the resulting Route instead of editing approved knowledge or package
|
|
101
107
|
output by hand.
|
|
102
108
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c4a",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "c4a"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"skills": "./skills/",
|
|
19
19
|
"interface": {
|
|
20
20
|
"displayName": "C4A Context",
|
|
21
|
-
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.6.
|
|
21
|
+
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.6.17",
|
|
22
22
|
"longDescription": "Create a Context workspace and use agent-guided next steps to register sources, run extraction, review candidates, build package outputs, and verify health without silently mutating source repositories.",
|
|
23
23
|
"developerName": "c4a",
|
|
24
24
|
"category": "Productivity",
|
|
@@ -40,12 +40,12 @@ context entry [project-dir] --language <language> --format json
|
|
|
40
40
|
|
|
41
41
|
Use the user's explicit language choice when present; otherwise pass `zh-CN`
|
|
42
42
|
for a Chinese conversation and `en` for an English conversation. Pass
|
|
43
|
-
`project-dir`, `--name`, `--dev`,
|
|
44
|
-
|
|
45
|
-
document compilation optimization
|
|
46
|
-
|
|
47
|
-
`--managed` only after the user
|
|
48
|
-
|
|
43
|
+
`project-dir`, `--name`, `--dev`, or `--debug` only when the user explicitly
|
|
44
|
+
requested that initialization choice. New workspaces enable conservative
|
|
45
|
+
document compilation optimization by default. Pass `--no-optimize-docs` only
|
|
46
|
+
when the user explicitly asks to disable it during initialization. Pass
|
|
47
|
+
`--managed` only after the user explicitly authorizes fully managed operation
|
|
48
|
+
in this conversation.
|
|
49
49
|
|
|
50
50
|
If the `context` process itself cannot start because the command is missing
|
|
51
51
|
(`ENOENT`, or shell exit 127 explicitly identifying `context` as the missing
|
|
@@ -102,13 +102,19 @@ before workflow evaluation. Debugging records traces below
|
|
|
102
102
|
`.tmp/context-runtime/debug/` but does not grant workflow authority or provide
|
|
103
103
|
source evidence.
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
Document optimization is enabled by default for newly initialized workspaces.
|
|
106
|
+
It conservatively repairs formatting, Markdown, links, and obvious local errors
|
|
107
|
+
without broadly rewriting source-backed prose. It keeps approved pages
|
|
108
|
+
source-faithful and stores only changed full-page revisions beside them as
|
|
109
|
+
`knowledge/**/*__revision.md`. Default knowledge discovery excludes those
|
|
110
|
+
reserved sidecars; validation and package compilation apply them to the
|
|
111
|
+
matching base page.
|
|
112
|
+
|
|
113
|
+
For an existing workspace, respect its current `package.json` setting. Run
|
|
114
|
+
`context optimize-docs enable` or `context optimize-docs disable` only when the
|
|
115
|
+
user explicitly changes that preference. If initialization is required and the
|
|
116
|
+
user opts out, pass `--no-optimize-docs` through `context entry`; otherwise let
|
|
117
|
+
the default initialization command enable it.
|
|
112
118
|
Follow the resulting Route instead of editing approved knowledge or package
|
|
113
119
|
output by hand.
|
|
114
120
|
|
|
@@ -32,12 +32,12 @@ context entry [project-dir] --language <language> --format json
|
|
|
32
32
|
|
|
33
33
|
Use the user's explicit language choice when present; otherwise pass `zh-CN`
|
|
34
34
|
for a Chinese conversation and `en` for an English conversation. Pass
|
|
35
|
-
`project-dir`, `--name`, `--dev`,
|
|
36
|
-
|
|
37
|
-
document compilation optimization
|
|
38
|
-
|
|
39
|
-
`--managed` only after the user
|
|
40
|
-
|
|
35
|
+
`project-dir`, `--name`, `--dev`, or `--debug` only when the user explicitly
|
|
36
|
+
requested that initialization choice. New workspaces enable conservative
|
|
37
|
+
document compilation optimization by default. Pass `--no-optimize-docs` only
|
|
38
|
+
when the user explicitly asks to disable it during initialization. Pass
|
|
39
|
+
`--managed` only after the user explicitly authorizes fully managed operation
|
|
40
|
+
in this conversation.
|
|
41
41
|
|
|
42
42
|
If the `context` process itself cannot start because the command is missing
|
|
43
43
|
(`ENOENT`, or shell exit 127 explicitly identifying `context` as the missing
|
|
@@ -94,13 +94,19 @@ before workflow evaluation. Debugging records traces below
|
|
|
94
94
|
`.tmp/context-runtime/debug/` but does not grant workflow authority or provide
|
|
95
95
|
source evidence.
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
Document optimization is enabled by default for newly initialized workspaces.
|
|
98
|
+
It conservatively repairs formatting, Markdown, links, and obvious local errors
|
|
99
|
+
without broadly rewriting source-backed prose. It keeps approved pages
|
|
100
|
+
source-faithful and stores only changed full-page revisions beside them as
|
|
101
|
+
`knowledge/**/*__revision.md`. Default knowledge discovery excludes those
|
|
102
|
+
reserved sidecars; validation and package compilation apply them to the
|
|
103
|
+
matching base page.
|
|
104
|
+
|
|
105
|
+
For an existing workspace, respect its current `package.json` setting. Run
|
|
106
|
+
`context optimize-docs enable` or `context optimize-docs disable` only when the
|
|
107
|
+
user explicitly changes that preference. If initialization is required and the
|
|
108
|
+
user opts out, pass `--no-optimize-docs` through `context entry`; otherwise let
|
|
109
|
+
the default initialization command enable it.
|
|
104
110
|
Follow the resulting Route instead of editing approved knowledge or package
|
|
105
111
|
output by hand.
|
|
106
112
|
|
|
@@ -40,12 +40,12 @@ context entry [project-dir] --language <language> --format json
|
|
|
40
40
|
|
|
41
41
|
Use the user's explicit language choice when present; otherwise pass `zh-CN`
|
|
42
42
|
for a Chinese conversation and `en` for an English conversation. Pass
|
|
43
|
-
`project-dir`, `--name`, `--dev`,
|
|
44
|
-
|
|
45
|
-
document compilation optimization
|
|
46
|
-
|
|
47
|
-
`--managed` only after the user
|
|
48
|
-
|
|
43
|
+
`project-dir`, `--name`, `--dev`, or `--debug` only when the user explicitly
|
|
44
|
+
requested that initialization choice. New workspaces enable conservative
|
|
45
|
+
document compilation optimization by default. Pass `--no-optimize-docs` only
|
|
46
|
+
when the user explicitly asks to disable it during initialization. Pass
|
|
47
|
+
`--managed` only after the user explicitly authorizes fully managed operation
|
|
48
|
+
in this conversation.
|
|
49
49
|
|
|
50
50
|
If the `context` process itself cannot start because the command is missing
|
|
51
51
|
(`ENOENT`, or shell exit 127 explicitly identifying `context` as the missing
|
|
@@ -102,13 +102,19 @@ before workflow evaluation. Debugging records traces below
|
|
|
102
102
|
`.tmp/context-runtime/debug/` but does not grant workflow authority or provide
|
|
103
103
|
source evidence.
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
Document optimization is enabled by default for newly initialized workspaces.
|
|
106
|
+
It conservatively repairs formatting, Markdown, links, and obvious local errors
|
|
107
|
+
without broadly rewriting source-backed prose. It keeps approved pages
|
|
108
|
+
source-faithful and stores only changed full-page revisions beside them as
|
|
109
|
+
`knowledge/**/*__revision.md`. Default knowledge discovery excludes those
|
|
110
|
+
reserved sidecars; validation and package compilation apply them to the
|
|
111
|
+
matching base page.
|
|
112
|
+
|
|
113
|
+
For an existing workspace, respect its current `package.json` setting. Run
|
|
114
|
+
`context optimize-docs enable` or `context optimize-docs disable` only when the
|
|
115
|
+
user explicitly changes that preference. If initialization is required and the
|
|
116
|
+
user opts out, pass `--no-optimize-docs` through `context entry`; otherwise let
|
|
117
|
+
the default initialization command enable it.
|
|
112
118
|
Follow the resulting Route instead of editing approved knowledge or package
|
|
113
119
|
output by hand.
|
|
114
120
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "agent-graph.bundle.v1",
|
|
3
3
|
"provider": {
|
|
4
4
|
"id": "c4a/context",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.17"
|
|
6
6
|
},
|
|
7
7
|
"providerManifest": "provider.yaml",
|
|
8
8
|
"graphs": [
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
666
|
"path": "provider.yaml",
|
|
667
|
-
"digest": "sha256:
|
|
667
|
+
"digest": "sha256:31e9ca586a2c9edab004d04be8221e46897a7b88a601e9acad603af3ba250910"
|
|
668
668
|
},
|
|
669
669
|
{
|
|
670
670
|
"path": "resources/diagnostics/projection-stale.md",
|
|
@@ -966,5 +966,5 @@
|
|
|
966
966
|
"graphDependencies": {
|
|
967
967
|
"workspace": []
|
|
968
968
|
},
|
|
969
|
-
"digest": "sha256:
|
|
969
|
+
"digest": "sha256:5da3c1272fa593c6eb36bbb33acc303e01dae0788f5f6ff5389835a76f8bd2df"
|
|
970
970
|
}
|