@c4a/context-cli 0.7.103 → 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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "protocol": "context.indexer.cli-release-manifest/v1",
3
3
  "package": "@c4a/context-cli",
4
- "version": "0.7.103",
4
+ "version": "0.7.104",
5
5
  "issuer": "context4ai/context",
6
6
  "bundles": [
7
7
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/context-cli",
3
- "version": "0.7.103",
3
+ "version": "0.7.104",
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.103",
28
- "@c4a/extract": "0.7.103",
29
- "@c4a/extract-contract": "0.7.103",
30
- "@c4a/extract-go": "0.7.103",
31
- "@c4a/extract-mdx": "0.7.103",
32
- "@c4a/extract-proto": "0.7.103",
33
- "@c4a/extract-rush": "0.7.103",
34
- "@c4a/extract-sql": "0.7.103",
35
- "@c4a/extract-style": "0.7.103",
36
- "@c4a/extract-thrift": "0.7.103",
37
- "@c4a/extract-ts": "0.7.103",
27
+ "@c4a/context": "0.7.104",
28
+ "@c4a/extract": "0.7.104",
29
+ "@c4a/extract-contract": "0.7.104",
30
+ "@c4a/extract-go": "0.7.104",
31
+ "@c4a/extract-mdx": "0.7.104",
32
+ "@c4a/extract-proto": "0.7.104",
33
+ "@c4a/extract-rush": "0.7.104",
34
+ "@c4a/extract-sql": "0.7.104",
35
+ "@c4a/extract-style": "0.7.104",
36
+ "@c4a/extract-thrift": "0.7.104",
37
+ "@c4a/extract-ts": "0.7.104",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "d3-force": "3.0.0",
@@ -20826,6 +20826,7 @@ var init_indexerApprovedKnowledge = __esm(() => {
20826
20826
  });
20827
20827
 
20828
20828
  // ../context/src/index.ts
20829
+ var DEFAULT_PACKAGE_RULE_LIMITS;
20829
20830
  var init_src = __esm(() => {
20830
20831
  init_siteTheme();
20831
20832
  init_packageSite();
@@ -20879,6 +20880,7 @@ var init_src = __esm(() => {
20879
20880
  init_indexerApprovedKnowledge();
20880
20881
  init_articleStructure();
20881
20882
  init_articleSourceLocatorInput();
20883
+ DEFAULT_PACKAGE_RULE_LIMITS = { fileKb: 16, totalKb: 64 };
20882
20884
  });
20883
20885
 
20884
20886
  // src/project/codeAnalysisInput.ts
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.103
1
+ 0.7.104
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
4
- "version": "0.7.103",
4
+ "version": "0.7.104",
5
5
  "author": {
6
6
  "name": "c4a"
7
7
  },
@@ -142,7 +142,7 @@ without the user's authorization.
142
142
 
143
143
  ### Check the CLI first
144
144
 
145
- This Skill ships with Context 0.7.103.
145
+ This Skill ships with Context 0.7.104.
146
146
 
147
147
  When entering production in a workspace, align the CLI, this Skill and the
148
148
  workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
@@ -265,7 +265,7 @@ Within an active Context workflow, requests include, but are not limited to:
265
265
  | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
266
266
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
267
267
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
268
- | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
268
+ | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
269
269
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
270
270
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
271
271
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.103",
3
+ "version": "0.7.104",
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.103",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.104",
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",
@@ -140,7 +140,7 @@ without the user's authorization.
140
140
 
141
141
  ### Check the CLI first
142
142
 
143
- This Skill ships with Context 0.7.103.
143
+ This Skill ships with Context 0.7.104.
144
144
 
145
145
  When entering production in a workspace, align the CLI, this Skill and the
146
146
  workspace SDK once per session with [version alignment](references/version-alignment.md):
@@ -263,7 +263,7 @@ Within an active Context workflow, requests include, but are not limited to:
263
263
  | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
264
264
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
265
265
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
266
- | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
266
+ | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
267
267
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
268
268
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
269
269
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.103",
4
+ "version": "0.7.104",
5
5
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
6
6
  "author": {
7
7
  "name": "Context4AI",
@@ -137,7 +137,7 @@ without the user's authorization.
137
137
 
138
138
  ### Check the CLI first
139
139
 
140
- This Skill ships with Context 0.7.103.
140
+ This Skill ships with Context 0.7.104.
141
141
 
142
142
  When entering production in a workspace, align the CLI, this Skill and the
143
143
  workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
@@ -260,7 +260,7 @@ Within an active Context workflow, requests include, but are not limited to:
260
260
  | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
261
261
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
262
262
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
263
- | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
263
+ | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
264
264
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
265
265
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
266
266
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -140,7 +140,7 @@ without the user's authorization.
140
140
 
141
141
  ### Check the CLI first
142
142
 
143
- This Skill ships with Context 0.7.103.
143
+ This Skill ships with Context 0.7.104.
144
144
 
145
145
  When entering production in a workspace, align the CLI, this Skill and the
146
146
  workspace SDK once per session with [version alignment](references/version-alignment.md):
@@ -263,7 +263,7 @@ Within an active Context workflow, requests include, but are not limited to:
263
263
  | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
264
264
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
265
265
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
266
- | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
266
+ | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
267
267
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
268
268
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
269
269
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.103"
5
+ "version": "0.7.104"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -198,7 +198,7 @@
198
198
  {
199
199
  "id": "context.sdk.package-outputs",
200
200
  "path": "resources/manuals/guides/package-outputs.md",
201
- "digest": "sha256:20e7be0fb7b40221df448f9b644b782fe417b3c41627d63d55f317cdeda47460"
201
+ "digest": "sha256:a5bfc6cf39669db4f6a8cf098d7b30762e7f2462ae4af119d7b9bb596d4a0e12"
202
202
  },
203
203
  {
204
204
  "id": "context.sdk.package-templates",
@@ -213,7 +213,7 @@
213
213
  {
214
214
  "id": "context.sdk.project-api",
215
215
  "path": "resources/manuals/reference/project-api.md",
216
- "digest": "sha256:e31e6bea442a31f753584a6a1461064b4416987e92ce00f041f3ae893817f40b"
216
+ "digest": "sha256:75a581301a7d620318b9093eae1bd520381e2239757e8470f80a930fcf6508d2"
217
217
  },
218
218
  {
219
219
  "id": "context.sdk.site-translation",
@@ -353,7 +353,7 @@
353
353
  {
354
354
  "id": "procedure.production-stage-files",
355
355
  "path": "resources/procedures/production-stage-files.md",
356
- "digest": "sha256:6e343725e1dd5bdb3e90420ca58a69b5b0548859bf7b260c214c44eaf3583d3c"
356
+ "digest": "sha256:e5839558b00b8c193c6ae4469234056bf686b4da4bf73f450eb3e8e7fcb4c96d"
357
357
  },
358
358
  {
359
359
  "id": "procedure.project-configuration",
@@ -598,7 +598,7 @@
598
598
  },
599
599
  {
600
600
  "path": "provider.yaml",
601
- "digest": "sha256:bdc581235de99a467c87e3102e09af943ddb21d7d684813c010cf98263812f33"
601
+ "digest": "sha256:9268f5aadf52206b37f47dc4be1c7cb1c241a9f7c8e0459de674dc45ebe384c4"
602
602
  },
603
603
  {
604
604
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -674,7 +674,7 @@
674
674
  },
675
675
  {
676
676
  "path": "resources/manuals/guides/package-outputs.md",
677
- "digest": "sha256:20e7be0fb7b40221df448f9b644b782fe417b3c41627d63d55f317cdeda47460"
677
+ "digest": "sha256:a5bfc6cf39669db4f6a8cf098d7b30762e7f2462ae4af119d7b9bb596d4a0e12"
678
678
  },
679
679
  {
680
680
  "path": "resources/manuals/guides/page-customization.md",
@@ -718,7 +718,7 @@
718
718
  },
719
719
  {
720
720
  "path": "resources/manuals/reference/project-api.md",
721
- "digest": "sha256:e31e6bea442a31f753584a6a1461064b4416987e92ce00f041f3ae893817f40b"
721
+ "digest": "sha256:75a581301a7d620318b9093eae1bd520381e2239757e8470f80a930fcf6508d2"
722
722
  },
723
723
  {
724
724
  "path": "resources/manuals/reference/template-variables.md",
@@ -774,7 +774,7 @@
774
774
  },
775
775
  {
776
776
  "path": "resources/procedures/production-stage-files.md",
777
- "digest": "sha256:6e343725e1dd5bdb3e90420ca58a69b5b0548859bf7b260c214c44eaf3583d3c"
777
+ "digest": "sha256:e5839558b00b8c193c6ae4469234056bf686b4da4bf73f450eb3e8e7fcb4c96d"
778
778
  },
779
779
  {
780
780
  "path": "resources/procedures/project-configuration.md",
@@ -921,5 +921,5 @@
921
921
  "indexer": [],
922
922
  "workspace": []
923
923
  },
924
- "digest": "sha256:fcc9c8e6d419dbdcce667cb3e31d3f20b0ba218cdc4cf54ce8bafcba878c5863"
924
+ "digest": "sha256:09b7b36bf5d35fa262bc77d4c050cad5a5d244ab77a53cc1e2703c7f652249ca"
925
925
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.103
3
+ version: 0.7.104
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -374,6 +374,42 @@ Current collection mapping:
374
374
  `rules/` may explain, operationalize, or constrain that knowledge; their
375
375
  placement does not create a relationship unless Context includes a typed edge.
376
376
 
377
+ ### Package rules
378
+
379
+ AI tools that install a package may copy `rules/` into their own rule folders,
380
+ and some load those files into every session. Keep `rules/` for short, binding
381
+ rules. Reference material, such as configuration dictionaries, enum tables or a
382
+ methodology, belongs in a reference collection (`product`, `architecture`), or
383
+ stays in `standards` and ships under `guides/` through the package declaration:
384
+
385
+ ```ts
386
+ kbPackage({
387
+ name: "team-kb",
388
+ template: "src/package-templates/kb",
389
+ rules: {
390
+ exclude: ["standards/config-keys.md", "standards/metrics/**"], // shipped under guides/standards/
391
+ alwaysApply: ["standards/red-lines.md"], // marked alwaysApply: true
392
+ limits: { fileKb: 16, totalKb: 64 }, // the defaults
393
+ },
394
+ })
395
+ ```
396
+
397
+ Paths are knowledge paths (`standards/…`, `test/…`); `*` and `**` are globs.
398
+ `alwaysApply` only adds that flag to the package copy; tools that honor it load
399
+ the rule in every session, and the others treat it like any rule. Directory
400
+ index pages in `rules/` are navigation, not rules.
401
+
402
+ `context build` never moves, drops or blocks rules because of their size or
403
+ content. When a rule file or the `rules/` total exceeds the limits, the package
404
+ summary carries a `rules` report: the files, their sizes and the instruction.
405
+ Then read the listed articles and decide with the user which are binding rules.
406
+ List the binding rules every session needs in `alwaysApply` and keep them short;
407
+ move reference material with `exclude`; raise `limits` when larger rules are
408
+ intended. Change `src/index.ts` only after the user agrees, then rebuild.
409
+
410
+ A workspace SDK older than the running CLI may not know `rules` and ignores it.
411
+ When the report includes `version_alignment`, upgrade the workspace SDK first.
412
+
377
413
  `index.md` is reserved for OKF bundle and directory indexes. Source documents
378
414
  may be named `index.md`, but generated concept pages must use a non-reserved
379
415
  name such as `index-page.md`; `context build` rejects copied knowledge that
@@ -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`,
@@ -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