@c4a/context-cli 0.7.106 → 0.7.108
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 +2437 -1408
- 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 +11 -1
- package/plugins/claude/resources/context/routine-update.md +22 -6
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +11 -1
- package/plugins/codex/skills/context/references/routine-update.md +22 -6
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +11 -1
- package/plugins/cursor/resources/context/routine-update.md +22 -6
- package/plugins/skills/context/SKILL.md +11 -1
- package/plugins/skills/context/references/routine-update.md +22 -6
- package/providers/context/manifest.json +8 -8
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/knowledge-updates.md +89 -0
- package/providers/context/resources/procedures/knowledge-updates.md +89 -0
- package/providers/context/resources/procedures/source-update.md +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.108",
|
|
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.108",
|
|
28
|
+
"@c4a/extract": "0.7.108",
|
|
29
|
+
"@c4a/extract-contract": "0.7.108",
|
|
30
|
+
"@c4a/extract-go": "0.7.108",
|
|
31
|
+
"@c4a/extract-mdx": "0.7.108",
|
|
32
|
+
"@c4a/extract-proto": "0.7.108",
|
|
33
|
+
"@c4a/extract-rush": "0.7.108",
|
|
34
|
+
"@c4a/extract-sql": "0.7.108",
|
|
35
|
+
"@c4a/extract-style": "0.7.108",
|
|
36
|
+
"@c4a/extract-thrift": "0.7.108",
|
|
37
|
+
"@c4a/extract-ts": "0.7.108",
|
|
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.108
|
|
@@ -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.108.
|
|
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):
|
|
@@ -516,6 +516,16 @@ follow its private-install recovery. Keep `CONTEXT_LARK_CLI_BIN` pointing to tha
|
|
|
516
516
|
private executable on subsequent Context commands that access Lark; do not
|
|
517
517
|
upgrade or replace the host's global `lark-cli`.
|
|
518
518
|
|
|
519
|
+
Repository sources are read from local checkouts unless `CONTEXT_SOURCE_MODE`
|
|
520
|
+
(or `--source-mode`) is `remote` or `auto`; pass the mode the user or host
|
|
521
|
+
configuration sets to every Context command. A source shown as `access: remote`
|
|
522
|
+
needs no clone for updates, revisions or verification: read its code through
|
|
523
|
+
the Sourcegraph MCP tools at the registered commit. When a command returns
|
|
524
|
+
`next_action.mcp_tool: authorize_cli`, call that tool with `client: "context"`
|
|
525
|
+
once and run the returned `command` with its `code` and `host`; never print the
|
|
526
|
+
token. New pages and code parsing still need a local checkout. The
|
|
527
|
+
knowledge-updates guide, "Update without cloning", has the details.
|
|
528
|
+
|
|
519
529
|
### Continue
|
|
520
530
|
|
|
521
531
|
Use `next_route.inline` as the complete Route when present. Read
|
|
@@ -73,7 +73,11 @@ workspace targets or the delivery configuration.
|
|
|
73
73
|
with [version alignment](version-alignment.md). Enter the workspace named by
|
|
74
74
|
the host configuration before the entry, cloning it when the current
|
|
75
75
|
directory does not have it; never initialize a new workspace for a routine
|
|
76
|
-
run, and report a missing or unconfigured workspace instead.
|
|
76
|
+
run, and report a missing or unconfigured workspace instead. Run every
|
|
77
|
+
Context command with the `CONTEXT_SOURCE_MODE` the host configuration sets
|
|
78
|
+
(`local` when unset). With `remote` or `auto`, a repository `context status`
|
|
79
|
+
reports as `access: remote` is read from Sourcegraph and needs no clone (the
|
|
80
|
+
knowledge-updates guide, "Update without cloning"). Clone any other missing
|
|
77
81
|
registered repository (shallow or partial for large ones), then update the
|
|
78
82
|
workspace branch from its remote. Never discard local work.
|
|
79
83
|
2. **Resume first.** If `context status` shows an unfinished task, finish it (use
|
|
@@ -110,17 +114,22 @@ workspace targets or the delivery configuration.
|
|
|
110
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
111
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
112
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
113
|
-
`--input` reads only what the checkout already has.
|
|
117
|
+
`--input` reads only what the checkout already has. Skip this for a
|
|
118
|
+
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
|
+
diff instead.
|
|
114
120
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
115
121
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
116
|
-
changing only `--ref <sha>`.
|
|
122
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
123
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
117
124
|
3. Re-capture the batch's changed documents through their normal capture
|
|
118
125
|
Route; for a newer origin version, install it into a new version
|
|
119
126
|
directory and move the registration first, as in the knowledge-updates
|
|
120
127
|
guide's "Versioned external content and archived collections".
|
|
121
128
|
4. Start one `context update --input` naming the batch's repository and
|
|
122
129
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
123
|
-
several requirements once per requirement.
|
|
130
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
131
|
+
another batch of this run follows, so the version is recorded once,
|
|
132
|
+
after the last batch. Use `context update --pending
|
|
124
133
|
--format json` instead only when the batch is every pending repository
|
|
125
134
|
and has no documents; it also downloads what it needs.
|
|
126
135
|
|
|
@@ -164,8 +173,13 @@ workspace targets or the delivery configuration.
|
|
|
164
173
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
165
174
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
166
175
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
167
|
-
11. **Merge each batch.**
|
|
168
|
-
|
|
176
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
177
|
+
last batch also records the run's one increasing version and changelog as
|
|
178
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
179
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
180
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
181
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
182
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
169
183
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
170
184
|
only the version or changelog conflicts, take the remote's files; then run
|
|
171
185
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -187,6 +201,8 @@ workspace targets or the delivery configuration.
|
|
|
187
201
|
| CLI missing or below the host minimum | Install or upgrade once as the entry Skill describes |
|
|
188
202
|
| Previous run left a task or PLAN | Resume it; never reset or plan again |
|
|
189
203
|
| Repository or document unreadable | Record a gap, continue with the rest |
|
|
204
|
+
| A command returns `next_action.mcp_tool: authorize_cli` | Call that Sourcegraph MCP tool with `client: "context"` once, run the returned `command` with its `code` and `host`, then rerun the command; on `TEMPORARY_TOKEN_LIMIT` run `context source sourcegraph-auth --refused TEMPORARY_TOKEN_LIMIT` and continue without remote reads |
|
|
205
|
+
| The update lists `skipped_sources` | Those repositories keep their processed versions; report each reason and step, and continue with the rest |
|
|
190
206
|
| Update stops because cited file contents are not downloaded (`source-content-missing`) | Make them available in the checkout in whatever way suits the environment, such as fetching, checking out the commit or cloning again, then rerun the update |
|
|
191
207
|
| Review finds fixable problems | Fix the drafts and review again under delegation |
|
|
192
208
|
| Remote moved during merge | Rebase; re-inspect against the remote commit and record the version again |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c4a",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.108",
|
|
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.108",
|
|
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.108.
|
|
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):
|
|
@@ -514,6 +514,16 @@ follow its private-install recovery. Keep `CONTEXT_LARK_CLI_BIN` pointing to tha
|
|
|
514
514
|
private executable on subsequent Context commands that access Lark; do not
|
|
515
515
|
upgrade or replace the host's global `lark-cli`.
|
|
516
516
|
|
|
517
|
+
Repository sources are read from local checkouts unless `CONTEXT_SOURCE_MODE`
|
|
518
|
+
(or `--source-mode`) is `remote` or `auto`; pass the mode the user or host
|
|
519
|
+
configuration sets to every Context command. A source shown as `access: remote`
|
|
520
|
+
needs no clone for updates, revisions or verification: read its code through
|
|
521
|
+
the Sourcegraph MCP tools at the registered commit. When a command returns
|
|
522
|
+
`next_action.mcp_tool: authorize_cli`, call that tool with `client: "context"`
|
|
523
|
+
once and run the returned `command` with its `code` and `host`; never print the
|
|
524
|
+
token. New pages and code parsing still need a local checkout. The
|
|
525
|
+
knowledge-updates guide, "Update without cloning", has the details.
|
|
526
|
+
|
|
517
527
|
### Continue
|
|
518
528
|
|
|
519
529
|
Use `next_route.inline` as the complete Route when present. Read
|
|
@@ -73,7 +73,11 @@ workspace targets or the delivery configuration.
|
|
|
73
73
|
with [version alignment](version-alignment.md). Enter the workspace named by
|
|
74
74
|
the host configuration before the entry, cloning it when the current
|
|
75
75
|
directory does not have it; never initialize a new workspace for a routine
|
|
76
|
-
run, and report a missing or unconfigured workspace instead.
|
|
76
|
+
run, and report a missing or unconfigured workspace instead. Run every
|
|
77
|
+
Context command with the `CONTEXT_SOURCE_MODE` the host configuration sets
|
|
78
|
+
(`local` when unset). With `remote` or `auto`, a repository `context status`
|
|
79
|
+
reports as `access: remote` is read from Sourcegraph and needs no clone (the
|
|
80
|
+
knowledge-updates guide, "Update without cloning"). Clone any other missing
|
|
77
81
|
registered repository (shallow or partial for large ones), then update the
|
|
78
82
|
workspace branch from its remote. Never discard local work.
|
|
79
83
|
2. **Resume first.** If `context status` shows an unfinished task, finish it (use
|
|
@@ -110,17 +114,22 @@ workspace targets or the delivery configuration.
|
|
|
110
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
111
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
112
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
113
|
-
`--input` reads only what the checkout already has.
|
|
117
|
+
`--input` reads only what the checkout already has. Skip this for a
|
|
118
|
+
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
|
+
diff instead.
|
|
114
120
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
115
121
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
116
|
-
changing only `--ref <sha>`.
|
|
122
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
123
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
117
124
|
3. Re-capture the batch's changed documents through their normal capture
|
|
118
125
|
Route; for a newer origin version, install it into a new version
|
|
119
126
|
directory and move the registration first, as in the knowledge-updates
|
|
120
127
|
guide's "Versioned external content and archived collections".
|
|
121
128
|
4. Start one `context update --input` naming the batch's repository and
|
|
122
129
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
123
|
-
several requirements once per requirement.
|
|
130
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
131
|
+
another batch of this run follows, so the version is recorded once,
|
|
132
|
+
after the last batch. Use `context update --pending
|
|
124
133
|
--format json` instead only when the batch is every pending repository
|
|
125
134
|
and has no documents; it also downloads what it needs.
|
|
126
135
|
|
|
@@ -164,8 +173,13 @@ workspace targets or the delivery configuration.
|
|
|
164
173
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
165
174
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
166
175
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
167
|
-
11. **Merge each batch.**
|
|
168
|
-
|
|
176
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
177
|
+
last batch also records the run's one increasing version and changelog as
|
|
178
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
179
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
180
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
181
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
182
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
169
183
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
170
184
|
only the version or changelog conflicts, take the remote's files; then run
|
|
171
185
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -187,6 +201,8 @@ workspace targets or the delivery configuration.
|
|
|
187
201
|
| CLI missing or below the host minimum | Install or upgrade once as the entry Skill describes |
|
|
188
202
|
| Previous run left a task or PLAN | Resume it; never reset or plan again |
|
|
189
203
|
| Repository or document unreadable | Record a gap, continue with the rest |
|
|
204
|
+
| A command returns `next_action.mcp_tool: authorize_cli` | Call that Sourcegraph MCP tool with `client: "context"` once, run the returned `command` with its `code` and `host`, then rerun the command; on `TEMPORARY_TOKEN_LIMIT` run `context source sourcegraph-auth --refused TEMPORARY_TOKEN_LIMIT` and continue without remote reads |
|
|
205
|
+
| The update lists `skipped_sources` | Those repositories keep their processed versions; report each reason and step, and continue with the rest |
|
|
190
206
|
| Update stops because cited file contents are not downloaded (`source-content-missing`) | Make them available in the checkout in whatever way suits the environment, such as fetching, checking out the commit or cloning again, then rerun the update |
|
|
191
207
|
| Review finds fixable problems | Fix the drafts and review again under delegation |
|
|
192
208
|
| Remote moved during merge | Rebase; re-inspect against the remote commit and record the version again |
|
|
@@ -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.108.
|
|
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):
|
|
@@ -511,6 +511,16 @@ follow its private-install recovery. Keep `CONTEXT_LARK_CLI_BIN` pointing to tha
|
|
|
511
511
|
private executable on subsequent Context commands that access Lark; do not
|
|
512
512
|
upgrade or replace the host's global `lark-cli`.
|
|
513
513
|
|
|
514
|
+
Repository sources are read from local checkouts unless `CONTEXT_SOURCE_MODE`
|
|
515
|
+
(or `--source-mode`) is `remote` or `auto`; pass the mode the user or host
|
|
516
|
+
configuration sets to every Context command. A source shown as `access: remote`
|
|
517
|
+
needs no clone for updates, revisions or verification: read its code through
|
|
518
|
+
the Sourcegraph MCP tools at the registered commit. When a command returns
|
|
519
|
+
`next_action.mcp_tool: authorize_cli`, call that tool with `client: "context"`
|
|
520
|
+
once and run the returned `command` with its `code` and `host`; never print the
|
|
521
|
+
token. New pages and code parsing still need a local checkout. The
|
|
522
|
+
knowledge-updates guide, "Update without cloning", has the details.
|
|
523
|
+
|
|
514
524
|
### Continue
|
|
515
525
|
|
|
516
526
|
Use `next_route.inline` as the complete Route when present. Read
|
|
@@ -73,7 +73,11 @@ workspace targets or the delivery configuration.
|
|
|
73
73
|
with [version alignment](version-alignment.md). Enter the workspace named by
|
|
74
74
|
the host configuration before the entry, cloning it when the current
|
|
75
75
|
directory does not have it; never initialize a new workspace for a routine
|
|
76
|
-
run, and report a missing or unconfigured workspace instead.
|
|
76
|
+
run, and report a missing or unconfigured workspace instead. Run every
|
|
77
|
+
Context command with the `CONTEXT_SOURCE_MODE` the host configuration sets
|
|
78
|
+
(`local` when unset). With `remote` or `auto`, a repository `context status`
|
|
79
|
+
reports as `access: remote` is read from Sourcegraph and needs no clone (the
|
|
80
|
+
knowledge-updates guide, "Update without cloning"). Clone any other missing
|
|
77
81
|
registered repository (shallow or partial for large ones), then update the
|
|
78
82
|
workspace branch from its remote. Never discard local work.
|
|
79
83
|
2. **Resume first.** If `context status` shows an unfinished task, finish it (use
|
|
@@ -110,17 +114,22 @@ workspace targets or the delivery configuration.
|
|
|
110
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
111
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
112
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
113
|
-
`--input` reads only what the checkout already has.
|
|
117
|
+
`--input` reads only what the checkout already has. Skip this for a
|
|
118
|
+
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
|
+
diff instead.
|
|
114
120
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
115
121
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
116
|
-
changing only `--ref <sha>`.
|
|
122
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
123
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
117
124
|
3. Re-capture the batch's changed documents through their normal capture
|
|
118
125
|
Route; for a newer origin version, install it into a new version
|
|
119
126
|
directory and move the registration first, as in the knowledge-updates
|
|
120
127
|
guide's "Versioned external content and archived collections".
|
|
121
128
|
4. Start one `context update --input` naming the batch's repository and
|
|
122
129
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
123
|
-
several requirements once per requirement.
|
|
130
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
131
|
+
another batch of this run follows, so the version is recorded once,
|
|
132
|
+
after the last batch. Use `context update --pending
|
|
124
133
|
--format json` instead only when the batch is every pending repository
|
|
125
134
|
and has no documents; it also downloads what it needs.
|
|
126
135
|
|
|
@@ -164,8 +173,13 @@ workspace targets or the delivery configuration.
|
|
|
164
173
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
165
174
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
166
175
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
167
|
-
11. **Merge each batch.**
|
|
168
|
-
|
|
176
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
177
|
+
last batch also records the run's one increasing version and changelog as
|
|
178
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
179
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
180
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
181
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
182
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
169
183
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
170
184
|
only the version or changelog conflicts, take the remote's files; then run
|
|
171
185
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -187,6 +201,8 @@ workspace targets or the delivery configuration.
|
|
|
187
201
|
| CLI missing or below the host minimum | Install or upgrade once as the entry Skill describes |
|
|
188
202
|
| Previous run left a task or PLAN | Resume it; never reset or plan again |
|
|
189
203
|
| Repository or document unreadable | Record a gap, continue with the rest |
|
|
204
|
+
| A command returns `next_action.mcp_tool: authorize_cli` | Call that Sourcegraph MCP tool with `client: "context"` once, run the returned `command` with its `code` and `host`, then rerun the command; on `TEMPORARY_TOKEN_LIMIT` run `context source sourcegraph-auth --refused TEMPORARY_TOKEN_LIMIT` and continue without remote reads |
|
|
205
|
+
| The update lists `skipped_sources` | Those repositories keep their processed versions; report each reason and step, and continue with the rest |
|
|
190
206
|
| Update stops because cited file contents are not downloaded (`source-content-missing`) | Make them available in the checkout in whatever way suits the environment, such as fetching, checking out the commit or cloning again, then rerun the update |
|
|
191
207
|
| Review finds fixable problems | Fix the drafts and review again under delegation |
|
|
192
208
|
| Remote moved during merge | Rebase; re-inspect against the remote commit and record the version again |
|
|
@@ -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.108.
|
|
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):
|
|
@@ -514,6 +514,16 @@ follow its private-install recovery. Keep `CONTEXT_LARK_CLI_BIN` pointing to tha
|
|
|
514
514
|
private executable on subsequent Context commands that access Lark; do not
|
|
515
515
|
upgrade or replace the host's global `lark-cli`.
|
|
516
516
|
|
|
517
|
+
Repository sources are read from local checkouts unless `CONTEXT_SOURCE_MODE`
|
|
518
|
+
(or `--source-mode`) is `remote` or `auto`; pass the mode the user or host
|
|
519
|
+
configuration sets to every Context command. A source shown as `access: remote`
|
|
520
|
+
needs no clone for updates, revisions or verification: read its code through
|
|
521
|
+
the Sourcegraph MCP tools at the registered commit. When a command returns
|
|
522
|
+
`next_action.mcp_tool: authorize_cli`, call that tool with `client: "context"`
|
|
523
|
+
once and run the returned `command` with its `code` and `host`; never print the
|
|
524
|
+
token. New pages and code parsing still need a local checkout. The
|
|
525
|
+
knowledge-updates guide, "Update without cloning", has the details.
|
|
526
|
+
|
|
517
527
|
### Continue
|
|
518
528
|
|
|
519
529
|
Use `next_route.inline` as the complete Route when present. Read
|
|
@@ -73,7 +73,11 @@ workspace targets or the delivery configuration.
|
|
|
73
73
|
with [version alignment](version-alignment.md). Enter the workspace named by
|
|
74
74
|
the host configuration before the entry, cloning it when the current
|
|
75
75
|
directory does not have it; never initialize a new workspace for a routine
|
|
76
|
-
run, and report a missing or unconfigured workspace instead.
|
|
76
|
+
run, and report a missing or unconfigured workspace instead. Run every
|
|
77
|
+
Context command with the `CONTEXT_SOURCE_MODE` the host configuration sets
|
|
78
|
+
(`local` when unset). With `remote` or `auto`, a repository `context status`
|
|
79
|
+
reports as `access: remote` is read from Sourcegraph and needs no clone (the
|
|
80
|
+
knowledge-updates guide, "Update without cloning"). Clone any other missing
|
|
77
81
|
registered repository (shallow or partial for large ones), then update the
|
|
78
82
|
workspace branch from its remote. Never discard local work.
|
|
79
83
|
2. **Resume first.** If `context status` shows an unfinished task, finish it (use
|
|
@@ -110,17 +114,22 @@ workspace targets or the delivery configuration.
|
|
|
110
114
|
knowledge-updates guide, "Refresh several registered sources", step 4):
|
|
111
115
|
1. Fetch and check out each of the batch's repositories at its new commit in
|
|
112
116
|
a shallow or partial clone, keeping the processed commit available:
|
|
113
|
-
`--input` reads only what the checkout already has.
|
|
117
|
+
`--input` reads only what the checkout already has. Skip this for a
|
|
118
|
+
repository read from Sourcegraph; size its change with the Sourcegraph
|
|
119
|
+
diff instead.
|
|
114
120
|
2. Move only the batch's registrations: rerun `context source add repo` with
|
|
115
121
|
the registered namespace, `--module`, remote or local path and subpath,
|
|
116
|
-
changing only `--ref <sha>`.
|
|
122
|
+
changing only `--ref <sha>`. In a remote mode Sourcegraph confirms the
|
|
123
|
+
commit first; a refusal usually means a mistyped SHA.
|
|
117
124
|
3. Re-capture the batch's changed documents through their normal capture
|
|
118
125
|
Route; for a newer origin version, install it into a new version
|
|
119
126
|
directory and move the registration first, as in the knowledge-updates
|
|
120
127
|
guide's "Versioned external content and archived collections".
|
|
121
128
|
4. Start one `context update --input` naming the batch's repository and
|
|
122
129
|
document scopes, each with its `requirement_ref`; list a source shared by
|
|
123
|
-
several requirements once per requirement.
|
|
130
|
+
several requirements once per requirement. Add `more_batches: true` when
|
|
131
|
+
another batch of this run follows, so the version is recorded once,
|
|
132
|
+
after the last batch. Use `context update --pending
|
|
124
133
|
--format json` instead only when the batch is every pending repository
|
|
125
134
|
and has no documents; it also downloads what it needs.
|
|
126
135
|
|
|
@@ -164,8 +173,13 @@ workspace targets or the delivery configuration.
|
|
|
164
173
|
fits, place the page in the closest one, deliver the batch, and record a
|
|
165
174
|
structure proposal (before and after, and why) in the PLAN and the result.
|
|
166
175
|
Apply it only after a human confirms, as a separate knowledge-map change.
|
|
167
|
-
11. **Merge each batch.**
|
|
168
|
-
|
|
176
|
+
11. **Merge each batch.** Commit only that batch's files and PLAN progress; the
|
|
177
|
+
last batch also records the run's one increasing version and changelog as
|
|
178
|
+
the workspace requires (earlier batches ran with `more_batches: true`).
|
|
179
|
+
Note the commit before the first batch in the PLAN. When earlier batches
|
|
180
|
+
were committed and the workspace has no `v<version>` tag, inspect with
|
|
181
|
+
`context version inspect --base <that commit> --format json` and record the
|
|
182
|
+
version with the same `base_ref`, so the changelog covers every batch.
|
|
169
183
|
Fetch the remote first. If it moved, note the remote commit, rebase, and when
|
|
170
184
|
only the version or changelog conflicts, take the remote's files; then run
|
|
171
185
|
`context version inspect --base <that remote commit> --format json` and record
|
|
@@ -187,6 +201,8 @@ workspace targets or the delivery configuration.
|
|
|
187
201
|
| CLI missing or below the host minimum | Install or upgrade once as the entry Skill describes |
|
|
188
202
|
| Previous run left a task or PLAN | Resume it; never reset or plan again |
|
|
189
203
|
| Repository or document unreadable | Record a gap, continue with the rest |
|
|
204
|
+
| A command returns `next_action.mcp_tool: authorize_cli` | Call that Sourcegraph MCP tool with `client: "context"` once, run the returned `command` with its `code` and `host`, then rerun the command; on `TEMPORARY_TOKEN_LIMIT` run `context source sourcegraph-auth --refused TEMPORARY_TOKEN_LIMIT` and continue without remote reads |
|
|
205
|
+
| The update lists `skipped_sources` | Those repositories keep their processed versions; report each reason and step, and continue with the rest |
|
|
190
206
|
| Update stops because cited file contents are not downloaded (`source-content-missing`) | Make them available in the checkout in whatever way suits the environment, such as fetching, checking out the commit or cloning again, then rerun the update |
|
|
191
207
|
| Review finds fixable problems | Fix the drafts and review again under delegation |
|
|
192
208
|
| Remote moved during merge | Rebase; re-inspect against the remote commit and record the version again |
|
|
@@ -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.108"
|
|
6
6
|
},
|
|
7
7
|
"providerManifest": "provider.yaml",
|
|
8
8
|
"graphs": [
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
{
|
|
329
329
|
"id": "procedure.knowledge-updates",
|
|
330
330
|
"path": "resources/procedures/knowledge-updates.md",
|
|
331
|
-
"digest": "sha256:
|
|
331
|
+
"digest": "sha256:fd32a7cbdce19dbd03df2264bcc920a5022537fc963190975632baf5cf421c01"
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"id": "procedure.note",
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
{
|
|
389
389
|
"id": "procedure.source-update",
|
|
390
390
|
"path": "resources/procedures/source-update.md",
|
|
391
|
-
"digest": "sha256:
|
|
391
|
+
"digest": "sha256:e0de1bbbdb08fb6dd38043e2d96e2d6b8e6c51231f0b16c5f1bb621224cfbda3"
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
"id": "procedure.task-recovery",
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
600
|
"path": "provider.yaml",
|
|
601
|
-
"digest": "sha256:
|
|
601
|
+
"digest": "sha256:7888172b92ffe8818f416bd54d94ccdec5d1487cebd9b8372a7538ee890eba01"
|
|
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:bc06e2c2e08562d64e74ebbef63e7017295757c95c32174a7812df141d0c9260"
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
664
|
"path": "resources/manuals/guides/lark-resources.md",
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
756
|
"path": "resources/procedures/knowledge-updates.md",
|
|
757
|
-
"digest": "sha256:
|
|
757
|
+
"digest": "sha256:fd32a7cbdce19dbd03df2264bcc920a5022537fc963190975632baf5cf421c01"
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
760
|
"path": "resources/procedures/note.md",
|
|
@@ -802,7 +802,7 @@
|
|
|
802
802
|
},
|
|
803
803
|
{
|
|
804
804
|
"path": "resources/procedures/source-update.md",
|
|
805
|
-
"digest": "sha256:
|
|
805
|
+
"digest": "sha256:e0de1bbbdb08fb6dd38043e2d96e2d6b8e6c51231f0b16c5f1bb621224cfbda3"
|
|
806
806
|
},
|
|
807
807
|
{
|
|
808
808
|
"path": "resources/procedures/task-recovery.md",
|
|
@@ -921,5 +921,5 @@
|
|
|
921
921
|
"indexer": [],
|
|
922
922
|
"workspace": []
|
|
923
923
|
},
|
|
924
|
-
"digest": "sha256:
|
|
924
|
+
"digest": "sha256:c48aed7fba5cea6b920caad2af7f79d4de06766cdd418f3dd6f0e89b19b6c78a"
|
|
925
925
|
}
|