@c4a/context-cli 0.7.83 → 0.7.85
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/cli.js +1268 -1175
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/providers/context/manifest.json +9 -9
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/dialogue/package-output.md +1 -1
- package/providers/context/resources/manuals/guides/package-outputs.md +26 -8
- package/providers/context/resources/manuals/reference/package-templates.md +22 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.85",
|
|
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.85",
|
|
28
|
+
"@c4a/extract": "0.7.85",
|
|
29
|
+
"@c4a/extract-contract": "0.7.85",
|
|
30
|
+
"@c4a/extract-go": "0.7.85",
|
|
31
|
+
"@c4a/extract-mdx": "0.7.85",
|
|
32
|
+
"@c4a/extract-proto": "0.7.85",
|
|
33
|
+
"@c4a/extract-rush": "0.7.85",
|
|
34
|
+
"@c4a/extract-sql": "0.7.85",
|
|
35
|
+
"@c4a/extract-style": "0.7.85",
|
|
36
|
+
"@c4a/extract-thrift": "0.7.85",
|
|
37
|
+
"@c4a/extract-ts": "0.7.85",
|
|
38
38
|
"@mermaid-js/layout-elk": "0.2.0",
|
|
39
39
|
"commander": "^11.0.0",
|
|
40
40
|
"fast-xml-parser": "^5.10.1",
|
package/plugins/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.85
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c4a",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.85",
|
|
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.85",
|
|
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",
|
|
@@ -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.85"
|
|
6
6
|
},
|
|
7
7
|
"providerManifest": "provider.yaml",
|
|
8
8
|
"graphs": [
|
|
@@ -193,12 +193,12 @@
|
|
|
193
193
|
{
|
|
194
194
|
"id": "context.sdk.package-outputs",
|
|
195
195
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
196
|
-
"digest": "sha256:
|
|
196
|
+
"digest": "sha256:d9592cf181ad4d5d3c776aed112e85ceaf90f21435d25f860a2360752f322ac4"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"id": "context.sdk.package-templates",
|
|
200
200
|
"path": "resources/manuals/reference/package-templates.md",
|
|
201
|
-
"digest": "sha256:
|
|
201
|
+
"digest": "sha256:7ae62a76e17b016cf6382a5dd41eea6fcf2e561dcd787eefbb62de241e6ac90a"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"id": "context.sdk.page-customization",
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
{
|
|
274
274
|
"id": "dialogue.package-output",
|
|
275
275
|
"path": "resources/dialogue/package-output.md",
|
|
276
|
-
"digest": "sha256:
|
|
276
|
+
"digest": "sha256:e0d5c02bf18379f455087c7c46c1e35c4fde89d8f55a0c5024e88b8b9469dbcb"
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"id": "dialogue.source-boundary",
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
591
|
"path": "provider.yaml",
|
|
592
|
-
"digest": "sha256:
|
|
592
|
+
"digest": "sha256:cf7c39c4a3f74fa791fb87a6f565ff72fe44c11081d80f70f9ce615aa0a6b4cc"
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
"path": "resources/contracts/indexer-provider-guide.yaml",
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
627
|
"path": "resources/dialogue/package-output.md",
|
|
628
|
-
"digest": "sha256:
|
|
628
|
+
"digest": "sha256:e0d5c02bf18379f455087c7c46c1e35c4fde89d8f55a0c5024e88b8b9469dbcb"
|
|
629
629
|
},
|
|
630
630
|
{
|
|
631
631
|
"path": "resources/dialogue/source-boundary.md",
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
},
|
|
666
666
|
{
|
|
667
667
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
668
|
-
"digest": "sha256:
|
|
668
|
+
"digest": "sha256:d9592cf181ad4d5d3c776aed112e85ceaf90f21435d25f860a2360752f322ac4"
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
671
|
"path": "resources/manuals/guides/page-customization.md",
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
},
|
|
706
706
|
{
|
|
707
707
|
"path": "resources/manuals/reference/package-templates.md",
|
|
708
|
-
"digest": "sha256:
|
|
708
|
+
"digest": "sha256:7ae62a76e17b016cf6382a5dd41eea6fcf2e561dcd787eefbb62de241e6ac90a"
|
|
709
709
|
},
|
|
710
710
|
{
|
|
711
711
|
"path": "resources/manuals/reference/project-api.md",
|
|
@@ -912,5 +912,5 @@
|
|
|
912
912
|
"indexer": [],
|
|
913
913
|
"workspace": []
|
|
914
914
|
},
|
|
915
|
-
"digest": "sha256:
|
|
915
|
+
"digest": "sha256:e4454d3871a0b0feeb136527c073e04c278d7915d2309172346562becd5d1c3e"
|
|
916
916
|
}
|
|
@@ -8,7 +8,7 @@ mediaType: text/markdown
|
|
|
8
8
|
|
|
9
9
|
Explain output shapes before SDK factory names. Offer:
|
|
10
10
|
|
|
11
|
-
- an Agent knowledge-base package with `AGENTS.md`,
|
|
11
|
+
- an Agent knowledge-base package with `AGENTS.md`, the shared context-knowledge-query Skill,
|
|
12
12
|
approved OKF roots, and adaptive indexes;
|
|
13
13
|
- a searchable documentation website with the approved knowledge map, source cards and local-time update timestamps;
|
|
14
14
|
- one LLM text bundle for model context or RAG import.
|
|
@@ -207,8 +207,9 @@ Typical output:
|
|
|
207
207
|
dist/<package-name>/
|
|
208
208
|
├── AGENTS.md
|
|
209
209
|
├── skills/
|
|
210
|
-
│ └── knowledge-query/
|
|
210
|
+
│ └── context-knowledge-query/
|
|
211
211
|
│ └── SKILL.md
|
|
212
|
+
├── others/context/search-guide.md
|
|
212
213
|
└── wikis/
|
|
213
214
|
├── index.md
|
|
214
215
|
└── ...
|
|
@@ -238,7 +239,7 @@ The package name already identifies the surrounding build folder, so the
|
|
|
238
239
|
output does not repeat it inside each root:
|
|
239
240
|
|
|
240
241
|
```text
|
|
241
|
-
skills/knowledge-query/SKILL.md
|
|
242
|
+
skills/context-knowledge-query/SKILL.md
|
|
242
243
|
wikis/index.md
|
|
243
244
|
guides/...
|
|
244
245
|
rules/...
|
|
@@ -255,8 +256,14 @@ final template directory name directly—for
|
|
|
255
256
|
example `skills/android-query/SKILL.md`. Package-root layout never renames a
|
|
256
257
|
Skill.
|
|
257
258
|
|
|
258
|
-
The default `knowledge-query` Skill is a complete generic query entry
|
|
259
|
-
|
|
259
|
+
The default `context-knowledge-query` Skill is a complete generic query entry,
|
|
260
|
+
identical in every Context package. It declares `metadata.shared: "true"` and
|
|
261
|
+
its Context version, so a package manager that supports shared Skills can
|
|
262
|
+
install one copy for all Context packages in a project, and that copy searches
|
|
263
|
+
every package it can find: the surrounding package, `--root`, packages under
|
|
264
|
+
`--base`, directories in `CONTEXT_KNOWLEDGE_PACKAGES`, and packages recorded by
|
|
265
|
+
the host's package manager when the distribution supports one. It carries the
|
|
266
|
+
structure-first query discipline: start from OKF directory indexes, use
|
|
260
267
|
`context-build-inventory.json` edge records for package-visible relationships,
|
|
261
268
|
read candidate pages, cite their visible headings and relevant passages, and
|
|
262
269
|
report gaps when the package does not cover a requested fact. Consumer pages
|
|
@@ -269,10 +276,21 @@ scope, or a candidate page is too large to read directly, its bundled
|
|
|
269
276
|
bounded Markdown chunks. Search results are leads; page bodies and typed edge
|
|
270
277
|
records establish what the package actually says. Package authors edit the source
|
|
271
278
|
template when project-specific terminology, entry points or task workflows are
|
|
272
|
-
needed
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
279
|
+
needed: put terms, synonyms, common questions and preferred entry pages in
|
|
280
|
+
`others/context/search-guide.md`, which the Skill reads first, and keep the
|
|
281
|
+
shared Skill unchanged. Editing the Skill makes it package-specific; rename its
|
|
282
|
+
directory and `name` so it installs separately. When a page's text does not
|
|
283
|
+
settle a question, the Skill follows the page's `Sources` entries: repository
|
|
284
|
+
links are read at their recorded commit through authorized host tools, document
|
|
285
|
+
links open the current document, and entries without links stay unreachable
|
|
286
|
+
from the package. The current template-review Route can accept an intentionally
|
|
287
|
+
sufficient generic default under its applicable authority.
|
|
288
|
+
|
|
289
|
+
Workspaces created before the rename keep `skills/knowledge-query/` in their
|
|
290
|
+
template. `context build` replaces it with `context-knowledge-query` in the old
|
|
291
|
+
Skill's language, adds `others/context/search-guide.md` when it is missing, and
|
|
292
|
+
reports the replacement as an agent hint. Move any package-specific wording the
|
|
293
|
+
old Skill carried into the search guide.
|
|
276
294
|
|
|
277
295
|
When approved pages reference materialized resources, Context keeps their
|
|
278
296
|
production copies in content-addressed `knowledge/assets/` paths and bundles
|
|
@@ -135,7 +135,7 @@ that name inside the package's knowledge roots.
|
|
|
135
135
|
Templates keep a logical, consumer-neutral layout:
|
|
136
136
|
|
|
137
137
|
```text
|
|
138
|
-
skills/knowledge-query/SKILL.md
|
|
138
|
+
skills/context-knowledge-query/SKILL.md
|
|
139
139
|
wikis/index.md
|
|
140
140
|
guides/...
|
|
141
141
|
rules/...
|
|
@@ -145,7 +145,7 @@ feats/...
|
|
|
145
145
|
For `name: "component-lib-kb"`, `context build` writes:
|
|
146
146
|
|
|
147
147
|
```text
|
|
148
|
-
skills/knowledge-query/SKILL.md
|
|
148
|
+
skills/context-knowledge-query/SKILL.md
|
|
149
149
|
wikis/index.md
|
|
150
150
|
guides/...
|
|
151
151
|
rules/...
|
|
@@ -219,8 +219,11 @@ src/package-templates/
|
|
|
219
219
|
│ ├── AGENTS.md
|
|
220
220
|
│ ├── wikis/
|
|
221
221
|
│ │ └── index.md
|
|
222
|
+
│ ├── others/
|
|
223
|
+
│ │ └── context/
|
|
224
|
+
│ │ └── search-guide.md
|
|
222
225
|
│ └── skills/
|
|
223
|
-
│ └── knowledge-query/
|
|
226
|
+
│ └── context-knowledge-query/
|
|
224
227
|
│ ├── SKILL.md
|
|
225
228
|
│ └── scripts/
|
|
226
229
|
│ └── search.mjs
|
|
@@ -237,16 +240,25 @@ rejects it.
|
|
|
237
240
|
|
|
238
241
|
The default kb template includes:
|
|
239
242
|
|
|
240
|
-
- `skills/knowledge-query/SKILL.md`, a reusable skill
|
|
241
|
-
|
|
242
|
-
|
|
243
|
+
- `skills/context-knowledge-query/SKILL.md`, a reusable skill shared by every
|
|
244
|
+
Context package (`metadata.shared: "true"`, `metadata.version` set to the
|
|
245
|
+
Context version). It finds the Context packages available to the project,
|
|
246
|
+
navigates copied knowledge pages, cites relevant text and its exported source
|
|
247
|
+
attribution, follows repository sources at their recorded commit when the page
|
|
248
|
+
text is not enough, and reports gaps instead of inventing unsupported answers.
|
|
249
|
+
It uses no package-specific template values, so every package renders the same
|
|
250
|
+
file. The
|
|
243
251
|
default entry OKF root is `wikis/`; packages that select additional internal
|
|
244
252
|
collections expose
|
|
245
253
|
`guides/`, `rules/`, or `feats/` indexes when those roots are selected.
|
|
246
|
-
- `skills/knowledge-query/scripts/search.mjs`, a dependency-free BM25
|
|
247
|
-
for exact terms, mixed keyword queries, and large Markdown indexes.
|
|
248
|
-
|
|
249
|
-
|
|
254
|
+
- `skills/context-knowledge-query/scripts/search.mjs`, a dependency-free BM25
|
|
255
|
+
fallback for exact terms, mixed keyword queries, and large Markdown indexes.
|
|
256
|
+
`--list` shows the packages it found; without `--package` it ranks across all
|
|
257
|
+
of them. It chunks mechanically, returns package, path and line range, and
|
|
258
|
+
never replaces reading the relevant source-backed explanation.
|
|
259
|
+
- `others/context/search-guide.md`, the package's own search hints: terms,
|
|
260
|
+
synonyms, common questions and preferred entry pages. Edit this file, not the
|
|
261
|
+
shared Skill, to tune search for one package.
|
|
250
262
|
- `wikis/index.md`, the editable OKF bundle entry page for the generated
|
|
251
263
|
`dist/<package-name>/wikis/` directory.
|
|
252
264
|
|