@c4a/context-cli 0.7.107 → 0.7.109
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 +1122 -880
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +1 -1
- package/plugins/claude/resources/context/routine-update.md +14 -5
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +1 -1
- package/plugins/codex/skills/context/references/routine-update.md +14 -5
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +1 -1
- package/plugins/cursor/resources/context/routine-update.md +14 -5
- package/plugins/skills/context/SKILL.md +1 -1
- package/plugins/skills/context/references/routine-update.md +14 -5
- package/providers/context/manifest.json +8 -8
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/knowledge-updates.md +24 -2
- package/providers/context/resources/procedures/knowledge-review.md +7 -1
- package/providers/context/resources/procedures/knowledge-updates.md +24 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.109",
|
|
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.
|
|
28
|
-
"@c4a/extract": "0.7.
|
|
29
|
-
"@c4a/extract-contract": "0.7.
|
|
30
|
-
"@c4a/extract-go": "0.7.
|
|
31
|
-
"@c4a/extract-mdx": "0.7.
|
|
32
|
-
"@c4a/extract-proto": "0.7.
|
|
33
|
-
"@c4a/extract-rush": "0.7.
|
|
34
|
-
"@c4a/extract-sql": "0.7.
|
|
35
|
-
"@c4a/extract-style": "0.7.
|
|
36
|
-
"@c4a/extract-thrift": "0.7.
|
|
37
|
-
"@c4a/extract-ts": "0.7.
|
|
27
|
+
"@c4a/context": "0.7.109",
|
|
28
|
+
"@c4a/extract": "0.7.109",
|
|
29
|
+
"@c4a/extract-contract": "0.7.109",
|
|
30
|
+
"@c4a/extract-go": "0.7.109",
|
|
31
|
+
"@c4a/extract-mdx": "0.7.109",
|
|
32
|
+
"@c4a/extract-proto": "0.7.109",
|
|
33
|
+
"@c4a/extract-rush": "0.7.109",
|
|
34
|
+
"@c4a/extract-sql": "0.7.109",
|
|
35
|
+
"@c4a/extract-style": "0.7.109",
|
|
36
|
+
"@c4a/extract-thrift": "0.7.109",
|
|
37
|
+
"@c4a/extract-ts": "0.7.109",
|
|
38
38
|
"@mermaid-js/layout-elk": "0.2.0",
|
|
39
39
|
"commander": "^11.0.0",
|
|
40
40
|
"d3-force": "3.0.0",
|
package/plugins/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.109
|
|
@@ -144,7 +144,7 @@ without the user's authorization.
|
|
|
144
144
|
|
|
145
145
|
### Check the CLI first
|
|
146
146
|
|
|
147
|
-
This Skill ships with Context 0.7.
|
|
147
|
+
This Skill ships with Context 0.7.109.
|
|
148
148
|
|
|
149
149
|
When entering production in a workspace, align the CLI, this Skill and the
|
|
150
150
|
workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
|
|
@@ -114,19 +114,23 @@ workspace targets or the delivery configuration.
|
|
|
114
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
115
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
116
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
117
|
-
`--input` reads only what the checkout already has
|
|
117
|
+
`--input` reads only what the checkout already has (a partial clone also
|
|
118
|
+
downloads the processed commit's cited contents). Skip this for a
|
|
118
119
|
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
120
|
diff instead.
|
|
120
121
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
121
122
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
122
|
-
changing only `--ref <sha>`.
|
|
123
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
124
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
123
125
|
3. Re-capture the batch's changed documents through their normal capture
|
|
124
126
|
Route; for a newer origin version, install it into a new version
|
|
125
127
|
directory and move the registration first, as in the knowledge-updates
|
|
126
128
|
guide's "Versioned external content and archived collections".
|
|
127
129
|
4. Start one `context update --input` naming the batch's repository and
|
|
128
130
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
129
|
-
several requirements once per requirement.
|
|
131
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
132
|
+
another batch of this run follows, so the version is recorded once,
|
|
133
|
+
after the last batch. Use `context update --pending
|
|
130
134
|
--format json` instead only when the batch is every pending repository
|
|
131
135
|
and has no documents; it also downloads what it needs.
|
|
132
136
|
|
|
@@ -170,8 +174,13 @@ workspace targets or the delivery configuration.
|
|
|
170
174
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
171
175
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
172
176
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
173
|
-
11. **Merge each batch.**
|
|
174
|
-
|
|
177
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
178
|
+
last batch also records the run's one increasing version and changelog as
|
|
179
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
180
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
181
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
182
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
183
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
175
184
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
176
185
|
only the version or changelog conflicts, take the remote's files; then run
|
|
177
186
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c4a",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.109",
|
|
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.
|
|
13
|
+
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.109",
|
|
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",
|
|
@@ -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.
|
|
145
|
+
This Skill ships with Context 0.7.109.
|
|
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](references/version-alignment.md):
|
|
@@ -114,19 +114,23 @@ workspace targets or the delivery configuration.
|
|
|
114
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
115
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
116
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
117
|
-
`--input` reads only what the checkout already has
|
|
117
|
+
`--input` reads only what the checkout already has (a partial clone also
|
|
118
|
+
downloads the processed commit's cited contents). Skip this for a
|
|
118
119
|
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
120
|
diff instead.
|
|
120
121
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
121
122
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
122
|
-
changing only `--ref <sha>`.
|
|
123
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
124
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
123
125
|
3. Re-capture the batch's changed documents through their normal capture
|
|
124
126
|
Route; for a newer origin version, install it into a new version
|
|
125
127
|
directory and move the registration first, as in the knowledge-updates
|
|
126
128
|
guide's "Versioned external content and archived collections".
|
|
127
129
|
4. Start one `context update --input` naming the batch's repository and
|
|
128
130
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
129
|
-
several requirements once per requirement.
|
|
131
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
132
|
+
another batch of this run follows, so the version is recorded once,
|
|
133
|
+
after the last batch. Use `context update --pending
|
|
130
134
|
--format json` instead only when the batch is every pending repository
|
|
131
135
|
and has no documents; it also downloads what it needs.
|
|
132
136
|
|
|
@@ -170,8 +174,13 @@ workspace targets or the delivery configuration.
|
|
|
170
174
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
171
175
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
172
176
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
173
|
-
11. **Merge each batch.**
|
|
174
|
-
|
|
177
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
178
|
+
last batch also records the run's one increasing version and changelog as
|
|
179
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
180
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
181
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
182
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
183
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
175
184
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
176
185
|
only the version or changelog conflicts, take the remote's files; then run
|
|
177
186
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -139,7 +139,7 @@ without the user's authorization.
|
|
|
139
139
|
|
|
140
140
|
### Check the CLI first
|
|
141
141
|
|
|
142
|
-
This Skill ships with Context 0.7.
|
|
142
|
+
This Skill ships with Context 0.7.109.
|
|
143
143
|
|
|
144
144
|
When entering production in a workspace, align the CLI, this Skill and the
|
|
145
145
|
workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
|
|
@@ -114,19 +114,23 @@ workspace targets or the delivery configuration.
|
|
|
114
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
115
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
116
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
117
|
-
`--input` reads only what the checkout already has
|
|
117
|
+
`--input` reads only what the checkout already has (a partial clone also
|
|
118
|
+
downloads the processed commit's cited contents). Skip this for a
|
|
118
119
|
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
120
|
diff instead.
|
|
120
121
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
121
122
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
122
|
-
changing only `--ref <sha>`.
|
|
123
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
124
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
123
125
|
3. Re-capture the batch's changed documents through their normal capture
|
|
124
126
|
Route; for a newer origin version, install it into a new version
|
|
125
127
|
directory and move the registration first, as in the knowledge-updates
|
|
126
128
|
guide's "Versioned external content and archived collections".
|
|
127
129
|
4. Start one `context update --input` naming the batch's repository and
|
|
128
130
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
129
|
-
several requirements once per requirement.
|
|
131
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
132
|
+
another batch of this run follows, so the version is recorded once,
|
|
133
|
+
after the last batch. Use `context update --pending
|
|
130
134
|
--format json` instead only when the batch is every pending repository
|
|
131
135
|
and has no documents; it also downloads what it needs.
|
|
132
136
|
|
|
@@ -170,8 +174,13 @@ workspace targets or the delivery configuration.
|
|
|
170
174
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
171
175
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
172
176
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
173
|
-
11. **Merge each batch.**
|
|
174
|
-
|
|
177
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
178
|
+
last batch also records the run's one increasing version and changelog as
|
|
179
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
180
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
181
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
182
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
183
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
175
184
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
176
185
|
only the version or changelog conflicts, take the remote's files; then run
|
|
177
186
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -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.
|
|
145
|
+
This Skill ships with Context 0.7.109.
|
|
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](references/version-alignment.md):
|
|
@@ -114,19 +114,23 @@ workspace targets or the delivery configuration.
|
|
|
114
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
115
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
116
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
117
|
-
`--input` reads only what the checkout already has
|
|
117
|
+
`--input` reads only what the checkout already has (a partial clone also
|
|
118
|
+
downloads the processed commit's cited contents). Skip this for a
|
|
118
119
|
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
120
|
diff instead.
|
|
120
121
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
121
122
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
122
|
-
changing only `--ref <sha>`.
|
|
123
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
124
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
123
125
|
3. Re-capture the batch's changed documents through their normal capture
|
|
124
126
|
Route; for a newer origin version, install it into a new version
|
|
125
127
|
directory and move the registration first, as in the knowledge-updates
|
|
126
128
|
guide's "Versioned external content and archived collections".
|
|
127
129
|
4. Start one `context update --input` naming the batch's repository and
|
|
128
130
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
129
|
-
several requirements once per requirement.
|
|
131
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
132
|
+
another batch of this run follows, so the version is recorded once,
|
|
133
|
+
after the last batch. Use `context update --pending
|
|
130
134
|
--format json` instead only when the batch is every pending repository
|
|
131
135
|
and has no documents; it also downloads what it needs.
|
|
132
136
|
|
|
@@ -170,8 +174,13 @@ workspace targets or the delivery configuration.
|
|
|
170
174
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
171
175
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
172
176
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
173
|
-
11. **Merge each batch.**
|
|
174
|
-
|
|
177
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
178
|
+
last batch also records the run's one increasing version and changelog as
|
|
179
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
180
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
181
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
182
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
183
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
175
184
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
176
185
|
only the version or changelog conflicts, take the remote's files; then run
|
|
177
186
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "agent-graph.bundle.v1",
|
|
3
3
|
"provider": {
|
|
4
4
|
"id": "c4a/context",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.109"
|
|
6
6
|
},
|
|
7
7
|
"providerManifest": "provider.yaml",
|
|
8
8
|
"graphs": [
|
|
@@ -323,12 +323,12 @@
|
|
|
323
323
|
{
|
|
324
324
|
"id": "procedure.knowledge-review",
|
|
325
325
|
"path": "resources/procedures/knowledge-review.md",
|
|
326
|
-
"digest": "sha256:
|
|
326
|
+
"digest": "sha256:df9a49469125a71c85e2e45f3b5bda10f5f48d881f6f22c6fb5b7060f8b9e925"
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
"id": "procedure.knowledge-updates",
|
|
330
330
|
"path": "resources/procedures/knowledge-updates.md",
|
|
331
|
-
"digest": "sha256:
|
|
331
|
+
"digest": "sha256:e19042360b99f4acdd0fa8104b0587fa53d41cbdfb925dacc0c5c83bdc1b55d1"
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"id": "procedure.note",
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
600
|
"path": "provider.yaml",
|
|
601
|
-
"digest": "sha256:
|
|
601
|
+
"digest": "sha256:4dc4bc3e5426c75c06a2de3bfcf1c3a9479e9ac98a66420f18ab9064b46d50ca"
|
|
602
602
|
},
|
|
603
603
|
{
|
|
604
604
|
"path": "resources/contracts/indexer-provider-guide.yaml",
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
660
|
"path": "resources/manuals/guides/knowledge-updates.md",
|
|
661
|
-
"digest": "sha256:
|
|
661
|
+
"digest": "sha256:060230f6eca33687ba421ea847db53bdc82ce148a329451ac4de80bf494d557d"
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
664
|
"path": "resources/manuals/guides/lark-resources.md",
|
|
@@ -750,11 +750,11 @@
|
|
|
750
750
|
},
|
|
751
751
|
{
|
|
752
752
|
"path": "resources/procedures/knowledge-review.md",
|
|
753
|
-
"digest": "sha256:
|
|
753
|
+
"digest": "sha256:df9a49469125a71c85e2e45f3b5bda10f5f48d881f6f22c6fb5b7060f8b9e925"
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
756
|
"path": "resources/procedures/knowledge-updates.md",
|
|
757
|
-
"digest": "sha256:
|
|
757
|
+
"digest": "sha256:e19042360b99f4acdd0fa8104b0587fa53d41cbdfb925dacc0c5c83bdc1b55d1"
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
760
|
"path": "resources/procedures/note.md",
|
|
@@ -921,5 +921,5 @@
|
|
|
921
921
|
"indexer": [],
|
|
922
922
|
"workspace": []
|
|
923
923
|
},
|
|
924
|
-
"digest": "sha256:
|
|
924
|
+
"digest": "sha256:c7763747332e8425c8b836b3b2f79fbfb6d1678f178be6840f33710cb01ca7b2"
|
|
925
925
|
}
|
|
@@ -494,8 +494,9 @@ first and update them in batches, so each review covers related pages:
|
|
|
494
494
|
pages in groups.
|
|
495
495
|
4. **Run one batch at a time.** Context keeps one active update. When a batch
|
|
496
496
|
starts, fetch and check out its repositories at the target commits with the
|
|
497
|
-
cited files' contents available (`--input` reads only what the checkout has
|
|
498
|
-
|
|
497
|
+
cited files' contents available (`--input` reads only what the checkout has,
|
|
498
|
+
except that a partial clone downloads the processed commit's cited contents
|
|
499
|
+
for history evidence; keep the processed commit available), move only this batch's
|
|
499
500
|
registrations (`context source add repo` changing only `--ref`; register a
|
|
500
501
|
checkout kept outside the workspace through a workspace-relative alias such
|
|
501
502
|
as `.tmp/repo/<name>`, as `context source restore` does, not an absolute
|
|
@@ -503,6 +504,19 @@ first and update them in batches, so each review covers related pages:
|
|
|
503
504
|
its versioned file sources (see "Versioned external content and archived
|
|
504
505
|
collections"), then start one `context update --input` listing all of the batch's `repo:`, `lark:` and `file:` scopes, each
|
|
505
506
|
with its `requirement_ref`. Do not move later batches' registrations early.
|
|
507
|
+
When another batch follows, add `more_batches: true` to the input: the
|
|
508
|
+
batch is reviewed, closed and built as usual, but the Route does not ask for
|
|
509
|
+
a workspace version, so the next batch can start right after the build.
|
|
510
|
+
Leave it out of the last batch; its Route records the one version (and
|
|
511
|
+
changelog entry) of the whole refresh. A standalone revision between batches
|
|
512
|
+
also leaves its version to the last batch; `context status` shows
|
|
513
|
+
`version_deferred` meanwhile, and an update without `more_batches` or
|
|
514
|
+
`context version record` ends the deferral. When earlier batches were already
|
|
515
|
+
committed and the workspace has no `v<version>` tag (for example a
|
|
516
|
+
workspace inside a larger repository), the default comparison base is
|
|
517
|
+
`HEAD` and would list only the last batch: run `context version inspect
|
|
518
|
+
--base <commit before the first batch> --format json` and record with the
|
|
519
|
+
same `base_ref`, or commit all batches after the version record.
|
|
506
520
|
5. **`--pending` only for one repository-only batch.** `context update
|
|
507
521
|
--pending` covers repositories only and is a write: once it runs, the batch
|
|
508
522
|
cannot be split with `--input` without rolling back. Use it only when the
|
|
@@ -542,6 +556,14 @@ say so: `context update` and `verify --format json` return `source_access`
|
|
|
542
556
|
(each repository's `access`, site, repository and commit, or the reason it was
|
|
543
557
|
skipped or read locally), and in `status` each such source has `access: remote`
|
|
544
558
|
instead of checkout advice. `ready` keeps describing the local checkout.
|
|
559
|
+
A repository outside the update's scope that remote mode cannot read is listed
|
|
560
|
+
in `skipped_sources` only; it is not offered in `expand_scope`. `context source
|
|
561
|
+
add repo --ref <sha>` checks the commit before registering it: in local mode
|
|
562
|
+
the checkout (or its origin, fetched once) must have it; in a remote mode
|
|
563
|
+
Sourcegraph must be able to read it, or a remote branch or tag must point at it
|
|
564
|
+
(then it is registered with an `info` that `context update --pending` can
|
|
565
|
+
prepare it). Otherwise the registration is refused; for an older commit no
|
|
566
|
+
branch or tag points at, rerun with `--allow-unverified-ref`.
|
|
545
567
|
|
|
546
568
|
**Authorization.** The Sourcegraph MCP server the Agent already uses is the only
|
|
547
569
|
configuration needed. When a command needs a token and has none, it returns a
|
|
@@ -28,7 +28,13 @@ 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
29
|
tool. When the CLI cannot open it (for example without a graphical
|
|
30
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.
|
|
31
|
+
regeneration, so the reader's READ marks carry over to unchanged pages. When the
|
|
32
|
+
host can open the file, open it directly; when it can open only HTTP addresses, a
|
|
33
|
+
read-only local server for the report directory is fine, at the same URL each time. When the task
|
|
34
|
+
completes, its reports move to `.tmp/context-runtime/review-archive/<time>/`
|
|
35
|
+
(the newest five are kept), so a reviewed report stays readable afterwards;
|
|
36
|
+
this is separate from the copy of an applied report kept in `.tmp/review-reports/`. A
|
|
37
|
+
rolled-back task discards its reports instead. Follow the selected knowledge-review dialogue to distinguish feedback,
|
|
32
38
|
approval and approval-after-repair. Keep the exact report reference, presented
|
|
33
39
|
scope and user intent in this conversation. The HTML contains reading progress
|
|
34
40
|
and plain revision notes, not approval authority. Normal explicit confirmation
|
|
@@ -494,8 +494,9 @@ first and update them in batches, so each review covers related pages:
|
|
|
494
494
|
pages in groups.
|
|
495
495
|
4. **Run one batch at a time.** Context keeps one active update. When a batch
|
|
496
496
|
starts, fetch and check out its repositories at the target commits with the
|
|
497
|
-
cited files' contents available (`--input` reads only what the checkout has
|
|
498
|
-
|
|
497
|
+
cited files' contents available (`--input` reads only what the checkout has,
|
|
498
|
+
except that a partial clone downloads the processed commit's cited contents
|
|
499
|
+
for history evidence; keep the processed commit available), move only this batch's
|
|
499
500
|
registrations (`context source add repo` changing only `--ref`; register a
|
|
500
501
|
checkout kept outside the workspace through a workspace-relative alias such
|
|
501
502
|
as `.tmp/repo/<name>`, as `context source restore` does, not an absolute
|
|
@@ -503,6 +504,19 @@ first and update them in batches, so each review covers related pages:
|
|
|
503
504
|
its versioned file sources (see "Versioned external content and archived
|
|
504
505
|
collections"), then start one `context update --input` listing all of the batch's `repo:`, `lark:` and `file:` scopes, each
|
|
505
506
|
with its `requirement_ref`. Do not move later batches' registrations early.
|
|
507
|
+
When another batch follows, add `more_batches: true` to the input: the
|
|
508
|
+
batch is reviewed, closed and built as usual, but the Route does not ask for
|
|
509
|
+
a workspace version, so the next batch can start right after the build.
|
|
510
|
+
Leave it out of the last batch; its Route records the one version (and
|
|
511
|
+
changelog entry) of the whole refresh. A standalone revision between batches
|
|
512
|
+
also leaves its version to the last batch; `context status` shows
|
|
513
|
+
`version_deferred` meanwhile, and an update without `more_batches` or
|
|
514
|
+
`context version record` ends the deferral. When earlier batches were already
|
|
515
|
+
committed and the workspace has no `v<version>` tag (for example a
|
|
516
|
+
workspace inside a larger repository), the default comparison base is
|
|
517
|
+
`HEAD` and would list only the last batch: run `context version inspect
|
|
518
|
+
--base <commit before the first batch> --format json` and record with the
|
|
519
|
+
same `base_ref`, or commit all batches after the version record.
|
|
506
520
|
5. **`--pending` only for one repository-only batch.** `context update
|
|
507
521
|
--pending` covers repositories only and is a write: once it runs, the batch
|
|
508
522
|
cannot be split with `--input` without rolling back. Use it only when the
|
|
@@ -542,6 +556,14 @@ say so: `context update` and `verify --format json` return `source_access`
|
|
|
542
556
|
(each repository's `access`, site, repository and commit, or the reason it was
|
|
543
557
|
skipped or read locally), and in `status` each such source has `access: remote`
|
|
544
558
|
instead of checkout advice. `ready` keeps describing the local checkout.
|
|
559
|
+
A repository outside the update's scope that remote mode cannot read is listed
|
|
560
|
+
in `skipped_sources` only; it is not offered in `expand_scope`. `context source
|
|
561
|
+
add repo --ref <sha>` checks the commit before registering it: in local mode
|
|
562
|
+
the checkout (or its origin, fetched once) must have it; in a remote mode
|
|
563
|
+
Sourcegraph must be able to read it, or a remote branch or tag must point at it
|
|
564
|
+
(then it is registered with an `info` that `context update --pending` can
|
|
565
|
+
prepare it). Otherwise the registration is refused; for an older commit no
|
|
566
|
+
branch or tag points at, rerun with `--allow-unverified-ref`.
|
|
545
567
|
|
|
546
568
|
**Authorization.** The Sourcegraph MCP server the Agent already uses is the only
|
|
547
569
|
configuration needed. When a command needs a token and has none, it returns a
|