@c4a/context-cli 0.7.12 → 0.7.13
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 +1167 -939
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/parserEntryWorker.js +12 -1
- 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/graphs/workspace.yaml +3 -1
- package/providers/context/manifest.json +31 -22
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/knowledge-updates.md +82 -19
- package/providers/context/resources/manuals/guides/package-outputs.md +4 -0
- package/providers/context/resources/manuals/guides/page-customization.md +93 -0
- package/providers/context/resources/manuals/reference/project-api.md +6 -0
- package/providers/context/resources/procedures/close-and-build.md +10 -15
- package/providers/context/resources/procedures/document-capture.md +7 -1
- package/providers/context/resources/procedures/knowledge-maintenance.md +5 -3
- package/providers/context/resources/procedures/knowledge-updates.md +82 -19
- package/providers/context/resources/procedures/production-stage-files.md +6 -0
- package/providers/context/skills/record-workspace-version/SKILL.md +6 -0
- package/providers/context/skills/work-production-stage/SKILL.md +5 -0
|
@@ -41,7 +41,7 @@ successful module as completion of the whole batch.
|
|
|
41
41
|
The CLI owns normalization, snapshot identity, hashes, manifests, and
|
|
42
42
|
idempotency. For Lark sources it also owns embedded-resource download,
|
|
43
43
|
structured export, completeness reporting, and link projection. Required
|
|
44
|
-
resource failures block
|
|
44
|
+
resource failures block work that depends on that material; reference-only resources remain
|
|
45
45
|
explicit in the report. Never hand-write or repair captured snapshots or their
|
|
46
46
|
asset links. If a selected local
|
|
47
47
|
boundary is a documentation site rather than plain Markdown, use the
|
|
@@ -56,3 +56,9 @@ response. Once selected, the same identity is used for the document body and
|
|
|
56
56
|
all embedded resources. If `docs +fetch` lacks the required `--doc-format`
|
|
57
57
|
capability, follow the returned `lark-cli update` recovery and rerun the same
|
|
58
58
|
Route command; do not replace the capture with a hand-written export.
|
|
59
|
+
|
|
60
|
+
An active production stage can continue planning and writing articles whose sources
|
|
61
|
+
are available while another capture remains pending. Keep unresolved sources in
|
|
62
|
+
`pending_scopes`; do not cite their unavailable snapshots. The Route returns to
|
|
63
|
+
pending capture after the active production/review work, before delivery completes.
|
|
64
|
+
This does not mark failed captures as complete or waive source-read authorization.
|
|
@@ -7,9 +7,9 @@ mediaType: text/markdown
|
|
|
7
7
|
# Maintain knowledge while production continues
|
|
8
8
|
|
|
9
9
|
Use `context task maintain --input <file|-> --format json` to register multiple
|
|
10
|
-
approved pages or an approved-output rebuild.
|
|
11
|
-
|
|
12
|
-
not discard the current task or immediately rewrite a page.
|
|
10
|
+
approved pages or an approved-output rebuild. Read the input schema with
|
|
11
|
+
`context task maintain --schema --format json`. Registration saves a request;
|
|
12
|
+
it does not discard the current task or immediately rewrite a page.
|
|
13
13
|
|
|
14
14
|
```yaml
|
|
15
15
|
id: clarify-existing-guides
|
|
@@ -66,3 +66,5 @@ route. If status says `target-still-in-production`, the original task still owns
|
|
|
66
66
|
an unfinished page of that subject: let that writer settle before revising its
|
|
67
67
|
latest approved text. After completion, read the
|
|
68
68
|
new Route to resume production. Never resubmit an accepted old batch.
|
|
69
|
+
|
|
70
|
+
After Review and Close, a revision with remaining targets continues authoring without an intermediate package build. Build the configured outputs after the final revision batch; Close alone does not mark the maintenance request delivered.
|
|
@@ -107,12 +107,11 @@ configuration/template approval, before the final build. The record response
|
|
|
107
107
|
returns the next workspace Route, so no extra status call is needed. Build retries
|
|
108
108
|
reuse the recorded version when formal content is unchanged. If build preparation
|
|
109
109
|
or rendering fails and formal corrections are needed, `version inspect` returns
|
|
110
|
-
`reusable_version` for
|
|
111
|
-
publication
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
sealed and further formal changes require an increase. Intermediate batches
|
|
110
|
+
`reusable_version` for an untagged current entry. Before amending, read the
|
|
111
|
+
publication target's remote version using the distribution skill. An unpublished
|
|
112
|
+
preview may reuse its version with the complete iteration's title, changes and
|
|
113
|
+
triggers; preserve the original delivery description. Published content requires
|
|
114
|
+
an increasing version. A local build alone does not seal a version. Intermediate batches
|
|
116
115
|
do not each receive a version.
|
|
117
116
|
|
|
118
117
|
The workspace AGENTS.md and version-writing instructions require each entry's
|
|
@@ -149,19 +148,23 @@ are `initial`, `note`, `sessions`, `mr`, `module`, `document`, `navigation`,
|
|
|
149
148
|
`repair`, `dist`, and `other`. Agent-written fields describe the actual diff and
|
|
150
149
|
conversation; they must not expose credentials, raw transcripts or private IDs.
|
|
151
150
|
|
|
152
|
-
The CLI
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
151
|
+
The CLI updates `package.json`, `changelog.yaml` and generated `CHANGELOG.md` together.
|
|
152
|
+
`context version inspect --base <commit-or-tag> --format json` compares the actual
|
|
153
|
+
workspace files with Git, including untracked files. Without an explicit base it
|
|
154
|
+
uses the current version's `v<version>` tag when available, otherwise HEAD; HEAD
|
|
155
|
+
is not proof of publication. Review article bodies, assets, structure, navigation
|
|
156
|
+
and templates, not structure alone. Without Git, inspection reports local files.
|
|
157
|
+
A disposable `.tmp` checkpoint suppresses repeated recording in an uncommitted
|
|
158
|
+
iteration. Losing it does not lose knowledge or prove a new publication.
|
|
159
|
+
|
|
160
|
+
There are no root-level Context version/build/publication receipts to maintain.
|
|
161
|
+
Build freshness uses the existing local package cache. The CLI does not seal a
|
|
162
|
+
version merely because a preview was built. Before reusing a version, check the
|
|
163
|
+
actual publication target and Git tags; a published version requires an increase.
|
|
164
|
+
Publication belongs to the installed distribution tool. Record remote receipts
|
|
165
|
+
in its configuration or the existing work summary, separately for each target.
|
|
166
|
+
A successful authorized commit/tag identifies the delivered source; never create
|
|
167
|
+
one automatically, and never treat Git success as platform publication success.
|
|
165
168
|
|
|
166
169
|
Website history is available at `changelog.html`: cards are newest first, the
|
|
167
170
|
latest three expanded and older cards collapsed. The History button beside the
|
|
@@ -197,6 +200,66 @@ coverage by mechanically placing every new page under an unrelated catch-all.
|
|
|
197
200
|
Build reports missing bindings for the Agent to resolve; it does not classify
|
|
198
201
|
content. Moving a menu entry does not change the article URL.
|
|
199
202
|
|
|
203
|
+
### Reader tasks, names and reading order
|
|
204
|
+
|
|
205
|
+
Read the affected articles' bodies before changing their categories or titles.
|
|
206
|
+
Titles and outlines help locate material; they do not settle its main reader task.
|
|
207
|
+
During initial planning, keep names and placement provisional until the relevant
|
|
208
|
+
material supports them. Classify by the question the page primarily answers and
|
|
209
|
+
its intended reader, rather than its collection, source path or isolated words:
|
|
210
|
+
|
|
211
|
+
| Main reader task | Organizing emphasis |
|
|
212
|
+
| --- | --- |
|
|
213
|
+
| Understand a business process | Participants, rules, decisions and lifecycle |
|
|
214
|
+
| Understand an implementation | Components, data changes, calls and failure handling |
|
|
215
|
+
| Integrate or use a capability | Prerequisites, setup, contracts and usage |
|
|
216
|
+
| Diagnose or recover from a problem | Symptoms, checks, causes, actions and verification |
|
|
217
|
+
|
|
218
|
+
These distinctions guide placement, not a required set of top-level directories.
|
|
219
|
+
A page explaining retry scheduling and persistence belongs with its implementation;
|
|
220
|
+
a page explaining how to recover a stalled worker serves troubleshooting. The word
|
|
221
|
+
"retry" alone decides neither. Choose a primary home for a mixed page and link
|
|
222
|
+
related tasks without duplicating the same overview across categories.
|
|
223
|
+
|
|
224
|
+
Give each directory a concrete shared subject or reader task. At every parent,
|
|
225
|
+
keep its children either all directories or all articles. Place an overview in
|
|
226
|
+
the appropriate article group when the parent contains directories. Avoid empty
|
|
227
|
+
category scaffolding and chains of single-article directories that add no useful
|
|
228
|
+
choice. A residual "Other" group, when warranted, comes last; it must not absorb
|
|
229
|
+
articles whose purpose fits an existing group. Do not invent a fixed depth,
|
|
230
|
+
number of categories or page quota to make the tree look uniform.
|
|
231
|
+
|
|
232
|
+
Keep directory and article titles concise and specific to their actual subject.
|
|
233
|
+
Name the object and useful task, rather than enumerating every section heading.
|
|
234
|
+
For example, prefer "Client authentication" to "Client tokens, configuration,
|
|
235
|
+
requests, refresh and errors" when those sections all explain authentication.
|
|
236
|
+
Retain a platform or product name only when it distinguishes otherwise ambiguous
|
|
237
|
+
topics. Keep an existing accurate title when it already works; a necessary
|
|
238
|
+
technical name need not be shortened just to meet a word count.
|
|
239
|
+
|
|
240
|
+
The Agent manually arranges siblings for reading: a useful overview, prerequisites,
|
|
241
|
+
the main tasks or process sequence, then later maintenance and reference material
|
|
242
|
+
where applicable. Use a numbered list or ordered outline to review that proposal,
|
|
243
|
+
then assign explicit, distinct `order` values among siblings in the knowledge-map
|
|
244
|
+
adjustment, for example 10, 20 and 30. The list is an editing plan; persisted
|
|
245
|
+
`order` values determine navigation. Reordering YAML/JSON entries or changing the
|
|
246
|
+
plan's list order alone does not change the site. Paths, internal keys, alphabetical
|
|
247
|
+
order and source-file order are not substitutes for a reader sequence. Keep order
|
|
248
|
+
numbers out of titles. This navigation order is separate from the order in which
|
|
249
|
+
workers write their drafts.
|
|
250
|
+
|
|
251
|
+
For a long or compound page, inspect its content before suggesting a split or
|
|
252
|
+
merge. Keep one coherent task together, and separate independently useful tasks
|
|
253
|
+
only when their supported content warrants it. A long title or many headings
|
|
254
|
+
alone is insufficient. Preserve useful detail and links, and retain article IDs,
|
|
255
|
+
paths and unaffected sections when the reader task is unchanged. A navigation-only
|
|
256
|
+
change does not require a prose rewrite or file migration; changing its label does
|
|
257
|
+
not silently rename the approved article. Needed title or content revisions use
|
|
258
|
+
the existing revision and Review flow. Splits and merges use ordinary article
|
|
259
|
+
tasks, link repair and any explicit retirement after replacement content is
|
|
260
|
+
delivered. These are Agent editorial decisions, not new CLI checks or approval
|
|
261
|
+
gates.
|
|
262
|
+
|
|
200
263
|
## Edit one section or review part of a batch
|
|
201
264
|
|
|
202
265
|
The current approved-revision Route accepts either full `markdown` or explicit
|
|
@@ -10,6 +10,12 @@ The stage entry links CLI-owned requirements, planned skill guidance and task
|
|
|
10
10
|
directories. Read relevant source text before writing; a skeleton is navigation,
|
|
11
11
|
not semantic evidence. Skill names guide work, not article ownership or versions.
|
|
12
12
|
|
|
13
|
+
Use the [reader organization guidance](knowledge-updates.md#reader-tasks-names-and-reading-order)
|
|
14
|
+
for article names, placement and manually arranged navigation. Check the draft's
|
|
15
|
+
main reader task against its planned title and group; adjust through the existing
|
|
16
|
+
plan, revision or knowledge-map flow when needed. A navigation change alone does
|
|
17
|
+
not call for rewriting valid prose.
|
|
18
|
+
|
|
13
19
|
Restore repository checkouts only when needed for the current investigation or
|
|
14
20
|
article. Independent notes/documents can proceed while unavailable code remains
|
|
15
21
|
an explicit gap. For a required repository, read the
|
|
@@ -30,6 +30,12 @@ document, navigation, repair, dist, other. Describe what actually triggered the
|
|
|
30
30
|
iteration, not merely the CLI command. Never include raw private transcripts,
|
|
31
31
|
credentials, local absolute paths or private account IDs in public history.
|
|
32
32
|
|
|
33
|
+
Before amending the current version, check the target platform and Git tags.
|
|
34
|
+
A local build is not publication. Use an increasing version for published content.
|
|
35
|
+
Git comparison supports `version inspect --base <commit-or-tag>`; include the
|
|
36
|
+
same `base_ref` in the record input when selected. Missing `.tmp` checkpoints do
|
|
37
|
+
not require recreating historical receipts.
|
|
38
|
+
|
|
33
39
|
Increment minor for added modules/material that expands knowledge coverage;
|
|
34
40
|
increment patch for repairs, existing-module updates, navigation or persistent
|
|
35
41
|
work-status changes. Major increases require an explicit user instruction.
|
|
@@ -6,6 +6,11 @@ description: Investigate or write within the current Context production director
|
|
|
6
6
|
Use only the current Route's stage and authorized materials. Explain decisions
|
|
7
7
|
in the user's conversation language.
|
|
8
8
|
|
|
9
|
+
When planning or revising article placement, titles or reading order, read
|
|
10
|
+
[reader organization guidance](../../resources/procedures/knowledge-updates.md#reader-tasks-names-and-reading-order).
|
|
11
|
+
Apply it to the affected topics within the user's scope; it adds no production
|
|
12
|
+
stage or permission gate.
|
|
13
|
+
|
|
9
14
|
For investigation, use the supplied directory and its submission schema. Start
|
|
10
15
|
with code skeletons and document outlines; selectively read original material
|
|
11
16
|
where needed to decide reader topics, source grouping and writing batches.
|