@osovv/vv-opencode 2.4.0 → 2.6.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 (96) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +12 -7
  3. package/dist/cli.js +5 -3
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/plugin-toggle.d.ts +0 -16
  6. package/dist/commands/plugin-toggle.js +2 -34
  7. package/dist/commands/plugin-toggle.js.map +1 -1
  8. package/dist/commands/preset.d.ts +0 -8
  9. package/dist/commands/preset.js +3 -24
  10. package/dist/commands/preset.js.map +1 -1
  11. package/dist/commands/role.js +2 -30
  12. package/dist/commands/role.js.map +1 -1
  13. package/dist/commands/session.d.ts +50 -0
  14. package/dist/commands/session.js +354 -0
  15. package/dist/commands/session.js.map +1 -0
  16. package/dist/lib/managed-agents.js +2 -2
  17. package/dist/lib/managed-agents.js.map +1 -1
  18. package/dist/plugins/analytics/index.js +8 -19
  19. package/dist/plugins/analytics/index.js.map +1 -1
  20. package/dist/plugins/guardian/index.js +7 -21
  21. package/dist/plugins/guardian/index.js.map +1 -1
  22. package/dist/plugins/hashline-edit/atomic-write.d.ts +49 -0
  23. package/dist/plugins/hashline-edit/atomic-write.js +198 -0
  24. package/dist/plugins/hashline-edit/atomic-write.js.map +1 -0
  25. package/dist/plugins/hashline-edit/index.js +60 -38
  26. package/dist/plugins/hashline-edit/index.js.map +1 -1
  27. package/dist/plugins/hashline-edit/str-replace-editor.d.ts +14 -1
  28. package/dist/plugins/hashline-edit/str-replace-editor.js +55 -22
  29. package/dist/plugins/hashline-edit/str-replace-editor.js.map +1 -1
  30. package/dist/plugins/hashline-edit/target-lock.d.ts +10 -0
  31. package/dist/plugins/hashline-edit/target-lock.js +96 -0
  32. package/dist/plugins/hashline-edit/target-lock.js.map +1 -0
  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/results.d.ts +40 -40
  55. package/dist/runtime/auxiliary.d.ts +11 -6
  56. package/dist/runtime/auxiliary.js +43 -35
  57. package/dist/runtime/auxiliary.js.map +1 -1
  58. package/dist/runtime/context-inspection.d.ts +7 -6
  59. package/dist/runtime/context-inspection.js +37 -43
  60. package/dist/runtime/context-inspection.js.map +1 -1
  61. package/dist/runtime/context.d.ts +22 -45
  62. package/dist/runtime/context.js +348 -634
  63. package/dist/runtime/context.js.map +1 -1
  64. package/dist/runtime/model-registry.d.ts +3 -34
  65. package/dist/runtime/model-registry.js +10 -190
  66. package/dist/runtime/model-registry.js.map +1 -1
  67. package/dist/runtime/session-settings.d.ts +204 -0
  68. package/dist/runtime/session-settings.js +445 -0
  69. package/dist/runtime/session-settings.js.map +1 -0
  70. package/dist/runtime/snapshot-config.d.ts +7 -70
  71. package/dist/runtime/snapshot-config.js +16 -198
  72. package/dist/runtime/snapshot-config.js.map +1 -1
  73. package/dist/runtime/types.d.ts +15 -256
  74. package/dist/runtime/types.js +9 -63
  75. package/dist/runtime/types.js.map +1 -1
  76. package/dist/tui/settings/plugin.d.ts +29 -0
  77. package/dist/tui/settings/plugin.js +134 -0
  78. package/dist/tui/settings/plugin.js.map +1 -0
  79. package/dist/tui.js +12 -12
  80. package/dist/tui.js.map +1 -1
  81. package/package.json +1 -1
  82. package/schemas/vvoc/v3.json +1 -1
  83. package/templates/agents/vv-controller.md +176 -151
  84. package/templates/skills/vv-execute/references/tool-contracts.md +1 -1
  85. package/dist/lib/rebind-request.d.ts +0 -41
  86. package/dist/lib/rebind-request.js +0 -134
  87. package/dist/lib/rebind-request.js.map +0 -1
  88. package/dist/runtime/snapshot-store.d.ts +0 -63
  89. package/dist/runtime/snapshot-store.js +0 -668
  90. package/dist/runtime/snapshot-store.js.map +0 -1
  91. package/dist/runtime/snapshots.d.ts +0 -36
  92. package/dist/runtime/snapshots.js +0 -508
  93. package/dist/runtime/snapshots.js.map +0 -1
  94. package/dist/tui/rebind/plugin.d.ts +0 -22
  95. package/dist/tui/rebind/plugin.js +0 -101
  96. package/dist/tui/rebind/plugin.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## 2.6.0 (2026-11-10)
2
+
3
+ ### Summary
4
+
5
+ Version 2.6.0 fixes a data-corruption bug in the str_replace_editor tool used by the Hashline Edit plugin. Concurrent edits to the same file could previously collide and leave contents corrupted; the plugin now serializes complete read, check, write, and cache cycles per canonical target across sessions in one process, and publishes byte-verified staged UTF-8 writes atomically while preserving file mode and symlinks. As a result, users and agents can safely edit the same files from multiple sessions without producing mangled or truncated content, and failed or cancelled operations recover cleanly instead of leaving stale output behind.
6
+
7
+ * fix(editor): prevent concurrent str_replace_editor corruption ([a991c13](https://github.com/osovv/vv-opencode/commit/a991c13))
8
+
9
+ ## 2.5.0 (2026-11-08)
10
+
11
+ ### Summary
12
+
13
+ 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.
14
+
15
+ * fix(prompts): consolidate controller guidance without duplicate injection ([1ce1636](https://github.com/osovv/vv-opencode/commit/1ce1636))
16
+ * test: isolate workflow integration persistence root per process ([47b63eb](https://github.com/osovv/vv-opencode/commit/47b63eb))
17
+ * test(e2e): rewrite the real-host harness for session settings ([216724c](https://github.com/osovv/vv-opencode/commit/216724c))
18
+ * test(secrets-redaction): drop the removed admission error name from drift notes ([ac91757](https://github.com/osovv/vv-opencode/commit/ac91757))
19
+ * test(workflow): align the settings-stability scenario title with session-owned settings ([88cca8a](https://github.com/osovv/vv-opencode/commit/88cca8a))
20
+ * docs: synchronize README and GRACE projections for session settings ([4a5f92c](https://github.com/osovv/vv-opencode/commit/4a5f92c))
21
+ * feat(cli): explicit session-settings commands for one family ([5b9e727](https://github.com/osovv/vv-opencode/commit/5b9e727))
22
+ * feat(plugins): resolve plugin policy through the family settings service ([1bac194](https://github.com/osovv/vv-opencode/commit/1bac194))
23
+ * feat(runtime): store family settings in native session metadata ([8774209](https://github.com/osovv/vv-opencode/commit/8774209))
24
+ * refactor(prompts): dedupe vv-controller template sections into universal injection ([4edde2e](https://github.com/osovv/vv-opencode/commit/4edde2e))
25
+
1
26
  ## <small>2.4.0 (2026-11-04)</small>
2
27
 
3
28
  ### 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.
@@ -216,7 +218,7 @@ Two families: `vv-*` skills guide the work protocol, while `vvoc-*` skills opera
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
 
@@ -233,6 +235,7 @@ Skills are loaded by OpenCode at session start through the native `skills` strin
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 |
@@ -311,9 +314,9 @@ The native document shape vvoc validates, extends, and writes into:
311
314
 
312
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.
313
316
 
314
- 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.
315
318
 
316
- 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.
317
320
 
318
321
  ### Strict schema, loud failures
319
322
 
@@ -522,7 +525,7 @@ Passed milestones stay historical: later planned edits are covered by later chec
522
525
 
523
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.
524
527
 
525
- 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.
526
529
 
527
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.
528
531
 
@@ -575,6 +578,8 @@ Routing changes require an OpenCode restart, like other runtime plugin settings.
575
578
 
576
579
  `hashline_edit` and `str_replace_editor` publish closed input contracts and reject conflicting or malformed fields before touching a file, without changing literal edit behavior: `replace` keeps its optional inclusive `end` (the `replace_range` alias still works), `lines` accepts a string, a string array, or `null` (an empty array or `null` deletes the range), `append`/`prepend` perform boundary insertion, `new_str` may be intentionally empty to delete, and `view_range` may end at `-1` to view to end of file. Supplying conflicting anchors, an unknown field, or a malformed range is a structural error that leaves file content, paths, freshness metadata, and the metadata sink unchanged, and the existing current-file and stale-anchor checks stay authoritative before any mutation.
577
580
 
581
+ Native `str_replace_editor` calls targeting the same canonical path are serialized across sessions in one process, including the read, freshness check, mutation, and cache update; calls for different files remain independent. Native reads and editor views share session-isolated canonical freshness records, so aliases cannot bypass an existing observation. Writes stage and verify the complete UTF-8 payload before atomic publication instead of truncating the destination, preserving ordinary file modes, POSIX ownership, and existing symlink targets. Multi-hardlink targets and files with setuid, setgid, or sticky mode bits are refused; inability to preserve uid/gid also fails without changing the original file. Publication requires a writable parent directory and does not preserve extended ACLs or xattrs. Removing a restrictive ACL can widen effective access: use a metadata-preserving editor for files with extended ACLs. Separate calls are not an all-or-nothing batch: a rejected replacement does not undo earlier successful calls. This coordination does not lock out other editing tools or external processes, and it does not add support for arbitrary text encodings.
582
+
578
583
  ### Tool history compaction
579
584
 
580
585
  `ToolHistoryCompactionPlugin` shrinks the context replayed to the model on every turn without touching on-disk storage. It rewrites only the in-memory provider-context copy the model is about to receive, through the native session `context` hook and gated per bound session family by its captured policy, and only the `output` of old completed tool parts — `input` and part structure (callID/type/order) are never changed, so provider tool_use/tool_result stitching stays intact.
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,CAAC;AAC/C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,MAAM,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B,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"}
@@ -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,cAAc,EAAE,MAAM,oBAAo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,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[];
@@ -1,5 +1,5 @@
1
1
  // FILE: src/commands/preset.ts
2
- // VERSION: 0.4.2
2
+ // VERSION: 0.5.0
3
3
  // START_MODULE_CONTRACT
4
4
  // PURPOSE: List, show, and atomically apply declarative role and orchestration presets from scoped vvoc.json layers.
5
5
  // SCOPE: Effective/global/project preset lookup, preset rendering, and conservative role plus optional orchestration writes.
@@ -20,13 +20,12 @@
20
20
  // END_MODULE_MAP
21
21
  //
22
22
  // START_CHANGE_SUMMARY
23
- // LAST_CHANGE: [C-SNAPSHOT-ANCHORING-REDESIGN T-006 - Added the --force/--session flags that request a rebind of running families after a preset apply.]
23
+ // LAST_CHANGE: [C-SESSION-OWNED-SETTINGS T-004 - Removed the --force/--session rebind flags; running families keep their birth settings and only explicit session-settings commands change them.]
24
24
  // END_CHANGE_SUMMARY
25
25
  import { defineCommand } from "citty";
26
26
  import { mkdir, readFile, writeFile } from "node:fs/promises";
27
27
  import { dirname } from "node:path";
28
28
  import { loadVvocConfigForRead, } from "../lib/config-layers.js";
29
- import { requestRebind } from "../lib/rebind-request.js";
30
29
  import { parseModelSelection } from "../lib/model-roles.js";
31
30
  import { resolvePaths } from "../lib/opencode.js";
32
31
  import { createOrchestrationConfig, parseOrchestrationProfile, } from "../lib/orchestration.js";
@@ -60,14 +59,6 @@ export default defineCommand({
60
59
  preset: presetArg,
61
60
  scope: scopeArg,
62
61
  "config-dir": configDirArg,
63
- force: {
64
- type: "boolean",
65
- description: "Also rebind running session families in this project to the new preset.",
66
- },
67
- session: {
68
- type: "string",
69
- description: "With --force, rebind only this session family instead of every active family.",
70
- },
71
62
  },
72
63
  async run({ args }) {
73
64
  await runPresetCommand(args);
@@ -148,8 +139,6 @@ async function runPresetCommand(args) {
148
139
  const presetName = typeof args.preset === "string" ? args.preset.trim() : "";
149
140
  const configDir = typeof args["config-dir"] === "string" ? args["config-dir"] : undefined;
150
141
  const readScope = resolveReadScope(args.scope);
151
- const force = args.force === true;
152
- const forceSession = typeof args.session === "string" && args.session.trim() ? args.session.trim() : undefined;
153
142
  if (!command || command === "list") {
154
143
  if (presetName) {
155
144
  throw new Error(`unexpected extra argument for \`vvoc preset list\`: ${presetName}`);
@@ -195,19 +184,9 @@ async function runPresetCommand(args) {
195
184
  }
196
185
  console.log(` orchestration: ${applied.orchestration.action} (${applied.orchestration.profile})`);
197
186
  console.log(`Target: ${applied.path}`);
198
- const request = await requestRebind({
199
- force,
200
- directory: process.cwd(),
201
- sessionId: forceSession,
202
- });
203
- if (request !== undefined) {
204
- console.log(request.sessionId === undefined
205
- ? "Rebind requested for every active session family in this project."
206
- : `Rebind requested for session ${request.sessionId}.`);
207
- }
208
187
  if (applied.changes.some((change) => change.action === "updated") ||
209
188
  applied.orchestration.action === "updated") {
210
- console.log("On OpenCode v1, restart OpenCode to apply the changed roles or orchestration profile. On OpenCode v2, the config watcher applies them without a restart; running sessions stay anchored to their starting preset.");
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.");
211
190
  }
212
191
  }
213
192
  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,uHAAuH;AACvH,+HAA+H;AAC/H,gKAAgK;AAChK,kFAAkF;AAClF,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,6CAA6C;AAC7C,oFAAoF;AACpF,6EAA6E;AAC7E,mEAAmE;AACnE,yGAAyG;AACzG,oGAAoG;AACpG,wGAAwG;AACxG,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,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AAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,+BAA+B,CAAC,CAAC;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"}
@@ -1,5 +1,5 @@
1
1
  // FILE: src/commands/role.ts
2
- // VERSION: 0.1.0
2
+ // VERSION: 0.2.0
3
3
  // START_MODULE_CONTRACT
4
4
  // PURPOSE: Manage canonical vvoc model role assignments in scoped vvoc.json layers.
5
5
  // SCOPE: Effective/global/project role listing, scoped set/unset writes, built-in role protection, and normalized model parsing.
@@ -17,12 +17,11 @@
17
17
  // END_MODULE_MAP
18
18
  //
19
19
  // START_CHANGE_SUMMARY
20
- // LAST_CHANGE: [C-SNAPSHOT-ANCHORING-REDESIGN T-006 - Added the --force/--session flags that request a rebind of running families after a role change.]
20
+ // LAST_CHANGE: [C-SESSION-OWNED-SETTINGS T-004 - Removed the --force/--session rebind flags; role changes now target new sessions and explicit session-settings commands change running families.]
21
21
  // END_CHANGE_SUMMARY
22
22
  import { defineCommand } from "citty";
23
23
  import { writeFile } from "node:fs/promises";
24
24
  import { loadVvocConfigForRead, } from "../lib/config-layers.js";
25
- import { requestRebind } from "../lib/rebind-request.js";
26
25
  import { BUILTIN_ROLE_NAMES, SEEDED_ROLE_NAMES, parseModelSelection } from "../lib/model-roles.js";
27
26
  import { readVvocConfig, resolvePaths, syncVvocConfig } from "../lib/opencode.js";
28
27
  import { renderVvocConfig } from "../lib/vvoc-config.js";
@@ -47,27 +46,6 @@ const writeScopeArg = {
47
46
  default: "global",
48
47
  description: "Write global config or project-local config.",
49
48
  };
50
- const forceArg = {
51
- type: "boolean",
52
- description: "Also rebind running session families in this project.",
53
- };
54
- const sessionArg = {
55
- type: "string",
56
- description: "With --force, rebind only this session family.",
57
- };
58
- async function requestForceRebind(force, session) {
59
- const sessionId = typeof session === "string" && session.trim() ? session.trim() : undefined;
60
- const request = await requestRebind({
61
- force: force === true,
62
- directory: process.cwd(),
63
- sessionId,
64
- });
65
- if (request !== undefined) {
66
- console.log(request.sessionId === undefined
67
- ? "Rebind requested for every active session family in this project."
68
- : `Rebind requested for session ${request.sessionId}.`);
69
- }
70
- }
71
49
  const readScopeArg = {
72
50
  type: "enum",
73
51
  options: ["global", "project", "effective"],
@@ -108,8 +86,6 @@ const roleSet = defineCommand({
108
86
  model: modelArg,
109
87
  scope: writeScopeArg,
110
88
  "config-dir": configDirArg,
111
- force: forceArg,
112
- session: sessionArg,
113
89
  },
114
90
  async run({ args }) {
115
91
  const roleId = normalizeRoleId(args.role, "set");
@@ -119,7 +95,6 @@ const roleSet = defineCommand({
119
95
  scope: resolveWriteScope(args.scope),
120
96
  });
121
97
  console.log(`${result.action}: ${roleId} -> ${modelSelection} (${result.path})`);
122
- await requestForceRebind(args.force, args.session);
123
98
  },
124
99
  });
125
100
  const roleUnset = defineCommand({
@@ -131,8 +106,6 @@ const roleUnset = defineCommand({
131
106
  role: roleArg,
132
107
  scope: writeScopeArg,
133
108
  "config-dir": configDirArg,
134
- force: forceArg,
135
- session: sessionArg,
136
109
  },
137
110
  async run({ args }) {
138
111
  const roleId = normalizeRoleId(args.role, "unset");
@@ -141,7 +114,6 @@ const roleUnset = defineCommand({
141
114
  scope: resolveWriteScope(args.scope),
142
115
  });
143
116
  console.log(`${result.action}: ${roleId} (${result.path})`);
144
- await requestForceRebind(args.force, args.session);
145
117
  },
146
118
  });
147
119
  export default defineCommand({
@@ -1 +1 @@
1
- {"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/commands/role.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,iBAAiB;AACjB,wBAAwB;AACxB,sFAAsF;AACtF,mIAAmI;AACnI,sIAAsI;AACtI,sCAAsC;AACtC,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,kCAAkC;AAClC,yEAAyE;AACzE,6FAA6F;AAC7F,8FAA8F;AAC9F,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,0JAA0J;AAC1J,qBAAqB;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,qBAAqB,GAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAmB,MAAM,uBAAuB,CAAC;AAE1E,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAE5C,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,YAAqB;IAC3B,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,mDAAmD;CACjE,CAAC;AAEF,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,YAAqB;IAC3B,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,iCAAiC;CAC/C,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,IAAI,EAAE,QAAiB;IACvB,WAAW,EAAE,kCAAkC;CAChD,C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