@osovv/vv-opencode 2.7.1 → 2.9.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 +18 -0
- package/README.md +27 -49
- package/dist/cli.js +1 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/completion.js +6 -32
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/preset.d.ts +0 -7
- package/dist/commands/preset.js +10 -29
- package/dist/commands/preset.js.map +1 -1
- package/dist/commands/session.d.ts +0 -3
- package/dist/commands/session.js +25 -40
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.js +3 -4
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.js +25 -3
- package/dist/commands/sync.js.map +1 -1
- package/dist/lib/managed-agents.js +1 -1
- package/dist/lib/managed-agents.js.map +1 -1
- package/dist/lib/opencode/inspection.d.ts +0 -4
- package/dist/lib/opencode/inspection.js +2 -12
- package/dist/lib/opencode/inspection.js.map +1 -1
- package/dist/lib/opencode/vvoc-orchestration-migration.d.ts +21 -0
- package/dist/lib/opencode/vvoc-orchestration-migration.js +91 -0
- package/dist/lib/opencode/vvoc-orchestration-migration.js.map +1 -0
- package/dist/lib/orchestration.d.ts +2 -11
- package/dist/lib/orchestration.js +21 -44
- package/dist/lib/orchestration.js.map +1 -1
- package/dist/lib/vvoc-config.d.ts +0 -25
- package/dist/lib/vvoc-config.js +4 -22
- package/dist/lib/vvoc-config.js.map +1 -1
- package/dist/lib/vvoc-preset-registry.d.ts +0 -30
- package/dist/lib/vvoc-preset-registry.js +4 -14
- package/dist/lib/vvoc-preset-registry.js.map +1 -1
- package/dist/plugins/system-context-injection/guidance.d.ts +1 -0
- package/dist/plugins/system-context-injection/guidance.js +6 -4
- package/dist/plugins/system-context-injection/guidance.js.map +1 -1
- package/dist/plugins/system-context-injection/index.js +23 -16
- package/dist/plugins/system-context-injection/index.js.map +1 -1
- package/dist/plugins/workflow/index.js +4 -2
- package/dist/plugins/workflow/index.js.map +1 -1
- package/dist/plugins/workflow/results.d.ts +4 -4
- package/dist/plugins/workflow/schemas.d.ts +4 -4
- package/dist/runtime/context-inspection.js +1 -1
- package/dist/runtime/context-inspection.js.map +1 -1
- package/dist/runtime/session-settings.d.ts +6 -5
- package/dist/runtime/session-settings.js +36 -14
- package/dist/runtime/session-settings.js.map +1 -1
- package/dist/tui/settings/plugin.d.ts +1 -1
- package/dist/tui/settings/plugin.js +3 -3
- package/dist/tui/settings/plugin.js.map +1 -1
- package/package.json +1 -1
- package/schemas/vvoc/v3.json +1 -37
- package/templates/agents/vv-controller.md +15 -4
- package/templates/skills/vv-execute/SKILL.md +184 -292
- package/templates/skills/vv-execute/references/tool-contracts.md +1 -1
- package/templates/skills/vv-handoff/SKILL.md +39 -50
- package/templates/skills/vv-plan/SKILL.md +97 -155
- package/templates/skills/vv-reflect/SKILL.md +91 -111
- package/templates/skills/vv-review/SKILL.md +33 -26
- package/templates/skills/vv-spec/SKILL.md +51 -93
- package/templates/skills/vv-ui-design-principles/SKILL.md +28 -33
- package/templates/skills/vv-ui-design-principles/references/slop-tells.md +9 -0
- package/templates/skills/vv-verification/SKILL.md +44 -55
- package/templates/skills/vv-verification/references/create-your-verification-stack.md +16 -0
- package/templates/skills/vv-verification/references/evidence.md +9 -0
- package/templates/skills/vv-verification/references/oracles.md +8 -0
- package/templates/skills/vv-verification/references/strategy.md +10 -0
- package/templates/skills/vv-write-for-agents/SKILL.md +33 -33
- package/templates/skills/vv-write-for-humans/SKILL.md +47 -49
- package/templates/skills/vvoc-usage-analytics/SKILL.md +45 -43
- package/templates/skills/vvoc-usage-analytics/references/opencode-db-queries.md +12 -3
- package/dist/commands/orchestration.d.ts +0 -25
- package/dist/commands/orchestration.js +0 -185
- package/dist/commands/orchestration.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 2.9.0 (2026-11-25)
|
|
2
|
+
|
|
3
|
+
### Summary
|
|
4
|
+
|
|
5
|
+
Version 2.9.0 removes session-wide orchestration profiles (single-session, balanced, orchestrated, and delegated) as a public CLI, config, preset, and session-settings choice, so execution behavior is now driven by the request or selected plan instead of a session-wide policy that could also shift the cached request prefix. Legacy vvoc.json files carrying root or per-preset orchestration sections are migrated by `vvoc sync`, which removes those sections from both project and global configs with a timestamped backup and a change report before strict validation, while other documents that still contain orchestration now fail loudly. Families without a recorded profile receive a stable `work_policy_default` section in the managed controller prompt, legacy families keep their frozen tail policy, the `vvoc orchestration` command and `/vv-settings` profile action are gone, and `/context` now accepts profile-less records. This is a breaking change for anyone relying on the removed profiles or the deleted command.
|
|
6
|
+
|
|
7
|
+
* fix(orchestration): close review findings on migration coverage and projections ([28d7769](https://github.com/osovv/vv-opencode/commit/28d7769))
|
|
8
|
+
* feat(orchestration)!: remove session-wide orchestration profiles ([77145bd](https://github.com/osovv/vv-opencode/commit/77145bd))
|
|
9
|
+
|
|
10
|
+
## 2.8.0 (2026-11-24)
|
|
11
|
+
|
|
12
|
+
### Summary
|
|
13
|
+
|
|
14
|
+
Version 2.8.0 standardizes all eleven managed skills on a canonical six-block grammar with scope, workflow, rules, and done blocks plus optional artifact and refs sections, removing the old universal root, identity, and task envelopes while preserving the skills' existing obligations. It also unifies the VV-plan and VV-execute execution vocabulary, restores English-output rules and lifecycle guidance, adds contents sections to long references, and introduces a deterministic grammar and reference gate that rejects malformed structures such as nested or uppercase elements, unterminated CDATA, and missing or poorly placed contents. These changes give users more consistent, predictable skill prompts and stronger validation that installed skills remain well-formed.
|
|
15
|
+
|
|
16
|
+
* fix(skills): restore preserved obligations and harden grammar gate ([135285e](https://github.com/osovv/vv-opencode/commit/135285e))
|
|
17
|
+
* feat(skills): adopt canonical six-block grammar for managed skills ([0bb0e0a](https://github.com/osovv/vv-opencode/commit/0bb0e0a))
|
|
18
|
+
|
|
1
19
|
## <small>2.7.1 (2026-11-24)</small>
|
|
2
20
|
|
|
3
21
|
### Summary
|
package/README.md
CHANGED
|
@@ -191,7 +191,7 @@ All prompt files are scaffolded by `vvoc install` / `vvoc sync`:
|
|
|
191
191
|
|
|
192
192
|
| Agent | When it helps |
|
|
193
193
|
|---|---|
|
|
194
|
-
| `vv-controller` | Primary agent that
|
|
194
|
+
| `vv-controller` | Primary agent that applies the stable controller default, or the legacy recorded policy for a family that kept one |
|
|
195
195
|
| `enhancer` | Improves rough requests before execution when a clearer prompt would help |
|
|
196
196
|
| `vv-implementer` | Applies a focused approved change and verifies it before reporting completion |
|
|
197
197
|
| `vv-spec-reviewer` | Checks whether implementation matches the requested spec and acceptance criteria |
|
|
@@ -202,7 +202,7 @@ All prompt files are scaffolded by `vvoc install` / `vvoc sync`:
|
|
|
202
202
|
|
|
203
203
|
Managed prompts and the universal guidance injected into primary sessions carry explicit correctness obligations. For behavior changes, agents derive the material properties that must be preserved from the request and established contracts, separate write scope from impact and verification scope, investigate directly affected consumers, challenge a material assumption with a diagnostic counterexample, and choose verification at the level the risk arises. Controllers tie completion claims to observed evidence rather than status markers; reviewers distinguish no discovered defect from sufficient support for a material claim and can fail a change for a material verification gap. Agents also keep evidence-supported conclusions settled until a concrete trigger — contradictory evidence, a specific counterexample, a changed requirement, or changed inputs — reopens them; they surface false premises instead of silently satisfying them, distinguish unsupported pressure from concrete evidence, and interpret test results as evidence against the request and contracts rather than as the specification. These obligations are prompt-level guidance only: `vvoc install` / `vvoc sync` deliver the current wording, changes take effect after an OpenCode restart like all vvoc config changes, and the bundled contract tests check instruction delivery and wording — they do not evaluate or guarantee how a real model behaves.
|
|
204
204
|
|
|
205
|
-
The complete controller prompt has
|
|
205
|
+
The complete controller prompt has the sections `task_and_scope`, `work_policy_default`, `project_context`, `repository_memory`, `evidence_discipline`, `working_cycle`, `delegation_and_workflow`, and `communication`. Its single wording source is `templates/agents/vv-controller.md`; the plugin reads that bundled template locally at startup. Other eligible primary agents receive the shared project, memory, evidence, and working-cycle sections plus the shared authority and delivery fragments, without the controller's role, task policy, worker-dispatch/recovery instructions, or full communication policy. Repository memory remains instruction-driven reading of `.vvoc/lessons/index.xml` and `.vvoc/runbooks/index.xml`. The stable `work_policy_default` is projected for families with no recorded profile, while a family carrying a legacy recorded profile keeps its previously resolved tail policy instead. Run `vvoc sync` and restart OpenCode to update an existing managed controller prompt together with the plugin.
|
|
206
206
|
|
|
207
207
|
### Managed skills
|
|
208
208
|
|
|
@@ -239,11 +239,10 @@ Skills are discovered by OpenCode through the native `skills` string array in `o
|
|
|
239
239
|
| `vvoc config validate` | Validate canonical `vvoc.json` |
|
|
240
240
|
| `vvoc role list\|set\|unset` | Manage model role assignments |
|
|
241
241
|
| `vvoc preset list\|show\|<name>` | Inspect or apply named presets |
|
|
242
|
-
| `vvoc session set` | Change one session family's recorded settings (preset,
|
|
242
|
+
| `vvoc session set` | Change one session family's recorded settings (preset, role, plugin toggle, or pull current defaults) through the running host |
|
|
243
243
|
| `vvoc guardian config` | Print or write the guardian section |
|
|
244
244
|
| `vvoc plugin list` | List OpenCode plugin entries |
|
|
245
245
|
| `vvoc plugin enable\|disable` | Toggle a vvoc-managed plugin on or off |
|
|
246
|
-
| `vvoc orchestration show\|set` | Show or set the vv-controller orchestration profile |
|
|
247
246
|
| `vvoc patch-provider stepfun-ai\|codex\|deepseek\|alibaba\|zai\|xiaomi\|all` | Patch OpenCode providers; `codex` adds real gpt-5.5/5.6/6 models with effort variants (also accepts `openai`), `deepseek`/`alibaba`/`zai`/`xiaomi` add `#variant` suffixes on real models, `stepfun-ai` sets the StepFun `.ai` baseURL, `all` patches every provider at once |
|
|
248
247
|
| `vvoc completion` | Install shell completions |
|
|
249
248
|
| `vvoc upgrade` | Upgrade the global package and run follow-up sync; sync failure or an out-of-window host exits non-zero with best-effort method-aware host guidance |
|
|
@@ -320,7 +319,7 @@ The native document shape vvoc validates, extends, and writes into:
|
|
|
320
319
|
|
|
321
320
|
Role intent has a native home as well: the pinned package entry's `options.modelIntent` envelope (`model`, `smallModel`, `agents`, `commands`) carries root, small-model, agent, and command model intent inside the native document — native hosts in the supported window have no `small_model` field and reject role references in `model` and `agents.<id>.model`, so vv-opencode never writes a `vv-role:*` reference as a native model literal (the model-overrides APIs route role intent into the envelope instead). Role assignments themselves live in `vvoc.json`: `vvoc role set` and preset application edit only that file, and the model-roles runtime combines the effective role map with the raw envelope intent to resolve concrete `provider/model#variant` selections (for example `xiaomi/mimo-v2.6-flash#thinking`) for newly created sessions.
|
|
322
321
|
|
|
323
|
-
Runtime plugins resolve a session family's settings from native session metadata: the first time a session family (a root session plus its forks and subagents) is seen, the resolved roles
|
|
322
|
+
Runtime plugins resolve a session family's settings from native session metadata: the first time a session family (a root session plus its forks and subagents) is seen, the resolved roles and plugin toggles from the effective `vvoc.json` are recorded under the `vvoc:settings` key of the root session's metadata, and the family keeps resolving that record — across config edits and across server restarts — until it is explicitly changed. A new session always births the current configuration without a profile, and provider and web credentials are never persisted: they keep coming from the live configuration at request time. A family changes only when you explicitly ask: run `vvoc session set --session <id>` with one of `--preset <name>`, `--role <id>=<model>` (or `--role unset:<id>`), `--plugin <name>=on|off`, or `--pull-defaults` (re-record the current defaults), or run `/vv-settings` in the OpenCode TUI with the same one-line actions (`preset <name>`, `role <id> <model>`, `role unset <id>`, `plugin <name> on|off`, `pull-defaults`) — with no argument it shows the current family settings. Both change only the family of the session you name; every write is a read-modify-write of the metadata key, so unrelated metadata on the session survives. The first start after upgrading converts the previous version's family bindings into root metadata once and then removes the old stores; a migrated family keeps its previously recorded profile as a transition marker. A family with a recorded profile still receives its legacy policy at the request tail rather than inside the system prefix, so its cached prefix stays stable.
|
|
324
323
|
|
|
325
324
|
### Strict schema, loud failures
|
|
326
325
|
|
|
@@ -418,61 +417,40 @@ vvoc patch-provider xiaomi # mimo-v2.6-flash#thinking (thinking.type=enable
|
|
|
418
417
|
vvoc patch-provider all # every patch above in one run
|
|
419
418
|
```
|
|
420
419
|
|
|
421
|
-
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 from the shipped registry as part of the other work `vvoc install` and `vvoc sync` already do; neither command activates a preset or writes the active roles
|
|
420
|
+
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 from the shipped registry as part of the other work `vvoc install` and `vvoc sync` already do; neither command activates a preset or writes the active roles on its own — that only happens when you run `vvoc preset <name>`.
|
|
422
421
|
|
|
423
|
-
Every shipped preset declares an explicit role matrix
|
|
422
|
+
Every shipped preset declares an explicit role matrix:
|
|
424
423
|
|
|
425
|
-
| Preset | default | fast | smart | reviewer |
|
|
426
|
-
|
|
427
|
-
| `vv-codex` | `openai/gpt-5.6-terra#high` | `openai/gpt-6-luna#low` | `openai/gpt-5.6-sol#xhigh` | `openai/gpt-5.6-sol#xhigh` |
|
|
428
|
-
| `vv-zai` | `zai-coding-plan/glm-5.3-flash#max` | `zai-coding-plan/glm-5.3-flash#max` | `zai-coding-plan/glm-5.3#max` | `zai-coding-plan/glm-5.3#max` |
|
|
429
|
-
| `vv-deepseek` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` |
|
|
430
|
-
| `vv-alibaba` | `alibaba-token-plan/qwen3.8-max` | `alibaba-token-plan/deepseek-v4-flash` | `alibaba-token-plan/qwen3.8-max#xhigh` | `alibaba-token-plan/glm-5.2` |
|
|
431
|
-
| `vv-osovv-ds` | `deepseek/deepseek-flash#max` | `openai/gpt-6-luna#low` | `deepseek/deepseek-flash#max` | `zai-coding-plan/glm-5.3#max` |
|
|
432
|
-
| `vv-osovv-mimo` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `xiaomi/mimo-v2.6-flash#thinking` | `zai-coding-plan/glm-5.3#max` |
|
|
433
|
-
| `vv-osovv-zai` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `zai-coding-plan/glm-5.3#max` | `zai-coding-plan/glm-5.3#max` |
|
|
434
|
-
| `vv-osovv-qwen` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `alibaba-token-plan/qwen3.8-max#xhigh` | `zai-coding-plan/glm-5.3#max` |
|
|
435
|
-
| `vv-astra-solo` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `openai/gpt-6-astra#max` | `zai-coding-plan/glm-5.3#high` |
|
|
436
|
-
| `vv-astra-workers` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `openai/gpt-6-astra#max` | `zai-coding-plan/glm-5.3#high` |
|
|
424
|
+
| Preset | default | fast | smart | reviewer |
|
|
425
|
+
|---|---|---|---|---|
|
|
426
|
+
| `vv-codex` | `openai/gpt-5.6-terra#high` | `openai/gpt-6-luna#low` | `openai/gpt-5.6-sol#xhigh` | `openai/gpt-5.6-sol#xhigh` |
|
|
427
|
+
| `vv-zai` | `zai-coding-plan/glm-5.3-flash#max` | `zai-coding-plan/glm-5.3-flash#max` | `zai-coding-plan/glm-5.3#max` | `zai-coding-plan/glm-5.3#max` |
|
|
428
|
+
| `vv-deepseek` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` |
|
|
429
|
+
| `vv-alibaba` | `alibaba-token-plan/qwen3.8-max` | `alibaba-token-plan/deepseek-v4-flash` | `alibaba-token-plan/qwen3.8-max#xhigh` | `alibaba-token-plan/glm-5.2` |
|
|
430
|
+
| `vv-osovv-ds` | `deepseek/deepseek-flash#max` | `openai/gpt-6-luna#low` | `deepseek/deepseek-flash#max` | `zai-coding-plan/glm-5.3#max` |
|
|
431
|
+
| `vv-osovv-mimo` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `xiaomi/mimo-v2.6-flash#thinking` | `zai-coding-plan/glm-5.3#max` |
|
|
432
|
+
| `vv-osovv-zai` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `zai-coding-plan/glm-5.3#max` | `zai-coding-plan/glm-5.3#max` |
|
|
433
|
+
| `vv-osovv-qwen` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `alibaba-token-plan/qwen3.8-max#xhigh` | `zai-coding-plan/glm-5.3#max` |
|
|
434
|
+
| `vv-astra-solo` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `openai/gpt-6-astra#max` | `zai-coding-plan/glm-5.3#high` |
|
|
435
|
+
| `vv-astra-workers` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `openai/gpt-6-astra#max` | `zai-coding-plan/glm-5.3#high` |
|
|
437
436
|
|
|
438
|
-
`vv-osovv-ds` replaces the former `vv-osovv-flash` offering and `vv-osovv-zai` is new; `vv-osovv-sol`, `vv-osovv-flash`, and `vv-osovv-kimi` are no longer shipped. A retired preset definition already present in a saved `vvoc.json` is preserved in place rather than migrated or removed across `vvoc install`/`vvoc sync`; delete it manually if you no longer want it. No automatic provider migration or legacy-name cleanup runs, and applying a preset changes only the roles
|
|
437
|
+
`vv-osovv-ds` replaces the former `vv-osovv-flash` offering and `vv-osovv-zai` is new; `vv-osovv-sol`, `vv-osovv-flash`, and `vv-osovv-kimi` are no longer shipped. A retired preset definition already present in a saved `vvoc.json` is preserved in place rather than migrated or removed across `vvoc install`/`vvoc sync`; delete it manually if you no longer want it. No automatic provider migration or legacy-name cleanup runs, and applying a preset changes only the roles it declares.
|
|
439
438
|
|
|
440
439
|
Provider patches bind real model ids with `#variant` suffixes instead of alias models. `deepseek/deepseek-flash` carries `#max` and `#high` effort variants (image input, 384000-token output limit), and `deepseek/deepseek-v4-flash#max` stays text-only with the same output limit. On `zai-coding-plan`, `glm-5.3` carries `#high` and `#max` (both text-only) and `glm-5.3-flash` carries `#max` (text, image, video, and PDF input); `alibaba-token-plan/qwen3.8-max` carries `#xhigh`. On `xiaomi`, `mimo-v2.6-flash#thinking` enables the documented thinking toggle (`thinking.type=enabled`) with no PDF declaration and no `reasoningEffort` — text/image/audio/video input, 1M context / 131K output — because the public Xiaomi API documents a thinking toggle rather than an effort knob; live thinking behavior is not smoke-verified. Codex variants keep the established OpenAI reasoning-summary and encrypted-reasoning options, with the GPT-5.5/5.6 family capped at 400K context / 272K input and GPT-6 Luna/Astra keeping 1.05M/922K/128K. The `stepfun-ai` patch keeps the StepFun `.ai` baseURL (`https://api.stepfun.ai/v1`) for `step-3.7-flash`. `gpt-5.3-codex-spark` keeps its `#medium` variant only for manual configurations that already reference it, advertised conservatively as text-only, and no shipped preset selects it. The shared `fast` role also serves `smallModel` (through the `modelIntent` envelope — native 2.0.18 has no `small_model` field), `explore`, and `guardian`; 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.
|
|
441
440
|
|
|
442
|
-
###
|
|
441
|
+
### Controller execution default
|
|
443
442
|
|
|
444
|
-
|
|
443
|
+
The controller prompt carries one short stable default: repository exploration, investigation, planning, implementation, and verification happen in the current session unless you explicitly request delegation or a selected plan calls for it. Bounded search assistance does not select an execution mode. An independent reviewer is used when you explicitly request review or when a materially risky completed change benefits from it — one review round by default, findings validated personally, confirmed fixes applied by the controller, and fresh verification. Review-only requests report findings and stop before fixes unless you confirm them.
|
|
445
444
|
|
|
446
|
-
- `
|
|
447
|
-
- `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.
|
|
448
|
-
- `orchestrated` — vv-controller uses the full tracked implementer/reviewer workflow with explicit work items, required reviewers, bounded rounds, and hard stops.
|
|
449
|
-
- `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, and stopped or exhausted work resumes only through recorded bounded recovery.
|
|
445
|
+
The default lives in the stable managed controller prompt, so it stays inside the cached system prefix. Detailed execution and review guidance remains on demand through `vv-execute`, `vv-review`, and their references; new families receive no session-wide profile policy at the request tail. `vv-execute` supports inline, classic, and delegated execution per plan without a session-wide profile, and ordinary requests open no work item unless you explicitly request execution or review or a selected approved plan calls for it.
|
|
450
446
|
|
|
451
|
-
|
|
447
|
+
### Legacy orchestration migration
|
|
452
448
|
|
|
453
|
-
|
|
454
|
-
vvoc orchestration show --scope effective
|
|
455
|
-
vvoc orchestration set single-session --scope project
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
Built-in presets declare an orchestration mapping:
|
|
459
|
-
|
|
460
|
-
| Preset | Profile |
|
|
461
|
-
|---|---|
|
|
462
|
-
| `vv-codex` | single-session |
|
|
463
|
-
| `vv-alibaba` | single-session |
|
|
464
|
-
| `vv-osovv-ds` | single-session |
|
|
465
|
-
| `vv-osovv-mimo` | single-session |
|
|
466
|
-
| `vv-osovv-zai` | single-session |
|
|
467
|
-
| `vv-astra-solo` | single-session |
|
|
468
|
-
| `vv-astra-workers` | delegated |
|
|
469
|
-
| `vv-osovv-qwen` | delegated |
|
|
470
|
-
| `vv-zai` | balanced |
|
|
471
|
-
| `vv-deepseek` | balanced |
|
|
449
|
+
Earlier versions offered four session-wide orchestration profiles. They are no longer a CLI, config, preset, or session-settings choice: `vvoc orchestration`, `vvoc session set --profile`, and the `/vv-settings profile` action are gone, presets assign roles only, and completions and `vvoc status` never offer a profile.
|
|
472
450
|
|
|
473
|
-
|
|
451
|
+
An existing `vvoc.json` that still contains a root or per-preset `orchestration` section is rejected loudly by strict validation. The one explicit migration path is `vvoc sync`: after the host-window gate and before strict validation it removes only those sections from the project and global documents, preserves every other key verbatim, writes a timestamped `.vvoc-backup-<timestamp>` sibling, and reports each migrated path and removed section. Invalid JSON is left untouched so validation still fails loudly.
|
|
474
452
|
|
|
475
|
-
|
|
453
|
+
Families created before the removal keep the behavior they were bound to: a family whose recorded `vvoc:settings` already contains a profile keeps its previously resolved tail policy and workflow-protocol variant and does not receive the new default, while runtime enforcement of acceptance, review, blockers, and bounded recovery is unchanged. Any explicit rewrite through `vvoc session set` or `/vv-settings` — including `pull-defaults` — drops the recorded profile, and a family whose root no longer resolves through lineage has ended. The recorded profile is the documented boundary marker.
|
|
476
454
|
|
|
477
455
|
### Workflow work items
|
|
478
456
|
|
|
@@ -495,7 +473,7 @@ For review-only reports, use `"mode": "review_only"`. In review-only mode, revie
|
|
|
495
473
|
|
|
496
474
|
#### Delegated execution and review checkpoints
|
|
497
475
|
|
|
498
|
-
The workflow plugin registers two control tools — `work_item_decide` and `work_checkpoint` — for the primary vv-controller session independent of
|
|
476
|
+
The workflow plugin registers two control tools — `work_item_decide` and `work_checkpoint` — for the primary vv-controller session independent of any recorded profile. Registration is profile-independent; enforcement is not: child sessions, untrusted workspaces, and unverifiable session identity are denied by the root-controller guard.
|
|
499
477
|
|
|
500
478
|
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`:
|
|
501
479
|
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// START_MODULE_CONTRACT
|
|
5
5
|
// PURPOSE: Assemble and run the vvoc CLI entrypoint.
|
|
6
6
|
// SCOPE: Package version lookup, top-level command registration including the lint command, and main command execution.
|
|
7
|
-
// DEPENDS: [citty, src/commands/analytics.ts, src/commands/completion.ts, src/commands/config.ts, src/commands/doctor.ts, src/commands/guardian.ts, src/commands/init.ts, src/commands/install.ts, src/commands/launch.ts, src/commands/
|
|
7
|
+
// DEPENDS: [citty, src/commands/analytics.ts, src/commands/completion.ts, src/commands/config.ts, src/commands/doctor.ts, src/commands/guardian.ts, src/commands/init.ts, src/commands/install.ts, src/commands/launch.ts, src/commands/lint.ts, src/commands/patch-provider.ts, src/commands/preset.ts, src/commands/plugin.ts, src/commands/role.ts, src/commands/session.ts, src/commands/status.ts, src/commands/sync.ts, src/commands/telegram.ts, src/commands/upgrade.ts, src/commands/version.ts, src/lib/package.ts]
|
|
8
8
|
// LINKS: [M-CLI-COMMANDS]
|
|
9
9
|
// ROLE: SCRIPT
|
|
10
10
|
// MAP_MODE: LOCALS
|
|
@@ -28,7 +28,6 @@ import init from "./commands/init.js";
|
|
|
28
28
|
import install from "./commands/install.js";
|
|
29
29
|
import launch from "./commands/launch.js";
|
|
30
30
|
import lint from "./commands/lint.js";
|
|
31
|
-
import orchestration from "./commands/orchestration.js";
|
|
32
31
|
import patchProvider from "./commands/patch-provider.js";
|
|
33
32
|
import preset from "./commands/preset.js";
|
|
34
33
|
import plugin from "./commands/plugin.js";
|
|
@@ -58,7 +57,6 @@ const main = defineCommand({
|
|
|
58
57
|
install,
|
|
59
58
|
launch,
|
|
60
59
|
lint,
|
|
61
|
-
orchestration,
|
|
62
60
|
"patch-provider": patchProvider,
|
|
63
61
|
preset,
|
|
64
62
|
plugin,
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,mBAAmB;AACnB,iBAAiB;AACjB,wBAAwB;AACxB,uDAAuD;AACvD,0HAA0H;AAC1H
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,mBAAmB;AACnB,iBAAiB;AACjB,wBAAwB;AACxB,uDAAuD;AACvD,0HAA0H;AAC1H,ggBAAggB;AAChgB,4BAA4B;AAC5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AAW,EAAE;QACX,SAAS;QACT,UAAU;QACV,MAAM;QACN,MAAM;QACN,QAAQ;QACR,IAAI;QACJ,OAAO;QACP,MAAM;QACN,IAAI;QACJ,gBAAgB,EAAE,aAAa;QAC/B,MAAM;QACN,MAAM;QACN,IAAI;QACJ,OAAO;QACP,MAAM;QACN,IAAI;QACJ,QAAQ;QACR,OAAO;QACP,OAAO;KACR;CACF,CAAC,CAAC;AACH,+BAA+B;AAE/B,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// VERSION: 0.5.15
|
|
3
3
|
// START_MODULE_CONTRACT
|
|
4
4
|
// PURPOSE: Auto-detect shell and install vvoc completions idempotently.
|
|
5
|
-
// SCOPE: Shell detection, completion file writing, nested
|
|
6
|
-
// DEPENDS: [citty, node:fs/promises, node:path, node:os, src/lib/model-roles.ts, src/lib/
|
|
7
|
-
// LINKS: M-CLI-COMPLETION, M-CLI-COMMANDS, M-
|
|
5
|
+
// SCOPE: Shell detection, completion file writing, nested config/plugin/patch-provider/preset and role flow generation, and rc file patching.
|
|
6
|
+
// DEPENDS: [citty, node:fs/promises, node:path, node:os, src/lib/model-roles.ts, src/lib/vvoc-preset-registry.ts]
|
|
7
|
+
// LINKS: M-CLI-COMPLETION, M-CLI-COMMANDS, M-ORCHESTRATION-PROFILES
|
|
8
8
|
// ROLE: RUNTIME
|
|
9
9
|
// MAP_MODE: EXPORTS
|
|
10
10
|
// END_MODULE_CONTRACT
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
// END_MODULE_MAP
|
|
19
19
|
//
|
|
20
20
|
// START_CHANGE_SUMMARY
|
|
21
|
-
// LAST_CHANGE: [C-
|
|
21
|
+
// LAST_CHANGE: [C-REMOVE-SESSION-ORCHESTRATION-PROFILES T-002 - Completions no longer expose the removed orchestration command or its profile values.]
|
|
22
22
|
// END_CHANGE_SUMMARY
|
|
23
23
|
import { defineCommand } from "citty";
|
|
24
24
|
import { appendFile, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
25
25
|
import { homedir } from "node:os";
|
|
26
26
|
import { resolve } from "node:path";
|
|
27
27
|
import { SEEDED_ROLE_NAMES } from "../lib/model-roles.js";
|
|
28
|
-
import { ORCHESTRATION_PROFILE_NAMES } from "../lib/orchestration.js";
|
|
29
28
|
import { BUILTIN_VVOC_PRESET_NAMES } from "../lib/vvoc-preset-registry.js";
|
|
30
29
|
const VVOC_TOP_LEVEL_COMMANDS = [
|
|
31
30
|
"completion",
|
|
@@ -35,7 +34,6 @@ const VVOC_TOP_LEVEL_COMMANDS = [
|
|
|
35
34
|
"init",
|
|
36
35
|
"install",
|
|
37
36
|
"launch",
|
|
38
|
-
"orchestration",
|
|
39
37
|
"patch-provider",
|
|
40
38
|
"preset",
|
|
41
39
|
"plugin",
|
|
@@ -46,8 +44,6 @@ const VVOC_TOP_LEVEL_COMMANDS = [
|
|
|
46
44
|
"version",
|
|
47
45
|
];
|
|
48
46
|
const VVOC_CONFIG_COMMANDS = ["validate"];
|
|
49
|
-
const VVOC_ORCHESTRATION_COMMANDS = ["show", "set"];
|
|
50
|
-
const VVOC_ORCHESTRATION_PROFILES = [...ORCHESTRATION_PROFILE_NAMES];
|
|
51
47
|
const VVOC_PATCH_PROVIDER_PRESETS = [
|
|
52
48
|
"stepfun-ai",
|
|
53
49
|
"codex",
|
|
@@ -158,8 +154,6 @@ async function installFishCompletion() {
|
|
|
158
154
|
export function generateBashCompletion() {
|
|
159
155
|
const topLevelCommands = VVOC_TOP_LEVEL_COMMANDS.join(" ");
|
|
160
156
|
const configCommands = VVOC_CONFIG_COMMANDS.join(" ");
|
|
161
|
-
const orchestrationCommands = VVOC_ORCHESTRATION_COMMANDS.join(" ");
|
|
162
|
-
const orchestrationProfiles = VVOC_ORCHESTRATION_PROFILES.join(" ");
|
|
163
157
|
const patchProviderPresets = VVOC_PATCH_PROVIDER_PRESETS.join(" ");
|
|
164
158
|
const presetCommands = [...VVOC_PRESET_COMMANDS, ...BUILTIN_VVOC_PRESET_NAMES].join(" ");
|
|
165
159
|
const presetNames = BUILTIN_VVOC_PRESET_NAMES.join(" ");
|
|
@@ -183,9 +177,6 @@ export function generateBashCompletion() {
|
|
|
183
177
|
" config)\n" +
|
|
184
178
|
" _vvoc_config_commands\n" +
|
|
185
179
|
" ;;\n" +
|
|
186
|
-
" orchestration)\n" +
|
|
187
|
-
" _vvoc_orchestration_commands\n" +
|
|
188
|
-
" ;;\n" +
|
|
189
180
|
" patch-provider)\n" +
|
|
190
181
|
" _vvoc_patch_provider_presets\n" +
|
|
191
182
|
" ;;\n" +
|
|
@@ -202,9 +193,6 @@ export function generateBashCompletion() {
|
|
|
202
193
|
" role:set)\n" +
|
|
203
194
|
" _vvoc_role_ids\n" +
|
|
204
195
|
" ;;\n" +
|
|
205
|
-
" orchestration:set)\n" +
|
|
206
|
-
" _vvoc_orchestration_profiles\n" +
|
|
207
|
-
" ;;\n" +
|
|
208
196
|
" preset:show)\n" +
|
|
209
197
|
" _vvoc_preset_names\n" +
|
|
210
198
|
" ;;\n" +
|
|
@@ -227,20 +215,6 @@ export function generateBashCompletion() {
|
|
|
227
215
|
' COMPREPLY=($(compgen -W "$commands" -- "$cur"))\n' +
|
|
228
216
|
"}\n" +
|
|
229
217
|
"\n" +
|
|
230
|
-
"_vvoc_orchestration_commands() {\n" +
|
|
231
|
-
' local commands="' +
|
|
232
|
-
orchestrationCommands +
|
|
233
|
-
'"\n' +
|
|
234
|
-
' COMPREPLY=($(compgen -W "$commands" -- "$cur"))\n' +
|
|
235
|
-
"}\n" +
|
|
236
|
-
"\n" +
|
|
237
|
-
"_vvoc_orchestration_profiles() {\n" +
|
|
238
|
-
' local commands="' +
|
|
239
|
-
orchestrationProfiles +
|
|
240
|
-
'"\n' +
|
|
241
|
-
' COMPREPLY=($(compgen -W "$commands" -- "$cur"))\n' +
|
|
242
|
-
"}\n" +
|
|
243
|
-
"\n" +
|
|
244
218
|
"_vvoc_patch_provider_presets() {\n" +
|
|
245
219
|
' local commands="' +
|
|
246
220
|
patchProviderPresets +
|
|
@@ -297,7 +271,7 @@ export function generateZshCompletion() {
|
|
|
297
271
|
for (const cmd of VVOC_TOP_LEVEL_COMMANDS) {
|
|
298
272
|
lines.push(' "' + cmd + '"');
|
|
299
273
|
}
|
|
300
|
-
lines.push(" )", "", ' _arguments -C "1: :(' + VVOC_TOP_LEVEL_COMMANDS.join(" ") + ')" "*::arg:->args"', "", " case $line[1] in", " role)", " _vvoc_role_cmds", " ;;", " config)", " _vvoc_config_cmds", " ;;", "
|
|
274
|
+
lines.push(" )", "", ' _arguments -C "1: :(' + VVOC_TOP_LEVEL_COMMANDS.join(" ") + ')" "*::arg:->args"', "", " case $line[1] in", " role)", " _vvoc_role_cmds", " ;;", " config)", " _vvoc_config_cmds", " ;;", " patch-provider)", " _vvoc_patch_provider_cmds", " ;;", " preset)", " _vvoc_preset_cmds", " ;;", " plugin)", " _vvoc_plugin_cmds", " ;;", " esac", "}", "", "_vvoc_config_cmds() {", " local -a config_commands", " config_commands=(" + VVOC_CONFIG_COMMANDS.join(" ") + ")", ' _arguments "1: :(' + VVOC_CONFIG_COMMANDS.join(" ") + ')"', "}", "", "_vvoc_patch_provider_cmds() {", ' _arguments "1: :(' + VVOC_PATCH_PROVIDER_PRESETS.join(" ") + ')"', "}", "", "_vvoc_preset_cmds() {", " case $words[2] in", " show)", ' _arguments "1: :(' + BUILTIN_VVOC_PRESET_NAMES.join(" ") + ')"', " ;;", " *)", ' _arguments "1: :(' +
|
|
301
275
|
[...VVOC_PRESET_COMMANDS, ...BUILTIN_VVOC_PRESET_NAMES].join(" ") +
|
|
302
276
|
')"', " ;;", " esac", "}", "", "_vvoc_role_cmds() {", " case $words[2] in", " set)", ' _arguments "1: :(' + VVOC_ROLE_IDS.join(" ") + ')"', " ;;", " unset)", ' _arguments "1: :<custom-role-id>"', " ;;", " *)", ' _arguments "1: :(' + VVOC_ROLE_COMMANDS.join(" ") + ')"', " ;;", " esac", "}", "", "_vvoc_plugin_cmds() {", " local -a plugin_commands", " plugin_commands=(" + VVOC_PLUGIN_COMMANDS.join(" ") + ")", ' _arguments "1: :(' + VVOC_PLUGIN_COMMANDS.join(" ") + ')"', "}", "", "compdef _vvoc vvoc");
|
|
303
277
|
return lines.join("\n") + "\n";
|
|
@@ -308,7 +282,7 @@ export function generateFishCompletion() {
|
|
|
308
282
|
for (const cmd of VVOC_TOP_LEVEL_COMMANDS) {
|
|
309
283
|
lines.push(" echo " + cmd);
|
|
310
284
|
}
|
|
311
|
-
lines.push("end", "", "function __vvoc_config_cmds", " echo " + VVOC_CONFIG_COMMANDS.join(" "), "end", "", "function
|
|
285
|
+
lines.push("end", "", "function __vvoc_config_cmds", " echo " + VVOC_CONFIG_COMMANDS.join(" "), "end", "", "function __vvoc_patch_provider_cmds", " echo " + VVOC_PATCH_PROVIDER_PRESETS.join(" "), "end", "", "function __vvoc_preset_cmds", " echo " + presetCommands, "end", "", "function __vvoc_preset_names", " echo " + BUILTIN_VVOC_PRESET_NAMES.join(" "), "end", "", "function __vvoc_role_cmds", " echo " + VVOC_ROLE_COMMANDS.join(" "), "end", "", "function __vvoc_role_ids", " echo " + VVOC_ROLE_IDS.join(" "), "end", "", "function __vvoc_plugin_cmds", " echo " + VVOC_PLUGIN_COMMANDS.join(" "), "end", "", 'complete -c vvoc -f -a "(__vvoc_commands)"', 'complete -c vvoc -n "__fish_seen_subcommand_from role; and not __fish_seen_subcommand_from set unset list" -f -a "(__vvoc_role_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from role; and __fish_seen_subcommand_from set" -f -a "(__vvoc_role_ids)"', 'complete -c vvoc -n "__fish_seen_subcommand_from config" -f -a "(__vvoc_config_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from patch-provider" -f -a "(__vvoc_patch_provider_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from preset; and not __fish_seen_subcommand_from ' +
|
|
312
286
|
presetCommands +
|
|
313
287
|
'" -f -a "(__vvoc_preset_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from preset; and __fish_seen_subcommand_from show" -f -a "(__vvoc_preset_names)"', 'complete -c vvoc -n "__fish_seen_subcommand_from plugin" -f -a "(__vvoc_plugin_cmds)"');
|
|
314
288
|
return lines.join("\n") + "\n";
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,kBAAkB;AAClB,wBAAwB;AACxB,0EAA0E;AAC1E,gJAAgJ;AAChJ,oHAAoH;AACpH,sEAAsE;AACtE,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,EAAE;AACF,uBAAuB;AACvB,yJAAyJ;AACzJ,qBAAqB;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,uBAAuB,GAAG;IAC9B,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,MAAM;IACN,SAAS;IACT,QAAQ;IACR,gBAAgB;IAChB,QAAQ;IACR,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,EACnC,KAAK,EACL,EAAE,EACF,6BAA6B,EAC7B,SAAS,GAAG,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,EAC1C,KAAK,EACL,EAAE,EACF,4CAA4C,EAC5C,uIAAuI,EACvI,uHAAuH,EACvH,uFAAuF,EACvF,uGAAuG,EACvG,+FAA+F;QAC7F,cAAc;QACd,gCAAgC,EAClC,8HAA8H,EAC9H,uFAAuF,CACxF,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AACjC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ConfigWriteScope } from "../lib/config-layers.js";
|
|
2
|
-
import { type OrchestrationProfile } from "../lib/orchestration.js";
|
|
3
2
|
import { type VvocPreset, type VvocPresets } from "../lib/vvoc-config.js";
|
|
4
3
|
type ListedPreset = {
|
|
5
4
|
name: string;
|
|
@@ -10,11 +9,6 @@ export type AppliedPresetChange = {
|
|
|
10
9
|
model: string;
|
|
11
10
|
action: "updated" | "kept";
|
|
12
11
|
};
|
|
13
|
-
/** Result of applying the optional orchestration part of a preset. */
|
|
14
|
-
export type AppliedPresetOrchestrationChange = {
|
|
15
|
-
profile: OrchestrationProfile;
|
|
16
|
-
action: "updated" | "kept" | "unchanged";
|
|
17
|
-
};
|
|
18
12
|
declare const _default: import("citty").CommandDef<{
|
|
19
13
|
readonly command: {
|
|
20
14
|
type: "positional";
|
|
@@ -51,6 +45,5 @@ export declare function applyPreset(presetName: string, options?: {
|
|
|
51
45
|
name: string;
|
|
52
46
|
preset: VvocPreset;
|
|
53
47
|
changes: AppliedPresetChange[];
|
|
54
|
-
orchestration: AppliedPresetOrchestrationChange;
|
|
55
48
|
path: string;
|
|
56
49
|
}>;
|
package/dist/commands/preset.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// FILE: src/commands/preset.ts
|
|
2
2
|
// VERSION: 0.5.0
|
|
3
3
|
// START_MODULE_CONTRACT
|
|
4
|
-
// PURPOSE: List, show, and atomically apply declarative role
|
|
5
|
-
// SCOPE: Effective/global/project preset lookup, preset rendering, and conservative role
|
|
6
|
-
// DEPENDS: [citty, node:fs/promises, src/lib/config-layers.ts, src/lib/model-roles.ts, src/lib/opencode.ts, src/lib/
|
|
4
|
+
// PURPOSE: List, show, and atomically apply declarative role presets from scoped vvoc.json layers.
|
|
5
|
+
// SCOPE: Effective/global/project preset lookup, preset rendering, and conservative role writes.
|
|
6
|
+
// DEPENDS: [citty, node:fs/promises, src/lib/config-layers.ts, src/lib/model-roles.ts, src/lib/opencode.ts, src/lib/vvoc-config.ts]
|
|
7
7
|
// LINKS: [M-CLI-PRESET, M-CLI-CONFIG, M-ORCHESTRATION-PROFILES, M-CLI-COMMANDS]
|
|
8
8
|
// ROLE: RUNTIME
|
|
9
9
|
// MAP_MODE: EXPORTS
|
|
@@ -14,13 +14,12 @@
|
|
|
14
14
|
// listConfiguredPresets - Returns configured presets in deterministic name order.
|
|
15
15
|
// resolvePreset - Validates a preset name and returns the matching preset.
|
|
16
16
|
// formatPreset - Renders a preset object as JSON for CLI output.
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
// applyPreset - Validates and atomically applies listed roles plus an optional orchestration profile.
|
|
17
|
+
// AppliedPresetChange - Summarizes role changes made by one preset application.
|
|
18
|
+
// applyPreset - Validates and atomically applies listed roles.
|
|
20
19
|
// END_MODULE_MAP
|
|
21
20
|
//
|
|
22
21
|
// START_CHANGE_SUMMARY
|
|
23
|
-
// LAST_CHANGE: [C-SESSION-
|
|
22
|
+
// LAST_CHANGE: [C-REMOVE-SESSION-ORCHESTRATION-PROFILES T-002 - Preset application and reporting cover roles only; presets no longer select or report an orchestration profile.]
|
|
24
23
|
// END_CHANGE_SUMMARY
|
|
25
24
|
import { defineCommand } from "citty";
|
|
26
25
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -28,7 +27,6 @@ import { dirname } from "node:path";
|
|
|
28
27
|
import { loadVvocConfigForRead, } from "../lib/config-layers.js";
|
|
29
28
|
import { parseModelSelection } from "../lib/model-roles.js";
|
|
30
29
|
import { resolvePaths } from "../lib/opencode.js";
|
|
31
|
-
import { createOrchestrationConfig, parseOrchestrationProfile, } from "../lib/orchestration.js";
|
|
32
30
|
import { createDefaultVvocConfig, validateVvocConfigDocument, } from "../lib/vvoc-config.js";
|
|
33
31
|
const commandArg = {
|
|
34
32
|
type: "positional",
|
|
@@ -94,10 +92,6 @@ export async function applyPreset(presetName, options = {}) {
|
|
|
94
92
|
const model = parseModelSelection(normalizePresetModelSelection(rawModelSelection, `preset ${resolved.name} role ${roleId}`)).normalized;
|
|
95
93
|
return { roleId, model };
|
|
96
94
|
});
|
|
97
|
-
const currentProfile = createOrchestrationConfig(config.orchestration).profile;
|
|
98
|
-
const declaredProfile = resolved.preset.orchestration === undefined
|
|
99
|
-
? undefined
|
|
100
|
-
: parseOrchestrationProfile(resolved.preset.orchestration.profile, `preset ${resolved.name} orchestration`);
|
|
101
95
|
const nextRoles = { ...config.roles };
|
|
102
96
|
const changes = [];
|
|
103
97
|
for (const { roleId, model } of validatedRoles) {
|
|
@@ -105,20 +99,11 @@ export async function applyPreset(presetName, options = {}) {
|
|
|
105
99
|
nextRoles[roleId] = model;
|
|
106
100
|
changes.push({ roleId, model, action });
|
|
107
101
|
}
|
|
108
|
-
const
|
|
109
|
-
? {
|
|
110
|
-
profile: declaredProfile,
|
|
111
|
-
action: declaredProfile === currentProfile ? "kept" : "updated",
|
|
112
|
-
}
|
|
113
|
-
: { profile: currentProfile, action: "unchanged" };
|
|
114
|
-
const changed = currentText === undefined ||
|
|
115
|
-
changes.some((change) => change.action === "updated") ||
|
|
116
|
-
orchestration.action === "updated";
|
|
102
|
+
const changed = currentText === undefined || changes.some((change) => change.action === "updated");
|
|
117
103
|
if (changed) {
|
|
118
104
|
const nextConfig = {
|
|
119
105
|
...config,
|
|
120
106
|
roles: nextRoles,
|
|
121
|
-
...(declaredProfile ? { orchestration: { profile: declaredProfile } } : {}),
|
|
122
107
|
};
|
|
123
108
|
await mkdir(dirname(paths.vvocConfigPath), { recursive: true });
|
|
124
109
|
await writeFile(paths.vvocConfigPath, `${JSON.stringify(nextConfig, null, 2)}\n`, "utf8");
|
|
@@ -127,7 +112,6 @@ export async function applyPreset(presetName, options = {}) {
|
|
|
127
112
|
name: resolved.name,
|
|
128
113
|
preset: resolved.preset,
|
|
129
114
|
changes,
|
|
130
|
-
orchestration,
|
|
131
115
|
path: paths.vvocConfigPath,
|
|
132
116
|
};
|
|
133
117
|
}
|
|
@@ -152,8 +136,7 @@ async function runPresetCommand(args) {
|
|
|
152
136
|
for (const { name, preset } of presets) {
|
|
153
137
|
const description = preset.description ? ` - ${preset.description}` : "";
|
|
154
138
|
const roleCount = Object.keys(preset.agents).length;
|
|
155
|
-
|
|
156
|
-
console.log(` ${name}${description} (${roleCount} role${roleCount === 1 ? "" : "s"}, profile ${profile})`);
|
|
139
|
+
console.log(` ${name}${description} (${roleCount} role${roleCount === 1 ? "" : "s"})`);
|
|
157
140
|
}
|
|
158
141
|
return;
|
|
159
142
|
}
|
|
@@ -182,11 +165,9 @@ async function runPresetCommand(args) {
|
|
|
182
165
|
for (const change of applied.changes) {
|
|
183
166
|
console.log(` ${change.roleId}: ${change.action} (${change.model})`);
|
|
184
167
|
}
|
|
185
|
-
console.log(` orchestration: ${applied.orchestration.action} (${applied.orchestration.profile})`);
|
|
186
168
|
console.log(`Target: ${applied.path}`);
|
|
187
|
-
if (applied.changes.some((change) => change.action === "updated")
|
|
188
|
-
|
|
189
|
-
console.log("The config watcher applies changed roles or the orchestration profile to new sessions; running session families keep the settings they were born with until an explicit `vvoc session set` or `/vv-settings` change.");
|
|
169
|
+
if (applied.changes.some((change) => change.action === "updated")) {
|
|
170
|
+
console.log("The config watcher applies changed roles to new sessions; running session families keep the settings they were born with until an explicit `vvoc session set` or `/vv-settings` change.");
|
|
190
171
|
}
|
|
191
172
|
}
|
|
192
173
|
async function readConfiguredPresets(options = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../../src/commands/preset.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,iBAAiB;AACjB,wBAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../../src/commands/preset.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,iBAAiB;AACjB,wBAAwB;AACxB,qGAAqG;AACrG,mGAAmG;AACnG,sIAAsI;AACtI,kFAAkF;AAClF,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,6CAA6C;AAC7C,oFAAoF;AACpF,6EAA6E;AAC7E,mEAAmE;AACnE,kFAAkF;AAClF,iEAAiE;AACjE,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,mLAAmL;AACnL,qBAAqB;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,qBAAqB,GAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,0BAA0B,GAI3B,MAAM,uBAAuB,CAAC;AAa/B,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,YAAqB;IAC3B,QAAQ,EAAE,KAAK;IACf,WAAW,EAAE,oCAAoC;CAClD,CAAC;AAEF,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,YAAqB;IAC3B,QAAQ,EAAE,KAAK;IACf,WAAW,EAAE,yBAAyB;CACvC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,IAAI,EA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AAC;IAC7D,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAc;IACtC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC;AACzE,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAc;IACvC,IAAI,KAAK,KAAK,WAAW,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;IAClG,CAAC;IACD,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AACpD,CAAC"}
|
|
@@ -3,9 +3,6 @@ import { type FamilySettings, type SessionSettingsClient } from "../runtime/sess
|
|
|
3
3
|
export type SessionSettingsAction = {
|
|
4
4
|
readonly kind: "preset";
|
|
5
5
|
readonly name: string;
|
|
6
|
-
} | {
|
|
7
|
-
readonly kind: "profile";
|
|
8
|
-
readonly profile: string;
|
|
9
6
|
} | {
|
|
10
7
|
readonly kind: "role-set";
|
|
11
8
|
readonly roleId: string;
|