@c4a/context-cli 0.7.37 → 0.7.38

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.37",
4
+ "version": "0.7.38",
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.37",
3
+ "version": "0.7.38",
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.37",
28
- "@c4a/extract": "0.7.37",
29
- "@c4a/extract-contract": "0.7.37",
30
- "@c4a/extract-go": "0.7.37",
31
- "@c4a/extract-mdx": "0.7.37",
32
- "@c4a/extract-proto": "0.7.37",
33
- "@c4a/extract-rush": "0.7.37",
34
- "@c4a/extract-sql": "0.7.37",
35
- "@c4a/extract-style": "0.7.37",
36
- "@c4a/extract-thrift": "0.7.37",
37
- "@c4a/extract-ts": "0.7.37",
27
+ "@c4a/context": "0.7.38",
28
+ "@c4a/extract": "0.7.38",
29
+ "@c4a/extract-contract": "0.7.38",
30
+ "@c4a/extract-go": "0.7.38",
31
+ "@c4a/extract-mdx": "0.7.38",
32
+ "@c4a/extract-proto": "0.7.38",
33
+ "@c4a/extract-rush": "0.7.38",
34
+ "@c4a/extract-sql": "0.7.38",
35
+ "@c4a/extract-style": "0.7.38",
36
+ "@c4a/extract-thrift": "0.7.38",
37
+ "@c4a/extract-ts": "0.7.38",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "fast-xml-parser": "^5.10.1",
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.37
1
+ 0.7.38
@@ -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.37",
4
+ "version": "0.7.38",
5
5
  "author": {
6
6
  "name": "c4a"
7
7
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.37",
3
+ "version": "0.7.38",
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.37",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.38",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.37",
4
+ "version": "0.7.38",
5
5
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
6
6
  "author": {
7
7
  "name": "Context4AI",
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.37"
5
+ "version": "0.7.38"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -333,12 +333,12 @@
333
333
  {
334
334
  "id": "procedure.production-requirements",
335
335
  "path": "resources/procedures/production-requirements.md",
336
- "digest": "sha256:d881da8d538efdcef18b7a876f595f0b0098bbac5ea1fd3148e476f63a435dfb"
336
+ "digest": "sha256:af042f16b3cdbb33db48f4ab318293a96e23eeb10b82686bc54ec7d0372afbbd"
337
337
  },
338
338
  {
339
339
  "id": "procedure.production-stage-files",
340
340
  "path": "resources/procedures/production-stage-files.md",
341
- "digest": "sha256:d093acf81a07b85cfe2a78e71f7ab301fa8c72e3edac3f5de990b1ff7eaf12f0"
341
+ "digest": "sha256:7c9264c45631751754e4abdee15db7ca2930859a718fd70459dfd101372df030"
342
342
  },
343
343
  {
344
344
  "id": "procedure.project-configuration",
@@ -388,7 +388,7 @@
388
388
  {
389
389
  "id": "procedure.work-start-report",
390
390
  "path": "resources/procedures/work-start-report.md",
391
- "digest": "sha256:1d1bbd3ecc0cb6baf5bd07e51ce3837094741b815ae935129f70363c37257ad8"
391
+ "digest": "sha256:1c97fc5ceb75c0debc9d042f957e7647d6a4eb270bc1d9670693aae4627f67f4"
392
392
  },
393
393
  {
394
394
  "id": "procedure.workspace-commit",
@@ -575,7 +575,7 @@
575
575
  },
576
576
  {
577
577
  "path": "provider.yaml",
578
- "digest": "sha256:8a74deb769bb16186805bdf9e56b7eb7eca8e921a637337643f1ecc447a69d28"
578
+ "digest": "sha256:46010f2f23a011544cf4c7ef38df0743e44a6d6111b88b6c25d6528de3c71784"
579
579
  },
580
580
  {
581
581
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -735,11 +735,11 @@
735
735
  },
736
736
  {
737
737
  "path": "resources/procedures/production-requirements.md",
738
- "digest": "sha256:d881da8d538efdcef18b7a876f595f0b0098bbac5ea1fd3148e476f63a435dfb"
738
+ "digest": "sha256:af042f16b3cdbb33db48f4ab318293a96e23eeb10b82686bc54ec7d0372afbbd"
739
739
  },
740
740
  {
741
741
  "path": "resources/procedures/production-stage-files.md",
742
- "digest": "sha256:d093acf81a07b85cfe2a78e71f7ab301fa8c72e3edac3f5de990b1ff7eaf12f0"
742
+ "digest": "sha256:7c9264c45631751754e4abdee15db7ca2930859a718fd70459dfd101372df030"
743
743
  },
744
744
  {
745
745
  "path": "resources/procedures/project-configuration.md",
@@ -779,7 +779,7 @@
779
779
  },
780
780
  {
781
781
  "path": "resources/procedures/work-start-report.md",
782
- "digest": "sha256:1d1bbd3ecc0cb6baf5bd07e51ce3837094741b815ae935129f70363c37257ad8"
782
+ "digest": "sha256:1c97fc5ceb75c0debc9d042f957e7647d6a4eb270bc1d9670693aae4627f67f4"
783
783
  },
784
784
  {
785
785
  "path": "resources/procedures/workspace-commit.md",
@@ -882,5 +882,5 @@
882
882
  "indexer": [],
883
883
  "workspace": []
884
884
  },
885
- "digest": "sha256:bda37ec8c50797ca3c5eb3ceab11095cd51bb1f591a80eb4dcb3957a1447a9cf"
885
+ "digest": "sha256:a684dded0a4a109355d8c6615b40ff0d55cdd82ed2ee3781bccfc063632c3619"
886
886
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.37
3
+ version: 0.7.38
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -52,6 +52,9 @@ writing batches are declared in the temporary investigation plan.
52
52
 
53
53
  After editing, run `context status --format json` and consume its current Route.
54
54
 
55
+ Read `context action prepare-current --schema --format json` for the complete
56
+ known-task input contract before creating a stage; no workspace or revision is required.
57
+
55
58
  When article targets and source grouping are already clear, put the existing
56
59
  plan fields (`capabilities`, `articles`, optional `indexer_usage`) in a file under
57
60
  `.tmp/agent-work/`, omitting only `stage`, which does not exist yet. Each article
@@ -60,27 +63,17 @@ contains `path`, `question`, `sources` and `batch`, with optional `brief` and
60
63
  command to prepare those tasks without a separate investigation-plan submission.
61
64
  This does not approve the report or permit writing before its applicable scope
62
65
  decision.
63
- When targets are unclear, use normal preparation and investigate the skeletons.
64
-
65
- ## Configured coverage and the current request
66
-
67
- `src/indexers.yaml` describes the workspace's standing coverage configuration.
68
- Source registration or presence in that configuration does not, by itself, mean
69
- that the source needs investigation again for this request. For a bounded document
70
- addition or revision, identify its reader task and actual evidence dependencies;
71
- reuse existing approved articles and applicable completed work. Do not broaden a
72
- document task to unrelated code repositories merely because they are configured.
73
-
74
- In planning and completion reports distinguish:
75
- - work requested and completed in this task;
76
- - specific content gaps established by reading, with their affected reader tasks;
77
- - source/environment failures, and whether this task depends on those sources.
66
+ When targets are unclear, repeat `--source <source-ref>` on the preparation command
67
+ for the sources selected by this request. Without a selection, only a sole
68
+ configured target is inferred; multiple targets require the Agent to select
69
+ from the user's request, not to ask the user to understand CLI source IDs.
70
+ The CLI prepares only this scope. A source in `evidence_source_scope` remains
71
+ available without becoming an investigation assignment. A later article plan
72
+ can select it in `articles[].sources`; the CLI validates and prepares that
73
+ actual dependency before allowing writing. Missing required evidence still
74
+ blocks the dependent article.
78
75
 
79
- A `pending_scopes` count is workflow state, not a count of missing topics,
80
- repositories to rewrite, or articles to produce. A Git spawn/baseline-read error
81
- means source availability could not be checked; it does not prove that existing
82
- knowledge is absent or obsolete. If unrelated configured sources remain blocked,
83
- say so as a workflow limitation rather than announcing new investigation work.
84
- Do not delete configured sources, invent exclusions, clear stage files, or mark
85
- unread material investigated to make the current task appear complete. Follow the
86
- returned resolution action when the workflow still needs a decision.
76
+ Long-term configuration additions do not restart an unchanged stage. Plans and
77
+ refreshes track this request's selected investigation and actual article inputs.
78
+ Preserve genuinely unfinished work when extending a multi-stage request; do not
79
+ turn an incremental addition into a whole-workspace refresh.
@@ -11,7 +11,9 @@ 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
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
14
+ for article names, placement and manually arranged navigation.
15
+ Use `context task adjust --inspect --format json` to obtain current categories,
16
+ reading order and the exact revision before preparing a navigation adjustment. Check the draft's
15
17
  main reader task against its planned title and group; adjust through the existing
16
18
  plan, revision or knowledge-map flow when needed. A navigation change alone does
17
19
  not call for rewriting valid prose.
@@ -57,7 +59,7 @@ current task does not mean other authorized work is finished. New source or purp
57
59
  authorization still follows the current Route.
58
60
 
59
61
  Write results under the returned Agent directory. All submission paths are
60
- relative to that stage directory, even when the manifest is in `submissions/`.
62
+ relative to `.tmp/agent-work/production-stages/<stage>/`, even when the manifest is in `submissions/`. They are never relative to `.tmp/context-runtime/` or to the manifest location. Each task lists the complete workspace-relative Markdown and reference output paths.
61
63
  Copy the CLI's submission template, keep completed tasks only, and keep each
62
64
  task's prefilled `input`. Submit the manifest using the returned command.
63
65
  Do not edit submitted files until the command returns.
@@ -184,32 +184,20 @@ a top-level navigation change already required by this procedure.
184
184
 
185
185
  ## Configured coverage and the current request
186
186
 
187
- `src/indexers.yaml` describes the workspace's standing coverage configuration.
188
- Source registration or presence in that configuration does not, by itself, mean
189
- that the source needs investigation again for this request. For a bounded document
190
- addition or revision, identify its reader task and actual evidence dependencies;
191
- reuse existing approved articles and applicable completed work. Do not broaden a
192
- document task to unrelated code repositories merely because they are configured.
193
-
194
- In planning and completion reports distinguish:
195
- - work requested and completed in this task;
196
- - specific content gaps established by reading, with their affected reader tasks;
197
- - source/environment failures, and whether this task depends on those sources.
198
-
199
- A `pending_scopes` count is workflow state, not a count of missing topics,
200
- repositories to rewrite, or articles to produce. A Git spawn/baseline-read error
201
- means source availability could not be checked; it does not prove that existing
202
- knowledge is absent or obsolete. If unrelated configured sources remain blocked,
203
- say so as a workflow limitation rather than announcing new investigation work.
204
- Do not delete configured sources, invent exclusions, clear stage files, or mark
205
- unread material investigated to make the current task appear complete. Follow the
206
- returned resolution action when the workflow still needs a decision.
207
-
208
- For a bounded addition inside an existing production stage, completed articles can
209
- enter Review with `context run --deliver --format json`. This retains pending
210
- configured scopes and unfinished tasks; it does not authorize approval or publish.
211
- Use this existing delivery path when remaining source failures are unrelated to
212
- the requested articles. If the selected articles need the missing repository, use
213
- `context source recovery-plan` and `context source restore` with an explicit local
214
- checkout or clone decision. Do not ask users to investigate unrelated repositories
215
- just to deliver saved notes, and do not clear gaps to imitate task completion.
187
+ Long-term source configuration is the authorized reading boundary, not the work
188
+ requested in every conversation. Prepare this request's selected investigation
189
+ sources or known article tasks. Keep unused supporting material available for
190
+ later article plans without treating it as unfinished work. For an addition to
191
+ an existing article, prefer the existing article-revision workflow with the
192
+ selected supporting sources rather than starting unrelated production.
193
+
194
+ Report this request's planned and completed work. Restore missing sources that
195
+ its investigation or articles actually require. Reference material not selected
196
+ for this work does not need restoration just to complete an independent note.
197
+ Never infer missing knowledge merely from unavailable source-code checkouts.
198
+
199
+ For an explicitly requested partial delivery, `context run --deliver --format json`
200
+ reviews completed articles while retaining genuine remaining tasks and selected
201
+ investigation. It does not approve or publish articles, and is unnecessary for
202
+ an otherwise completed bounded request. Do not clear unfinished work to force
203
+ completion; ordinary source authorization and citation checks still apply.