@c4a/context-cli 0.7.86 → 0.7.87
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 +4592 -2945
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +13 -12
- package/parserEntryWorker.js +10 -3
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +17 -0
- package/plugins/claude/resources/context/source-checklist.md +120 -0
- package/plugins/claude/skills/context-plan/SKILL.md +8 -3
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +17 -0
- package/plugins/codex/skills/context/references/source-checklist.md +120 -0
- package/plugins/codex/skills/context-plan/SKILL.md +8 -3
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +17 -0
- package/plugins/cursor/resources/context/source-checklist.md +120 -0
- package/plugins/cursor/skills/context-plan/SKILL.md +8 -3
- package/plugins/skills/context/SKILL.md +17 -0
- package/plugins/skills/context/references/source-checklist.md +120 -0
- package/plugins/skills/context-plan/SKILL.md +8 -3
- package/providers/context/manifest.json +7 -7
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/package-outputs.md +12 -1
- package/providers/context/resources/manuals/reference/project-api.md +2 -1
|
@@ -37,7 +37,12 @@ an audience enters production; do not count registration as completed research.
|
|
|
37
37
|
1. Identify the selected project's existing `PLAN-*.md`, workspace and Git root.
|
|
38
38
|
Reuse a matching plan. Inspect its current stage, permissions and pending work
|
|
39
39
|
before expanding research; do not reset a live Context workflow.
|
|
40
|
-
2.
|
|
40
|
+
2. Ask once whether a prepared source checklist exists for this project, and take
|
|
41
|
+
its link if so: a filled checklist names each source, its owner and whether the
|
|
42
|
+
knowledge depends on it, which shortens inventory. The `context` Skill carries
|
|
43
|
+
a template under `references/source-checklist.md`. It is never required —
|
|
44
|
+
without one, continue and register material from the conversation.
|
|
45
|
+
3. Read [project-planning.md](references/project-planning.md). Review the existing
|
|
41
46
|
knowledge workspace and relevant approved articles before grouping new material.
|
|
42
47
|
Map overlaps, gaps and relationships between documents, repositories and pages;
|
|
43
48
|
distinguish reuse, revision, consolidation and new coverage in the PLAN.
|
|
@@ -48,11 +53,11 @@ an audience enters production; do not count registration as completed research.
|
|
|
48
53
|
evidence already available; do not wait for a complete PLAN. Follow the early
|
|
49
54
|
scope rules in project-planning.md, including previously confirmed choices.
|
|
50
55
|
Reuse accessible local checkouts and saved research before fetching again.
|
|
51
|
-
|
|
56
|
+
4. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
|
|
52
57
|
[the report template](templates/PLAN.md). Keep downloaded research under
|
|
53
58
|
`.tmp/context-plans/YYYYMMDD-slug/`; the layout is a working convention,
|
|
54
59
|
not a new CLI validation rule.
|
|
55
|
-
|
|
60
|
+
5. Present the first report and complete its review before production. By default,
|
|
56
61
|
obtain the user's approval; only an authorized `plan_review: delegate` override
|
|
57
62
|
permits Agent review as described below.
|
|
58
63
|
Resolve the reporting preference: report after all stages, or after each
|
|
@@ -238,6 +238,23 @@ Within an active Context workflow, requests include, but are not limited to:
|
|
|
238
238
|
| Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
|
|
239
239
|
| Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
|
|
240
240
|
|
|
241
|
+
### A prepared source checklist
|
|
242
|
+
|
|
243
|
+
A reader may arrive with a filled checklist — a page listing the material, its
|
|
244
|
+
owners and whether the knowledge depends on it — instead of describing sources
|
|
245
|
+
in conversation. Read it and register from it. Never require one: material
|
|
246
|
+
described in conversation is equally valid. A team that wants a starting point
|
|
247
|
+
can copy [the source checklist](references/source-checklist.md).
|
|
248
|
+
|
|
249
|
+
- One row is one source, and the row's note becomes the source note.
|
|
250
|
+
- The dependency column decides the treatment: a row marked as a dependency is
|
|
251
|
+
registered and pinned to a commit or version, so later changes reach the pages
|
|
252
|
+
that rest on it; a first-time reference is read for this round and cited in the
|
|
253
|
+
text, not registered.
|
|
254
|
+
- The owner named on a row is who to ask when a link fails or ownership is
|
|
255
|
+
unclear, instead of guessing.
|
|
256
|
+
- Report rows you cannot open or are not allowed to read; never drop one silently.
|
|
257
|
+
|
|
241
258
|
### Where each request goes
|
|
242
259
|
|
|
243
260
|
- **Sources, notes, sessions or changed upstream material:** read
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Source checklist
|
|
2
|
+
|
|
3
|
+
A page a team fills in before a knowledge base is built, so the Agent starts from
|
|
4
|
+
a list instead of a conversation. It is optional: material described in
|
|
5
|
+
conversation is registered the same way.
|
|
6
|
+
|
|
7
|
+
Copy the template below, delete the groups you do not need, replace the example
|
|
8
|
+
rows, and give the Agent the page's link.
|
|
9
|
+
|
|
10
|
+
## How to fill it in
|
|
11
|
+
|
|
12
|
+
1. Keep one row per source, and write the link's text as the material's name.
|
|
13
|
+
2. Every row needs a link that opens and a single owner.
|
|
14
|
+
3. Choose one update dependency per row; the note at the end explains the two.
|
|
15
|
+
4. Leave a row in with "to confirm" after the owner when you are unsure it belongs.
|
|
16
|
+
|
|
17
|
+
## Sources
|
|
18
|
+
|
|
19
|
+
### Code repositories
|
|
20
|
+
|
|
21
|
+
The repositories the knowledge is about and the ones it directly depends on.
|
|
22
|
+
Registered repositories are pinned to a commit and compared by diff later.
|
|
23
|
+
|
|
24
|
+
| Link | What it is | Owner | Update dependency |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| [example-org/billing-service](https://example.com/example-org/billing-service) | The service the knowledge describes | A. Rivera | Registered as a dependency |
|
|
27
|
+
| [example-org/billing-sdk](https://example.com/example-org/billing-sdk) | Client the service's callers use | B. Osei | Registered as a dependency |
|
|
28
|
+
|
|
29
|
+
### Skills and plugins
|
|
30
|
+
|
|
31
|
+
The Skills a workflow actually calls. Record the identifier and version; when the
|
|
32
|
+
version moves, the knowledge is rechecked.
|
|
33
|
+
|
|
34
|
+
| Link | What it is | Owner | Update dependency |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| [invoice-report-gen v1.4.0](https://example.com/skills/invoice-report-gen) | Generates the reports the guides describe | B. Osei | Registered as a dependency |
|
|
37
|
+
| [billing-metrics v0.9.2](https://example.com/skills/billing-metrics) | Collects the numbers quoted in the reference | C. Hart | Registered as a dependency |
|
|
38
|
+
|
|
39
|
+
### Documents
|
|
40
|
+
|
|
41
|
+
Design documents, specifications and one-pagers that have settled. Drafts and
|
|
42
|
+
open proposals are left out.
|
|
43
|
+
|
|
44
|
+
| Link | What it is | Owner | Update dependency |
|
|
45
|
+
| --- | --- | --- | --- |
|
|
46
|
+
| [Billing settlement design](https://example.com/docs/billing-settlement) | Goals and division of work; the basis for the guides | A. Rivera | Registered as a dependency |
|
|
47
|
+
| [Billing FAQ](https://example.com/docs/billing-faq) | Past questions, used to fill the reference pages | C. Hart | First-time reference |
|
|
48
|
+
|
|
49
|
+
### Conversations
|
|
50
|
+
|
|
51
|
+
Troubleshooting or design discussions that reached a conclusion. Write them up as
|
|
52
|
+
one note first, then list the note.
|
|
53
|
+
|
|
54
|
+
| Link | What it is | Owner | Update dependency |
|
|
55
|
+
| --- | --- | --- | --- |
|
|
56
|
+
| [Settlement incident, 2026-03-18](https://example.com/notes/settlement-incident) | How one production problem was found and fixed | C. Hart | First-time reference |
|
|
57
|
+
| [Scope discussion](https://example.com/notes/billing-scope) | Which repositories belong to this topic | A. Rivera | First-time reference |
|
|
58
|
+
|
|
59
|
+
### Platforms and live sites
|
|
60
|
+
|
|
61
|
+
Consoles, dashboards or published sites the pages need to cite.
|
|
62
|
+
|
|
63
|
+
| Link | What it is | Owner | Update dependency |
|
|
64
|
+
| --- | --- | --- | --- |
|
|
65
|
+
| [Billing console](https://example.com/console/billing) | Where operators do the work the guides describe | D. Lindqvist | Registered as a dependency |
|
|
66
|
+
| [Existing handbook](https://example.com/handbook/billing) | Already published, so it is not written twice | D. Lindqvist | First-time reference |
|
|
67
|
+
|
|
68
|
+
### Notes and attachments
|
|
69
|
+
|
|
70
|
+
Weekly reports, retrospectives and screenshots. They fold into the guides and
|
|
71
|
+
reference rather than becoming topics of their own.
|
|
72
|
+
|
|
73
|
+
| Link | What it is | Owner | Update dependency |
|
|
74
|
+
| --- | --- | --- | --- |
|
|
75
|
+
| [2026-03 billing weekly](https://example.com/notes/billing-weekly) | Progress, useful as background | B. Osei | First-time reference |
|
|
76
|
+
| [Release retrospective](https://example.com/notes/billing-retro) | Pitfalls, written into the FAQ | A. Rivera | First-time reference |
|
|
77
|
+
|
|
78
|
+
> **Update dependency**: *Registered as a dependency* = when the source changes,
|
|
79
|
+
> the pages resting on it are rechecked and revised; it stays anchored to a commit
|
|
80
|
+
> or version. *First-time reference* = read while writing this round and cited in
|
|
81
|
+
> the text; later updates do not come back to it.
|
|
82
|
+
|
|
83
|
+
## Structure
|
|
84
|
+
|
|
85
|
+
Keep the directory closest to the knowledge base you are building, delete the
|
|
86
|
+
rest, then add or drop levels.
|
|
87
|
+
|
|
88
|
+
- **Product or service knowledge base** — Overview; Getting started; Solutions by
|
|
89
|
+
scenario; Guides for the workflow, integration and release; Reference for
|
|
90
|
+
commands, fields and FAQ.
|
|
91
|
+
- **External manual for a platform** — Overview; Getting started with access;
|
|
92
|
+
Solutions by use case; Guides for daily operation and troubleshooting;
|
|
93
|
+
Reference for APIs, configuration and limits.
|
|
94
|
+
- **External manual for a tool** — Overview; Getting started with install and
|
|
95
|
+
first output; Guides for each workflow; How it works; Reference; Release notes.
|
|
96
|
+
- **On-call knowledge base** — Duty basics; Common problems by component;
|
|
97
|
+
Troubleshooting from symptom to action; Contacts and escalation; Past cases.
|
|
98
|
+
- **Business knowledge base** — Business overview; Terms and rules; End-to-end
|
|
99
|
+
flow; Common questions; Change log.
|
|
100
|
+
|
|
101
|
+
## Start-up prompt
|
|
102
|
+
|
|
103
|
+
Adjust it, then send it with the checklist's link.
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
I own <team / knowledge base>. Research and initialise the knowledge workspace
|
|
107
|
+
from this checklist and produce the first round of knowledge. Keep to the
|
|
108
|
+
material listed here; ask me before bringing in anything else.
|
|
109
|
+
1. Check every link opens; register the rows marked as a dependency as sources,
|
|
110
|
+
pinning repositories to the current commit and recording Skill versions. List
|
|
111
|
+
anything you cannot open or are not allowed to read
|
|
112
|
+
2. Ask me about missing links, missing owners or unclear ownership; where someone
|
|
113
|
+
else has to confirm, reach the owner named on the row
|
|
114
|
+
3. Once you have read the sources, plan the directory against the structure kept
|
|
115
|
+
above; raise a better split with me first if you see one
|
|
116
|
+
4. Write in batches only after I confirm the directory, and keep every claim
|
|
117
|
+
traceable to its source
|
|
118
|
+
5. When writing is done, produce a diff report for my review; publish only after
|
|
119
|
+
it passes
|
|
120
|
+
```
|
|
@@ -36,7 +36,12 @@ an audience enters production; do not count registration as completed research.
|
|
|
36
36
|
1. Identify the selected project's existing `PLAN-*.md`, workspace and Git root.
|
|
37
37
|
Reuse a matching plan. Inspect its current stage, permissions and pending work
|
|
38
38
|
before expanding research; do not reset a live Context workflow.
|
|
39
|
-
2.
|
|
39
|
+
2. Ask once whether a prepared source checklist exists for this project, and take
|
|
40
|
+
its link if so: a filled checklist names each source, its owner and whether the
|
|
41
|
+
knowledge depends on it, which shortens inventory. The `context` Skill carries
|
|
42
|
+
a template under `references/source-checklist.md`. It is never required —
|
|
43
|
+
without one, continue and register material from the conversation.
|
|
44
|
+
3. Read [project-planning.md](references/project-planning.md). Review the existing
|
|
40
45
|
knowledge workspace and relevant approved articles before grouping new material.
|
|
41
46
|
Map overlaps, gaps and relationships between documents, repositories and pages;
|
|
42
47
|
distinguish reuse, revision, consolidation and new coverage in the PLAN.
|
|
@@ -47,11 +52,11 @@ an audience enters production; do not count registration as completed research.
|
|
|
47
52
|
evidence already available; do not wait for a complete PLAN. Follow the early
|
|
48
53
|
scope rules in project-planning.md, including previously confirmed choices.
|
|
49
54
|
Reuse accessible local checkouts and saved research before fetching again.
|
|
50
|
-
|
|
55
|
+
4. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
|
|
51
56
|
[the report template](templates/PLAN.md). Keep downloaded research under
|
|
52
57
|
`.tmp/context-plans/YYYYMMDD-slug/`; the layout is a working convention,
|
|
53
58
|
not a new CLI validation rule.
|
|
54
|
-
|
|
59
|
+
5. Present the first report and complete its review before production. By default,
|
|
55
60
|
obtain the user's approval; only an authorized `plan_review: delegate` override
|
|
56
61
|
permits Agent review as described below.
|
|
57
62
|
Resolve the reporting preference: report after all stages, or after each
|
|
@@ -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.87"
|
|
6
6
|
},
|
|
7
7
|
"providerManifest": "provider.yaml",
|
|
8
8
|
"graphs": [
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
{
|
|
194
194
|
"id": "context.sdk.package-outputs",
|
|
195
195
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
196
|
-
"digest": "sha256:
|
|
196
|
+
"digest": "sha256:26131be68903dea2a79d098f4d206ddc637a485488d7aac910eb253e00e06c75"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"id": "context.sdk.package-templates",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
{
|
|
209
209
|
"id": "context.sdk.project-api",
|
|
210
210
|
"path": "resources/manuals/reference/project-api.md",
|
|
211
|
-
"digest": "sha256:
|
|
211
|
+
"digest": "sha256:c14322199c507068e3d3796e7f9a3e1170d02e322033ca70b3da7bfc3843e03d"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"id": "context.sdk.site-translation",
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
591
|
"path": "provider.yaml",
|
|
592
|
-
"digest": "sha256:
|
|
592
|
+
"digest": "sha256:f851c0bffbb90a74efaa9ea9ef978fd353d973965f181a44dfa1bcf6fcd80b1c"
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
"path": "resources/contracts/indexer-provider-guide.yaml",
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
},
|
|
666
666
|
{
|
|
667
667
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
668
|
-
"digest": "sha256:
|
|
668
|
+
"digest": "sha256:26131be68903dea2a79d098f4d206ddc637a485488d7aac910eb253e00e06c75"
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
671
|
"path": "resources/manuals/guides/page-customization.md",
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
},
|
|
710
710
|
{
|
|
711
711
|
"path": "resources/manuals/reference/project-api.md",
|
|
712
|
-
"digest": "sha256:
|
|
712
|
+
"digest": "sha256:c14322199c507068e3d3796e7f9a3e1170d02e322033ca70b3da7bfc3843e03d"
|
|
713
713
|
},
|
|
714
714
|
{
|
|
715
715
|
"path": "resources/manuals/reference/template-variables.md",
|
|
@@ -912,5 +912,5 @@
|
|
|
912
912
|
"indexer": [],
|
|
913
913
|
"workspace": []
|
|
914
914
|
},
|
|
915
|
-
"digest": "sha256:
|
|
915
|
+
"digest": "sha256:0c8b952caa0d58d5e40bd0ac9deecd8cac1ecd59cbf35be980c704b7f14b1588"
|
|
916
916
|
}
|
|
@@ -121,7 +121,18 @@ zoom, full-screen and source controls. Controls appear on hover or keyboard focu
|
|
|
121
121
|
(and remain visible on touch devices). Layout and source/copy actions are on the
|
|
122
122
|
left, sizing actions on the right. Source view replaces the diagram. Flowcharts default to ELK and can switch to Dagre without changing the article. Offline Review reports use the same
|
|
123
123
|
viewer and include its resources only when a candidate contains Mermaid.
|
|
124
|
-
|
|
124
|
+
Each article ends with its sources as a map: the article's sections in the
|
|
125
|
+
middle and the documents they cite around them, grouped by where each document
|
|
126
|
+
comes from (a repository directory, Lark documents or notes). Sections are purple;
|
|
127
|
+
sources are coloured by type: repository files green, Skills magenta, Lark
|
|
128
|
+
documents blue and notes orange. Hovering a section
|
|
129
|
+
or document highlights what it is linked to; clicking a document opens the cited
|
|
130
|
+
lines, and clicking a section scrolls to it. A List view shows the same documents
|
|
131
|
+
by group with their cited line ranges, and narrow screens show only the list.
|
|
132
|
+
Below the map, other articles citing the same documents are linked. The map is
|
|
133
|
+
computed while building from the recorded references, so it needs no agent
|
|
134
|
+
step; set `site.sourceMap: false` to show the plain source list instead, which
|
|
135
|
+
initially shows ten sources; Show more reveals the full list.
|
|
125
136
|
Invalid diagrams and diagrams with embedded image/HTML resources retain their
|
|
126
137
|
source with a rendering notice instead of blocking publication. Code samples and raw HTML are
|
|
127
138
|
displayed as content, not executed as Vue components or scripts.
|
|
@@ -191,7 +191,8 @@ the same build, beside the KB directory. `<base>` removes one trailing `-kb`
|
|
|
191
191
|
from the package name, if present. Omit it for KB-only output. It accepts `title`, `description`,
|
|
192
192
|
`lang`, a deployment `base` path, an optional top-bar `titleLink`, and an
|
|
193
193
|
optional `home` presentation. Navigation and language fields are `nav`, `more`,
|
|
194
|
-
`socialLinks`, `locales` and `localePreferenceKey`;
|
|
194
|
+
`socialLinks`, `locales` and `localePreferenceKey`; `sourceMap: false` replaces
|
|
195
|
+
the per-article source map with a plain source list; see
|
|
195
196
|
[Package Outputs](../guides/package-outputs.md) and
|
|
196
197
|
[Site translation](../guides/site-translation.md). `home`
|
|
197
198
|
accepts `title`, `slogan`, `description`, hero `actions`, and `resources` shown
|