@c4a/context-cli 0.7.92 → 0.7.93
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 +11 -3
- package/README.zh-CN.md +4 -2
- package/cli.js +19410 -18448
- package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +1 -1
- package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +1 -1
- package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +1 -1
- package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +1 -1
- package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +1 -1
- package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +1 -1
- package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +1 -1
- package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +1 -1
- package/indexers/bundles/context-code-indexer/references/indexer.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +1 -1
- package/indexers/bundles/context-markdown-indexer/references/indexer.md +1 -1
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +14 -14
- package/package.json +12 -12
- package/parserEntryWorker.js +1 -1
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +31 -10
- package/plugins/claude/resources/context/routine-update.md +125 -0
- package/plugins/claude/resources/context/version-alignment.md +54 -0
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +31 -10
- package/plugins/codex/skills/context/references/routine-update.md +125 -0
- package/plugins/codex/skills/context/references/version-alignment.md +54 -0
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +31 -10
- package/plugins/cursor/resources/context/routine-update.md +125 -0
- package/plugins/cursor/resources/context/version-alignment.md +54 -0
- package/plugins/skills/context/SKILL.md +31 -10
- package/plugins/skills/context/references/routine-update.md +125 -0
- package/plugins/skills/context/references/version-alignment.md +54 -0
- package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +1 -1
- package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +1 -1
- package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +1 -1
- package/plugins/skills/context-code-indexer/references/composers/event-flow.md +1 -1
- package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +1 -1
- package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +1 -1
- package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +1 -1
- package/plugins/skills/context-code-indexer/references/composers/public-contract.md +1 -1
- package/plugins/skills/context-code-indexer/references/indexer.md +1 -1
- package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +1 -1
- package/plugins/skills/context-markdown-indexer/references/indexer.md +1 -1
- package/providers/context/manifest.json +22 -22
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/code-indexer-skill-authoring.md +1 -1
- package/providers/context/resources/manuals/guides/knowledge-updates.md +19 -6
- package/providers/context/resources/manuals/guides/markdown-indexer-skill-authoring.md +1 -1
- package/providers/context/resources/manuals/reference/package-templates.md +1 -1
- package/providers/context/resources/procedures/approved-revision.md +19 -4
- package/providers/context/resources/procedures/knowledge-maintenance.md +16 -0
- package/providers/context/resources/procedures/knowledge-review.md +17 -6
- package/providers/context/resources/procedures/knowledge-updates.md +19 -6
- package/providers/context/resources/procedures/production-stage-files.md +2 -2
- package/providers/context/resources/procedures/source-update.md +4 -2
- package/providers/context/skills/run-indexer-agent-step/SKILL.md +3 -1
- package/providers/context/skills/translate-site-locales/SKILL.md +3 -1
|
@@ -26,12 +26,16 @@ Review.
|
|
|
26
26
|
|
|
27
27
|
Without explicit session-managed authority, open the report returned by the
|
|
28
28
|
Route and request confirmation or revision notes through the host user-question
|
|
29
|
-
tool.
|
|
29
|
+
tool. When the CLI cannot open it (for example without a graphical
|
|
30
|
+
session), follow `open_next`: open the same report path the same way after each
|
|
31
|
+
regeneration, so the reader's READ marks carry over to unchanged pages. Follow the selected knowledge-review dialogue to distinguish feedback,
|
|
30
32
|
approval and approval-after-repair. Keep the exact report reference, presented
|
|
31
33
|
scope and user intent in this conversation. The HTML contains reading progress
|
|
32
34
|
and plain revision notes, not approval authority. Normal explicit confirmation
|
|
33
35
|
uses the Route's revision-bound resolution Action and the report's scope snapshot.
|
|
34
|
-
No review code or special approval phrase is required.
|
|
36
|
+
No review code or special approval phrase is required. When the report's
|
|
37
|
+
`navigation.changes` is not empty, name those menu changes (added, removed,
|
|
38
|
+
renamed, pointing elsewhere) in the confirmation request.
|
|
35
39
|
|
|
36
40
|
For old automation, `review approve-all --force` remains a deprecated explicit
|
|
37
41
|
approval alias and applies the current candidate scope without requiring a new
|
|
@@ -63,9 +67,11 @@ Do not persist a duplicate review-report ledger in the workspace.
|
|
|
63
67
|
For restructuring, compare replacement content with the affected approved pages:
|
|
64
68
|
useful conditions, steps and explanations must have a destination before removal.
|
|
65
69
|
Review omission rejects a candidate; it does not retire an approved article.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
A retirement scheduled in the current batch appears in this report as planned:
|
|
71
|
+
the retired pages, navigation changes, and drafts that still link to them. Revise
|
|
72
|
+
those drafts before requesting approval; approval cannot apply while they remain.
|
|
73
|
+
Outside a batch, retirement stays a standalone action that does not enter this
|
|
74
|
+
report; use its explicit preview and repair its reported incoming references. Navigation removal alone does not remove content
|
|
69
75
|
from search or packages. A renamed menu does not require a new article identity.
|
|
70
76
|
|
|
71
77
|
Before requesting human review, follow the report's navigation diagnostics.
|
|
@@ -103,7 +109,12 @@ the correction instruction. Current candidates are repaired within this batch;
|
|
|
103
109
|
`--regenerate` schedules program regeneration for approved pages. If supplied
|
|
104
110
|
for a current candidate, follow the CLI's returned repair command instead.
|
|
105
111
|
After the repair, read the new Route and review the changed material before
|
|
106
|
-
approving the batch.
|
|
112
|
+
approving the batch. Requests for other pages made before approval join this
|
|
113
|
+
batch; after approval they queue for the next one. Between approval and the end
|
|
114
|
+
of delivery, a mechanical correction caused by this batch (a link, anchor, menu
|
|
115
|
+
label or formatting) may be applied without another Review; record it with
|
|
116
|
+
`context task record-fix --input <{path, reason}> --format json` and report it
|
|
117
|
+
with the batch result. A content change waits for the next batch.
|
|
107
118
|
|
|
108
119
|
For a repaired generated table, inspect the new Candidate's affected rows, not
|
|
109
120
|
only its Repair ID or accepted Author/Composer outcome. Check the reported error
|
|
@@ -344,7 +344,7 @@ changing structure, adding a page or when a section has no unambiguous ID.
|
|
|
344
344
|
To change a fragment's citations, include `references` alongside its `section_id`:
|
|
345
345
|
each entry supplies `source_ref` and `locator` (`path`, `start_line`, `end_line`).
|
|
346
346
|
Context computes the region fingerprint. This uses the same revision submission,
|
|
347
|
-
with at most
|
|
347
|
+
with at most five source files and eight regions per fragment. Full Markdown may include a
|
|
348
348
|
`sections` list of reference edits; local section edits may change content,
|
|
349
349
|
references, or both. Omission preserves citations; an empty list removes them.
|
|
350
350
|
|
|
@@ -663,8 +663,17 @@ page-level incoming Markdown links to explicit replacements, and rebinds page
|
|
|
663
663
|
navigation or removes retired navigation targets while retaining groups.
|
|
664
664
|
Repair fragment links explicitly first: the CLI cannot infer where a split moved
|
|
665
665
|
a paragraph. Without a replacement, repair incoming links before applying.
|
|
666
|
-
|
|
667
|
-
|
|
666
|
+
While a revision batch is active and not yet approved, the same command schedules
|
|
667
|
+
the retirement in that batch instead. Its preview lists the follow-up by the entry
|
|
668
|
+
that handles it: pages whose links to the retired page need updating (they join
|
|
669
|
+
the batch), navigation entries that will point to the replacement and keep their
|
|
670
|
+
label or be removed (adjust labels with `context task adjust` if needed), and
|
|
671
|
+
translations that become orphaned (the translation step removes them). The
|
|
672
|
+
retired page's own unfinished draft is dropped; the replacement may be a page new
|
|
673
|
+
in this batch. Nothing is deleted until the batch's final Review apply, which
|
|
674
|
+
computes the retirement on the final drafts in the same write as the approved
|
|
675
|
+
pages. Once a batch is approved, finish its delivery first; unfinished production
|
|
676
|
+
targeting a selected page must be finished or amended rather than discarded.
|
|
668
677
|
|
|
669
678
|
Follow status and the normal close/version/build flow before delivery. Sources
|
|
670
679
|
and shared assets are not deleted. The response provides a temporary restore
|
|
@@ -688,7 +697,11 @@ approved-page revision or source-update queue. Keep `scopes` and `instruction`
|
|
|
688
697
|
explicit. First call without `refresh`; it authorizes replacing only those
|
|
689
698
|
inputs and blocks page completion while acquisition is pending. Import the
|
|
690
699
|
selected new material, then repeat with `refresh: true` to bind the actual local
|
|
691
|
-
versions and obtain the new Route.
|
|
700
|
+
versions and obtain the new Route. When every selected source is newly added to
|
|
701
|
+
the task and its material is already local (an imported document, or a repository
|
|
702
|
+
at the commit the delivered knowledge already uses), the first call completes the
|
|
703
|
+
adjustment and returns `adjusted` with `acquisition: already-available`; do not
|
|
704
|
+
repeat it. Do not submit the old revision. Current
|
|
692
705
|
prose and queued pages remain; an affected draft returns to writing/review.
|
|
693
706
|
An unrelated queued page does not revoke an unchanged current page's review.
|
|
694
707
|
If a page has already been applied, finish its close/build before changing its
|
|
@@ -717,7 +730,7 @@ Revision section edits may supply `references` as `source_ref` plus a
|
|
|
717
730
|
`locator` containing `path`, `start_line`, and `end_line`. Context computes the
|
|
718
731
|
regional digest. Omitted references preserve the current fragment's citations;
|
|
719
732
|
an explicit empty list removes them, and deleting a fragment removes its
|
|
720
|
-
citations. Each fragment may cite at most
|
|
733
|
+
citations. Each fragment may cite at most five source files and eight regions. Register and
|
|
721
734
|
authorize new material before citing it, then follow normal Review, close and
|
|
722
735
|
build. Article links alone do not authorize reading new sources or prove a claim.
|
|
723
736
|
|
|
@@ -731,5 +744,5 @@ same-level or higher-level heading. A quote is an exact, unique, nonempty
|
|
|
731
744
|
substring (line endings are normalized). Ambiguous matches return candidate
|
|
732
745
|
line ranges. Both forms resolve against authorized captured text before hashing;
|
|
733
746
|
stored references still contain only `path`, `start_line` and `end_line`.
|
|
734
|
-
The per-fragment limits (
|
|
747
|
+
The per-fragment limits (five source files, eight regions) apply after
|
|
735
748
|
resolving and deduplicating positions.
|
|
@@ -69,7 +69,7 @@ Markdown has reader-facing title and description frontmatter, followed by the
|
|
|
69
69
|
complete article with stable `context:section` markers. References contain
|
|
70
70
|
`sections`, each with its matching `id` and `references` list. A reference is
|
|
71
71
|
`source_ref` plus `locator: {path, start_line, end_line}` from actual authorized
|
|
72
|
-
text. CLI computes source digests. A fragment may cite at most
|
|
72
|
+
text. CLI computes source digests. A fragment may cite at most five distinct
|
|
73
73
|
source files and eight regions; an article may have multiple fragments.
|
|
74
74
|
|
|
75
75
|
When prose names a file, directory or Skill from a cited repository, write its
|
|
@@ -115,5 +115,5 @@ same-level or higher-level heading. A quote is an exact, unique, nonempty
|
|
|
115
115
|
substring (line endings are normalized). Ambiguous matches return candidate
|
|
116
116
|
line ranges. Both forms resolve against authorized captured text before hashing;
|
|
117
117
|
stored references still contain only `path`, `start_line` and `end_line`.
|
|
118
|
-
The per-fragment limits (
|
|
118
|
+
The per-fragment limits (five source files, eight regions) apply after
|
|
119
119
|
resolving and deduplicating positions.
|
|
@@ -27,8 +27,10 @@ still check the change for additions before submitting the scope decision.
|
|
|
27
27
|
Those pages are listed in `scope_pages`: they need no decision, but include one
|
|
28
28
|
with an `instruction` when an addition or shared change affects it.
|
|
29
29
|
|
|
30
|
-
Follow each changed reference's `evidence_ref` into
|
|
31
|
-
|
|
30
|
+
Follow each changed reference's `evidence_ref` into the JSON array in
|
|
31
|
+
`reference_evidence_file` (`reference_evidence_count` entries) for
|
|
32
|
+
digest-verified historical text and the current excerpt. Read only the entries
|
|
33
|
+
for references you are deciding; the Route does not repeat them inline. Missing history is
|
|
32
34
|
explicitly marked unavailable. The current excerpt is from the old position
|
|
33
35
|
or nearby lines, not a claimed replacement; only a `format_only_proposals`
|
|
34
36
|
entry supplies a mapped replacement for your decision.
|
|
@@ -48,7 +48,9 @@ while route.node == initial_node and no_new_read_or_confirmation_gate(route):
|
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Use preview only when someone will read the assembled Markdown before deciding
|
|
51
|
-
to submit; unattended loops submit directly.
|
|
51
|
+
to submit; unattended loops submit directly. A prepared multi-page batch is the
|
|
52
|
+
exception: preview the whole batch once before submitting it, since that one
|
|
53
|
+
call checks every page without saving drafts or task state. On failure, follow the returned
|
|
52
54
|
submission state and recovery action: correct uncommitted input, continue after
|
|
53
55
|
committed work, or recover an uncertain transaction before deciding to retry.
|
|
54
56
|
|
|
@@ -3,7 +3,9 @@ name: translate-site-locales
|
|
|
3
3
|
description: Translate approved knowledge for the website locales declared in site.locales when the workspace Route selects this action.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Run `context translate prepare --format json`.
|
|
6
|
+
Run `context translate prepare --format json`. When nothing needs translating
|
|
7
|
+
and only translations of removed pages remain, it deletes them and returns
|
|
8
|
+
`outcome: orphans-removed`; continue with the returned Route. Otherwise the task lists every article and
|
|
7
9
|
knowledge map title that is missing or stale for each declared locale, with the
|
|
8
10
|
`expected_digest` to submit. Approved knowledge in the primary language remains
|
|
9
11
|
the only source of truth; translations never change it.
|