@c4a/context-cli 0.7.96 → 0.7.98
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 +4 -1
- package/README.zh-CN.md +2 -0
- package/cli.js +780 -345
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/parserEntryWorker.js +7 -4
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +1 -1
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +1 -1
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +1 -1
- package/plugins/skills/context/SKILL.md +1 -1
- package/providers/context/manifest.json +12 -12
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/knowledge-updates.md +10 -1
- package/providers/context/resources/manuals/guides/lark-resources.md +11 -2
- package/providers/context/resources/procedures/document-capture.md +7 -1
- package/providers/context/resources/procedures/knowledge-updates.md +10 -1
- package/providers/context/resources/procedures/production-stage-files.md +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.98",
|
|
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.
|
|
28
|
-
"@c4a/extract": "0.7.
|
|
29
|
-
"@c4a/extract-contract": "0.7.
|
|
30
|
-
"@c4a/extract-go": "0.7.
|
|
31
|
-
"@c4a/extract-mdx": "0.7.
|
|
32
|
-
"@c4a/extract-proto": "0.7.
|
|
33
|
-
"@c4a/extract-rush": "0.7.
|
|
34
|
-
"@c4a/extract-sql": "0.7.
|
|
35
|
-
"@c4a/extract-style": "0.7.
|
|
36
|
-
"@c4a/extract-thrift": "0.7.
|
|
37
|
-
"@c4a/extract-ts": "0.7.
|
|
27
|
+
"@c4a/context": "0.7.98",
|
|
28
|
+
"@c4a/extract": "0.7.98",
|
|
29
|
+
"@c4a/extract-contract": "0.7.98",
|
|
30
|
+
"@c4a/extract-go": "0.7.98",
|
|
31
|
+
"@c4a/extract-mdx": "0.7.98",
|
|
32
|
+
"@c4a/extract-proto": "0.7.98",
|
|
33
|
+
"@c4a/extract-rush": "0.7.98",
|
|
34
|
+
"@c4a/extract-sql": "0.7.98",
|
|
35
|
+
"@c4a/extract-style": "0.7.98",
|
|
36
|
+
"@c4a/extract-thrift": "0.7.98",
|
|
37
|
+
"@c4a/extract-ts": "0.7.98",
|
|
38
38
|
"@mermaid-js/layout-elk": "0.2.0",
|
|
39
39
|
"commander": "^11.0.0",
|
|
40
40
|
"d3-force": "3.0.0",
|
package/parserEntryWorker.js
CHANGED
|
@@ -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.
|
|
1
|
+
0.7.98
|
|
@@ -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.
|
|
143
|
+
This Skill ships with Context 0.7.98.
|
|
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.
|
|
3
|
+
"version": "0.7.98",
|
|
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.
|
|
13
|
+
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.98",
|
|
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.
|
|
141
|
+
This Skill ships with Context 0.7.98.
|
|
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):
|
|
@@ -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.
|
|
138
|
+
This Skill ships with Context 0.7.98.
|
|
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.
|
|
141
|
+
This Skill ships with Context 0.7.98.
|
|
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.
|
|
5
|
+
"version": "0.7.98"
|
|
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:
|
|
196
|
+
"digest": "sha256:495f7eebf73ffdf8fdfa8cd8619e3029f5c65b3ead1fff15be8e14d0fd4a2bd2"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"id": "context.sdk.package-outputs",
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
{
|
|
304
304
|
"id": "procedure.document-capture",
|
|
305
305
|
"path": "resources/procedures/document-capture.md",
|
|
306
|
-
"digest": "sha256:
|
|
306
|
+
"digest": "sha256:fcb68eccaa5c7307cafbaa42348a618b9c741aecc96cd1b6f430a446fc9b8b70"
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
"id": "procedure.document-code-investigation",
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
{
|
|
329
329
|
"id": "procedure.knowledge-updates",
|
|
330
330
|
"path": "resources/procedures/knowledge-updates.md",
|
|
331
|
-
"digest": "sha256:
|
|
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:
|
|
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:
|
|
601
|
+
"digest": "sha256:631acbe22a96514bbc738c171ee6450576b7f1ca7748598f53a605f19b02ebee"
|
|
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:
|
|
661
|
+
"digest": "sha256:00a8137d84d21e27cb35ab813c7fb645acf80e8cf10964c16399d84811239014"
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
664
|
"path": "resources/manuals/guides/lark-resources.md",
|
|
665
|
-
"digest": "sha256:
|
|
665
|
+
"digest": "sha256:495f7eebf73ffdf8fdfa8cd8619e3029f5c65b3ead1fff15be8e14d0fd4a2bd2"
|
|
666
666
|
},
|
|
667
667
|
{
|
|
668
668
|
"path": "resources/manuals/guides/markdown-indexer-skill-authoring.md",
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
},
|
|
735
735
|
{
|
|
736
736
|
"path": "resources/procedures/document-capture.md",
|
|
737
|
-
"digest": "sha256:
|
|
737
|
+
"digest": "sha256:fcb68eccaa5c7307cafbaa42348a618b9c741aecc96cd1b6f430a446fc9b8b70"
|
|
738
738
|
},
|
|
739
739
|
{
|
|
740
740
|
"path": "resources/procedures/document-code-investigation.md",
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
756
|
"path": "resources/procedures/knowledge-updates.md",
|
|
757
|
-
"digest": "sha256:
|
|
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:
|
|
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:
|
|
924
|
+
"digest": "sha256:98ea068c951d132d6043e61b401cc2209be5d88e6ed4a80c95c2acf4776fd8d1"
|
|
925
925
|
}
|
|
@@ -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
|
|
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
|
|
93
|
-
|
|
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.
|
|
@@ -263,6 +270,8 @@ tokens in generated pages or claim that excluded images have been interpreted.
|
|
|
263
270
|
The selected document identity remains fixed for resource reads. In Bot mode,
|
|
264
271
|
only an authorization failure while reading the body can restart the article
|
|
265
272
|
as the current user. Resource failures never trigger that identity fallback.
|
|
273
|
+
The capture report records the identity and the reason for a fallback, and
|
|
274
|
+
`context status` keeps showing it until the document is captured again.
|
|
266
275
|
Images may use the official same-identity preview endpoint after download
|
|
267
276
|
permission is denied. Previews are marked explicitly; unavailable resources
|
|
268
277
|
retain references and diagnostics. Use available body evidence without inferring
|
|
@@ -72,7 +72,13 @@ The fallback restarts the entire body, including pagination; never combine body
|
|
|
72
72
|
pages from different identities. Once the body is available, its identity is
|
|
73
73
|
fixed for all media, synced references, Sheets, Base and whiteboard reads.
|
|
74
74
|
Resource failures do not request user authorization or restart the article.
|
|
75
|
-
Network, rate-limit and format errors do not switch identity.
|
|
75
|
+
Network, rate-limit and format errors do not switch identity. When a capture
|
|
76
|
+
result or `context status` reports `lark.capture.identity-fallback`, tell the
|
|
77
|
+
user which documents were read as them, the risk (content only they can see is
|
|
78
|
+
now in the snapshot; later bot captures may not read it) and the remedy (ask the
|
|
79
|
+
document's owner to share it with the bot). When a capture is deferred
|
|
80
|
+
(`document.acquisition-unavailable`), relay the warning's `next` instead of
|
|
81
|
+
retrying on your own.
|
|
76
82
|
|
|
77
83
|
An image download denied by permissions may use the official preview endpoint
|
|
78
84
|
once with the same identity. A captured preview is explicitly marked as such.
|
|
@@ -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
|
|
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
|
-
|
|
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
|