@osovv/vv-opencode 2.3.3 → 2.5.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.
Files changed (108) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +18 -13
  3. package/dist/cli.js +5 -3
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/doctor.d.ts +4 -0
  6. package/dist/commands/doctor.js +60 -51
  7. package/dist/commands/doctor.js.map +1 -1
  8. package/dist/commands/plugin-toggle.d.ts +0 -16
  9. package/dist/commands/plugin-toggle.js +2 -34
  10. package/dist/commands/plugin-toggle.js.map +1 -1
  11. package/dist/commands/preset.d.ts +0 -8
  12. package/dist/commands/preset.js +3 -24
  13. package/dist/commands/preset.js.map +1 -1
  14. package/dist/commands/role.js +2 -30
  15. package/dist/commands/role.js.map +1 -1
  16. package/dist/commands/session.d.ts +50 -0
  17. package/dist/commands/session.js +354 -0
  18. package/dist/commands/session.js.map +1 -0
  19. package/dist/lib/managed-agents.js +2 -2
  20. package/dist/lib/managed-agents.js.map +1 -1
  21. package/dist/lib/managed-skills.js +3 -3
  22. package/dist/lib/managed-skills.js.map +1 -1
  23. package/dist/lib/opencode/agent-registrations.js +103 -13
  24. package/dist/lib/opencode/agent-registrations.js.map +1 -1
  25. package/dist/lib/opencode/inspection.js +131 -5
  26. package/dist/lib/opencode/inspection.js.map +1 -1
  27. package/dist/plugins/analytics/index.js +8 -19
  28. package/dist/plugins/analytics/index.js.map +1 -1
  29. package/dist/plugins/guardian/index.js +7 -21
  30. package/dist/plugins/guardian/index.js.map +1 -1
  31. package/dist/plugins/hashline-edit/index.js +6 -20
  32. package/dist/plugins/hashline-edit/index.js.map +1 -1
  33. package/dist/plugins/model-roles/index.d.ts +3 -3
  34. package/dist/plugins/model-roles/index.js +8 -8
  35. package/dist/plugins/model-roles/index.js.map +1 -1
  36. package/dist/plugins/peak-hours/index.js +9 -20
  37. package/dist/plugins/peak-hours/index.js.map +1 -1
  38. package/dist/plugins/secrets-redaction/index.js +11 -24
  39. package/dist/plugins/secrets-redaction/index.js.map +1 -1
  40. package/dist/plugins/spec-guard/index.js +10 -22
  41. package/dist/plugins/spec-guard/index.js.map +1 -1
  42. package/dist/plugins/system-context-injection/guidance.d.ts +6 -0
  43. package/dist/plugins/system-context-injection/guidance.js +79 -0
  44. package/dist/plugins/system-context-injection/guidance.js.map +1 -0
  45. package/dist/plugins/system-context-injection/index.js +20 -121
  46. package/dist/plugins/system-context-injection/index.js.map +1 -1
  47. package/dist/plugins/tool-history-compaction/index.js +14 -25
  48. package/dist/plugins/tool-history-compaction/index.js.map +1 -1
  49. package/dist/plugins/web-tools/index.js +14 -25
  50. package/dist/plugins/web-tools/index.js.map +1 -1
  51. package/dist/plugins/workflow/index.d.ts +3 -2
  52. package/dist/plugins/workflow/index.js +6 -22
  53. package/dist/plugins/workflow/index.js.map +1 -1
  54. package/dist/plugins/workflow/input-validation.d.ts +1 -1
  55. package/dist/plugins/workflow/input-validation.js +2 -2
  56. package/dist/plugins/workflow/input-validation.js.map +1 -1
  57. package/dist/plugins/workflow/results.d.ts +40 -40
  58. package/dist/plugins/workflow/system-instruction.md +20 -0
  59. package/dist/runtime/auxiliary.d.ts +11 -6
  60. package/dist/runtime/auxiliary.js +43 -35
  61. package/dist/runtime/auxiliary.js.map +1 -1
  62. package/dist/runtime/context-inspection.d.ts +7 -6
  63. package/dist/runtime/context-inspection.js +37 -43
  64. package/dist/runtime/context-inspection.js.map +1 -1
  65. package/dist/runtime/context.d.ts +22 -45
  66. package/dist/runtime/context.js +348 -634
  67. package/dist/runtime/context.js.map +1 -1
  68. package/dist/runtime/model-registry.d.ts +3 -34
  69. package/dist/runtime/model-registry.js +10 -190
  70. package/dist/runtime/model-registry.js.map +1 -1
  71. package/dist/runtime/session-settings.d.ts +204 -0
  72. package/dist/runtime/session-settings.js +445 -0
  73. package/dist/runtime/session-settings.js.map +1 -0
  74. package/dist/runtime/snapshot-config.d.ts +7 -70
  75. package/dist/runtime/snapshot-config.js +16 -198
  76. package/dist/runtime/snapshot-config.js.map +1 -1
  77. package/dist/runtime/types.d.ts +15 -256
  78. package/dist/runtime/types.js +9 -63
  79. package/dist/runtime/types.js.map +1 -1
  80. package/dist/tui/settings/plugin.d.ts +29 -0
  81. package/dist/tui/settings/plugin.js +134 -0
  82. package/dist/tui/settings/plugin.js.map +1 -0
  83. package/dist/tui.js +12 -12
  84. package/dist/tui.js.map +1 -1
  85. package/package.json +1 -1
  86. package/schemas/vvoc/v3.json +1 -1
  87. package/templates/agents/vv-code-reviewer.md +2 -2
  88. package/templates/agents/vv-controller.md +176 -151
  89. package/templates/agents/vv-implementer.md +2 -2
  90. package/templates/agents/vv-reflector.md +7 -0
  91. package/templates/agents/vv-spec-reviewer.md +2 -2
  92. package/templates/skills/vv-execute/SKILL.md +25 -4
  93. package/templates/skills/vv-execute/references/tool-contracts.md +3 -3
  94. package/templates/skills/vv-reflect/SKILL.md +1 -0
  95. package/templates/skills/vv-reflect/references/session-graph.py +581 -7
  96. package/templates/skills/vv-review/SKILL.md +2 -2
  97. package/dist/lib/rebind-request.d.ts +0 -41
  98. package/dist/lib/rebind-request.js +0 -134
  99. package/dist/lib/rebind-request.js.map +0 -1
  100. package/dist/runtime/snapshot-store.d.ts +0 -63
  101. package/dist/runtime/snapshot-store.js +0 -668
  102. package/dist/runtime/snapshot-store.js.map +0 -1
  103. package/dist/runtime/snapshots.d.ts +0 -36
  104. package/dist/runtime/snapshots.js +0 -508
  105. package/dist/runtime/snapshots.js.map +0 -1
  106. package/dist/tui/rebind/plugin.d.ts +0 -22
  107. package/dist/tui/rebind/plugin.js +0 -101
  108. package/dist/tui/rebind/plugin.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## 2.5.0 (2026-11-08)
2
+
3
+ ### Summary
4
+
5
+ Version 2.5.0 replaces the previous family snapshot and rebind machinery with session-owned settings stored in native session metadata: the resolved roles, orchestration profile, and plugin toggles of the effective configuration are recorded once for a session family's root and resolved through lineage for every member, while read-modify-write updates preserve unrelated metadata. Settings are now changed explicitly through the new `vvoc session set --session <id>` command (preset, profile, role, plugin toggle, or pull-defaults) and the TUI `/vv-settings` command, so only the named family changes; the `--force` and `--session` rebind flags on preset, role, and plugin commands and the `/vv-rebind` command are removed, and all native plugins read their policy through the shared settings service instead of the deleted snapshot configFor/accept pair. Controller guidance was also consolidated into the bundled seven-section template delivered exactly once by system-context-injection without duplicate injection, with other primary agents receiving shared guidance fragments. Documentation, GRACE projections, the real-host harness cases, and integration tests were synchronized for session settings, including isolated workflow test persistence and stability of recorded settings across configuration changes and host restarts.
6
+
7
+ * fix(prompts): consolidate controller guidance without duplicate injection ([1ce1636](https://github.com/osovv/vv-opencode/commit/1ce1636))
8
+ * test: isolate workflow integration persistence root per process ([47b63eb](https://github.com/osovv/vv-opencode/commit/47b63eb))
9
+ * test(e2e): rewrite the real-host harness for session settings ([216724c](https://github.com/osovv/vv-opencode/commit/216724c))
10
+ * test(secrets-redaction): drop the removed admission error name from drift notes ([ac91757](https://github.com/osovv/vv-opencode/commit/ac91757))
11
+ * test(workflow): align the settings-stability scenario title with session-owned settings ([88cca8a](https://github.com/osovv/vv-opencode/commit/88cca8a))
12
+ * docs: synchronize README and GRACE projections for session settings ([4a5f92c](https://github.com/osovv/vv-opencode/commit/4a5f92c))
13
+ * feat(cli): explicit session-settings commands for one family ([5b9e727](https://github.com/osovv/vv-opencode/commit/5b9e727))
14
+ * feat(plugins): resolve plugin policy through the family settings service ([1bac194](https://github.com/osovv/vv-opencode/commit/1bac194))
15
+ * feat(runtime): store family settings in native session metadata ([8774209](https://github.com/osovv/vv-opencode/commit/8774209))
16
+ * refactor(prompts): dedupe vv-controller template sections into universal injection ([4edde2e](https://github.com/osovv/vv-opencode/commit/4edde2e))
17
+
18
+ ## <small>2.4.0 (2026-11-04)</small>
19
+
20
+ ### Summary
21
+
22
+ Version 2.4.0 closes the verified agent-facing workflow, managed-prompt sync, doctor, and reflection gaps. Managed skills and agents now describe the literal `VVOC_WORK_ITEM_ID: wi-<n>` launch header, the state-to-agent map, the standalone `work_item_open` field rule, and controller-only work-item lifecycle, so workers copy the assignment header instead of a sample id. `vvoc sync` refreshes legacy inline managed `{file:...}` system prompts, preserves and reports user-owned inline sources, and deduplicates `skills` roots by real path; `vvoc doctor` warns about stale managed prompts and skills, duplicate skill roots, and deprecated permission actions such as `apply_patch`, while missing file references remain fail-closed problems. The bundled `vv-reflect` extractor gains a streaming `--archive` mode with since/until/project/agent/skill filters, call-id deduplication, legacy `part` union, deterministic JSON/Markdown output, and a documented machine-wide workflow. README and GRACE context now point at the native `opencode/agents` discovery path and describe legacy `vvoc/agents` files as migration inputs.
23
+
1
24
  ## <small>2.3.3 (2026-11-04)</small>
2
25
 
3
26
  ### Summary
package/README.md CHANGED
@@ -159,7 +159,7 @@ grep '<task_id>' .vvoc/specs/*/plan.xml # dependency graph
159
159
  grep '<COMPONENT-' .vvoc/specs/*/*.xml # component map across spec and plan
160
160
  ```
161
161
 
162
- `vv-controller` explicitly routes `vv-spec`, `vv-plan`, and `vv-review`; `vv-execute`, `vv-reflect`, and `vv-handoff` are available as managed skills for plan execution, environment reflection and durable repository memory, and end-of-session handoff notes.
162
+ OpenCode routes managed skills through their descriptions and explicit user invocation: `vv-spec`, `vv-plan`, and `vv-review` cover specification, planning, and review; `vv-execute`, `vv-reflect`, and `vv-handoff` cover plan execution, environment reflection and durable repository memory, and end-of-session handoff notes. Native spec-package paths and lifecycle instructions live in the SDD skills.
163
163
 
164
164
  ---
165
165
 
@@ -172,10 +172,10 @@ The server plugins run inside the OpenCode server process; **ContextTuiPlugin**
172
172
  | Plugin | What it does |
173
173
  |---|---|
174
174
  | **WorkflowPlugin** | A state machine over multi-agent work: explicit work items, required reviewers, bounded implementation/review rounds, and hard stops when more context is needed. |
175
- | **ModelRolesPlugin** | Semantic model roles (`vv-role:smart`, `vv-role:fast`, …) instead of hardcoded model IDs in agents, subagents, and commands — resolved from the effective vvoc role map plus the native `modelIntent` envelope each time a session family binds its snapshot. |
175
+ | **ModelRolesPlugin** | Semantic model roles (`vv-role:smart`, `vv-role:fast`, …) instead of hardcoded model IDs in agents, subagents, and commands — resolved from the family settings recorded in the root session's metadata (with the live configuration as the fallback) each time a session or its children are created. |
176
176
  | **GuardianPlugin** | Keeps long or AFK runs moving by auto-approving routine low-risk permission requests; anything risky stays in OpenCode's normal manual approval flow. The assessment uses the captured `fast` auxiliary model by default, or an opt-in provider-neutral System One decision provider. |
177
177
  | **HashlineEditPlugin** | Routes each model to exactly one native edit tool (host `edit` for GLM/Qwen/Kimi, host `apply_patch` for GPT, `str_replace_editor` for DeepSeek, `hashline_edit` for unmatched models) and hides the other edit tools per session. |
178
- | **SystemContextInjectionPlugin** | Injects universal guidance — including correctness obligations and evidence discipline for behavior changes — plus the work policy selected by the orchestration profile into vv-controller at startup; subagents stay unpolluted. Skill discovery is registered by `vvoc install`/`sync` through the native `skills` config, not by a plugin. |
178
+ | **SystemContextInjectionPlugin** | Projects shared primary guidance from the canonical controller template and adds missing controller sections without duplicating the host-supplied template. The active controller policy is added at the request tail; existing subagent exclusions and the explore-specific exception apply. Skill discovery is registered by `vvoc install`/`sync` through the native `skills` config. |
179
179
  | **SecretsRedactionPlugin** | Redacts tokens, keys, emails, and other sensitive values before messages reach the model, restoring them only where local execution needs the originals. |
180
180
  | **WebToolsPlugin** | Two provider-neutral tools — `web_search` and `web_fetch` — over Exa, Brave, Z.AI, DeepSeek, native retrieval, or Spider, with permission checks and normalized output. |
181
181
  | **ToolHistoryCompactionPlugin** | Shrinks the context replayed to the model by compacting old tool outputs non-destructively, without touching on-disk history. |
@@ -202,6 +202,8 @@ 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 seven sections: `task_and_scope`, `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 workflow plugin still owns profile-specific machine protocols, and the active orchestration policy remains outside the stable system prefix. Run `vvoc sync` and restart OpenCode to update an existing managed controller prompt together with the plugin.
206
+
205
207
  ### Managed skills
206
208
 
207
209
  Two families: `vv-*` skills guide the work protocol, while `vvoc-*` skills operate and observe the vvoc/OpenCode tooling itself.
@@ -212,11 +214,11 @@ Two families: `vv-*` skills guide the work protocol, while `vvoc-*` skills opera
212
214
  | `vv-plan` | A spec is approved and ready to implement | A task-level implementation plan with file targets, contracts, dependencies, and acceptance criteria |
213
215
  | `vv-execute` | A plan is approved and you want it applied step by step | Ordered execution with verification, an explicit inline-or-classic mode choice, and applied spec/plan archival |
214
216
  | `vv-review` | You want findings, not fixes | A review-only workflow that reports spec/code issues and stops before implementation |
215
- | `vv-reflect` | A long development, debugging, ops, or investigation session exposed environment friction or produced reusable knowledge | Dispatches the read-only `vv-reflector` subagent over the session and its subagent tree, then applies environment improvements (documents, steering, guardrails, skills, tooling) or lessons/runbooks only after per-entry approval |
217
+ | `vv-reflect` | A long development, debugging, ops, or investigation session exposed environment friction or produced reusable knowledge | Dispatches the read-only `vv-reflector` subagent over the session and its subagent tree — or the streaming `--archive` aggregate when the question spans sessions/projects — then applies environment improvements (documents, steering, guardrails, skills, tooling) or lessons/runbooks only after per-entry approval |
216
218
  | `vv-handoff` | You are ending a session and want the visible context preserved | A redacted XML note at `.vvoc/handoff/YYYY-MM-DD-<session-slug>/handoff.xml`, written from already-visible context only |
217
219
  | `vvoc-usage-analytics` | You ask about token usage, cache hit rate, costs, or caching regressions | Read-only analysis across `vvoc analytics`, the analytics JSONL, and historical `opencode.db` data |
218
220
 
219
- Skills are loaded by OpenCode at session start through the native `skills` string array in `opencode.json(c)` — `vvoc install`/`sync` write the path reference and maintain the OpenCode skills-directory symlink — and the `vv-controller` agent's skill-trigger rules invoke them automatically when a request matches their conditions.
221
+ Skills are discovered by OpenCode through the native `skills` string array in `opencode.json(c)` — `vvoc install`/`sync` write the path reference and maintain the OpenCode skills-directory symlink. OpenCode supplies the available descriptions and loading instructions; the full skill is loaded when selected or explicitly invoked. The controller prompt does not repeat that catalog or its loading protocol.
220
222
 
221
223
  ---
222
224
 
@@ -229,10 +231,11 @@ Skills are loaded by OpenCode at session start through the native `skills` strin
229
231
  | `vvoc sync` | Refresh native plugins/agents/skills registrations, prompts, skills, config |
230
232
  | `vvoc launch` | Launch OpenCode with deterministic runtime and vvoc config sources after a host-window preflight |
231
233
  | `vvoc status` | Show current installation state, including the installed OpenCode version against the supported window and combined-package registration |
232
- | `vvoc doctor` | Diagnose OpenCode version/window/runtime/vvoc setup problems (exits non-zero on issues) |
234
+ | `vvoc doctor` | Diagnose OpenCode version/window/runtime/vvoc setup problems and warn about stale managed prompts/skills, duplicate skills roots, and deprecated permission actions (exits non-zero on problems) |
233
235
  | `vvoc config validate` | Validate canonical `vvoc.json` |
234
236
  | `vvoc role list\|set\|unset` | Manage model role assignments |
235
237
  | `vvoc preset list\|show\|<name>` | Inspect or apply named presets |
238
+ | `vvoc session set` | Change one session family's recorded settings (preset, profile, role, plugin toggle, or pull current defaults) through the running host |
236
239
  | `vvoc guardian config` | Print or write the guardian section |
237
240
  | `vvoc plugin list` | List OpenCode plugin entries |
238
241
  | `vvoc plugin enable\|disable` | Toggle a vvoc-managed plugin on or off |
@@ -265,7 +268,7 @@ Canonical project-local paths:
265
268
  ```text
266
269
  OpenCode config → ./.opencode/opencode.json(c)
267
270
  vvoc config → ./.vvoc/vvoc.json
268
- Managed agent prompts → ./.vvoc/agents/*.md
271
+ Managed agent prompts → ./.opencode/agents/*.md
269
272
  Managed skills → ./.vvoc/skills/*/SKILL.md
270
273
  Spec package directory → ./.vvoc/specs/YYYY-MM-DD-<slug>/
271
274
  Handoff notes → ./.vvoc/handoff/YYYY-MM-DD-<session-slug>/handoff.xml
@@ -279,17 +282,19 @@ Global paths:
279
282
  ```text
280
283
  OpenCode config → $XDG_CONFIG_HOME/opencode/opencode.json
281
284
  vvoc config → $XDG_CONFIG_HOME/vvoc/vvoc.json
282
- Managed agent prompts → $XDG_CONFIG_HOME/vvoc/agents/*.md
285
+ Managed agent prompts → $XDG_CONFIG_HOME/opencode/agents/*.md
283
286
  Managed skills → $XDG_CONFIG_HOME/vvoc/skills/*/SKILL.md
284
287
  Persisted data → $XDG_DATA_HOME/vvoc/
285
288
  Usage analytics → $XDG_DATA_HOME/vvoc/analytics/usage-YYYY-MM.jsonl
286
289
  ```
287
290
 
291
+ Native OpenCode 2.x discovers managed agent markdown from the `agents/` directory beside the config file, so vvoc writes `agents/*.md` there. Legacy pre-V2 `$XDG_CONFIG_HOME/vvoc/agents/*.md` files referenced by an inline `agents.<id>.system` are recognized as managed migration inputs: `vvoc sync` refreshes a managed file in place and reports user-owned inline sources without overwriting them.
292
+
288
293
  ### One pinned package in the native plugins array
289
294
 
290
295
  OpenCode 2.x keeps one native config document per process. `opencode.json(c)` is loaded by the core/server plugin runtime and activates vvoc features such as model roles, Guardian, workflow, hashline edit, redaction, and web tools. The terminal UI process takes its own settings (tabs, keybinds, TUI-only plugin entries) from the native `cli.json`, and it also loads the TUI entrypoints of the plugins carried by the server inventory. vv-opencode uses that directly: the same pinned package entry (for example `@osovv/vv-opencode@X.Y.Z`) is registered once in the native `plugins` array, the host resolves its `./server` export for the server runtime and its `./tui` export for the terminal UI, and headless/server launches never load the UI module.
291
296
 
292
- `vvoc install`, `vvoc init`, and `vvoc sync` conservatively write that single pinned base-package entry — a string, or a `{ "package": …, "options": … }` object — into the native `plugins` array; sync also migrates the broken legacy `@osovv/vv-opencode/tui` form and older managed pins. Machines upgraded from a V1 host carry a second, host-migrated vvoc entry in the client-side `cli.json` (the host moves the retired `tui.json(c)` plugin list there on first start), so the same commands mirror an existing managed `cli.json` entry to the pinned specifier — comments, client preferences, unrelated entries, and the entry's options are preserved, and nothing is created when no client pin exists. `vvoc doctor` and `vvoc status` print the TUI client pin beside the server pin and warn when the two drift apart. Existing comments, unrelated settings, unrelated plugin entries, and their `options` are preserved; malformed plugin entries fail without rewrite. Supported V1 document shapes are materialized into the native V2 shape by `vvoc sync` once the host is inside the supported window, using the official OpenCode V1-to-V2 migration guide, with a timestamped `*.vvoc-backup-<timestamp>` sibling and validate-before-write. Residual or ambiguous V1 fields are refused before any mutation, so `plugin`, `agent`, `provider`, `command`, `small_model`, and `tools` never remain in a document vvoc writes.
297
+ `vvoc install`, `vvoc init`, and `vvoc sync` conservatively write that single pinned base-package entry — a string, or a `{ "package": …, "options": … }` object — into the native `plugins` array; sync also migrates the broken legacy `@osovv/vv-opencode/tui` form and older managed pins. Machines upgraded from a V1 host carry a second, host-migrated vvoc entry in the client-side `cli.json` (the host moves the retired `tui.json(c)` plugin list there on first start), so the same commands mirror an existing managed `cli.json` entry to the pinned specifier — comments, client preferences, unrelated entries, and the entry's options are preserved, and nothing is created when no client pin exists. `vvoc doctor` and `vvoc status` print the TUI client pin beside the server pin and warn when the two drift apart. Existing comments, unrelated settings, unrelated plugin entries, and their `options` are preserved; malformed plugin entries fail without rewrite. Supported V1 document shapes are materialized into the native V2 shape by `vvoc sync` once the host is inside the supported window, using the official OpenCode V1-to-V2 migration guide, with a timestamped `*.vvoc-backup-<timestamp>` sibling and validate-before-write. Residual or ambiguous V1 fields are refused before any mutation, so `plugin`, `agent`, `provider`, `command`, `small_model`, and `tools` never remain in a document vvoc writes. A legacy inline `agents.<id>.system = {file:...}` reference to a vvoc-managed prompt is refreshed in place by `vvoc sync`; a user-owned inline system is reported with its source path and never overwritten.
293
298
 
294
299
  The native document shape vvoc validates, extends, and writes into:
295
300
 
@@ -309,9 +314,9 @@ The native document shape vvoc validates, extends, and writes into:
309
314
 
310
315
  `plugins` is an array of package strings or `{package, options}` objects (plus `-target` removal directives); `agents` holds per-agent overrides while agent prompts live as discovered markdown; `skills` is a string array of discovery paths; `providers` carries patched provider/model objects; `permissions` carries host permission rules. There is no `plugin`/`agent`/`provider`/`command` singular key, no `small_model`, and no `tools` key.
311
316
 
312
- 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 2.0.18 has no `small_model` field and rejects 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`) when each session family binds its snapshot.
317
+ 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.
313
318
 
314
- Runtime plugins load the effective `vvoc.json` and each session family binds an immutable, credential-free behaviour-policy snapshot at its first workload. The binding is content-addressed and independent of the package version, so a bound family keeps its models, plugin policy, and orchestration profile across a reload and across a server restart, while a new session always resolves the current configuration. A family changes only when you explicitly ask: pass `--force` to `vvoc preset apply`, `vvoc plugin enable|disable`, or `vvoc role set|unset` (optionally with `--session <id>`) to rebind the active families of the current project to the current configuration, or run `/vv-rebind` in the OpenCode TUI to rebind the current session family only. `/vv-rebind` takes no arguments: it writes the same project-scoped rebind request marker naming the active session, and the re-resolved configuration applies from the family's next message (family-wide: the session plus its forks and subagents), with models switching only when their resolved selection actually changed. The command is not the native host `/reload` — that reloads host configuration, while `/vv-rebind` re-resolves vvoc policy for one session family — and it is normally unnecessary for credentials alone, since provider and web keys are already re-attached from the live configuration on every request. Run it from the project the session belongs to; a session in another worktree needs the command run from that worktree. The previous version's snapshot store is never read; the first start after upgrading rebinds existing families once to the current configuration. Credentials are never persisted — provider and web keys are re-attached from the live configuration at request time. Orchestration policy is injected at the request tail rather than into the system prefix, so switching policy does not invalidate the cached prompt prefix.
319
+ 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, orchestration profile, 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, 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>`, `--profile <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>`, `profile <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. Orchestration policy is injected at the request tail rather than into the system prefix, so switching policy does not invalidate the cached prompt prefix.
315
320
 
316
321
  ### Strict schema, loud failures
317
322
 
@@ -328,7 +333,7 @@ The optional schema-v3 `web` section follows the same layer precedence and is om
328
333
 
329
334
  ### Diagnostics never mutate
330
335
 
331
- `vvoc status` and `vvoc doctor` report the installed OpenCode version, the supported window (`OpenCode supported range: >=2.0.18 <3.0.0`) and the verified host list, selected runtime/vvoc config paths, plugin registration, and validation problems without normalizing or rewriting files. `vvoc upgrade` can still finish the package installation when the follow-up `vvoc sync` fails; it then reports a partial upgrade, leaves config unchanged, and tells you to fix the invalid config before rerunning `vvoc sync`.
336
+ `vvoc status` and `vvoc doctor` report the installed OpenCode version, the supported window (`OpenCode supported range: >=2.0.18 <3.0.0`) and the verified host list, selected runtime/vvoc config paths, plugin registration, and validation problems without normalizing or rewriting files. `vvoc doctor` additionally warns when a managed agent prompt or managed skill body is stale relative to the installed package, when two `skills` entries resolve to the same real path, or when a permission rule uses a deprecated action such as `apply_patch`; those warnings do not change the exit code, while a missing `{file:...}` reference remains a problem. `vvoc upgrade` can still finish the package installation when the follow-up `vvoc sync` fails; it then reports a partial upgrade, leaves config unchanged, and tells you to fix the invalid config before rerunning `vvoc sync`.
332
337
 
333
338
  Runtime compatibility is window-bounded: install, init, sync, and launch refuse a host outside `>=2.0.18 <3.0.0` before touching config, Guardian evaluates permissions through the native `permission.evaluate` hook, hashline edit refs must use current hash/context anchors, and sync writes current managed agents without deleting old pre-rename user or command entries.
334
339
 
@@ -520,7 +525,7 @@ Passed milestones stay historical: later planned edits are covered by later chec
520
525
 
521
526
  Source-independent execution is built on one common contract. Requirements may come from a native package, a provided plan reference, or the current conversation: a native package registers with `work_checkpoint register` (`planPath`), while a provided-plan or conversation-scoped run registers once with `work_item_open` carrying an `execution` descriptor (`executionKey`, `source`, `goal`, `boundary`) and its first task batch, and later tasks append with the same `runId` plus `amendmentId` and `rationale`. Generic review obligations run through `work_checkpoint` actions `start`, `review`/`bind`, `complete`, and `amend`. The registry validates task and checkpoint identities, exact references, execution boundaries, and acyclic dependencies before anything is published, and a selected source stays authoritative — a failed native package is never silently reopened as weaker generic execution, and a provided document is never converted or executed as commands. Required reviews are exactly those registered by the source, the user, or an explicit controller decision; a task with no assigned review completes honestly as controller-accepted rather than as independently reviewed, and a final checkpoint, when one was assigned, must still cover the current revision before completion. Explicit autonomous authority is recorded through `work_checkpoint action "authorize"` from an eligible root-user instruction as a bounded advance reserve shared by the whole authorized execution, consumed one unit at a time only after ordinary allowances are exhausted; duplicate calls, replay, restart, and task replacement cannot refill it, and narrowing or revocation disables future credits without erasing history. The same recorded authority can authorize one bounded continuation that predates a stop, while the separate post-stop `userMessageId` path keeps its own timing rules.
522
527
 
523
- Delegated and checkpoint state persists under `$XDG_DATA_HOME/vvoc/workflow/<sessionId>/workflow-state.json` at snapshot version 4, which adds the common execution registry and session-wide root-message claims on top of version 3's recovery histories, replay-protected authorization references, recovery-aware budgets, and rejected-report attempts. Existing native plan runs materialize a compatibility registry entry with their original run ids and content hashes. Older supported snapshots load conservatively: version 3 and 2 files hydrate with empty execution registries (version 2 also with empty recovery histories and original budgets), and version 1 files hydrate as legacy records without plan runs; none ever synthesizes acceptance, approval, or recovery. A snapshot written by a newer plugin version is refused rather than reset. Recovery mutations commit on the live store and persist synchronously — a failed write rolls the mutation back, so changed launch permissions appear only after a durable record; terminal report settlements stage, persist, and then commit. Because runtime plugins share the startup config snapshot, a plugin upgrade takes effect after an OpenCode restart.
528
+ Delegated and checkpoint state persists under `$XDG_DATA_HOME/vvoc/workflow/<sessionId>/workflow-state.json` at snapshot version 4, which adds the common execution registry and session-wide root-message claims on top of version 3's recovery histories, replay-protected authorization references, recovery-aware budgets, and rejected-report attempts. Existing native plan runs materialize a compatibility registry entry with their original run ids and content hashes. Older supported snapshots load conservatively: version 3 and 2 files hydrate with empty execution registries (version 2 also with empty recovery histories and original budgets), and version 1 files hydrate as legacy records without plan runs; none ever synthesizes acceptance, approval, or recovery. A snapshot written by a newer plugin version is refused rather than reset. Recovery mutations commit on the live store and persist synchronously — a failed write rolls the mutation back, so changed launch permissions appear only after a durable record; terminal report settlements stage, persist, and then commit. Because runtime plugins resolve family settings from session metadata and project configuration, a plugin upgrade or configuration change takes effect for new sessions after the change is loaded; running families keep their recorded settings until an explicit `vvoc session set` or `/vv-settings` change.
524
529
 
525
530
  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.
526
531
 
package/dist/cli.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env bun
2
2
  // FILE: src/cli.ts
3
- // VERSION: 0.2.10
3
+ // VERSION: 0.3.0
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/orchestration.ts, src/commands/lint.ts, src/commands/patch-provider.ts, src/commands/preset.ts, src/commands/plugin.ts, src/commands/role.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]
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/orchestration.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
@@ -16,7 +16,7 @@
16
16
  // END_MODULE_MAP
17
17
  //
18
18
  // START_CHANGE_SUMMARY
19
- // LAST_CHANGE: [C-TELEGRAM-TOPIC-HYGIENE T-008 - Registered the telegram command group in the CLI tree.]
19
+ // LAST_CHANGE: [C-SESSION-OWNED-SETTINGS T-003 - Registered the session command group for explicit family-settings changes.]
20
20
  // END_CHANGE_SUMMARY
21
21
  import { defineCommand, runMain } from "citty";
22
22
  import analytics from "./commands/analytics.js";
@@ -33,6 +33,7 @@ import patchProvider from "./commands/patch-provider.js";
33
33
  import preset from "./commands/preset.js";
34
34
  import plugin from "./commands/plugin.js";
35
35
  import role from "./commands/role.js";
36
+ import session from "./commands/session.js";
36
37
  import status from "./commands/status.js";
37
38
  import sync from "./commands/sync.js";
38
39
  import telegram from "./commands/telegram.js";
@@ -62,6 +63,7 @@ const main = defineCommand({
62
63
  preset,
63
64
  plugin,
64
65
  role,
66
+ session,
65
67
  status,
66
68
  sync,
67
69
  telegram,
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,mBAAmB;AACnB,kBAAkB;AAClB,wBAAwB;AACxB,uDAAuD;AACvD,0HAA0H;AAC1H,sgBAAsgB;AACtgB,4BAA4B;AAC5B,iBAAiB;AACjB,qBAAqB;AACrB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,oEAAoE;AACpE,wCAAwC;AACxC,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,2GAA2G;AAC3G,qBAAqB;AAErB,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,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M,uBAAuB,CAAC;AAC5C,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,iCAAiC;AACjC,MAAM,cAAc,GAAG,MAAM,iBAAiB,EAAE,CAAC;AAEjD,MAAM,IAAI,GAAG,aAAa,CAAC;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,cAAc;QACvB,WAAW,EACT,+HAA+H;KAClI;IACD,WAAW,EAAE;QACX,SAAS;QACT,UAAU;QACV,MAAM;QACN,MAAM;QACN,QAAQ;QACR,IAAI;QACJ,OAAO;QACP,MAAM;QACN,IAAI;QACJ,aAAa;QACb,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"}
@@ -1,3 +1,4 @@
1
+ import { type OpenCodeRuntimeInspection } from "../lib/opencode.js";
1
2
  declare const _default: import("citty").CommandDef<{
2
3
  readonly scope: {
3
4
  readonly type: "enum";
@@ -11,3 +12,6 @@ declare const _default: import("citty").CommandDef<{
11
12
  };
12
13
  }>;
13
14
  export default _default;
15
+ export declare function runDoctor(args: Record<string, unknown>, options?: {
16
+ inspectRuntime?: () => Promise<OpenCodeRuntimeInspection>;
17
+ }): Promise<void>;
@@ -11,10 +11,11 @@
11
11
  //
12
12
  // START_MODULE_MAP
13
13
  // default - Doctor command definition for vvoc installation diagnostics.
14
+ // runDoctor - Testable doctor flow with injectable native host verification.
14
15
  // END_MODULE_MAP
15
16
  //
16
17
  // START_CHANGE_SUMMARY
17
- // LAST_CHANGE: [C-CLI-JSON-PIN-SYNC-R1 T-002 - Printed the native cli.json TUI client pin beside the server pin.]
18
+ // LAST_CHANGE: [C-WORKFLOW-PROMPT-SYNC-DOCTOR-ARCHIVE T-003 - Extracted an injectable runDoctor flow so host-warning coverage does not depend on a globally installed opencode binary.]
18
19
  // END_CHANGE_SUMMARY
19
20
  import { defineCommand } from "citty";
20
21
  import { inspectInstallationForScope } from "../lib/opencode.js";
@@ -36,59 +37,67 @@ export default defineCommand({
36
37
  },
37
38
  },
38
39
  async run({ args }) {
39
- // START_BLOCK_PRINT_DIAGNOSTIC_REPORT
40
- const scope = resolveReadScope(args.scope);
41
- const configDir = typeof args["config-dir"] === "string" ? args["config-dir"] : undefined;
42
- const inspection = await inspectInstallationForScope({ scope, cwd: process.cwd(), configDir });
43
- console.log(`Scope: ${inspection.scope}`);
44
- console.log(`OpenCode source: ${inspection.opencodeSource.kind}${inspection.opencodeSource.path ? ` ${inspection.opencodeSource.path}` : ""}`);
45
- console.log(`vvoc source: ${inspection.vvocSource.kind}${inspection.vvocSource.path ? ` ${inspection.vvocSource.path}` : ""}`);
46
- console.log(`OpenCode version: ${inspection.runtime.version ?? "unavailable"}`);
47
- console.log(`OpenCode supported range: ${inspection.runtime.supportedRange}`);
48
- console.log(`OpenCode support: ${inspection.runtime.support ?? "unknown"} (verified hosts: ${inspection.runtime.verifiedHosts?.join(", ") || "none"})`);
49
- console.log(`OpenCode supported: ${inspection.runtime.versionSupported === undefined ? "unknown" : inspection.runtime.versionSupported ? "yes" : "no"}`);
50
- console.log(`OpenCode config: ${inspection.opencode.path}`);
51
- console.log(`OpenCode config parse: ${inspection.opencode.parseError ? inspection.opencode.parseError : "ok"}`);
52
- console.log(`Configured plugins: ${inspection.opencode.plugins.length > 0 ? inspection.opencode.plugins.map((entry) => (typeof entry === "string" ? entry : entry.package)).join(", ") : "<none>"}`);
53
- console.log(`TUI package registered: ${inspection.tui.registered ? "yes" : "no"}`);
54
- console.log(`TUI capability note: ${inspection.tui.note}`);
55
- const cliPinLabel = inspection.cli.parseError !== undefined
56
- ? "unavailable (parse error)"
57
- : (inspection.cli.managedPin ?? (inspection.cli.exists ? "none" : "no cli.json"));
58
- console.log(`TUI client pin (cli.json): ${cliPinLabel}`);
59
- console.log(`vvoc config: ${inspection.vvoc.path}`);
60
- console.log(`vvoc config parse: ${inspection.vvoc.parseError ? inspection.vvoc.parseError : inspection.vvoc.exists ? "ok" : "missing"}`);
61
- console.log(`vvoc schema: ${inspection.vvoc.schema ?? "missing"}`);
62
- console.log(`vvoc version: ${inspection.vvoc.version ?? "missing"}`);
63
- console.log(`Guardian model: ${inspection.guardian.config ? (inspection.guardian.config.model ?? "default") : "unknown"}`);
64
- console.log(`Secrets Redaction config: ${inspection.secretsRedaction.config ? "present" : "unknown"}`);
65
- console.log("Roles:");
66
- if (inspection.roles.assignments.length === 0) {
67
- console.log(" <none>");
68
- }
69
- else {
70
- for (const role of inspection.roles.assignments) {
71
- console.log(` ${role.roleId}: ${role.model}`);
72
- }
40
+ await runDoctor(args);
41
+ },
42
+ });
43
+ export async function runDoctor(args, options = {}) {
44
+ // START_BLOCK_PRINT_DIAGNOSTIC_REPORT
45
+ const scope = resolveReadScope(args.scope);
46
+ const configDir = typeof args["config-dir"] === "string" ? args["config-dir"] : undefined;
47
+ const inspection = await inspectInstallationForScope({
48
+ scope,
49
+ cwd: process.cwd(),
50
+ configDir,
51
+ ...(options.inspectRuntime === undefined ? {} : { inspectRuntime: options.inspectRuntime }),
52
+ });
53
+ console.log(`Scope: ${inspection.scope}`);
54
+ console.log(`OpenCode source: ${inspection.opencodeSource.kind}${inspection.opencodeSource.path ? ` ${inspection.opencodeSource.path}` : ""}`);
55
+ console.log(`vvoc source: ${inspection.vvocSource.kind}${inspection.vvocSource.path ? ` ${inspection.vvocSource.path}` : ""}`);
56
+ console.log(`OpenCode version: ${inspection.runtime.version ?? "unavailable"}`);
57
+ console.log(`OpenCode supported range: ${inspection.runtime.supportedRange}`);
58
+ console.log(`OpenCode support: ${inspection.runtime.support ?? "unknown"} (verified hosts: ${inspection.runtime.verifiedHosts?.join(", ") || "none"})`);
59
+ console.log(`OpenCode supported: ${inspection.runtime.versionSupported === undefined ? "unknown" : inspection.runtime.versionSupported ? "yes" : "no"}`);
60
+ console.log(`OpenCode config: ${inspection.opencode.path}`);
61
+ console.log(`OpenCode config parse: ${inspection.opencode.parseError ? inspection.opencode.parseError : "ok"}`);
62
+ console.log(`Configured plugins: ${inspection.opencode.plugins.length > 0 ? inspection.opencode.plugins.map((entry) => (typeof entry === "string" ? entry : entry.package)).join(", ") : "<none>"}`);
63
+ console.log(`TUI package registered: ${inspection.tui.registered ? "yes" : "no"}`);
64
+ console.log(`TUI capability note: ${inspection.tui.note}`);
65
+ const cliPinLabel = inspection.cli.parseError !== undefined
66
+ ? "unavailable (parse error)"
67
+ : (inspection.cli.managedPin ?? (inspection.cli.exists ? "none" : "no cli.json"));
68
+ console.log(`TUI client pin (cli.json): ${cliPinLabel}`);
69
+ console.log(`vvoc config: ${inspection.vvoc.path}`);
70
+ console.log(`vvoc config parse: ${inspection.vvoc.parseError ? inspection.vvoc.parseError : inspection.vvoc.exists ? "ok" : "missing"}`);
71
+ console.log(`vvoc schema: ${inspection.vvoc.schema ?? "missing"}`);
72
+ console.log(`vvoc version: ${inspection.vvoc.version ?? "missing"}`);
73
+ console.log(`Guardian model: ${inspection.guardian.config ? (inspection.guardian.config.model ?? "default") : "unknown"}`);
74
+ console.log(`Secrets Redaction config: ${inspection.secretsRedaction.config ? "present" : "unknown"}`);
75
+ console.log("Roles:");
76
+ if (inspection.roles.assignments.length === 0) {
77
+ console.log(" <none>");
78
+ }
79
+ else {
80
+ for (const role of inspection.roles.assignments) {
81
+ console.log(` ${role.roleId}: ${role.model}`);
73
82
  }
74
- if (inspection.warnings.length > 0) {
75
- console.log("Warnings:");
76
- for (const warning of inspection.warnings) {
77
- console.log(`- ${warning}`);
78
- }
83
+ }
84
+ if (inspection.warnings.length > 0) {
85
+ console.log("Warnings:");
86
+ for (const warning of inspection.warnings) {
87
+ console.log(`- ${warning}`);
79
88
  }
80
- if (inspection.problems.length > 0) {
81
- console.error("Problems:");
82
- for (const problem of inspection.problems) {
83
- console.error(`- ${problem}`);
84
- }
85
- process.exitCode = 1;
86
- return;
89
+ }
90
+ if (inspection.problems.length > 0) {
91
+ console.error("Problems:");
92
+ for (const problem of inspection.problems) {
93
+ console.error(`- ${problem}`);
87
94
  }
88
- console.log("Doctor: ok");
89
- // END_BLOCK_PRINT_DIAGNOSTIC_REPORT
90
- },
91
- });
95
+ process.exitCode = 1;
96
+ return;
97
+ }
98
+ console.log("Doctor: ok");
99
+ // END_BLOCK_PRINT_DIAGNOSTIC_REPORT
100
+ }
92
101
  function resolveReadScope(value) {
93
102
  return value === "global" || value === "project" ? value : "effective";
94
103
  }
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,iBAAiB;AACjB,wBAAwB;AACxB,yFAAyF;AACzF,4MAA4M;AAC5M,oEAAoE;AACpE,0CAA0C;AAC1C,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,2EAA2E;AAC3E,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,oHAAoH;AACpH,qBAAqB;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEjE,eAAe,aAAa,CAAC;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,2CAA2C;KACzD;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC;YAC3C,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE,6DAA6D;SAC3E;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+DAA+D;SAC7E;KACF;IACD,KAAK,CAAC,GAAG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;QAC9B,CAAC;IACH,CAAC;IAED,IAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACnC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC3B,KAAK,MAAM,OAAO,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;YAC1C,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1B,oCAAoC;AACtC,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"}
@@ -14,14 +14,6 @@ export declare const enableCommand: import("citty").CommandDef<{
14
14
  readonly type: "string";
15
15
  readonly description: "Override the global config home.";
16
16
  };
17
- readonly force: {
18
- readonly type: "boolean";
19
- readonly description: "Also rebind running session families in this project.";
20
- };
21
- readonly session: {
22
- readonly type: "string";
23
- readonly description: "With --force, rebind only this session family.";
24
- };
25
17
  }>;
26
18
  export declare const disableCommand: import("citty").CommandDef<{
27
19
  readonly plugin: {
@@ -39,12 +31,4 @@ export declare const disableCommand: import("citty").CommandDef<{
39
31
  readonly type: "string";
40
32
  readonly description: "Override the global config home.";
41
33
  };
42
- readonly force: {
43
- readonly type: "boolean";
44
- readonly description: "Also rebind running session families in this project.";
45
- };
46
- readonly session: {
47
- readonly type: "string";
48
- readonly description: "With --force, rebind only this session family.";
49
- };
50
34
  }>;
@@ -1,5 +1,5 @@
1
1
  // FILE: src/commands/plugin-toggle.ts
2
- // VERSION: 1.0.0
2
+ // VERSION: 1.1.0
3
3
  // START_MODULE_CONTRACT
4
4
  // PURPOSE: Provide `vvoc plugin enable <name>` and `vvoc plugin disable <name>` subcommands that mutate the `plugins` section in scoped vvoc.json layers.
5
5
  // SCOPE: Plugin name validation, global/project vvoc.json bootstrap, read/write, and CLI output.
@@ -15,13 +15,12 @@
15
15
  // END_MODULE_MAP
16
16
  //
17
17
  // START_CHANGE_SUMMARY
18
- // LAST_CHANGE: [C-SNAPSHOT-ANCHORING-REDESIGN T-006 - Added the --force/--session flags that request a rebind of running families after toggling a plugin.]
18
+ // LAST_CHANGE: [C-SESSION-OWNED-SETTINGS T-004 - Removed the --force/--session rebind flags; toggles now target new sessions and explicit session-settings commands change running families.]
19
19
  // END_CHANGE_SUMMARY
20
20
  import { defineCommand } from "citty";
21
21
  import { readFile, writeFile } from "node:fs/promises";
22
22
  import { resolvePaths, syncVvocConfig } from "../lib/opencode.js";
23
23
  import { PLUGIN_TOGGLE_NAMES } from "../lib/plugin-toggle-config.js";
24
- import { requestRebind } from "../lib/rebind-request.js";
25
24
  // START_BLOCK_TOGGLE_PLUGIN
26
25
  async function togglePlugin(pluginName, enabled, scope, cwd, configDir) {
27
26
  const paths = await resolvePaths({ scope, cwd, configDir });
@@ -53,19 +52,6 @@ async function togglePlugin(pluginName, enabled, scope, cwd, configDir) {
53
52
  return `Plugin "${pluginName}" ${state}. Restart the session to apply.`;
54
53
  }
55
54
  // END_BLOCK_TOGGLE_PLUGIN
56
- async function requestForceRebind(force, session) {
57
- const sessionId = typeof session === "string" && session.trim() ? session.trim() : undefined;
58
- const request = await requestRebind({
59
- force: force === true,
60
- directory: process.cwd(),
61
- sessionId,
62
- });
63
- if (request !== undefined) {
64
- console.log(request.sessionId === undefined
65
- ? "Rebind requested for every active session family in this project."
66
- : `Rebind requested for session ${request.sessionId}.`);
67
- }
68
- }
69
55
  // START_BLOCK_ENABLE_COMMAND
70
56
  export const enableCommand = defineCommand({
71
57
  meta: {
@@ -88,14 +74,6 @@ export const enableCommand = defineCommand({
88
74
  type: "string",
89
75
  description: "Override the global config home.",
90
76
  },
91
- force: {
92
- type: "boolean",
93
- description: "Also rebind running session families in this project.",
94
- },
95
- session: {
96
- type: "string",
97
- description: "With --force, rebind only this session family.",
98
- },
99
77
  },
100
78
  async run({ args }) {
101
79
  const pluginName = args.plugin;
@@ -109,7 +87,6 @@ export const enableCommand = defineCommand({
109
87
  try {
110
88
  const message = await togglePlugin(pluginName, true, scope, cwd, configDir);
111
89
  console.log(message);
112
- await requestForceRebind(args.force, args.session);
113
90
  }
114
91
  catch (error) {
115
92
  console.error(error instanceof Error ? error.message : String(error));
@@ -140,14 +117,6 @@ export const disableCommand = defineCommand({
140
117
  type: "string",
141
118
  description: "Override the global config home.",
142
119
  },
143
- force: {
144
- type: "boolean",
145
- description: "Also rebind running session families in this project.",
146
- },
147
- session: {
148
- type: "string",
149
- description: "With --force, rebind only this session family.",
150
- },
151
120
  },
152
121
  async run({ args }) {
153
122
  const pluginName = args.plugin;
@@ -161,7 +130,6 @@ export const disableCommand = defineCommand({
161
130
  try {
162
131
  const message = await togglePlugin(pluginName, false, scope, cwd, configDir);
163
132
  console.log(message);
164
- await requestForceRebind(args.force, args.session);
165
133
  }
166
134
  catch (error) {
167
135
  console.error(error instanceof Error ? error.message : String(error));
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-toggle.js","sourceRoot":"","sources":["../../src/commands/plugin-toggle.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iBAAiB;AACjB,wBAAwB;AACxB,4JAA4J;AAC5J,mGAAmG;AACnG,6FAA6F;AAC7F,qEAAqE;AACrE,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,yDAAyD;AACzD,2DAA2D;AAC3D,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,8JAA8J;AAC9J,qBAAqB;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,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kC;SAChD;KACF;IACD,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAgB,CAAC;QACzC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAU,CAAC;QACzE,MAAM,SAAS,GAAG,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC1F,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAE1B,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,UAAkD,CAAC,EAAE,CAAC;YACtF,OAAO,CAAC,KAAK,CACX,mBAAmB,UAAU,yBAAyB,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACvF,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;YAC7E,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AACH,4BAA4B"}
@@ -35,14 +35,6 @@ declare const _default: import("citty").CommandDef<{
35
35
  type: "string";
36
36
  description: string;
37
37
  };
38
- readonly force: {
39
- readonly type: "boolean";
40
- readonly description: "Also rebind running session families in this project to the new preset.";
41
- };
42
- readonly session: {
43
- readonly type: "string";
44
- readonly description: "With --force, rebind only this session family instead of every active family.";
45
- };
46
38
  }>;
47
39
  export default _default;
48
40
  export declare function listConfiguredPresets(presets: VvocPresets): ListedPreset[];