@osovv/vv-opencode 1.3.7 → 1.4.0
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/CHANGELOG.md +16 -0
- package/README.md +42 -2
- package/dist/commands/completion.js +10 -2
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/patch-provider.d.ts +97 -1
- package/dist/commands/patch-provider.js +97 -5
- package/dist/commands/patch-provider.js.map +1 -1
- package/dist/lib/orchestration.d.ts +2 -2
- package/dist/lib/orchestration.js +31 -2
- package/dist/lib/orchestration.js.map +1 -1
- package/dist/lib/spec-lint.d.ts +71 -1
- package/dist/lib/spec-lint.js +566 -8
- package/dist/lib/spec-lint.js.map +1 -1
- package/dist/lib/vvoc-config.d.ts +3 -3
- package/dist/lib/vvoc-preset-registry.d.ts +25 -1
- package/dist/lib/vvoc-preset-registry.js +22 -2
- package/dist/lib/vvoc-preset-registry.js.map +1 -1
- package/dist/plugins/hashline-edit/index.js.map +1 -1
- package/dist/plugins/web-tools/providers/brave.js +14 -8
- package/dist/plugins/web-tools/providers/brave.js.map +1 -1
- package/dist/plugins/workflow/checkpoint-io.d.ts +33 -0
- package/dist/plugins/workflow/checkpoint-io.js +224 -0
- package/dist/plugins/workflow/checkpoint-io.js.map +1 -0
- package/dist/plugins/workflow/checkpoints.d.ts +182 -0
- package/dist/plugins/workflow/checkpoints.js +1067 -0
- package/dist/plugins/workflow/checkpoints.js.map +1 -0
- package/dist/plugins/workflow/delegated.d.ts +158 -0
- package/dist/plugins/workflow/delegated.js +613 -0
- package/dist/plugins/workflow/delegated.js.map +1 -0
- package/dist/plugins/workflow/index.js +368 -20
- package/dist/plugins/workflow/index.js.map +1 -1
- package/dist/plugins/workflow/persistence.d.ts +32 -3
- package/dist/plugins/workflow/persistence.js +497 -70
- package/dist/plugins/workflow/persistence.js.map +1 -1
- package/dist/plugins/workflow/repair.js +3 -1
- package/dist/plugins/workflow/repair.js.map +1 -1
- package/dist/plugins/workflow/snapshots.d.ts +59 -0
- package/dist/plugins/workflow/snapshots.js +261 -0
- package/dist/plugins/workflow/snapshots.js.map +1 -0
- package/dist/plugins/workflow/state.d.ts +20 -2
- package/dist/plugins/workflow/state.js +127 -12
- package/dist/plugins/workflow/state.js.map +1 -1
- package/dist/plugins/workflow/tooling.d.ts +45 -0
- package/dist/plugins/workflow/tooling.js +344 -12
- package/dist/plugins/workflow/tooling.js.map +1 -1
- package/dist/plugins/workflow/transitions.js +2 -2
- package/dist/plugins/workflow/transitions.js.map +1 -1
- package/dist/tui/context/analyze.js +3 -1
- package/dist/tui/context/analyze.js.map +1 -1
- package/package.json +1 -1
- package/schemas/vvoc/v3.json +5 -3
- package/templates/agents/vv-code-reviewer.md +3 -1
- package/templates/agents/vv-implementer.md +5 -2
- package/templates/agents/vv-spec-reviewer.md +3 -0
- package/templates/skills/vv-execute/SKILL.md +62 -15
- package/templates/skills/vv-plan/SKILL.md +13 -3
- package/templates/skills/vv-plan/references/plan-template.xml +45 -0
- package/templates/skills/vv-review/SKILL.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 1.4.0 (2026-09-11)
|
|
2
|
+
|
|
3
|
+
### Summary
|
|
4
|
+
|
|
5
|
+
Version 1.4.0 introduces a delegated execution workflow alongside two new Astra presets, making it possible to run ordinary implementation work with fewer slow independent-review barriers without weakening acceptance or auditability. A new delegated orchestration profile keeps architecture, important code reading, task contracts, explicit acceptance, and final synthesis in the primary controller session while workers own implementation, tests, formatting, and reviewer-requested fixes through bounded task packets. Delegated work items now carry declared write scopes, host-callID-bound attempts, a two-attempt budget, and explicit accept, request_changes, or checkpoint-authorized rework decisions, so a worker returning DONE parks its item in awaiting_acceptance instead of closing or self-accepting it, while BLOCKED and NEEDS_CONTEXT remain hard stops. Independent review moves to declared plan checkpoints: work_checkpoint register loads and lints an approved plan and its linked spec with content-hash binding, start captures a fresh scope fingerprint and opens exactly the declared reviewer set, and verify derives passed, failed, stale, or stopped outcomes from recorded results and recomputed hashes, with wave barriers, overlapping-write exclusions, and final sealing via complete: true. Spec linting gains delegated execution and review-checkpoint validation (LINT_VERSION 2), workflow state persists as version 2 with conservative version 1 hydration and atomic writes, and the vv-astra-solo and vv-astra-workers presets plus codex Astra max, Spark medium, DeepSeek Flash high, and zai GLM-5.3 high provider aliases make explicit-reasoning setups directly applicable. Documentation, managed skills, and reviewer guidance were updated so the inline, classic, and delegated vocabulary stays consistent, and a deterministic twenty-task scenario with two milestone checkpoints plus a final spec/code checkpoint requires exactly four initial reviewer launches rather than forty.
|
|
6
|
+
|
|
7
|
+
* feat(workflow): add delegated execution, review checkpoints, and astra presets ([709d41b](https://github.com/osovv/vv-opencode/commit/709d41b))
|
|
8
|
+
|
|
9
|
+
## <small>1.3.8 (2026-09-09)</small>
|
|
10
|
+
|
|
11
|
+
### Summary
|
|
12
|
+
|
|
13
|
+
Version 1.3.8 fixes a Brave Web Search integration issue where queries returning zero results caused a spurious tool error instead of cleanly reporting no matches. Brave responds to such queries with HTTP 200 and omits the usual results field, which the parser previously rejected as a malformed response. The search adapter now recognizes that zero-result envelope as a legitimate empty result set, so web_search returns an empty result instead of failing, while genuinely unrecognized responses still fail closed to preserve safety. This eliminates confusing errors during legitimate searches that simply have no web results.
|
|
14
|
+
|
|
15
|
+
* fix(web-tools): treat zero-result brave envelopes as empty results ([291b989](https://github.com/osovv/vv-opencode/commit/291b989))
|
|
16
|
+
|
|
1
17
|
## <small>1.3.7 (2026-09-09)</small>
|
|
2
18
|
|
|
3
19
|
### Summary
|
package/README.md
CHANGED
|
@@ -369,17 +369,35 @@ vvoc preset vv-osovv-sol
|
|
|
369
369
|
vvoc preset vv-osovv-flash
|
|
370
370
|
vvoc preset vv-osovv-kimi
|
|
371
371
|
vvoc preset vv-osovv-qwen
|
|
372
|
+
vvoc preset vv-astra-solo
|
|
373
|
+
vvoc preset vv-astra-workers
|
|
374
|
+
|
|
375
|
+
# Install the explicit-reasoning provider aliases the Astra presets use
|
|
376
|
+
vvoc patch-provider codex # vv-codex-gpt-6-astra-max + vv-codex-gpt-5.3-codex-spark-medium (+ existing aliases)
|
|
377
|
+
vvoc patch-provider deepseek # vv-deepseek-flash-high (+ existing alias)
|
|
378
|
+
vvoc patch-provider zai # vv-glm-5.3-high
|
|
379
|
+
vvoc patch-provider all # every patch above in one run
|
|
372
380
|
```
|
|
373
381
|
|
|
374
382
|
Built-in role IDs: `default`, `smart`, `fast`, `reviewer`, plus any custom lowercase-hyphenated IDs. Presets are partial — applying one only changes the roles it defines. Managed built-in presets (`vv-*`) are refreshed on every `vvoc install`/`vvoc sync`; user-defined presets are preserved as-is.
|
|
375
383
|
|
|
384
|
+
The two Astra presets pin explicit reasoning-effort aliases:
|
|
385
|
+
|
|
386
|
+
| Preset | default | smart | fast | reviewer | Profile |
|
|
387
|
+
|---|---|---|---|---|---|
|
|
388
|
+
| `vv-astra-solo` | `openai/vv-codex-gpt-6-astra-max` | `openai/vv-codex-gpt-6-astra-max` | `openai/vv-codex-gpt-5.3-codex-spark-medium` | `zai-coding-plan/vv-glm-5.3-high` | single-session |
|
|
389
|
+
| `vv-astra-workers` | `deepseek/vv-deepseek-flash-high` | `openai/vv-codex-gpt-6-astra-max` | `openai/vv-codex-gpt-5.3-codex-spark-medium` | `zai-coding-plan/vv-glm-5.3-high` | delegated |
|
|
390
|
+
|
|
391
|
+
New aliases bind API model IDs to explicit efforts (`gpt-6-astra` → max, `gpt-5.3-codex-spark` → medium with unsupported inherited effort variants disabled, `deepseek-flash` → high, `glm-5.3` → high) and keep the established OpenAI reasoning-summary and encrypted-reasoning options. Spark and GLM-5.3 are advertised conservatively as text-only. The shared `fast` role also serves `explore`, Guardian, and `small_model` — Spark availability for those consumers is not verified until you use it. Real model access, review quality, latency, and Astra-token savings are unmeasured: metadata here describes provider capability and pricing boundaries, not benchmarked behavior, and credentialed smoke runs would require separate authorization.
|
|
392
|
+
|
|
376
393
|
### Orchestration profiles
|
|
377
394
|
|
|
378
|
-
|
|
395
|
+
Four concrete policies control how vv-controller delegates work at runtime:
|
|
379
396
|
|
|
380
397
|
- `single-session` — vv-controller performs exploration, investigation, planning, implementation, and verification directly. Independent reviewer subagents remain available when the user explicitly requests review or when a materially risky completed change benefits from independent cross-model evaluation.
|
|
381
398
|
- `balanced` — vv-controller keeps architecture, critical reading, and final synthesis in the primary session and may selectively delegate bounded search, investigation, mechanical implementation, or review when that is the lightest safe route. Delegation is optional, not mechanically mandatory.
|
|
382
399
|
- `orchestrated` — vv-controller uses the full tracked implementer/reviewer workflow with explicit work items, required reviewers, bounded rounds, and hard stops.
|
|
400
|
+
- `delegated` — implementation is delegated to workers while the primary session keeps architecture, important code reading, task contracts, explicit acceptance, and final synthesis. Source edits, tests, config changes, formatting, lint fixes, and reviewer-requested fixes — including small mechanical ones — go to workers through bounded task packets. Independent review happens at declared plan checkpoints instead of after every task; `BLOCKED` and `NEEDS_CONTEXT` remain hard stops.
|
|
383
401
|
|
|
384
402
|
Pick a profile explicitly or let a built-in preset select one:
|
|
385
403
|
|
|
@@ -399,12 +417,14 @@ Built-in presets declare an orchestration mapping:
|
|
|
399
417
|
| `vv-osovv-flash` | single-session |
|
|
400
418
|
| `vv-osovv-kimi` | single-session |
|
|
401
419
|
| `vv-osovv-qwen` | single-session |
|
|
420
|
+
| `vv-astra-solo` | single-session |
|
|
421
|
+
| `vv-astra-workers` | delegated |
|
|
402
422
|
| `vv-zai` | balanced |
|
|
403
423
|
| `vv-deepseek` | balanced |
|
|
404
424
|
|
|
405
425
|
Applying a built-in preset changes both model roles and the root orchestration profile atomically. A custom user-defined preset without an orchestration section preserves the current root profile. `vvoc status` reports the profile resolved from the selected vvoc source; effective status with no config files reports `balanced`.
|
|
406
426
|
|
|
407
|
-
Profiles are enforced through the concrete policy injected into vv-controller at startup — the model only receives its active work instructions and never sees inactive profile alternatives. The
|
|
427
|
+
Profiles are enforced through the concrete policy injected into vv-controller at startup — the model only receives its active work instructions and never sees inactive profile alternatives. The policy is behavioral, not a filesystem sandbox: the delegated profile instructs the controller not to write source files (and not to bypass that via shell rewrites), while runtime authorization genuinely enforces acceptance and checkpoint operations. Asynchronous vv-execute classic mode remains available through that skill's explicit inline/classic/delegated selection. Profile changes take effect after an OpenCode restart, like all vvoc config changes.
|
|
408
428
|
|
|
409
429
|
### Workflow work items
|
|
410
430
|
|
|
@@ -425,6 +445,26 @@ Workflow work items are opened with explicit intent. For implementation loops, c
|
|
|
425
445
|
|
|
426
446
|
For review-only reports, use `"mode": "review_only"`. In review-only mode, reviewer `FAIL` is a completed finding result: required reviewers are collected independently, parallel `spec` and `code` reviewers may both return `FAIL`, and the item does not route to `vv-implementer` unless the user explicitly requests fixes.
|
|
427
447
|
|
|
448
|
+
#### Delegated execution and review checkpoints
|
|
449
|
+
|
|
450
|
+
Under the `delegated` profile the workflow plugin also registers two control tools — `work_item_decide` and `work_checkpoint` — for the primary vv-controller session only (child sessions, untrusted workspaces, and unverifiable session identity are denied).
|
|
451
|
+
|
|
452
|
+
Delegated tasks are opened with `"mode": "delegated"`, an explicitly empty `requiredReviewers` array, and a declared `writeScope` of workspace-relative files. One worker (`vv-implementer`) is launched per task with a bounded packet; attempts are bound to the host call identity, so stale or duplicate callbacks fail without side effects. A `DONE` worker parks the item in `awaiting_acceptance` — it never closes the item and the worker never accepts its own result. The controller explicitly decides with `work_item_decide`:
|
|
453
|
+
|
|
454
|
+
- `accept` (with rationale and evidence references) records controller acceptance and reaches `ready_to_close`. Acceptance is recorded distinctly from an independent reviewer `PASS`.
|
|
455
|
+
- `request_changes` returns the task to the implementation path. Controller-directed retries are bounded to an initial attempt plus one correction; re-deciding or reopening never resets that budget. `DONE_WITH_CONCERNS` requires an explicit `concernsDisposition`.
|
|
456
|
+
- `rework` reopens an accepted task only when a failed checkpoint from the same registered run covers it, preserving acceptance history and granting exactly one additional attempt.
|
|
457
|
+
|
|
458
|
+
Independent review happens at checkpoints declared in the plan. An approved delegated plan carries an `<execution><mode>delegated</mode>` section with `<review_checkpoints>` (`CHECKPOINT-R-NNN` identities, each with kind, wave barrier, covered tasks, reviewed scope files, reviewer set, acceptance criteria, and verification commands) and per-task `<write_scope>` lists. `work_checkpoint` handles three actions:
|
|
459
|
+
|
|
460
|
+
- `register` — loads an approved active plan plus its linked approved spec, fully lints them, and binds the run to their content hashes and the canonical workspace root. Re-registering identical inputs is idempotent; changed approved inputs are explicit plan drift, never a progress reset.
|
|
461
|
+
- `start` — after every covered task is accepted, captures a SHA-256 fingerprint over the checkpoint scope (file contents, existence, mode bits, and covered accepted attempts) and opens exactly the declared reviewer set as an ordinary `review_only` item. Writes overlapping an in-flight checkpoint scope are refused.
|
|
462
|
+
- `verify` — derives `passed`, `failed`, `stale`, or `stopped` from the recorded reviewer results plus freshly recomputed fingerprints and approval hashes. A checkpoint passes only when every declared reviewer passes for the pinned snapshot; a closed review-only `FAIL` report is findings, not approval; edits during review make the generation stale. The final checkpoint seals the run only via `verify` with `complete: true` after every task is accepted, every earlier checkpoint passed, and the complete declared write scope is covered with fresh verification.
|
|
463
|
+
|
|
464
|
+
Passed milestones stay historical: later planned edits are covered by later checkpoints or the final gate, not by an old approval. Hard stops (`BLOCKED`, `NEEDS_CONTEXT`) are never reset or bypassed by acceptance or checkpoint handling. Checkpoint state persists per session and survives restarts; a persisted `PASS` is not fresh evidence until `verify` recomputes current hashes.
|
|
465
|
+
|
|
466
|
+
Plans without an `<execution>` section keep their legacy meaning; executing them with different acceptance or review obligations requires an explicit agreed plan amendment, and archived plans are never rewritten. In a deterministic dispatch-count scenario, a twenty-task plan with two intermediate code-review checkpoints and one final spec+code checkpoint needs exactly four initial reviewer launches instead of forty — that is a property of the declared checkpoint policy, not a wall-clock or model-quality benchmark.
|
|
467
|
+
|
|
428
468
|
### Edit format routing
|
|
429
469
|
|
|
430
470
|
`HashlineEditPlugin` resolves an edit mode per session model and exposes exactly one native edit tool to that model — either a host-owned tool or one of the plugin profiles:
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// END_MODULE_MAP
|
|
19
19
|
//
|
|
20
20
|
// START_CHANGE_SUMMARY
|
|
21
|
-
// LAST_CHANGE: [
|
|
21
|
+
// LAST_CHANGE: [C-DELEGATED-WORKFLOW-ASTRA-PRESETS - Added the zai patch preset to patch-provider completions.]
|
|
22
22
|
// END_CHANGE_SUMMARY
|
|
23
23
|
import { defineCommand } from "citty";
|
|
24
24
|
import { appendFile, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -48,7 +48,15 @@ const VVOC_TOP_LEVEL_COMMANDS = [
|
|
|
48
48
|
const VVOC_CONFIG_COMMANDS = ["validate"];
|
|
49
49
|
const VVOC_ORCHESTRATION_COMMANDS = ["show", "set"];
|
|
50
50
|
const VVOC_ORCHESTRATION_PROFILES = [...ORCHESTRATION_PROFILE_NAMES];
|
|
51
|
-
const VVOC_PATCH_PROVIDER_PRESETS = [
|
|
51
|
+
const VVOC_PATCH_PROVIDER_PRESETS = [
|
|
52
|
+
"stepfun-ai",
|
|
53
|
+
"codex",
|
|
54
|
+
"deepseek",
|
|
55
|
+
"kimi",
|
|
56
|
+
"alibaba",
|
|
57
|
+
"zai",
|
|
58
|
+
"all",
|
|
59
|
+
];
|
|
52
60
|
const VVOC_PRESET_COMMANDS = ["list", "show"];
|
|
53
61
|
const VVOC_PLUGIN_COMMANDS = ["list"];
|
|
54
62
|
const VVOC_ROLE_COMMANDS = ["set", "unset", "list"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,kBAAkB;AAClB,wBAAwB;AACxB,0EAA0E;AAC1E,8JAA8J;AAC9J,8IAA8I;AAC9I,2FAA2F;AAC3F,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,8DAA8D;AAC9D,kEAAkE;AAClE,+DAA+D;AAC/D,6DAA6D;AAC7D,+DAA+D;AAC/D,iBAAiB;AACjB,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|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
+
readonly "vv-codex-gpt-6-astra-max": {
|
|
126
|
+
readonly name: "VV Codex GPT-6 Astra Max";
|
|
127
|
+
readonly id: "gpt-6-astra";
|
|
128
|
+
readonly variants: {};
|
|
129
|
+
readonly limit: {
|
|
130
|
+
readonly context: 400000;
|
|
131
|
+
readonly input: 272000;
|
|
132
|
+
readonly output: 128000;
|
|
133
|
+
};
|
|
134
|
+
readonly modalities: {
|
|
135
|
+
readonly input: readonly ["text", "image", "pdf"];
|
|
136
|
+
readonly output: readonly ["text"];
|
|
137
|
+
};
|
|
138
|
+
readonly reasoning: true;
|
|
139
|
+
readonly options: {
|
|
140
|
+
readonly reasoningEffort: "max";
|
|
141
|
+
readonly reasoningSummary: "auto";
|
|
142
|
+
readonly include: readonly ["reasoning.encrypted_content"];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly "vv-codex-gpt-5.3-codex-spark-medium": {
|
|
146
|
+
readonly name: "VV Codex GPT-5.3 Codex Spark Medium";
|
|
147
|
+
readonly id: "gpt-5.3-codex-spark";
|
|
148
|
+
readonly variants: {
|
|
149
|
+
readonly none: {
|
|
150
|
+
readonly disabled: true;
|
|
151
|
+
};
|
|
152
|
+
readonly low: {
|
|
153
|
+
readonly disabled: true;
|
|
154
|
+
};
|
|
155
|
+
readonly high: {
|
|
156
|
+
readonly disabled: true;
|
|
157
|
+
};
|
|
158
|
+
readonly max: {
|
|
159
|
+
readonly disabled: true;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly limit: {
|
|
163
|
+
readonly context: 128000;
|
|
164
|
+
readonly input: 100000;
|
|
165
|
+
readonly output: 32000;
|
|
166
|
+
};
|
|
167
|
+
readonly modalities: {
|
|
168
|
+
readonly input: readonly ["text"];
|
|
169
|
+
readonly output: readonly ["text"];
|
|
170
|
+
};
|
|
171
|
+
readonly reasoning: true;
|
|
172
|
+
readonly options: {
|
|
173
|
+
readonly reasoningEffort: "medium";
|
|
174
|
+
readonly reasoningSummary: "auto";
|
|
175
|
+
readonly include: readonly ["reasoning.encrypted_content"];
|
|
176
|
+
};
|
|
177
|
+
};
|
|
125
178
|
};
|
|
126
179
|
};
|
|
127
180
|
readonly summary: "provider.openai.models vv-codex-gpt-5.5/5.6 aliases patched";
|
|
@@ -148,9 +201,26 @@ declare const PATCH_PROVIDER_PRESETS: {
|
|
|
148
201
|
readonly reasoningEffort: "max";
|
|
149
202
|
};
|
|
150
203
|
};
|
|
204
|
+
readonly "vv-deepseek-flash-high": {
|
|
205
|
+
readonly name: "VV DeepSeek Flash High";
|
|
206
|
+
readonly id: "deepseek-flash";
|
|
207
|
+
readonly variants: {};
|
|
208
|
+
readonly limit: {
|
|
209
|
+
readonly context: 1000000;
|
|
210
|
+
readonly output: 384000;
|
|
211
|
+
};
|
|
212
|
+
readonly modalities: {
|
|
213
|
+
readonly input: readonly ["text"];
|
|
214
|
+
readonly output: readonly ["text"];
|
|
215
|
+
};
|
|
216
|
+
readonly reasoning: true;
|
|
217
|
+
readonly options: {
|
|
218
|
+
readonly reasoningEffort: "high";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
151
221
|
};
|
|
152
222
|
};
|
|
153
|
-
readonly summary: "provider.deepseek.models.vv-deepseek
|
|
223
|
+
readonly summary: "provider.deepseek.models.vv-deepseek flash aliases patched";
|
|
154
224
|
};
|
|
155
225
|
readonly kimi: {
|
|
156
226
|
readonly kind: "provider-object";
|
|
@@ -204,6 +274,32 @@ declare const PATCH_PROVIDER_PRESETS: {
|
|
|
204
274
|
};
|
|
205
275
|
readonly summary: "provider.alibaba-token-plan.models.vv-qwen3.8-max-xhigh patched";
|
|
206
276
|
};
|
|
277
|
+
readonly zai: {
|
|
278
|
+
readonly kind: "provider-object";
|
|
279
|
+
readonly providerID: "zai-coding-plan";
|
|
280
|
+
readonly value: {
|
|
281
|
+
readonly models: {
|
|
282
|
+
readonly "vv-glm-5.3-high": {
|
|
283
|
+
readonly name: "VV GLM-5.3 High";
|
|
284
|
+
readonly id: "glm-5.3";
|
|
285
|
+
readonly variants: {};
|
|
286
|
+
readonly limit: {
|
|
287
|
+
readonly context: 1000000;
|
|
288
|
+
readonly output: 131072;
|
|
289
|
+
};
|
|
290
|
+
readonly modalities: {
|
|
291
|
+
readonly input: readonly ["text"];
|
|
292
|
+
readonly output: readonly ["text"];
|
|
293
|
+
};
|
|
294
|
+
readonly reasoning: true;
|
|
295
|
+
readonly options: {
|
|
296
|
+
readonly reasoningEffort: "high";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
readonly summary: "provider.zai-coding-plan.models.vv-glm-5.3-high patched";
|
|
302
|
+
};
|
|
207
303
|
};
|
|
208
304
|
/** Special preset name that applies every registered patch preset in sequence. */
|
|
209
305
|
export declare const PATCH_ALL_PRESET = "all";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// FILE: src/commands/patch-provider.ts
|
|
2
|
-
// VERSION: 0.
|
|
2
|
+
// VERSION: 0.9.0
|
|
3
3
|
// START_MODULE_CONTRACT
|
|
4
4
|
// PURPOSE: Apply OpenCode patch presets to global or project OpenCode config layers.
|
|
5
|
-
// SCOPE: Patch preset validation, scoped OpenCode config path resolution, provider/baseURL patch writes, provider-specific object patch writes under `provider
|
|
5
|
+
// SCOPE: Patch preset validation, scoped OpenCode config path resolution, provider/baseURL patch writes, provider-specific object patch writes under `provider` (codex, deepseek, kimi, alibaba, zai), and CLI output.
|
|
6
6
|
// DEPENDS: [citty, src/lib/opencode.ts]
|
|
7
|
-
// LINKS: M-CLI-PATCH-PROVIDER, M-CLI-CONFIG
|
|
7
|
+
// LINKS: M-CLI-PATCH-PROVIDER, M-CLI-COMPLETION, M-CLI-CONFIG
|
|
8
8
|
// ROLE: RUNTIME
|
|
9
9
|
// MAP_MODE: EXPORTS
|
|
10
10
|
// END_MODULE_CONTRACT
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// END_MODULE_MAP
|
|
20
20
|
//
|
|
21
21
|
// START_CHANGE_SUMMARY
|
|
22
|
-
// LAST_CHANGE: [
|
|
22
|
+
// LAST_CHANGE: [C-DELEGATED-WORKFLOW-ASTRA-PRESETS - Added Astra max and Spark medium codex aliases, DeepSeek Flash high, and the zai GLM-5.3 high patch with explicit Spark variant disabling.]
|
|
23
23
|
// END_CHANGE_SUMMARY
|
|
24
24
|
import { defineCommand } from "citty";
|
|
25
25
|
import { describeWriteResult, resolvePaths, writeOpenCodeProviderObject, writeProviderBaseUrl, } from "../lib/opencode.js";
|
|
@@ -124,6 +124,54 @@ const OPENAI_PATCH = {
|
|
|
124
124
|
include: ["reasoning.encrypted_content"],
|
|
125
125
|
},
|
|
126
126
|
},
|
|
127
|
+
"vv-codex-gpt-6-astra-max": {
|
|
128
|
+
name: "VV Codex GPT-6 Astra Max",
|
|
129
|
+
id: "gpt-6-astra",
|
|
130
|
+
variants: {},
|
|
131
|
+
limit: {
|
|
132
|
+
context: 400000,
|
|
133
|
+
input: 272000,
|
|
134
|
+
output: 128000,
|
|
135
|
+
},
|
|
136
|
+
modalities: {
|
|
137
|
+
input: ["text", "image", "pdf"],
|
|
138
|
+
output: ["text"],
|
|
139
|
+
},
|
|
140
|
+
reasoning: true,
|
|
141
|
+
options: {
|
|
142
|
+
reasoningEffort: "max",
|
|
143
|
+
reasoningSummary: "auto",
|
|
144
|
+
include: ["reasoning.encrypted_content"],
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
"vv-codex-gpt-5.3-codex-spark-medium": {
|
|
148
|
+
name: "VV Codex GPT-5.3 Codex Spark Medium",
|
|
149
|
+
id: "gpt-5.3-codex-spark",
|
|
150
|
+
// The catalog auto-generates effort variants for this base model; the
|
|
151
|
+
// cited public description supports medium only, so inherited efforts are
|
|
152
|
+
// explicitly disabled instead of relying on variants: {} suppression.
|
|
153
|
+
variants: {
|
|
154
|
+
none: { disabled: true },
|
|
155
|
+
low: { disabled: true },
|
|
156
|
+
high: { disabled: true },
|
|
157
|
+
max: { disabled: true },
|
|
158
|
+
},
|
|
159
|
+
limit: {
|
|
160
|
+
context: 128000,
|
|
161
|
+
input: 100000,
|
|
162
|
+
output: 32000,
|
|
163
|
+
},
|
|
164
|
+
modalities: {
|
|
165
|
+
input: ["text"],
|
|
166
|
+
output: ["text"],
|
|
167
|
+
},
|
|
168
|
+
reasoning: true,
|
|
169
|
+
options: {
|
|
170
|
+
reasoningEffort: "medium",
|
|
171
|
+
reasoningSummary: "auto",
|
|
172
|
+
include: ["reasoning.encrypted_content"],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
127
175
|
},
|
|
128
176
|
};
|
|
129
177
|
const KIMI_PATCH = {
|
|
@@ -187,6 +235,44 @@ const DEEPSEEK_PATCH = {
|
|
|
187
235
|
reasoningEffort: "max",
|
|
188
236
|
},
|
|
189
237
|
},
|
|
238
|
+
"vv-deepseek-flash-high": {
|
|
239
|
+
name: "VV DeepSeek Flash High",
|
|
240
|
+
id: "deepseek-flash",
|
|
241
|
+
variants: {},
|
|
242
|
+
limit: {
|
|
243
|
+
context: 1000000,
|
|
244
|
+
output: 384000,
|
|
245
|
+
},
|
|
246
|
+
modalities: {
|
|
247
|
+
input: ["text"],
|
|
248
|
+
output: ["text"],
|
|
249
|
+
},
|
|
250
|
+
reasoning: true,
|
|
251
|
+
options: {
|
|
252
|
+
reasoningEffort: "high",
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
const ZAI_PATCH = {
|
|
258
|
+
models: {
|
|
259
|
+
"vv-glm-5.3-high": {
|
|
260
|
+
name: "VV GLM-5.3 High",
|
|
261
|
+
id: "glm-5.3",
|
|
262
|
+
variants: {},
|
|
263
|
+
limit: {
|
|
264
|
+
context: 1000000,
|
|
265
|
+
output: 131072,
|
|
266
|
+
},
|
|
267
|
+
modalities: {
|
|
268
|
+
input: ["text"],
|
|
269
|
+
output: ["text"],
|
|
270
|
+
},
|
|
271
|
+
reasoning: true,
|
|
272
|
+
options: {
|
|
273
|
+
reasoningEffort: "high",
|
|
274
|
+
},
|
|
275
|
+
},
|
|
190
276
|
},
|
|
191
277
|
};
|
|
192
278
|
const PATCH_PROVIDER_PRESETS = {
|
|
@@ -206,7 +292,7 @@ const PATCH_PROVIDER_PRESETS = {
|
|
|
206
292
|
kind: "provider-object",
|
|
207
293
|
providerID: "deepseek",
|
|
208
294
|
value: DEEPSEEK_PATCH,
|
|
209
|
-
summary: "provider.deepseek.models.vv-deepseek
|
|
295
|
+
summary: "provider.deepseek.models.vv-deepseek flash aliases patched",
|
|
210
296
|
},
|
|
211
297
|
kimi: {
|
|
212
298
|
kind: "provider-object",
|
|
@@ -220,6 +306,12 @@ const PATCH_PROVIDER_PRESETS = {
|
|
|
220
306
|
value: ALIBABA_PATCH,
|
|
221
307
|
summary: "provider.alibaba-token-plan.models.vv-qwen3.8-max-xhigh patched",
|
|
222
308
|
},
|
|
309
|
+
zai: {
|
|
310
|
+
kind: "provider-object",
|
|
311
|
+
providerID: "zai-coding-plan",
|
|
312
|
+
value: ZAI_PATCH,
|
|
313
|
+
summary: "provider.zai-coding-plan.models.vv-glm-5.3-high patched",
|
|
314
|
+
},
|
|
223
315
|
};
|
|
224
316
|
/** Special preset name that applies every registered patch preset in sequence. */
|
|
225
317
|
export const PATCH_ALL_PRESET = "all";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-provider.js","sourceRoot":"","sources":["../../src/commands/patch-provider.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,iBAAiB;AACjB,wBAAwB;AACxB,uFAAuF;AACvF,
|
|
1
|
+
{"version":3,"file":"patch-provider.js","sourceRoot":"","sources":["../../src/commands/patch-provider.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,iBAAiB;AACjB,wBAAwB;AACxB,uFAAuF;AACvF,yNAAyN;AACzN,0CAA0C;AAC1C,gEAAgE;AAChE,kBAAkB;AAClB,sBAAsB;AACtB,sBA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M,GAAG,IAAI,CAAC;oBACd,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBACxF,CAAC;YACH,CAAC;YACD,IAAI,MAAM;gBAAE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YACjC,OAAO;QACT,CAAC;QAED,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,wBAAwB,CAAC,UAAU,EAAE;YACpE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;YAClB,SAAS;YACT,KAAK;SACN,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,GAAG,mBAAmB,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;IACpE,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Supported orchestration profiles in stable CLI/schema order. */
|
|
2
|
-
export declare const ORCHESTRATION_PROFILE_NAMES: readonly ["single-session", "balanced", "orchestrated"];
|
|
2
|
+
export declare const ORCHESTRATION_PROFILE_NAMES: readonly ["single-session", "balanced", "orchestrated", "delegated"];
|
|
3
3
|
/** One supported preset-controlled orchestration profile. */
|
|
4
4
|
export type OrchestrationProfile = (typeof ORCHESTRATION_PROFILE_NAMES)[number];
|
|
5
5
|
/** Optional canonical vvoc configuration section. */
|
|
@@ -10,7 +10,7 @@ export type OrchestrationConfig = {
|
|
|
10
10
|
export type ResolvedOrchestrationPolicy = Readonly<{
|
|
11
11
|
profile: OrchestrationProfile;
|
|
12
12
|
controllerSystemContext: string;
|
|
13
|
-
workflowGuidance: "review-only" | "selective" | "tracked";
|
|
13
|
+
workflowGuidance: "review-only" | "selective" | "tracked" | "delegated";
|
|
14
14
|
}>;
|
|
15
15
|
/** Backward-compatible profile used when an old valid v3 document omits orchestration. */
|
|
16
16
|
export declare const DEFAULT_ORCHESTRATION_PROFILE: OrchestrationProfile;
|
|
@@ -21,11 +21,16 @@
|
|
|
21
21
|
// END_MODULE_MAP
|
|
22
22
|
//
|
|
23
23
|
// START_CHANGE_SUMMARY
|
|
24
|
-
// LAST_CHANGE: [C-
|
|
24
|
+
// LAST_CHANGE: [C-DELEGATED-WORKFLOW-ASTRA-PRESETS - Added the delegated profile with worker-owned implementation, controller acceptance, and checkpoint review guidance.]
|
|
25
25
|
// END_CHANGE_SUMMARY
|
|
26
26
|
// START_BLOCK_PROFILE_TYPES
|
|
27
27
|
/** Supported orchestration profiles in stable CLI/schema order. */
|
|
28
|
-
export const ORCHESTRATION_PROFILE_NAMES = [
|
|
28
|
+
export const ORCHESTRATION_PROFILE_NAMES = [
|
|
29
|
+
"single-session",
|
|
30
|
+
"balanced",
|
|
31
|
+
"orchestrated",
|
|
32
|
+
"delegated",
|
|
33
|
+
];
|
|
29
34
|
/** Backward-compatible profile used when an old valid v3 document omits orchestration. */
|
|
30
35
|
export const DEFAULT_ORCHESTRATION_PROFILE = "balanced";
|
|
31
36
|
// END_BLOCK_PROFILE_TYPES
|
|
@@ -52,6 +57,25 @@ items, dispatch implementers with complete task packets, collect all required re
|
|
|
52
57
|
respect bounded review rounds, and treat BLOCKED and NEEDS_CONTEXT as hard stops. Keep work-item
|
|
53
58
|
identity stable through implementation, review, verification, and close.
|
|
54
59
|
`.trim();
|
|
60
|
+
const DELEGATED_CONTROLLER_SYSTEM_CONTEXT = `
|
|
61
|
+
Keep architecture, important code reading, task contracts, acceptance decisions, and final
|
|
62
|
+
synthesis in this primary session. Delegate source implementation, tests, runtime configuration
|
|
63
|
+
changes, formatting, lint fixes, and reviewer-requested implementation changes to implementation
|
|
64
|
+
workers, including small mechanical fixes.
|
|
65
|
+
|
|
66
|
+
You may author specifications, plans, and explicitly requested planning artifacts under their
|
|
67
|
+
existing approval lifecycle, and you may execute verification commands, including commands that
|
|
68
|
+
produce ordinary generated verification or build outputs. Do not write complete implementation
|
|
69
|
+
bodies inside task packets and do not bypass the delegation policy by rewriting source through
|
|
70
|
+
shell commands.
|
|
71
|
+
|
|
72
|
+
Send each worker one bounded task packet and let it complete its local edit, test, and fix cycle
|
|
73
|
+
before reporting a concise result with evidence references. One active implementation worker is the
|
|
74
|
+
default; any parallel work requires explicitly disjoint approved scopes. Read the material changed
|
|
75
|
+
code and evidence yourself, then explicitly accept each completed attempt or request changes with
|
|
76
|
+
bounded rationale. Spend independent review at declared plan checkpoints instead of after every
|
|
77
|
+
task, and treat BLOCKED and NEEDS_CONTEXT as hard stops.
|
|
78
|
+
`.trim();
|
|
55
79
|
const RESOLVED_POLICIES = Object.freeze({
|
|
56
80
|
"single-session": Object.freeze({
|
|
57
81
|
profile: "single-session",
|
|
@@ -68,6 +92,11 @@ const RESOLVED_POLICIES = Object.freeze({
|
|
|
68
92
|
controllerSystemContext: ORCHESTRATED_CONTROLLER_SYSTEM_CONTEXT,
|
|
69
93
|
workflowGuidance: "tracked",
|
|
70
94
|
}),
|
|
95
|
+
delegated: Object.freeze({
|
|
96
|
+
profile: "delegated",
|
|
97
|
+
controllerSystemContext: DELEGATED_CONTROLLER_SYSTEM_CONTEXT,
|
|
98
|
+
workflowGuidance: "delegated",
|
|
99
|
+
}),
|
|
71
100
|
});
|
|
72
101
|
// END_BLOCK_CONCRETE_POLICIES
|
|
73
102
|
// START_CONTRACT: parseOrchestrationProfile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.js","sourceRoot":"","sources":["../../src/lib/orchestration.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iBAAiB;AACjB,wBAAwB;AACxB,yIAAyI;AACzI,yHAAyH;AACzH,oBAAoB;AACpB,kEAAkE;AAClE,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,0FAA0F;AAC1F,6DAA6D;AAC7D,yEAAyE;AACzE,iGAAiG;AACjG,4FAA4F;AAC5F,0GAA0G;AAC1G,2FAA2F;AAC3F,sGAAsG;AACtG,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"orchestration.js","sourceRoot":"","sources":["../../src/lib/orchestration.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,iBAAiB;AACjB,wBAAwB;AACxB,yIAAyI;AACzI,yHAAyH;AACzH,oBAAoB;AACpB,kEAAkE;AAClE,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,0FAA0F;AAC1F,6DAA6D;AAC7D,yEAAyE;AACzE,iGAAiG;AACjG,4FAA4F;AAC5F,0GAA0G;AAC1G,2FAA2F;AAC3F,sGAAsG;AACtG,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,6KAA6K;AAC7K,qBAAqB;AAErB,4BAA4B;AAC5B,mEAAmE;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,gBAAgB;IAChB,UAAU;IACV,cAAc;IACd,WAAW;CACH,CAAC;AAiBX,0FAA0F;AAC1F,MAAM,CAAC,MAAM,6BAA6B,GAAyB,UAAU,CAAC;AAC9E,0BAA0B;AAE1B,gCAAgC;AAChC,MAAM,wCAAwC,GAAG;;;;;;;;;CAShD,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,kCAAkC,GAAG;;;;;CAK1C,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,sCAAsC,GAAG;;;;;CAK9C,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;CAkB3C,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,iBAAiB,GACrB,MAAM,CAAC,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC;QAC9B,OAAO,EAAE,gBAAgB;QACzB,uBAAuB,EAAE,wCAAwC;QACjE,gBAAgB,EAAE,aAAa;KAChC,CAAC;IACF,QAAQ,E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