@c4a/context-cli 0.7.96 → 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.
@@ -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.96",
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.96",
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.96",
28
- "@c4a/extract": "0.7.96",
29
- "@c4a/extract-contract": "0.7.96",
30
- "@c4a/extract-go": "0.7.96",
31
- "@c4a/extract-mdx": "0.7.96",
32
- "@c4a/extract-proto": "0.7.96",
33
- "@c4a/extract-rush": "0.7.96",
34
- "@c4a/extract-sql": "0.7.96",
35
- "@c4a/extract-style": "0.7.96",
36
- "@c4a/extract-thrift": "0.7.96",
37
- "@c4a/extract-ts": "0.7.96",
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.96
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.96",
4
+ "version": "0.7.97",
5
5
  "author": {
6
6
  "name": "c4a"
7
7
  },
@@ -140,7 +140,7 @@ without the user's authorization.
140
140
 
141
141
  ### Check the CLI first
142
142
 
143
- This Skill ships with Context 0.7.96.
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):
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.96",
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.96",
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",
@@ -138,7 +138,7 @@ without the user's authorization.
138
138
 
139
139
  ### Check the CLI first
140
140
 
141
- This Skill ships with Context 0.7.96.
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):
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.96",
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",
@@ -135,7 +135,7 @@ without the user's authorization.
135
135
 
136
136
  ### Check the CLI first
137
137
 
138
- This Skill ships with Context 0.7.96.
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):
@@ -138,7 +138,7 @@ without the user's authorization.
138
138
 
139
139
  ### Check the CLI first
140
140
 
141
- This Skill ships with Context 0.7.96.
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):
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.96"
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",
@@ -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",
@@ -598,7 +598,7 @@
598
598
  },
599
599
  {
600
600
  "path": "provider.yaml",
601
- "digest": "sha256:deed5bd77b38ac5d152c78fd3c02845aa0ab9b27245030049571d15475d9b274"
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",
@@ -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",
@@ -921,5 +921,5 @@
921
921
  "indexer": [],
922
922
  "workspace": []
923
923
  },
924
- "digest": "sha256:99efc98aab0eb03389ff2a1127820cb2f07c2ce94c9f0ae68890de6439f2bc63"
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.96
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.
@@ -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