@c4a/context-cli 0.7.95 → 0.7.97

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 (26) hide show
  1. package/cli.js +851 -316
  2. package/indexers/contracts/profile-contract.json +245 -245
  3. package/indexers/release-manifest.json +1 -1
  4. package/package.json +12 -12
  5. package/parserEntryWorker.js +7 -4
  6. package/plugins/VERSION +1 -1
  7. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  8. package/plugins/claude/commands/context.md +9 -3
  9. package/plugins/claude/resources/context/version-alignment.md +3 -0
  10. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  11. package/plugins/codex/skills/context/SKILL.md +9 -3
  12. package/plugins/codex/skills/context/references/version-alignment.md +3 -0
  13. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  14. package/plugins/cursor/commands/c4a-context.md +9 -3
  15. package/plugins/cursor/resources/context/version-alignment.md +3 -0
  16. package/plugins/skills/context/SKILL.md +9 -3
  17. package/plugins/skills/context/references/version-alignment.md +3 -0
  18. package/providers/context/manifest.json +15 -15
  19. package/providers/context/provider.yaml +1 -1
  20. package/providers/context/resources/manuals/guides/knowledge-updates.md +10 -1
  21. package/providers/context/resources/manuals/guides/lark-resources.md +9 -2
  22. package/providers/context/resources/procedures/approved-revision.md +7 -0
  23. package/providers/context/resources/procedures/knowledge-updates.md +10 -1
  24. package/providers/context/resources/procedures/production-stage-files.md +6 -2
  25. package/providers/context/resources/procedures/source-update.md +3 -1
  26. package/providers/context/skills/translate-site-locales/SKILL.md +1 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "protocol": "context.indexer.cli-release-manifest/v1",
3
3
  "package": "@c4a/context-cli",
4
- "version": "0.7.95",
4
+ "version": "0.7.97",
5
5
  "issuer": "context4ai/context",
6
6
  "bundles": [
7
7
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/context-cli",
3
- "version": "0.7.95",
3
+ "version": "0.7.97",
4
4
  "type": "module",
5
5
  "description": "Local runtime and Agent integration for traceable knowledge production",
6
6
  "license": "MIT",
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@c4a/agent-graph": "0.3.0",
27
- "@c4a/context": "0.7.95",
28
- "@c4a/extract": "0.7.95",
29
- "@c4a/extract-contract": "0.7.95",
30
- "@c4a/extract-go": "0.7.95",
31
- "@c4a/extract-mdx": "0.7.95",
32
- "@c4a/extract-proto": "0.7.95",
33
- "@c4a/extract-rush": "0.7.95",
34
- "@c4a/extract-sql": "0.7.95",
35
- "@c4a/extract-style": "0.7.95",
36
- "@c4a/extract-thrift": "0.7.95",
37
- "@c4a/extract-ts": "0.7.95",
27
+ "@c4a/context": "0.7.97",
28
+ "@c4a/extract": "0.7.97",
29
+ "@c4a/extract-contract": "0.7.97",
30
+ "@c4a/extract-go": "0.7.97",
31
+ "@c4a/extract-mdx": "0.7.97",
32
+ "@c4a/extract-proto": "0.7.97",
33
+ "@c4a/extract-rush": "0.7.97",
34
+ "@c4a/extract-sql": "0.7.97",
35
+ "@c4a/extract-style": "0.7.97",
36
+ "@c4a/extract-thrift": "0.7.97",
37
+ "@c4a/extract-ts": "0.7.97",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "d3-force": "3.0.0",
@@ -20575,7 +20575,7 @@ var import_yaml4, DEFAULT_REPO_SOURCES_REGISTRY_PATH = "sources/repo/index.yaml"
20575
20575
  }
20576
20576
  }
20577
20577
  }
20578
- }, loadSourcesRegistry = async (options = {}) => {
20578
+ }, SOURCES_REGISTRY_EXCLUSION, loadSourcesRegistry = async (options = {}) => {
20579
20579
  const rootDir = options.rootDir ?? process.cwd();
20580
20580
  const repoRegistryPath = options.repoRegistryPath ?? options.registryPath ?? DEFAULT_REPO_SOURCES_REGISTRY_PATH;
20581
20581
  const fileRegistryPath = options.fileRegistryPath ?? DEFAULT_FILE_SOURCES_REGISTRY_PATH;
@@ -20583,6 +20583,8 @@ var import_yaml4, DEFAULT_REPO_SOURCES_REGISTRY_PATH = "sources/repo/index.yaml"
20583
20583
  const repoAbsolutePath = resolve3(rootDir, repoRegistryPath);
20584
20584
  const fileAbsolutePath = resolve3(rootDir, fileRegistryPath);
20585
20585
  const larkAbsolutePath = resolve3(rootDir, larkRegistryPath);
20586
+ const excluded = globalThis[SOURCES_REGISTRY_EXCLUSION];
20587
+ const included = (entry) => !(excluded instanceof Set && (excluded.has(entry.name) || excluded.has(entry.id)));
20586
20588
  const repoRegistry = parseRepoSourcesRegistry(await readYamlIfPresent(repoAbsolutePath, { sources: [] }), repoRegistryPath, repoAbsolutePath);
20587
20589
  const files = parseFileSourcesRegistry(await readYamlIfPresent(fileAbsolutePath, { sources: [] }), fileRegistryPath);
20588
20590
  const larks = parseLarkSourcesRegistry(await readYamlIfPresent(larkAbsolutePath, { sources: [] }), larkRegistryPath);
@@ -20598,9 +20600,9 @@ var import_yaml4, DEFAULT_REPO_SOURCES_REGISTRY_PATH = "sources/repo/index.yaml"
20598
20600
  file: fileAbsolutePath,
20599
20601
  lark: larkAbsolutePath
20600
20602
  },
20601
- repos: repoRegistry.repos,
20602
- files,
20603
- larks,
20603
+ repos: repoRegistry.repos.filter(included),
20604
+ files: files.filter(included),
20605
+ larks: larks.filter(included),
20604
20606
  notes: await discoverManagedDocuments(rootDir, "note"),
20605
20607
  sessions: await discoverManagedDocuments(rootDir, "sessions")
20606
20608
  };
@@ -20667,6 +20669,7 @@ var init_sources = __esm(() => {
20667
20669
  larkSourcesRegistrySchema = exports_external.object({
20668
20670
  sources: exports_external.array(exports_external.union([larkSourceRegistryEntrySchema, larkSourceBatchSchema])).default([])
20669
20671
  }).strict();
20672
+ SOURCES_REGISTRY_EXCLUSION = Symbol.for("c4a.context.sources-registry-exclusion");
20670
20673
  });
20671
20674
 
20672
20675
  // ../context/src/processedScopes.ts
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.95
1
+ 0.7.97
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
4
- "version": "0.7.95",
4
+ "version": "0.7.97",
5
5
  "author": {
6
6
  "name": "c4a"
7
7
  },
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Use when the user explicitly invokes Context, asks to reorganize an existing Context knowledge map or website navigation, or continues a Context workflow to build, inspect, update, recover or package knowledge. Do not auto-start for ordinary planning, design or coding."
2
+ description: "Use when the user explicitly invokes Context, or asks in this conversation to produce, update, revise, publish or recover Context knowledge, including reorganizing a knowledge map or website navigation and continuing a Context workflow to build, inspect or package knowledge. Do not auto-start for ordinary planning, design or coding."
3
3
  argument-hint: "[project-dir or user intent]"
4
4
  allowed-tools:
5
5
  - Bash(context:*)
@@ -140,12 +140,13 @@ without the user's authorization.
140
140
 
141
141
  ### Check the CLI first
142
142
 
143
- This Skill ships with Context 0.7.95.
143
+ This Skill ships with Context 0.7.97.
144
144
 
145
145
  When entering production in a workspace, align the CLI, this Skill and the
146
146
  workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
147
147
  it upgrades to the latest release of the current major version automatically and
148
- asks the user before moving to a new major version.
148
+ asks the user before moving to a new major version. When the workspace pins its own
149
+ CLI, run Route commands with `./node_modules/.bin/context` instead of `context`.
149
150
 
150
151
  If the host requires a minimum CLI version, resolve that requirement before
151
152
  obtaining a workflow Route. Run the version check separately: do not chain
@@ -443,6 +444,11 @@ a blocker needs handling. A return for Agent work hands execution to you; it
443
444
  does not end the authorized task. Follow the returned Route within existing
444
445
  authority; do not reconstruct commands from earlier steps.
445
446
 
447
+ After each piece of Agent work (an edit, a Review decision, a translation or the
448
+ version text), continue with this loop instead of running the mechanical steps
449
+ or `context status` one at a time. A small revision then needs only that Agent
450
+ work; every Gate still applies.
451
+
446
452
  ### Read required resources
447
453
 
448
454
  Read each `resources.required` item marked `read-required`, including
@@ -11,6 +11,9 @@ rest of the session.
11
11
  - CLI: `context --version`.
12
12
  - Workspace SDK: the `@c4a/context` version pinned in the workspace
13
13
  `package.json`, and the installed one in `node_modules/@c4a/context/package.json`.
14
+ - Workspace CLI: when the workspace also pins `@c4a/context-cli`, its installed
15
+ `./node_modules/.bin/context` is the CLI for this workspace. Run every Route
16
+ command with it in place of `context`, and align it together with the SDK.
14
17
  - Releases: `npm view @c4a/context-cli versions --json`. Ignore pre-releases.
15
18
 
16
19
  ## Choose the target
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.95",
3
+ "version": "0.7.97",
4
4
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
5
5
  "author": { "name": "c4a" },
6
6
  "homepage": "https://github.com/context4ai/c4a",
@@ -10,7 +10,7 @@
10
10
  "skills": "./skills/",
11
11
  "interface": {
12
12
  "displayName": "C4A Context",
13
- "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.95",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.97",
14
14
  "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.",
15
15
  "developerName": "c4a",
16
16
  "category": "Productivity",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: context
3
- description: Use when the user explicitly invokes Context, asks to reorganize an existing Context knowledge map or website navigation, or continues a Context workflow to build, inspect, update, recover or package knowledge. Do not auto-start for ordinary planning, design or coding.
3
+ description: Use when the user explicitly invokes Context, or asks in this conversation to produce, update, revise, publish or recover Context knowledge, including reorganizing a knowledge map or website navigation and continuing a Context workflow to build, inspect or package knowledge. Do not auto-start for ordinary planning, design or coding.
4
4
  allowed-tools:
5
5
  - Bash
6
6
  ---
@@ -138,12 +138,13 @@ without the user's authorization.
138
138
 
139
139
  ### Check the CLI first
140
140
 
141
- This Skill ships with Context 0.7.95.
141
+ This Skill ships with Context 0.7.97.
142
142
 
143
143
  When entering production in a workspace, align the CLI, this Skill and the
144
144
  workspace SDK once per session with [version alignment](references/version-alignment.md):
145
145
  it upgrades to the latest release of the current major version automatically and
146
- asks the user before moving to a new major version.
146
+ asks the user before moving to a new major version. When the workspace pins its own
147
+ CLI, run Route commands with `./node_modules/.bin/context` instead of `context`.
147
148
 
148
149
  If the host requires a minimum CLI version, resolve that requirement before
149
150
  obtaining a workflow Route. Run the version check separately: do not chain
@@ -441,6 +442,11 @@ a blocker needs handling. A return for Agent work hands execution to you; it
441
442
  does not end the authorized task. Follow the returned Route within existing
442
443
  authority; do not reconstruct commands from earlier steps.
443
444
 
445
+ After each piece of Agent work (an edit, a Review decision, a translation or the
446
+ version text), continue with this loop instead of running the mechanical steps
447
+ or `context status` one at a time. A small revision then needs only that Agent
448
+ work; every Gate still applies.
449
+
444
450
  ### Read required resources
445
451
 
446
452
  Read each `resources.required` item marked `read-required`, including
@@ -11,6 +11,9 @@ rest of the session.
11
11
  - CLI: `context --version`.
12
12
  - Workspace SDK: the `@c4a/context` version pinned in the workspace
13
13
  `package.json`, and the installed one in `node_modules/@c4a/context/package.json`.
14
+ - Workspace CLI: when the workspace also pins `@c4a/context-cli`, its installed
15
+ `./node_modules/.bin/context` is the CLI for this workspace. Run every Route
16
+ command with it in place of `context`, and align it together with the SDK.
14
17
  - Releases: `npm view @c4a/context-cli versions --json`. Ignore pre-releases.
15
18
 
16
19
  ## Choose the target
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.95",
4
+ "version": "0.7.97",
5
5
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
6
6
  "author": {
7
7
  "name": "Context4AI",
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Use when the user explicitly invokes Context, asks to reorganize an existing Context knowledge map or website navigation, or continues a Context workflow to build, inspect, update, recover or package knowledge. Do not auto-start for ordinary planning, design or coding."
2
+ description: "Use when the user explicitly invokes Context, or asks in this conversation to produce, update, revise, publish or recover Context knowledge, including reorganizing a knowledge map or website navigation and continuing a Context workflow to build, inspect or package knowledge. Do not auto-start for ordinary planning, design or coding."
3
3
  ---
4
4
 
5
5
  # Context
@@ -135,12 +135,13 @@ without the user's authorization.
135
135
 
136
136
  ### Check the CLI first
137
137
 
138
- This Skill ships with Context 0.7.95.
138
+ This Skill ships with Context 0.7.97.
139
139
 
140
140
  When entering production in a workspace, align the CLI, this Skill and the
141
141
  workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
142
142
  it upgrades to the latest release of the current major version automatically and
143
- asks the user before moving to a new major version.
143
+ asks the user before moving to a new major version. When the workspace pins its own
144
+ CLI, run Route commands with `./node_modules/.bin/context` instead of `context`.
144
145
 
145
146
  If the host requires a minimum CLI version, resolve that requirement before
146
147
  obtaining a workflow Route. Run the version check separately: do not chain
@@ -438,6 +439,11 @@ a blocker needs handling. A return for Agent work hands execution to you; it
438
439
  does not end the authorized task. Follow the returned Route within existing
439
440
  authority; do not reconstruct commands from earlier steps.
440
441
 
442
+ After each piece of Agent work (an edit, a Review decision, a translation or the
443
+ version text), continue with this loop instead of running the mechanical steps
444
+ or `context status` one at a time. A small revision then needs only that Agent
445
+ work; every Gate still applies.
446
+
441
447
  ### Read required resources
442
448
 
443
449
  Read each `resources.required` item marked `read-required`, including
@@ -11,6 +11,9 @@ rest of the session.
11
11
  - CLI: `context --version`.
12
12
  - Workspace SDK: the `@c4a/context` version pinned in the workspace
13
13
  `package.json`, and the installed one in `node_modules/@c4a/context/package.json`.
14
+ - Workspace CLI: when the workspace also pins `@c4a/context-cli`, its installed
15
+ `./node_modules/.bin/context` is the CLI for this workspace. Run every Route
16
+ command with it in place of `context`, and align it together with the SDK.
14
17
  - Releases: `npm view @c4a/context-cli versions --json`. Ignore pre-releases.
15
18
 
16
19
  ## Choose the target
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: context
3
- description: Use when the user explicitly invokes Context, asks to reorganize an existing Context knowledge map or website navigation, or continues a Context workflow to build, inspect, update, recover or package knowledge. Do not auto-start for ordinary planning, design or coding.
3
+ description: Use when the user explicitly invokes Context, or asks in this conversation to produce, update, revise, publish or recover Context knowledge, including reorganizing a knowledge map or website navigation and continuing a Context workflow to build, inspect or package knowledge. Do not auto-start for ordinary planning, design or coding.
4
4
  allowed-tools:
5
5
  - Bash
6
6
  ---
@@ -138,12 +138,13 @@ without the user's authorization.
138
138
 
139
139
  ### Check the CLI first
140
140
 
141
- This Skill ships with Context 0.7.95.
141
+ This Skill ships with Context 0.7.97.
142
142
 
143
143
  When entering production in a workspace, align the CLI, this Skill and the
144
144
  workspace SDK once per session with [version alignment](references/version-alignment.md):
145
145
  it upgrades to the latest release of the current major version automatically and
146
- asks the user before moving to a new major version.
146
+ asks the user before moving to a new major version. When the workspace pins its own
147
+ CLI, run Route commands with `./node_modules/.bin/context` instead of `context`.
147
148
 
148
149
  If the host requires a minimum CLI version, resolve that requirement before
149
150
  obtaining a workflow Route. Run the version check separately: do not chain
@@ -441,6 +442,11 @@ a blocker needs handling. A return for Agent work hands execution to you; it
441
442
  does not end the authorized task. Follow the returned Route within existing
442
443
  authority; do not reconstruct commands from earlier steps.
443
444
 
445
+ After each piece of Agent work (an edit, a Review decision, a translation or the
446
+ version text), continue with this loop instead of running the mechanical steps
447
+ or `context status` one at a time. A small revision then needs only that Agent
448
+ work; every Gate still applies.
449
+
444
450
  ### Read required resources
445
451
 
446
452
  Read each `resources.required` item marked `read-required`, including
@@ -11,6 +11,9 @@ rest of the session.
11
11
  - CLI: `context --version`.
12
12
  - Workspace SDK: the `@c4a/context` version pinned in the workspace
13
13
  `package.json`, and the installed one in `node_modules/@c4a/context/package.json`.
14
+ - Workspace CLI: when the workspace also pins `@c4a/context-cli`, its installed
15
+ `./node_modules/.bin/context` is the CLI for this workspace. Run every Route
16
+ command with it in place of `context`, and align it together with the SDK.
14
17
  - Releases: `npm view @c4a/context-cli versions --json`. Ignore pre-releases.
15
18
 
16
19
  ## Choose the target
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.95"
5
+ "version": "0.7.97"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -193,7 +193,7 @@
193
193
  {
194
194
  "id": "context.sdk.lark-resources",
195
195
  "path": "resources/manuals/guides/lark-resources.md",
196
- "digest": "sha256:18e00d57ecb21e990f847a5a104992a7c8cb24769f2b7dcdf7153137dd707663"
196
+ "digest": "sha256:a8b53cf74ef87848aec2901f41159ff11a29fb4ac141686fa38ba6531d48bbc7"
197
197
  },
198
198
  {
199
199
  "id": "context.sdk.package-outputs",
@@ -293,7 +293,7 @@
293
293
  {
294
294
  "id": "procedure.approved-revision",
295
295
  "path": "resources/procedures/approved-revision.md",
296
- "digest": "sha256:53e905cc5e189094b90bda7cccaa7d3e2bf7151e59bd3f06a44d7fb966aef33d"
296
+ "digest": "sha256:6690d033c569f295a14b5670365e1a66bb7a95a4d2fb273d8c766c708c72009c"
297
297
  },
298
298
  {
299
299
  "id": "procedure.close-and-build",
@@ -328,7 +328,7 @@
328
328
  {
329
329
  "id": "procedure.knowledge-updates",
330
330
  "path": "resources/procedures/knowledge-updates.md",
331
- "digest": "sha256:2f972ef69cf1aabe537b8e61b6f334d3a57a88f00ebd1d48dcfaa849cb03723c"
331
+ "digest": "sha256:f173322ab968fb3236b831bc3565f206162628fca52942a751fd463f524ce348"
332
332
  },
333
333
  {
334
334
  "id": "procedure.note",
@@ -353,7 +353,7 @@
353
353
  {
354
354
  "id": "procedure.production-stage-files",
355
355
  "path": "resources/procedures/production-stage-files.md",
356
- "digest": "sha256:a057e59b37546f1ab5f2c70c9ac8b5922382931949643c20450aac00ac744da8"
356
+ "digest": "sha256:8e4a54018ddc458f325c0f9c3dec3f477a1c2310d92bda55473d5ee7d0316919"
357
357
  },
358
358
  {
359
359
  "id": "procedure.project-configuration",
@@ -388,7 +388,7 @@
388
388
  {
389
389
  "id": "procedure.source-update",
390
390
  "path": "resources/procedures/source-update.md",
391
- "digest": "sha256:0fe803fd813ca4616d925f8f57822d8b2b1b61f0d117a6bc784eea5b34276f35"
391
+ "digest": "sha256:88422cad3e2b589e8b0d540c0bcd14f55f8ce7ae05a058bb0d6210fa0be309f1"
392
392
  },
393
393
  {
394
394
  "id": "procedure.task-recovery",
@@ -598,7 +598,7 @@
598
598
  },
599
599
  {
600
600
  "path": "provider.yaml",
601
- "digest": "sha256:28bd73f64d8054374e811a80c613297c63ec80e5f5c171927d6a0ac7c1927bb6"
601
+ "digest": "sha256:9f02874f1001037beb8563b0f78054d0fc4b97fb6ddcc82878c98fdd9ba5758f"
602
602
  },
603
603
  {
604
604
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -658,11 +658,11 @@
658
658
  },
659
659
  {
660
660
  "path": "resources/manuals/guides/knowledge-updates.md",
661
- "digest": "sha256:7bf7a47ddd436ed9682a4649c130ccf293ccb9bd5e61417d93c7093774f6fa2b"
661
+ "digest": "sha256:00a8137d84d21e27cb35ab813c7fb645acf80e8cf10964c16399d84811239014"
662
662
  },
663
663
  {
664
664
  "path": "resources/manuals/guides/lark-resources.md",
665
- "digest": "sha256:18e00d57ecb21e990f847a5a104992a7c8cb24769f2b7dcdf7153137dd707663"
665
+ "digest": "sha256:a8b53cf74ef87848aec2901f41159ff11a29fb4ac141686fa38ba6531d48bbc7"
666
666
  },
667
667
  {
668
668
  "path": "resources/manuals/guides/markdown-indexer-skill-authoring.md",
@@ -726,7 +726,7 @@
726
726
  },
727
727
  {
728
728
  "path": "resources/procedures/approved-revision.md",
729
- "digest": "sha256:53e905cc5e189094b90bda7cccaa7d3e2bf7151e59bd3f06a44d7fb966aef33d"
729
+ "digest": "sha256:6690d033c569f295a14b5670365e1a66bb7a95a4d2fb273d8c766c708c72009c"
730
730
  },
731
731
  {
732
732
  "path": "resources/procedures/close-and-build.md",
@@ -754,7 +754,7 @@
754
754
  },
755
755
  {
756
756
  "path": "resources/procedures/knowledge-updates.md",
757
- "digest": "sha256:2f972ef69cf1aabe537b8e61b6f334d3a57a88f00ebd1d48dcfaa849cb03723c"
757
+ "digest": "sha256:f173322ab968fb3236b831bc3565f206162628fca52942a751fd463f524ce348"
758
758
  },
759
759
  {
760
760
  "path": "resources/procedures/note.md",
@@ -774,7 +774,7 @@
774
774
  },
775
775
  {
776
776
  "path": "resources/procedures/production-stage-files.md",
777
- "digest": "sha256:a057e59b37546f1ab5f2c70c9ac8b5922382931949643c20450aac00ac744da8"
777
+ "digest": "sha256:8e4a54018ddc458f325c0f9c3dec3f477a1c2310d92bda55473d5ee7d0316919"
778
778
  },
779
779
  {
780
780
  "path": "resources/procedures/project-configuration.md",
@@ -802,7 +802,7 @@
802
802
  },
803
803
  {
804
804
  "path": "resources/procedures/source-update.md",
805
- "digest": "sha256:0fe803fd813ca4616d925f8f57822d8b2b1b61f0d117a6bc784eea5b34276f35"
805
+ "digest": "sha256:88422cad3e2b589e8b0d540c0bcd14f55f8ce7ae05a058bb0d6210fa0be309f1"
806
806
  },
807
807
  {
808
808
  "path": "resources/procedures/task-recovery.md",
@@ -910,7 +910,7 @@
910
910
  },
911
911
  {
912
912
  "path": "skills/translate-site-locales/SKILL.md",
913
- "digest": "sha256:2440bdb3756542e807709be971a02752ad29c8f578a47ee5e2dae5eb0bcb76a8"
913
+ "digest": "sha256:d611bf460419fb247ad3289e8ee2fc9977782247d8d7cfaed28fb9e5e3aa422c"
914
914
  },
915
915
  {
916
916
  "path": "skills/work-production-stage/SKILL.md",
@@ -921,5 +921,5 @@
921
921
  "indexer": [],
922
922
  "workspace": []
923
923
  },
924
- "digest": "sha256:4e9ff53aafc6d6751ce266b7fef9606d0c5225b9212347fbcbd7374b1ecda713"
924
+ "digest": "sha256:5fab4c4eca76e525f6358f09866f5bbb5b03a3d29af0d287613a0094cd34ad2e"
925
925
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.95
3
+ version: 0.7.97
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -193,6 +193,13 @@ untagged version updates that description without changing its version or conten
193
193
  checkpoint. No additional flag is needed. If this session already published the
194
194
  version, record a new version instead: the CLI protects tagged records but cannot
195
195
  infer whether an untagged version was published by another tool.
196
+ To merge several unpublished intermediate versions into one entry, restore only
197
+ the version files (`package.json` version, `CHANGELOG.md`, `changelog.yaml`) to
198
+ the last published version and keep every knowledge change. Then run `version
199
+ inspect --base <that version's commit> --format json` and record one entry with
200
+ the returned digest and the same commit as `base_ref`. Never rewrite a version
201
+ already merged into the remote default branch (`merged_to`) or tagged; there is
202
+ no squash command.
196
203
  Publication belongs to the installed distribution tool. Record remote receipts
197
204
  in its configuration or the existing work summary, separately for each target.
198
205
  A successful authorized commit/tag identifies the delivered source; never create
@@ -212,7 +219,9 @@ entry retains its stable key, parent, title and order; optional targets use
212
219
  article identity and section key. The current structure preview supplies those
213
220
  identities. Read the persistent `src/knowledge-map.yaml`; use
214
221
  `expected_revision: null` only when no knowledge map exists.
215
- After adjustment, follow status to rebuild affected packages. This changes the
222
+ After adjustment, follow status to rebuild affected packages; once delivery has
223
+ finished, the Route records a patch version (`navigation` trigger) and builds,
224
+ without resuming production. This changes the
216
225
  reading organization without capturing sources or rewriting approved prose.
217
226
  Do not directly edit generated package navigation or use titles as identities.
218
227
 
@@ -89,8 +89,15 @@ an explicit permission denial (including HTTP 403) for an embedded resource, Con
89
89
  `document.resource.permission-denied`, keeps the stable resource identity in
90
90
  the audit layer, renders the same unavailable-resource notice, and continues
91
91
  with a warning. Explicit missing-scope and access-denied resource responses are
92
- likewise recorded without changing identity. Transient network errors, malformed
93
- payloads, and unclassified failures still block capture. Reference-only
92
+ likewise recorded without changing identity, as is a synced block whose source
93
+ document the identity cannot open. Such gaps are listed in the capture result and
94
+ cannot be cited. To close one, request the missing app scope for the app at
95
+ https://open.larkoffice.com/app, or ask the document's owner to share it with
96
+ the capturing identity, then capture again. Transient network errors, malformed
97
+ payloads, and unclassified failures still block capture. When a refresh of an
98
+ unchanged revision turns a previously captured resource into such a gap or a
99
+ preview, the new snapshot is saved and the result lists the downgrade; a blocking
100
+ failure keeps the old snapshot, and a body that cannot be read never replaces it. Reference-only
94
101
  resources remain explicit in the capture report. Unknown non-empty XML blocks
95
102
  stay auditable in the raw XML and receive a warning; the CLI does not infer
96
103
  their meaning.
@@ -101,6 +101,13 @@ field and source location; do not rewrite the token's table by hand. The final
101
101
  Candidate still needs Review: a token or accepted submission does not establish
102
102
  that the requested correction reached the page.
103
103
 
104
+ A revision that processes a source version (the source update's pages) must
105
+ resolve the page's citations of that source that no longer match it, including
106
+ those in paragraphs you do not rewrite: preview and submission list each one with
107
+ its paragraph and lines. Rewrite the paragraph, cite the current text, or remove
108
+ the citation. Stale citations of other sources are kept and returned as
109
+ `reference_warnings` for a later update or revision.
110
+
104
111
  Context collects complete pages into a delivery batch. An Author completion can
105
112
  therefore lead to another Author before Review. Follow that Route; do not close
106
113
  or build after each page. Review, close and build operate on the assembled batch.
@@ -193,6 +193,13 @@ untagged version updates that description without changing its version or conten
193
193
  checkpoint. No additional flag is needed. If this session already published the
194
194
  version, record a new version instead: the CLI protects tagged records but cannot
195
195
  infer whether an untagged version was published by another tool.
196
+ To merge several unpublished intermediate versions into one entry, restore only
197
+ the version files (`package.json` version, `CHANGELOG.md`, `changelog.yaml`) to
198
+ the last published version and keep every knowledge change. Then run `version
199
+ inspect --base <that version's commit> --format json` and record one entry with
200
+ the returned digest and the same commit as `base_ref`. Never rewrite a version
201
+ already merged into the remote default branch (`merged_to`) or tagged; there is
202
+ no squash command.
196
203
  Publication belongs to the installed distribution tool. Record remote receipts
197
204
  in its configuration or the existing work summary, separately for each target.
198
205
  A successful authorized commit/tag identifies the delivered source; never create
@@ -212,7 +219,9 @@ entry retains its stable key, parent, title and order; optional targets use
212
219
  article identity and section key. The current structure preview supplies those
213
220
  identities. Read the persistent `src/knowledge-map.yaml`; use
214
221
  `expected_revision: null` only when no knowledge map exists.
215
- After adjustment, follow status to rebuild affected packages. This changes the
222
+ After adjustment, follow status to rebuild affected packages; once delivery has
223
+ finished, the Route records a patch version (`navigation` trigger) and builds,
224
+ without resuming production. This changes the
216
225
  reading organization without capturing sources or rewriting approved prose.
217
226
  Do not directly edit generated package navigation or use titles as identities.
218
227
 
@@ -62,7 +62,9 @@ Write results under the returned Agent directory. All submission paths are
62
62
  relative to `.tmp/agent-work/production-stages/<stage>/`, even when the manifest is in `submissions/`. They are never relative to `.tmp/context-runtime/` or to the manifest location. Each task lists the complete workspace-relative Markdown and reference output paths.
63
63
  Copy the CLI's submission template, keep completed tasks only, and keep each
64
64
  task's prefilled `input`. Submit the manifest using the returned command.
65
- Do not edit submitted files until the command returns.
65
+ To check article files first, append `--preview` to that command: it reports
66
+ every problem of every task at once and saves nothing. Plans and report decisions
67
+ have no preview. Do not edit submitted files until the command returns.
66
68
 
67
69
  A complete article uses `content` (Markdown) and `references` (YAML/JSON).
68
70
  Markdown has reader-facing title and description frontmatter, followed by the
@@ -70,7 +72,9 @@ complete article with stable `context:section` markers. References contain
70
72
  `sections`, each with its matching `id` and `references` list. A reference is
71
73
  `source_ref` plus `locator: {path, start_line, end_line}` from actual authorized
72
74
  text. CLI computes source digests. A fragment may cite at most five distinct
73
- source files and eight regions; an article may have multiple fragments.
75
+ source files and eight regions; an article may have multiple fragments. A line
76
+ `> Resource unavailable: ...` in a captured document marks a capture gap, not
77
+ evidence: cite the captured lines around it, never the gap.
74
78
 
75
79
  When prose names a file, directory or Skill from a cited repository, write its
76
80
  exact repository-relative path, or the unique name of its directory such as a
@@ -25,7 +25,9 @@ updates and `context update --pending`, pages whose citations
25
25
  are unchanged or only moved are not candidates, so an empty list is possible;
26
26
  still check the change for additions before submitting the scope decision.
27
27
  Those pages are listed in `scope_pages`: they need no decision, but include one
28
- with an `instruction` when an addition or shared change affects it.
28
+ with an `instruction` when an addition or shared change affects it. When the
29
+ pages you revise are written by other Agents, give each writer its page's
30
+ `changed_references` entries and their evidence.
29
31
 
30
32
  Follow each changed reference's `evidence_ref` into the JSON array in
31
33
  `reference_evidence_file` (`reference_evidence_count` entries) for
@@ -18,6 +18,7 @@ whenever `source_diff` is `null`, align the whole draft with the current
18
18
  approved article before submitting. Keep the translation's structure exactly:
19
19
 
20
20
  - frontmatter contains only a translated `title` and optional `description`;
21
+ drop a `translation` record copied from a kept draft, because the CLI writes it;
21
22
  - keep every `context:section` marker, id and order unchanged;
22
23
  - keep every fenced code block and language marker; translate prose in `text`,
23
24
  `txt`, and `plaintext` blocks, preserving commands, paths and placeholders such