@c4a/context-cli 0.7.102 → 0.7.104

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.
Files changed (32) hide show
  1. package/cli.js +885 -591
  2. package/indexers/contracts/profile-contract.json +245 -245
  3. package/indexers/release-manifest.json +1 -1
  4. package/package.json +12 -12
  5. package/parserEntryWorker.js +2 -0
  6. package/plugins/VERSION +1 -1
  7. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  8. package/plugins/claude/commands/context.md +9 -3
  9. package/plugins/claude/resources/context/routine-update.md +2 -1
  10. package/plugins/claude/resources/context/version-alignment.md +9 -4
  11. package/plugins/claude/skills/context-plan/references/knowledge-migration.md +1 -1
  12. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  13. package/plugins/codex/skills/context/SKILL.md +9 -3
  14. package/plugins/codex/skills/context/references/routine-update.md +2 -1
  15. package/plugins/codex/skills/context/references/version-alignment.md +9 -4
  16. package/plugins/codex/skills/context-plan/references/knowledge-migration.md +1 -1
  17. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  18. package/plugins/cursor/commands/c4a-context.md +9 -3
  19. package/plugins/cursor/resources/context/routine-update.md +2 -1
  20. package/plugins/cursor/resources/context/version-alignment.md +9 -4
  21. package/plugins/cursor/skills/context-plan/references/knowledge-migration.md +1 -1
  22. package/plugins/skills/context/SKILL.md +9 -3
  23. package/plugins/skills/context/references/routine-update.md +2 -1
  24. package/plugins/skills/context/references/version-alignment.md +9 -4
  25. package/plugins/skills/context-plan/references/knowledge-migration.md +1 -1
  26. package/providers/context/manifest.json +13 -13
  27. package/providers/context/provider.yaml +1 -1
  28. package/providers/context/resources/manuals/guides/package-outputs.md +36 -0
  29. package/providers/context/resources/manuals/guides/page-customization.md +16 -3
  30. package/providers/context/resources/manuals/reference/project-api.md +11 -1
  31. package/providers/context/resources/procedures/document-capture.md +11 -5
  32. package/providers/context/resources/procedures/production-stage-files.md +4 -0
@@ -85,15 +85,28 @@ import SupportPanel from '../components/SupportPanel.vue'
85
85
 
86
86
  Place it using the existing knowledge-map entry structure, with
87
87
  `target: { artifact_ref: "site:support" }`. Set `parent`, `title` and `order`
88
- as for other directory entries; do not create a second menu configuration.
88
+ as for other directory entries, and change the map with `context task adjust`
89
+ (never by editing `src/knowledge-map.yaml` or its revision); do not create a
90
+ second menu configuration such as `site.nav` entries for these pages.
89
91
  The `site:` namespace is reserved for website pages; do not use `section_key`
90
92
  on these targets. Undeclared targets fail website building with a diagnostic.
91
93
  Pages without directory entries remain directly accessible. Multiple entries
92
94
  can reference one page without duplicating content.
93
95
 
94
96
  These pages are website-only: they are not approved articles and do not enter
95
- the knowledge package or LLM Docs. Update formal articles through the existing
96
- knowledge revision workflow, not through a custom page that shadows their URLs.
97
+ the knowledge package or LLM Docs. Use them for presentation, such as a support
98
+ page, an introduction or an entry to a tool. Knowledge content belongs in
99
+ articles: material from another team, such as a released knowledge package or a
100
+ wiki, is registered as a versioned `file` source and produced (or kept as
101
+ written) through the workflow, not copied into custom pages by a script. Update
102
+ formal articles through the existing knowledge revision workflow, not through a
103
+ custom page that shadows their URLs.
104
+
105
+ The website build checks the internal links and anchors in custom pages and
106
+ fails, listing them, when one has no target. A link to a heading uses the
107
+ website's heading ID: lower case, spaces and punctuation such as `.` or `_`
108
+ become `-`, and an ID starting with a digit gets a leading `_` (`3V架构` becomes
109
+ `_3v架构`).
97
110
 
98
111
  ## Build and delivery
99
112
 
@@ -186,6 +186,14 @@ llmsPackage({
186
186
  Package selection reads approved `knowledge/` only. `dist/` is generated and
187
187
  may be rebuilt; it is not an authoring source.
188
188
 
189
+ `kbPackage.rules` decides which approved rule articles (`standards`, `test`) ship
190
+ under `rules/`: `exclude` ships matching articles under `guides/` instead,
191
+ `alwaysApply` marks matching rules `alwaysApply: true`, and `limits`
192
+ (`fileKb`, `totalKb`, default 16 and 64) set the size above which the build
193
+ reports a `rules` warning. Patterns are knowledge paths with `*`/`**` globs. The
194
+ build only warns, and older workspace SDKs ignore `rules`; see
195
+ [Package Outputs](../guides/package-outputs.md#package-rules).
196
+
189
197
  `kbPackage.site` optionally adds a VitePress website at `dist/<base>-site/` in
190
198
  the same build, beside the KB directory. `<base>` removes one trailing `-kb`
191
199
  from the package name, if present. Omit it for KB-only output. It accepts `title`, `description`,
@@ -199,7 +207,9 @@ accepts `title`, `slogan`, `description`, hero `actions`, and `resources` shown
199
207
  below the generated site map. Each resource needs an `href`, a copyable
200
208
  `command`, or both. Omit unknown resources; the builder never invents service
201
209
  or repository links. Knowledge map is projected from
202
- `src/knowledge-map.yaml` independently of KB directories; see
210
+ `src/knowledge-map.yaml` independently of KB directories; change it with
211
+ `context task adjust` (the file carries a revision the CLI computes; never edit
212
+ it by hand); see
203
213
  [Package Outputs](../guides/package-outputs.md#optional-static-documentation-website).
204
214
 
205
215
  `site.extensions` optionally names a trusted `src/site` root, homepage, footer,
@@ -99,11 +99,17 @@ If `docs +fetch` lacks the required `--doc-format`
99
99
  capability, follow the returned `lark-cli update` recovery and rerun the same
100
100
  Route command; do not replace the capture with a hand-written export.
101
101
 
102
- An active production stage can continue planning and writing articles whose sources
103
- are available while another capture remains pending. Keep unresolved sources in
104
- `pending_scopes`; do not cite their unavailable snapshots. The Route returns to
105
- pending capture after the active production/review work, before delivery completes.
106
- This does not mark failed captures as complete or waive source-read authorization.
102
+ Production waits only for its own documents. When a stage exists, capture is
103
+ gated on the sources it requested; other registered documents still waiting for
104
+ capture are listed in status as `deferredCaptureSources` and do not block its
105
+ planning, writing, Review or delivery. Before a stage exists, the capture Gate
106
+ also returns the exact `context action prepare-current --revision … --source …`
107
+ command for requirements whose documents are all captured: run it to start that
108
+ request now, or capture first. Report the deferred documents to the user; they
109
+ stay registered and are captured when their read permission is given. A stage
110
+ whose own sources are still waiting keeps them in `pending_scopes`; do not cite
111
+ unavailable snapshots. This does not mark failed captures as complete or waive
112
+ source-read authorization.
107
113
 
108
114
  ## Image acquisition before capture
109
115
 
@@ -25,6 +25,10 @@ an explicit gap. For a required repository, read the
25
25
  name, not every repository. Never claim missing material was checked.
26
26
 
27
27
  Plan article paths are relative to `knowledge/`, for example `business/example.md`.
28
+ The first folder is the collection. Use `standards/` and `test/` for short binding
29
+ rules and acceptance checks: packages ship them under `rules/`, which AI tools may
30
+ load into every session. Put reference material such as configuration
31
+ dictionaries, enum tables or a methodology in `product/` or `architecture/`.
28
32
  `indexer_usage.scopes` contains stage source refs, not collection names. Declare
29
33
  selected skills through the plan; no separate Indexer registration is required.
30
34