@osovv/vv-opencode 2.0.1 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +88 -87
- package/dist/commands/completion.js +0 -1
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/doctor.js +6 -9
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts +2 -1
- package/dist/commands/init.js +7 -12
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/install.d.ts +4 -0
- package/dist/commands/install.js +40 -37
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/launch.d.ts +2 -1
- package/dist/commands/launch.js +18 -14
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/patch-provider.d.ts +225 -307
- package/dist/commands/patch-provider.js +92 -296
- package/dist/commands/patch-provider.js.map +1 -1
- package/dist/commands/status.js +7 -10
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts +4 -0
- package/dist/commands/sync.js +38 -35
- package/dist/commands/sync.js.map +1 -1
- package/dist/index.d.ts +25 -5
- package/dist/index.js +73 -34
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-tool-catalog.d.ts +1 -1
- package/dist/lib/agent-tool-catalog.js +3 -6
- package/dist/lib/agent-tool-catalog.js.map +1 -1
- package/dist/lib/agent-tool-contract.d.ts +22 -13
- package/dist/lib/agent-tool-contract.js +20 -20
- package/dist/lib/agent-tool-contract.js.map +1 -1
- package/dist/lib/analytics/types.d.ts +7 -1
- package/dist/lib/analytics/types.js +2 -2
- package/dist/lib/analytics/types.js.map +1 -1
- package/dist/lib/config-layers.d.ts +28 -6
- package/dist/lib/config-layers.js +268 -73
- package/dist/lib/config-layers.js.map +1 -1
- package/dist/lib/managed-agents.d.ts +24 -2
- package/dist/lib/managed-agents.js +45 -15
- package/dist/lib/managed-agents.js.map +1 -1
- package/dist/lib/model-roles.d.ts +5 -0
- package/dist/lib/model-roles.js +22 -1
- package/dist/lib/model-roles.js.map +1 -1
- package/dist/lib/opencode/agent-registrations.d.ts +4 -4
- package/dist/lib/opencode/agent-registrations.js +386 -197
- package/dist/lib/opencode/agent-registrations.js.map +1 -1
- package/dist/lib/opencode/inspection.d.ts +13 -13
- package/dist/lib/opencode/inspection.js +69 -106
- package/dist/lib/opencode/inspection.js.map +1 -1
- package/dist/lib/opencode/model-overrides.d.ts +2 -2
- package/dist/lib/opencode/model-overrides.js +192 -47
- package/dist/lib/opencode/model-overrides.js.map +1 -1
- package/dist/lib/opencode/paths.d.ts +6 -2
- package/dist/lib/opencode/paths.js +12 -11
- package/dist/lib/opencode/paths.js.map +1 -1
- package/dist/lib/opencode/plugin-registration.d.ts +10 -11
- package/dist/lib/opencode/plugin-registration.js +76 -138
- package/dist/lib/opencode/plugin-registration.js.map +1 -1
- package/dist/lib/opencode/shared-utils.d.ts +47 -3
- package/dist/lib/opencode/shared-utils.js +346 -15
- package/dist/lib/opencode/shared-utils.js.map +1 -1
- package/dist/lib/opencode.d.ts +5 -6
- package/dist/lib/opencode.js +10 -10
- package/dist/lib/opencode.js.map +1 -1
- package/dist/lib/vvoc-config.js +4 -4
- package/dist/lib/vvoc-config.js.map +1 -1
- package/dist/lib/vvoc-paths.d.ts +7 -0
- package/dist/lib/vvoc-paths.js +15 -1
- package/dist/lib/vvoc-paths.js.map +1 -1
- package/dist/lib/vvoc-preset-registry.d.ts +38 -50
- package/dist/lib/vvoc-preset-registry.js +38 -48
- package/dist/lib/vvoc-preset-registry.js.map +1 -1
- package/dist/plugins/analytics/index.d.ts +20 -14
- package/dist/plugins/analytics/index.js +281 -133
- package/dist/plugins/analytics/index.js.map +1 -1
- package/dist/plugins/guardian/index.d.ts +63 -42
- package/dist/plugins/guardian/index.js +217 -759
- package/dist/plugins/guardian/index.js.map +1 -1
- package/dist/plugins/hashline-edit/index.d.ts +145 -31
- package/dist/plugins/hashline-edit/index.js +679 -244
- package/dist/plugins/hashline-edit/index.js.map +1 -1
- package/dist/plugins/hashline-edit/schemas.d.ts +1 -1
- package/dist/plugins/hashline-edit/schemas.js +3 -3
- package/dist/plugins/hashline-edit/schemas.js.map +1 -1
- package/dist/plugins/model-roles/index.d.ts +18 -4
- package/dist/plugins/model-roles/index.js +44 -181
- package/dist/plugins/model-roles/index.js.map +1 -1
- package/dist/plugins/peak-hours/index.d.ts +23 -23
- package/dist/plugins/peak-hours/index.js +211 -180
- package/dist/plugins/peak-hours/index.js.map +1 -1
- package/dist/plugins/secrets-redaction/deep.js +35 -51
- package/dist/plugins/secrets-redaction/deep.js.map +1 -1
- package/dist/plugins/secrets-redaction/index.d.ts +96 -8
- package/dist/plugins/secrets-redaction/index.js +290 -102
- package/dist/plugins/secrets-redaction/index.js.map +1 -1
- package/dist/plugins/secrets-redaction/session.d.ts +9 -0
- package/dist/plugins/secrets-redaction/session.js +21 -4
- package/dist/plugins/secrets-redaction/session.js.map +1 -1
- package/dist/plugins/secrets-redaction/stream.d.ts +92 -0
- package/dist/plugins/secrets-redaction/stream.js +772 -0
- package/dist/plugins/secrets-redaction/stream.js.map +1 -0
- package/dist/plugins/spec-guard/index.d.ts +49 -18
- package/dist/plugins/spec-guard/index.js +231 -129
- package/dist/plugins/spec-guard/index.js.map +1 -1
- package/dist/plugins/system-context-injection/index.d.ts +10 -4
- package/dist/plugins/system-context-injection/index.js +271 -78
- package/dist/plugins/system-context-injection/index.js.map +1 -1
- package/dist/plugins/tool-history-compaction/index.d.ts +26 -4
- package/dist/plugins/tool-history-compaction/index.js +170 -32
- package/dist/plugins/tool-history-compaction/index.js.map +1 -1
- package/dist/plugins/tool-history-compaction/transform.d.ts +47 -16
- package/dist/plugins/tool-history-compaction/transform.js +173 -55
- package/dist/plugins/tool-history-compaction/transform.js.map +1 -1
- package/dist/plugins/web-tools/fetch-service.d.ts +51 -13
- package/dist/plugins/web-tools/fetch-service.js +106 -75
- package/dist/plugins/web-tools/fetch-service.js.map +1 -1
- package/dist/plugins/web-tools/index.d.ts +58 -16
- package/dist/plugins/web-tools/index.js +202 -91
- package/dist/plugins/web-tools/index.js.map +1 -1
- package/dist/plugins/web-tools/media-loader.d.ts +3 -3
- package/dist/plugins/web-tools/media-loader.js +3 -3
- package/dist/plugins/web-tools/media-loader.js.map +1 -1
- package/dist/plugins/web-tools/providers/native-fetch.d.ts +2 -2
- package/dist/plugins/web-tools/providers/native-fetch.js +1 -1
- package/dist/plugins/web-tools/providers/native-fetch.js.map +1 -1
- package/dist/plugins/web-tools/providers/spider.d.ts +2 -2
- package/dist/plugins/web-tools/providers/spider.js +1 -1
- package/dist/plugins/web-tools/providers/spider.js.map +1 -1
- package/dist/plugins/web-tools/providers/zai.d.ts +2 -2
- package/dist/plugins/web-tools/providers/zai.js +1 -1
- package/dist/plugins/web-tools/providers/zai.js.map +1 -1
- package/dist/plugins/web-tools/schemas.d.ts +1 -1
- package/dist/plugins/web-tools/schemas.js +3 -3
- package/dist/plugins/web-tools/schemas.js.map +1 -1
- package/dist/plugins/web-tools/search-service.d.ts +81 -12
- package/dist/plugins/web-tools/search-service.js +104 -57
- package/dist/plugins/web-tools/search-service.js.map +1 -1
- package/dist/plugins/workflow/authorization.d.ts +44 -10
- package/dist/plugins/workflow/authorization.js +113 -73
- package/dist/plugins/workflow/authorization.js.map +1 -1
- package/dist/plugins/workflow/cancellation.d.ts +86 -0
- package/dist/plugins/workflow/cancellation.js +202 -0
- package/dist/plugins/workflow/cancellation.js.map +1 -0
- package/dist/plugins/workflow/checkpoints.d.ts +7 -1
- package/dist/plugins/workflow/checkpoints.js +141 -21
- package/dist/plugins/workflow/checkpoints.js.map +1 -1
- package/dist/plugins/workflow/delegated.d.ts +14 -0
- package/dist/plugins/workflow/delegated.js +6 -5
- package/dist/plugins/workflow/delegated.js.map +1 -1
- package/dist/plugins/workflow/host.d.ts +81 -0
- package/dist/plugins/workflow/host.js +189 -0
- package/dist/plugins/workflow/host.js.map +1 -0
- package/dist/plugins/workflow/index.d.ts +69 -4
- package/dist/plugins/workflow/index.js +1391 -1026
- package/dist/plugins/workflow/index.js.map +1 -1
- package/dist/plugins/workflow/recovery.d.ts +3 -5
- package/dist/plugins/workflow/recovery.js +18 -33
- package/dist/plugins/workflow/recovery.js.map +1 -1
- package/dist/plugins/workflow/repair.d.ts +31 -5
- package/dist/plugins/workflow/repair.js +116 -48
- package/dist/plugins/workflow/repair.js.map +1 -1
- package/dist/plugins/workflow/results.d.ts +31 -31
- package/dist/plugins/workflow/results.js +4 -4
- package/dist/plugins/workflow/results.js.map +1 -1
- package/dist/plugins/workflow/schemas.d.ts +3 -3
- package/dist/plugins/workflow/schemas.js +5 -5
- package/dist/plugins/workflow/schemas.js.map +1 -1
- package/dist/plugins/workflow/system-instruction.md +4 -0
- package/dist/plugins/workflow/tooling.d.ts +6 -0
- package/dist/plugins/workflow/tooling.js +3 -1
- package/dist/plugins/workflow/tooling.js.map +1 -1
- package/dist/runtime/auxiliary.d.ts +13 -0
- package/dist/runtime/auxiliary.js +108 -0
- package/dist/runtime/auxiliary.js.map +1 -0
- package/dist/runtime/client.d.ts +88 -0
- package/dist/runtime/client.js +174 -0
- package/dist/runtime/client.js.map +1 -0
- package/dist/runtime/context-inspection-contract.d.ts +397 -0
- package/dist/runtime/context-inspection-contract.js +622 -0
- package/dist/runtime/context-inspection-contract.js.map +1 -0
- package/dist/runtime/context-inspection.d.ts +52 -0
- package/dist/runtime/context-inspection.js +324 -0
- package/dist/runtime/context-inspection.js.map +1 -0
- package/dist/runtime/context.d.ts +192 -0
- package/dist/runtime/context.js +1246 -0
- package/dist/runtime/context.js.map +1 -0
- package/dist/runtime/coordination.d.ts +40 -0
- package/dist/runtime/coordination.js +87 -0
- package/dist/runtime/coordination.js.map +1 -0
- package/dist/runtime/model-registry.d.ts +34 -0
- package/dist/runtime/model-registry.js +227 -0
- package/dist/runtime/model-registry.js.map +1 -0
- package/dist/runtime/permissions.d.ts +20 -0
- package/dist/runtime/permissions.js +250 -0
- package/dist/runtime/permissions.js.map +1 -0
- package/dist/runtime/snapshot-config.d.ts +80 -0
- package/dist/runtime/snapshot-config.js +268 -0
- package/dist/runtime/snapshot-config.js.map +1 -0
- package/dist/runtime/snapshot-store.d.ts +25 -0
- package/dist/runtime/snapshot-store.js +519 -0
- package/dist/runtime/snapshot-store.js.map +1 -0
- package/dist/runtime/snapshots.d.ts +59 -0
- package/dist/runtime/snapshots.js +721 -0
- package/dist/runtime/snapshots.js.map +1 -0
- package/dist/runtime/types.d.ts +713 -0
- package/dist/runtime/types.js +190 -0
- package/dist/runtime/types.js.map +1 -0
- package/dist/tui/analytics/indicator.d.ts +25 -26
- package/dist/tui/analytics/indicator.js +66 -74
- package/dist/tui/analytics/indicator.js.map +1 -1
- package/dist/tui/branding/footer.d.ts +7 -12
- package/dist/tui/branding/footer.js +16 -24
- package/dist/tui/branding/footer.js.map +1 -1
- package/dist/tui/context/analyze.d.ts +20 -9
- package/dist/tui/context/analyze.js +295 -257
- package/dist/tui/context/analyze.js.map +1 -1
- package/dist/tui/context/collect.d.ts +29 -3
- package/dist/tui/context/collect.js +450 -66
- package/dist/tui/context/collect.js.map +1 -1
- package/dist/tui/context/plugin.d.ts +21 -7
- package/dist/tui/context/plugin.js +65 -70
- package/dist/tui/context/plugin.js.map +1 -1
- package/dist/tui/context/types.d.ts +174 -43
- package/dist/tui/context/types.js +25 -19
- package/dist/tui/context/types.js.map +1 -1
- package/dist/tui/context/view.d.ts +33 -7
- package/dist/tui/context/view.js +136 -81
- package/dist/tui/context/view.js.map +1 -1
- package/dist/tui/peak-hours/banner.d.ts +13 -11
- package/dist/tui/peak-hours/banner.js +48 -80
- package/dist/tui/peak-hours/banner.js.map +1 -1
- package/dist/tui/policy.d.ts +69 -0
- package/dist/tui/policy.js +169 -0
- package/dist/tui/policy.js.map +1 -0
- package/dist/tui.d.ts +3 -8
- package/dist/tui.js +72 -68
- package/dist/tui.js.map +1 -1
- package/package.json +18 -14
- package/schemas/vvoc/v3.json +1 -1
- package/server.js +3 -5
- package/templates/agents/enhancer.md +10 -5
- package/templates/agents/guardian.md +10 -4
- package/templates/agents/investigator.md +4 -2
- package/templates/agents/vv-code-reviewer.md +4 -2
- package/templates/agents/vv-spec-reviewer.md +4 -2
- package/templates/skills/vv-execute/references/tool-contracts.md +1 -1
- package/tui.js +3 -5
- package/dist/plugins/analytics/v2.d.ts +0 -21
- package/dist/plugins/analytics/v2.js +0 -133
- package/dist/plugins/analytics/v2.js.map +0 -1
- package/dist/plugins/guardian/v2.d.ts +0 -13
- package/dist/plugins/guardian/v2.js +0 -204
- package/dist/plugins/guardian/v2.js.map +0 -1
- package/dist/plugins/hashline-edit/v2.d.ts +0 -12
- package/dist/plugins/hashline-edit/v2.js +0 -145
- package/dist/plugins/hashline-edit/v2.js.map +0 -1
- package/dist/plugins/model-roles/v2.d.ts +0 -24
- package/dist/plugins/model-roles/v2.js +0 -274
- package/dist/plugins/model-roles/v2.js.map +0 -1
- package/dist/plugins/peak-hours/v2.d.ts +0 -12
- package/dist/plugins/peak-hours/v2.js +0 -99
- package/dist/plugins/peak-hours/v2.js.map +0 -1
- package/dist/plugins/secrets-redaction/v2.d.ts +0 -19
- package/dist/plugins/secrets-redaction/v2.js +0 -138
- package/dist/plugins/secrets-redaction/v2.js.map +0 -1
- package/dist/plugins/spec-guard/v2.d.ts +0 -12
- package/dist/plugins/spec-guard/v2.js +0 -139
- package/dist/plugins/spec-guard/v2.js.map +0 -1
- package/dist/plugins/system-context-injection/agent-contexts.d.ts +0 -5
- package/dist/plugins/system-context-injection/agent-contexts.js +0 -164
- package/dist/plugins/system-context-injection/agent-contexts.js.map +0 -1
- package/dist/plugins/system-context-injection/v2.d.ts +0 -13
- package/dist/plugins/system-context-injection/v2.js +0 -60
- package/dist/plugins/system-context-injection/v2.js.map +0 -1
- package/dist/plugins/tool-history-compaction/v2.d.ts +0 -11
- package/dist/plugins/tool-history-compaction/v2.js +0 -56
- package/dist/plugins/tool-history-compaction/v2.js.map +0 -1
- package/dist/plugins/v2-runtime/config-watcher.d.ts +0 -26
- package/dist/plugins/v2-runtime/config-watcher.js +0 -111
- package/dist/plugins/v2-runtime/config-watcher.js.map +0 -1
- package/dist/plugins/v2-runtime/index.d.ts +0 -50
- package/dist/plugins/v2-runtime/index.js +0 -114
- package/dist/plugins/v2-runtime/index.js.map +0 -1
- package/dist/plugins/v2-runtime/location-config.d.ts +0 -51
- package/dist/plugins/v2-runtime/location-config.js +0 -91
- package/dist/plugins/v2-runtime/location-config.js.map +0 -1
- package/dist/plugins/v2-runtime/setup.d.ts +0 -48
- package/dist/plugins/v2-runtime/setup.js +0 -174
- package/dist/plugins/v2-runtime/setup.js.map +0 -1
- package/dist/plugins/web-tools/v2.d.ts +0 -11
- package/dist/plugins/web-tools/v2.js +0 -99
- package/dist/plugins/web-tools/v2.js.map +0 -1
- package/dist/plugins/workflow/v2.d.ts +0 -76
- package/dist/plugins/workflow/v2.js +0 -283
- package/dist/plugins/workflow/v2.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
|
1
|
+
## <small>2.1.1 (2026-10-02)</small>
|
|
2
|
+
|
|
3
|
+
### Summary
|
|
4
|
+
|
|
5
|
+
Version 2.1.1 fixes two packaging and release-tooling issues. The solid-js peer dependency range is relaxed from >=1.9.15 to >=1.9.12 so the declared peers align with the @opentui packages that are pinned by the project, avoiding peer-resolution conflicts during installation. In addition, the release workflow now invokes `opencode run --standalone` instead of the prior `--pure` flag when generating the required release changelog summary, and the README and release script documentation were updated to match. Together these changes make installs smoother for consumers and keep the automated release process producing its mandatory summary reliably.
|
|
6
|
+
|
|
7
|
+
* fix(package): relax solid-js peer range to satisfy @opentui pin ([8da6f6d](https://github.com/osovv/vv-opencode/commit/8da6f6d))
|
|
8
|
+
* fix(release): use opencode run --standalone for the v2 release summary ([5dca67e](https://github.com/osovv/vv-opencode/commit/5dca67e))
|
|
9
|
+
|
|
10
|
+
## 2.1.0 (2026-10-01)
|
|
11
|
+
|
|
12
|
+
### Summary
|
|
13
|
+
|
|
14
|
+
Version 2.1.0 completes the migration to a native OpenCode 2.0.18 integration, replacing the earlier dual-runtime approach so that install, init, sync, and launch now target the supported host window (>=2.0.18 <2.0.19) and fail closed outside it, and it drops legacy V1 dependencies and the Kimi preset while preserving user-owned configuration. Workflow tracking and recovery are ported to the native host, including correct cancellation settlement on the live native root-interrupt shape and safe handling of failed report repair, while the context TUI gains real-PTY acceptance coverage. Reliability and safety fixes matter to users throughout: secrets restoration and redaction now rebuild owned copies so frozen native tool inputs can no longer throw, WebSocket framing state is isolated per session and reset at each request boundary so abandoned streams no longer poison later responses, native file boundaries, read anchoring, and permission checks are enforced, snapshot admission and auxiliary lineage are correlated and persisted, and setup validates the native document before any write while keeping role intent in the modelIntent envelope instead of native model literals. The release also bounds commit diffs in the release-summary prompt so large releases no longer exceed the summary model's context window and fail release preparation, aggregating installed-parity evidence that verifies the packed artifact and its surfaces against the pinned host. For users this means a cleaner, more predictable native experience with stronger guarantees around secrets, edits, cancellation recovery, and configuration safety.
|
|
15
|
+
|
|
16
|
+
* fix(release): bound commit diffs in summary prompt to model context ([1c6f722](https://github.com/osovv/vv-opencode/commit/1c6f722))
|
|
17
|
+
* fix(v2): contain midpoint stream and workflow failures ([5ff4290](https://github.com/osovv/vv-opencode/commit/5ff4290))
|
|
18
|
+
* fix(v2): copy-on-write secret restore for frozen native tool input ([3a4f72f](https://github.com/osovv/vv-opencode/commit/3a4f72f))
|
|
19
|
+
* fix(v2): correlate snapshot admission and persist auxiliary lineage ([029eb62](https://github.com/osovv/vv-opencode/commit/029eb62))
|
|
20
|
+
* fix(v2): enforce native file boundaries and read anchoring ([4b1e953](https://github.com/osovv/vv-opencode/commit/4b1e953))
|
|
21
|
+
* fix(v2): isolate websocket framing by request lifetime ([7fb9ac1](https://github.com/osovv/vv-opencode/commit/7fb9ac1))
|
|
22
|
+
* fix(v2): validate native setup and preserve model intent ([67424d7](https://github.com/osovv/vv-opencode/commit/67424d7))
|
|
23
|
+
* fix(workflow): settle cancellation on live native root-interrupt shape ([c77f36d](https://github.com/osovv/vv-opencode/commit/c77f36d))
|
|
24
|
+
* chore(grace): apply and archive C-OPENCODE-V2-NATIVE ([01f13b8](https://github.com/osovv/vv-opencode/commit/01f13b8))
|
|
25
|
+
* chore(grace): record native V2 rewrite plan and findings ([c003724](https://github.com/osovv/vv-opencode/commit/c003724))
|
|
26
|
+
* chore(v2): checkpoint host gating and Kimi removal ([0dfa6ad](https://github.com/osovv/vv-opencode/commit/0dfa6ad))
|
|
27
|
+
* chore(v2): checkpoint native setup awaiting acceptance ([9afd855](https://github.com/osovv/vv-opencode/commit/9afd855))
|
|
28
|
+
* chore(v2): checkpoint safety ports pending native boundary fixes ([2dc7ac6](https://github.com/osovv/vv-opencode/commit/2dc7ac6))
|
|
29
|
+
* chore(v2): checkpoint unfinished native runtime and snapshots ([25c4db1](https://github.com/osovv/vv-opencode/commit/25c4db1))
|
|
30
|
+
* docs(grace): record final spec review pass ([4bdf00a](https://github.com/osovv/vv-opencode/commit/4bdf00a))
|
|
31
|
+
* docs(grace): retain native file boundary and creation findings ([537a5d2](https://github.com/osovv/vv-opencode/commit/537a5d2))
|
|
32
|
+
* docs(v2): reconcile README/AGENTS/GRACE to native V2-only ([0cf66b9](https://github.com/osovv/vv-opencode/commit/0cf66b9))
|
|
33
|
+
* docs(v2): record final delivery evidence snapshot ([6671291](https://github.com/osovv/vv-opencode/commit/6671291))
|
|
34
|
+
* docs(v2): restore grace-lint-clean semantic markup ([d5c573e](https://github.com/osovv/vv-opencode/commit/d5c573e))
|
|
35
|
+
* test(v2): add isolated packed core acceptance harness ([3403e2e](https://github.com/osovv/vv-opencode/commit/3403e2e))
|
|
36
|
+
* test(v2): aggregate guardian + hashline parity (32/38) ([62906e5](https://github.com/osovv/vv-opencode/commit/62906e5))
|
|
37
|
+
* test(v2): aggregate spec-guard + compaction parity (34/38) ([f54fdcf](https://github.com/osovv/vv-opencode/commit/f54fdcf))
|
|
38
|
+
* test(v2): aggregate tool control plane, web-tools parity (30/38) ([cfe96d7](https://github.com/osovv/vv-opencode/commit/cfe96d7))
|
|
39
|
+
* test(v2): aggregate-root parity tier (27/38 rows) ([d028207](https://github.com/osovv/vv-opencode/commit/d028207))
|
|
40
|
+
* test(v2): correct workflow cancellation parity harness; native interrupt-observability wall ([c8aab64](https://github.com/osovv/vv-opencode/commit/c8aab64))
|
|
41
|
+
* test(v2): drive workflow foreground launch in aggregate parity ([f3e90ba](https://github.com/osovv/vv-opencode/commit/f3e90ba))
|
|
42
|
+
* test(v2): finalize installed-parity evidence with honest AC-11 residuals ([f507ced](https://github.com/osovv/vv-opencode/commit/f507ced))
|
|
43
|
+
* test(v2): installed-artifact parity harness foundation (26/38 rows) ([50c4f91](https://github.com/osovv/vv-opencode/commit/50c4f91))
|
|
44
|
+
* test(v2): rewrite tool-contract host harness for native 2.0.18 ([e6a5161](https://github.com/osovv/vv-opencode/commit/e6a5161))
|
|
45
|
+
* test(v2): verify analytics usage in aggregate parity (29/38) ([868810f](https://github.com/osovv/vv-opencode/commit/868810f))
|
|
46
|
+
* test(v2): verify peak-hours primary gating in aggregate parity (28/38) ([d931df9](https://github.com/osovv/vv-opencode/commit/d931df9))
|
|
47
|
+
* feat(v2): assemble native package and coordinate snapshot admission ([1755af5](https://github.com/osovv/vv-opencode/commit/1755af5))
|
|
48
|
+
* feat(v2): deliver native context TUI and PTY acceptance ([caa1244](https://github.com/osovv/vv-opencode/commit/caa1244))
|
|
49
|
+
* feat(v2): port context telemetry compaction and peak policies ([98b5680](https://github.com/osovv/vv-opencode/commit/98b5680))
|
|
50
|
+
* feat(workflow): port tracking and recovery to native V2 ([7aa723d](https://github.com/osovv/vv-opencode/commit/7aa723d))
|
|
51
|
+
|
|
1
52
|
## <small>2.0.1 (2026-09-26)</small>
|
|
2
53
|
|
|
3
54
|
### Summary
|
package/README.md
CHANGED
|
@@ -62,40 +62,19 @@ Every managed skill can also be invoked explicitly when you want to drive the pr
|
|
|
62
62
|
## Quick start
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
bun add -g opencode
|
|
65
|
+
bun add -g @opencode/cli@2.0.18 # native OpenCode host, pinned to the supported window
|
|
66
66
|
bun add -g @osovv/vv-opencode
|
|
67
67
|
vvoc install
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
`vvoc install` does four things:
|
|
71
71
|
|
|
72
|
-
- pins `@osovv/vv-opencode`
|
|
73
|
-
- scaffolds the managed agents and skills;
|
|
72
|
+
- pins `@osovv/vv-opencode` once in the native OpenCode `plugins` array — the host resolves that package's `./server` export for server plugins and its `./tui` export for the terminal UI;
|
|
73
|
+
- scaffolds the managed agents and skills and registers them through the native `agents` and `skills` config;
|
|
74
74
|
- writes the canonical `vvoc.json` config;
|
|
75
|
-
- sets `vv-controller` as your default OpenCode agent, with the spec, planning, review, reflection, and handoff skills auto-
|
|
75
|
+
- sets `vv-controller` as your default OpenCode agent (`default_agent`), with the spec, planning, review, reflection, and handoff skills auto-triggering by request type.
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### OpenCode v2 support
|
|
80
|
-
|
|
81
|
-
Since 2.0.0 the package is dual-runtime and supports both OpenCode 1 and OpenCode 2: the same pinned package loads under OpenCode v1 (`>= 1.18.29`, through the object `server()` entrypoint) and OpenCode v2 (`>= 2.0.18`, through `Plugin.define` `setup()`). Installing either major line with `vvoc install` / `vvoc sync` works unchanged: v2 reads the same `plugin` array fields and the same `.opencode/` layout.
|
|
82
|
-
|
|
83
|
-
What changes on the v2 runtime:
|
|
84
|
-
|
|
85
|
-
- **One server, many sessions.** v2 runs one background server with thin clients; vvoc plugins resolve their configuration per session location instead of one startup snapshot, so a single server can host projects with different toggles, role maps, and policies.
|
|
86
|
-
- **Restart-free presets.** Changing roles or presets in `vvoc.json` takes effect through replayable transforms and a config watcher — no OpenCode restart. Each session pins its role-resolved model on its first prompt, so a long autonomous session stays anchored to its starting preset while new sessions pick up the switched one (verified end to end against a real v2 server by `bun run e2e:v2`).
|
|
87
|
-
- **Role references survive config normalization.** v2 strips `vv-role:` model strings from config-defined agents; the model-roles plugin reads them from the raw project config and applies them per session.
|
|
88
|
-
- **Same-name tool registration replaces built-ins.** `web_search` / `web_fetch` override the v2 built-ins while enabled and restore them when disabled.
|
|
89
|
-
- **The workflow delegated continuation prompt degrades fail-closed** under the v2 prompt shape: unrecognized or unavailable continuation paths reject the attempt and never accept a report. The event-driven freshness rules are bridged: user-prompt admissions, tool failure and progress states, and session deletions flow into the shared handler with the same taint and cleanup semantics.
|
|
90
|
-
- **Secrets redaction covers auxiliary requests input-side.** v2 has no completion-output hook, so title, generate, and compaction requests redact their messages instead — those models never observe placeholders and cannot echo them into persisted titles or summaries.
|
|
91
|
-
|
|
92
|
-
The full v2 `/context` TUI inspector ships in a follow-up release; the v2 TUI entry registers the `/context` command with a status dialog while the complete v1 inspector keeps running on the v1 runtime.
|
|
93
|
-
|
|
94
|
-
End-to-end verification against a sandboxed, real OpenCode v2 server (isolated binary, disposable XDG homes, PID-exact lifecycle):
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
bun run e2e:v2
|
|
98
|
-
```
|
|
77
|
+
vv-opencode supports OpenCode `>=2.0.18 <2.0.19` only — V1 hosts and 2.0.19 or newer are outside the supported window, and `vvoc install`/`init`/`sync`/`launch` fail closed with the exact window when the installed host does not match. `vvoc status` and `vvoc doctor` report the installed host version next to that window (`OpenCode supported range: >=2.0.18 <2.0.19`) without changing any files. Install the host from npm as `@opencode/cli` (its `opencode` binary) or from the matching official binary distribution; do not install the legacy `opencode-ai` V1 host.
|
|
99
78
|
|
|
100
79
|
**Want to try it without touching your global setup?** Scope everything to one project:
|
|
101
80
|
|
|
@@ -104,7 +83,7 @@ vvoc install --scope project
|
|
|
104
83
|
vvoc launch --scope project
|
|
105
84
|
```
|
|
106
85
|
|
|
107
|
-
Project scope writes only to `./.opencode/` and `./.vvoc/`. A plain `opencode` launch may still apply OpenCode's native config discovery and merge behavior; `vvoc launch --scope project` is the hard sandbox path — it starts OpenCode with `OPENCODE_CONFIG
|
|
86
|
+
Project scope writes only to `./.opencode/` and `./.vvoc/`. A plain `opencode` launch may still apply OpenCode's native config discovery and merge behavior; `vvoc launch --scope project` is the hard sandbox path — it starts OpenCode with `OPENCODE_CONFIG` and `VVOC_CONFIG` pinned to the selected local files (and pins the native `OPENCODE_CONFIG_DIR` discovery root when the selected config sits outside the default one, so generated sibling agents and skills are still found), so you can smoke-test vv-opencode in one repository without mutating your primary global setup.
|
|
108
87
|
|
|
109
88
|
> **Already installed?** Run `vvoc sync` anytime to refresh plugins, prompts, skills, and presets.
|
|
110
89
|
|
|
@@ -182,15 +161,17 @@ grep '<COMPONENT-' .vvoc/specs/*/*.xml # component map across spec and plan
|
|
|
182
161
|
|
|
183
162
|
## What's inside
|
|
184
163
|
|
|
185
|
-
### The
|
|
164
|
+
### The eleven server plugins and the native TUI
|
|
165
|
+
|
|
166
|
+
Eleven server plugins run inside the OpenCode server process; the twelfth entry, **ContextTuiPlugin**, runs in the terminal UI through the same pinned package's `./tui` export.
|
|
186
167
|
|
|
187
168
|
| Plugin | What it does |
|
|
188
169
|
|---|---|
|
|
189
170
|
| **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. |
|
|
190
|
-
| **ModelRolesPlugin** | Semantic model roles (`vv-role:smart`, `vv-role:fast`, …) instead of hardcoded model IDs in agents, subagents, and commands — resolved
|
|
171
|
+
| **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. |
|
|
191
172
|
| **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. |
|
|
192
173
|
| **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. |
|
|
193
|
-
| **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
|
|
174
|
+
| **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. |
|
|
194
175
|
| **SecretsRedactionPlugin** | Redacts tokens, keys, emails, and other sensitive values before messages reach the model, restoring them only where local execution needs the originals. |
|
|
195
176
|
| **WebToolsPlugin** | Two provider-neutral tools — `web_search` and `web_fetch` — over Exa, Brave, Z.AI, native retrieval, or Spider, with permission checks and normalized output. |
|
|
196
177
|
| **ToolHistoryCompactionPlugin** | Shrinks the context replayed to the model by compacting old tool outputs non-destructively, without touching on-disk history. |
|
|
@@ -229,7 +210,7 @@ Two families: `vv-*` skills guide the work protocol, while `vvoc-*` skills opera
|
|
|
229
210
|
| `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 |
|
|
230
211
|
| `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 |
|
|
231
212
|
|
|
232
|
-
Skills are loaded by OpenCode at session start through `
|
|
213
|
+
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.
|
|
233
214
|
|
|
234
215
|
---
|
|
235
216
|
|
|
@@ -239,10 +220,10 @@ Skills are loaded by OpenCode at session start through `config.skills.paths` (re
|
|
|
239
220
|
|---|---|
|
|
240
221
|
| `vvoc init` | Interactive bootstrap flow |
|
|
241
222
|
| `vvoc install` | Non-interactive setup and scaffolding |
|
|
242
|
-
| `vvoc sync` | Refresh
|
|
243
|
-
| `vvoc launch` | Launch OpenCode with deterministic runtime
|
|
244
|
-
| `vvoc status` | Show current installation state, including OpenCode version
|
|
245
|
-
| `vvoc doctor` | Diagnose OpenCode version/runtime/
|
|
223
|
+
| `vvoc sync` | Refresh native plugins/agents/skills registrations, prompts, skills, config |
|
|
224
|
+
| `vvoc launch` | Launch OpenCode with deterministic runtime and vvoc config sources after a host-window preflight |
|
|
225
|
+
| `vvoc status` | Show current installation state, including the installed OpenCode version against the supported window and combined-package registration |
|
|
226
|
+
| `vvoc doctor` | Diagnose OpenCode version/window/runtime/vvoc setup problems (exits non-zero on issues) |
|
|
246
227
|
| `vvoc config validate` | Validate canonical `vvoc.json` |
|
|
247
228
|
| `vvoc role list\|set\|unset` | Manage model role assignments |
|
|
248
229
|
| `vvoc preset list\|show\|<name>` | Inspect or apply named presets |
|
|
@@ -250,7 +231,7 @@ Skills are loaded by OpenCode at session start through `config.skills.paths` (re
|
|
|
250
231
|
| `vvoc plugin list` | List OpenCode plugin entries |
|
|
251
232
|
| `vvoc plugin enable\|disable` | Toggle a vvoc-managed plugin on or off |
|
|
252
233
|
| `vvoc orchestration show\|set` | Show or set the vv-controller orchestration profile |
|
|
253
|
-
| `vvoc patch-provider stepfun-ai\|codex\|deepseek\|
|
|
234
|
+
| `vvoc patch-provider stepfun-ai\|codex\|deepseek\|alibaba\|zai\|xiaomi\|all` | Patch OpenCode providers; `codex` adds real gpt-5.5/5.6/6 models with effort variants (also accepts `openai`), `deepseek`/`alibaba`/`zai`/`xiaomi` add `#variant` suffixes on real models, `stepfun-ai` sets the StepFun `.ai` baseURL, `all` patches every provider at once |
|
|
254
235
|
| `vvoc completion` | Install shell completions |
|
|
255
236
|
| `vvoc upgrade` | Upgrade the global package and run follow-up sync; sync failure is reported as a partial upgrade |
|
|
256
237
|
| `vvoc analytics cache-hit-rate` | Aggregate persisted cache hit rate by day, week, month, session, model, provider, project, vvoc version, or OpenCode version |
|
|
@@ -268,7 +249,7 @@ vvoc guardian config --print --timeout-ms 30000 --review-toast-duration-ms 5000
|
|
|
268
249
|
|
|
269
250
|
Mutating commands default to global scope for backward compatibility; add `--scope project` to write a project-local layer. Read and diagnostic commands accept `--scope global|project|effective`, where `effective` resolves in this order:
|
|
270
251
|
|
|
271
|
-
1. explicit env override (`VVOC_CONFIG` / `OPENCODE_CONFIG
|
|
252
|
+
1. explicit env override (`VVOC_CONFIG` / `OPENCODE_CONFIG`, with `OPENCODE_CONFIG_DIR` selecting the native discovery root)
|
|
272
253
|
2. nearest project layer
|
|
273
254
|
3. global layer
|
|
274
255
|
4. built-in defaults when the command/runtime permits defaults
|
|
@@ -277,7 +258,6 @@ Canonical project-local paths:
|
|
|
277
258
|
|
|
278
259
|
```text
|
|
279
260
|
OpenCode config → ./.opencode/opencode.json(c)
|
|
280
|
-
OpenCode TUI config → ./.opencode/tui.json(c)
|
|
281
261
|
vvoc config → ./.vvoc/vvoc.json
|
|
282
262
|
Managed agent prompts → ./.vvoc/agents/*.md
|
|
283
263
|
Managed skills → ./.vvoc/skills/*/SKILL.md
|
|
@@ -286,13 +266,12 @@ Handoff notes → ./.vvoc/handoff/YYYY-MM-DD-<session-slug>/handoff.x
|
|
|
286
266
|
Repository memory → ./.vvoc/lessons/*.xml, ./.vvoc/runbooks/*.xml
|
|
287
267
|
```
|
|
288
268
|
|
|
289
|
-
Legacy root-level `./opencode.json` and `./opencode.jsonc` are intentionally not used as vvoc project layers.
|
|
269
|
+
Legacy root-level `./opencode.json` and `./opencode.jsonc` are intentionally not used as vvoc project layers. vvoc writes no `tui.json(c)`: the terminal UI reads its own process settings from the native `cli.json`, which vvoc leaves alone, and the TUI loads the vvoc package through the server plugin inventory instead.
|
|
290
270
|
|
|
291
271
|
Global paths:
|
|
292
272
|
|
|
293
273
|
```text
|
|
294
274
|
OpenCode config → $XDG_CONFIG_HOME/opencode/opencode.json
|
|
295
|
-
OpenCode TUI config → $XDG_CONFIG_HOME/opencode/tui.json(c)
|
|
296
275
|
vvoc config → $XDG_CONFIG_HOME/vvoc/vvoc.json
|
|
297
276
|
Managed agent prompts → $XDG_CONFIG_HOME/vvoc/agents/*.md
|
|
298
277
|
Managed skills → $XDG_CONFIG_HOME/vvoc/skills/*/SKILL.md
|
|
@@ -300,13 +279,33 @@ Persisted data → $XDG_DATA_HOME/vvoc/
|
|
|
300
279
|
Usage analytics → $XDG_DATA_HOME/vvoc/analytics/usage-YYYY-MM.jsonl
|
|
301
280
|
```
|
|
302
281
|
|
|
303
|
-
###
|
|
282
|
+
### One pinned package in the native plugins array
|
|
304
283
|
|
|
305
|
-
OpenCode keeps
|
|
284
|
+
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.
|
|
306
285
|
|
|
307
|
-
`vvoc install`, `vvoc init`, and `vvoc sync` conservatively
|
|
286
|
+
`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. Existing comments, unrelated settings, unrelated plugin entries, and their `options` are preserved; malformed plugin entries fail without rewrite. V1 document shapes are refused outright instead of being migrated: `plugin`, `agent`, `provider`, `command`, `small_model`, and `tools` are not native 2.0.18 keys, and vvoc fails before mutating a document that uses them.
|
|
308
287
|
|
|
309
|
-
|
|
288
|
+
The native document shape vvoc validates, extends, and writes into:
|
|
289
|
+
|
|
290
|
+
```json
|
|
291
|
+
{
|
|
292
|
+
"$schema": "https://opencode.ai/config.json",
|
|
293
|
+
"default_agent": "vv-controller",
|
|
294
|
+
"plugins": [
|
|
295
|
+
{ "package": "@osovv/vv-opencode@1.7.0", "options": { "modelIntent": { "model": "vv-role:smart" } } }
|
|
296
|
+
],
|
|
297
|
+
"agents": { "vv-controller": {} },
|
|
298
|
+
"skills": ["./.vvoc/skills"],
|
|
299
|
+
"providers": {},
|
|
300
|
+
"permissions": {}
|
|
301
|
+
}
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
`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.
|
|
305
|
+
|
|
306
|
+
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.
|
|
307
|
+
|
|
308
|
+
Runtime plugins load the effective `vvoc.json` once during OpenCode startup and share one immutable config snapshot for the lifetime of the process; each session family additionally binds an immutable policy snapshot at its first accepted workload, so a bound family keeps the policy it was admitted under. There is no live reload: restart OpenCode after changing `vvoc.json`.
|
|
310
309
|
|
|
311
310
|
### Strict schema, loud failures
|
|
312
311
|
|
|
@@ -323,9 +322,9 @@ The optional schema-v3 `web` section follows the same layer precedence and is om
|
|
|
323
322
|
|
|
324
323
|
### Diagnostics never mutate
|
|
325
324
|
|
|
326
|
-
`vvoc status` and `vvoc doctor` report the installed OpenCode version, the `
|
|
325
|
+
`vvoc status` and `vvoc doctor` report the installed OpenCode version, the exact supported window (`OpenCode supported range: >=2.0.18 <2.0.19`), 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`.
|
|
327
326
|
|
|
328
|
-
Runtime compatibility is
|
|
327
|
+
Runtime compatibility is window-pinned: install, init, sync, and launch refuse a host outside `>=2.0.18 <2.0.19` 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.
|
|
329
328
|
|
|
330
329
|
### Release channels
|
|
331
330
|
|
|
@@ -352,7 +351,7 @@ An explicit `--channel latest|rc` argument may only confirm the derived channel;
|
|
|
352
351
|
|
|
353
352
|
### Stability and compatibility
|
|
354
353
|
|
|
355
|
-
Since 1.0, vv-opencode treats the daily-driver surface as stable. The compatibility surfaces are: `vvoc install` / `vvoc sync` / `vvoc launch`, the managed skill names (`vv-spec`, `vv-plan`, `vv-execute`, `vv-review`, `vv-reflect`, `vv-handoff`), the published package exports, canonical vvoc schema v3, and the date-prefixed `.vvoc/specs/YYYY-MM-DD-<slug>/` artifact layout. Breaking workflow or config changes are documented in release notes. The project still prefers conservative, explicit changes over hidden migration magic: user-owned config is never silently clobbered, and invalid current config fails loudly.
|
|
354
|
+
Since 1.0, vv-opencode treats the daily-driver surface as stable. The compatibility surfaces are: `vvoc install` / `vvoc sync` / `vvoc launch`, the supported host window (`>=2.0.18 <2.0.19`), the managed skill names (`vv-spec`, `vv-plan`, `vv-execute`, `vv-review`, `vv-reflect`, `vv-handoff`), the published package exports, canonical vvoc schema v3, and the date-prefixed `.vvoc/specs/YYYY-MM-DD-<slug>/` artifact layout. Breaking workflow or config changes are documented in release notes. The project still prefers conservative, explicit changes over hidden migration magic: user-owned config is never silently clobbered, and invalid current config fails loudly.
|
|
356
355
|
|
|
357
356
|
### Deterministic local launch
|
|
358
357
|
|
|
@@ -363,7 +362,7 @@ vvoc install --scope project
|
|
|
363
362
|
vvoc launch --scope project -- run "hello"
|
|
364
363
|
```
|
|
365
364
|
|
|
366
|
-
`vvoc launch --scope project` is strict and non-mutating: if `.opencode/opencode.json` or `.vvoc/vvoc.json` is missing, it fails with a hint to run `vvoc install --scope project`.
|
|
365
|
+
`vvoc launch --scope project` is strict and non-mutating: if `.opencode/opencode.json` or `.vvoc/vvoc.json` is missing, it fails with a hint to run `vvoc install --scope project`. Launch pins `OPENCODE_CONFIG` and `VVOC_CONFIG` (plus the native `OPENCODE_CONFIG_DIR` discovery root when the selected config sits outside the default one) and never synthesizes missing files. `--scope effective` follows the layered lookup order, and `--scope global` uses the global config paths.
|
|
367
366
|
|
|
368
367
|
---
|
|
369
368
|
|
|
@@ -376,17 +375,16 @@ vvoc launch --scope project -- run "hello"
|
|
|
376
375
|
vvoc role list
|
|
377
376
|
vvoc role list --scope effective
|
|
378
377
|
|
|
379
|
-
# Assign models to roles
|
|
380
|
-
vvoc role set default deepseek/
|
|
381
|
-
vvoc role set smart zai-coding-plan/
|
|
382
|
-
vvoc role set fast openai/
|
|
383
|
-
vvoc role set reviewer zai-coding-plan/
|
|
378
|
+
# Assign models to roles (canonical provider/model#variant selections)
|
|
379
|
+
vvoc role set default deepseek/deepseek-flash#max
|
|
380
|
+
vvoc role set smart zai-coding-plan/glm-5.3#max
|
|
381
|
+
vvoc role set fast openai/gpt-6-luna#low
|
|
382
|
+
vvoc role set reviewer zai-coding-plan/glm-5.3#max --scope project
|
|
384
383
|
|
|
385
384
|
# Switch provider presets
|
|
386
385
|
vvoc preset vv-codex
|
|
387
386
|
vvoc preset vv-zai
|
|
388
387
|
vvoc preset vv-deepseek
|
|
389
|
-
vvoc preset vv-kimi
|
|
390
388
|
vvoc preset vv-alibaba
|
|
391
389
|
vvoc preset vv-osovv-ds
|
|
392
390
|
vvoc preset vv-osovv-mimo
|
|
@@ -395,12 +393,14 @@ vvoc preset vv-osovv-qwen
|
|
|
395
393
|
vvoc preset vv-astra-solo
|
|
396
394
|
vvoc preset vv-astra-workers
|
|
397
395
|
|
|
398
|
-
# Install the explicit-reasoning provider
|
|
399
|
-
vvoc patch-provider
|
|
400
|
-
vvoc patch-provider
|
|
401
|
-
vvoc patch-provider
|
|
402
|
-
vvoc patch-provider
|
|
403
|
-
vvoc patch-provider
|
|
396
|
+
# Install the explicit-reasoning provider model patches
|
|
397
|
+
vvoc patch-provider stepfun-ai # stepfun settings.baseURL https://api.stepfun.ai/v1 + step-3.7-flash
|
|
398
|
+
vvoc patch-provider codex # real gpt-5.5/5.6/6 models + effort variants (also accepts `openai`)
|
|
399
|
+
vvoc patch-provider deepseek # deepseek-flash + deepseek-v4-flash with #max/#high variants (384K output)
|
|
400
|
+
vvoc patch-provider alibaba # qwen3.8-max#xhigh
|
|
401
|
+
vvoc patch-provider zai # glm-5.3 #high/#max + glm-5.3-flash #max
|
|
402
|
+
vvoc patch-provider xiaomi # mimo-v2.6-flash#thinking (thinking.type=enabled)
|
|
403
|
+
vvoc patch-provider all # every patch above in one run
|
|
404
404
|
```
|
|
405
405
|
|
|
406
406
|
Built-in role IDs: `default`, `smart`, `fast`, `reviewer`, plus any custom lowercase-hyphenated IDs. Presets are partial — applying one only changes the roles it defines. Managed built-in presets (`vv-*`) are refreshed from the shipped registry as part of the other work `vvoc install` and `vvoc sync` already do; neither command activates a preset or writes the active roles or orchestration profile on its own — that only happens when you run `vvoc preset <name>`.
|
|
@@ -409,21 +409,20 @@ Every shipped preset declares an explicit role matrix and orchestration profile:
|
|
|
409
409
|
|
|
410
410
|
| Preset | default | fast | smart | reviewer | Profile |
|
|
411
411
|
|---|---|---|---|---|---|
|
|
412
|
-
| `vv-codex` | `openai/
|
|
413
|
-
| `vv-zai` | `zai-coding-plan/
|
|
414
|
-
| `vv-deepseek` | `deepseek/
|
|
415
|
-
| `vv-
|
|
416
|
-
| `vv-
|
|
417
|
-
| `vv-osovv-
|
|
418
|
-
| `vv-osovv-
|
|
419
|
-
| `vv-osovv-
|
|
420
|
-
| `vv-
|
|
421
|
-
| `vv-astra-
|
|
422
|
-
| `vv-astra-workers` | `xiaomi/vv-mimo-v2.6-flash-high` | `openai/vv-codex-gpt-6-luna-low` | `openai/vv-codex-gpt-6-astra-max` | `zai-coding-plan/vv-glm-5.3-high` | delegated |
|
|
412
|
+
| `vv-codex` | `openai/gpt-5.6-terra#high` | `openai/gpt-6-luna#low` | `openai/gpt-5.6-sol#xhigh` | `openai/gpt-5.6-sol#xhigh` | single-session |
|
|
413
|
+
| `vv-zai` | `zai-coding-plan/glm-5.3-flash#max` | `zai-coding-plan/glm-5.3-flash#max` | `zai-coding-plan/glm-5.3#max` | `zai-coding-plan/glm-5.3#max` | balanced |
|
|
414
|
+
| `vv-deepseek` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` | `deepseek/deepseek-flash#max` | balanced |
|
|
415
|
+
| `vv-alibaba` | `alibaba-token-plan/qwen3.8-max` | `alibaba-token-plan/deepseek-v4-flash` | `alibaba-token-plan/qwen3.8-max#xhigh` | `alibaba-token-plan/glm-5.2` | single-session |
|
|
416
|
+
| `vv-osovv-ds` | `deepseek/deepseek-flash#max` | `openai/gpt-6-luna#low` | `deepseek/deepseek-flash#max` | `zai-coding-plan/glm-5.3#max` | single-session |
|
|
417
|
+
| `vv-osovv-mimo` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `xiaomi/mimo-v2.6-flash#thinking` | `zai-coding-plan/glm-5.3#max` | single-session |
|
|
418
|
+
| `vv-osovv-zai` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `zai-coding-plan/glm-5.3#max` | `zai-coding-plan/glm-5.3#max` | single-session |
|
|
419
|
+
| `vv-osovv-qwen` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `alibaba-token-plan/qwen3.8-max#xhigh` | `zai-coding-plan/glm-5.3#max` | delegated |
|
|
420
|
+
| `vv-astra-solo` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `openai/gpt-6-astra#max` | `zai-coding-plan/glm-5.3#high` | single-session |
|
|
421
|
+
| `vv-astra-workers` | `xiaomi/mimo-v2.6-flash#thinking` | `openai/gpt-6-luna#low` | `openai/gpt-6-astra#max` | `zai-coding-plan/glm-5.3#high` | delegated |
|
|
423
422
|
|
|
424
423
|
`vv-osovv-ds` replaces the former `vv-osovv-flash` offering and `vv-osovv-zai` is new; `vv-osovv-sol`, `vv-osovv-flash`, and `vv-osovv-kimi` are no longer shipped. A retired preset definition already present in a saved `vvoc.json` is preserved in place rather than migrated or removed across `vvoc install`/`vvoc sync`; delete it manually if you no longer want it. No automatic provider migration or legacy-name cleanup runs, and applying a preset changes only the roles and profile it declares.
|
|
425
424
|
|
|
426
|
-
|
|
425
|
+
Provider patches bind real model ids with `#variant` suffixes instead of alias models. `deepseek/deepseek-flash` carries `#max` and `#high` effort variants (image input, 384000-token output limit), and `deepseek/deepseek-v4-flash#max` stays text-only with the same output limit. On `zai-coding-plan`, `glm-5.3` carries `#high` and `#max` (both text-only) and `glm-5.3-flash` carries `#max` (text, image, video, and PDF input); `alibaba-token-plan/qwen3.8-max` carries `#xhigh`. On `xiaomi`, `mimo-v2.6-flash#thinking` enables the documented thinking toggle (`thinking.type=enabled`) with no PDF declaration and no `reasoningEffort` — text/image/audio/video input, 1M context / 131K output — because the public Xiaomi API documents a thinking toggle rather than an effort knob; live thinking behavior is not smoke-verified. Codex variants keep the established OpenAI reasoning-summary and encrypted-reasoning options, with the GPT-5.5/5.6 family capped at 400K context / 272K input and GPT-6 Luna/Astra keeping 1.05M/922K/128K. The `stepfun-ai` patch keeps the StepFun `.ai` baseURL (`https://api.stepfun.ai/v1`) for `step-3.7-flash`. `gpt-5.3-codex-spark` keeps its `#medium` variant only for manual configurations that already reference it, advertised conservatively as text-only, and no shipped preset selects it. The shared `fast` role also serves `smallModel` (through the `modelIntent` envelope — native 2.0.18 has no `small_model` field), `explore`, and `guardian`; availability for those consumers is not verified until you use it. Real model access, review quality, latency, and Astra-token savings are unmeasured: metadata here describes provider capability and pricing boundaries, not benchmarked behavior, and credentialed smoke runs would require separate authorization.
|
|
427
426
|
|
|
428
427
|
### Orchestration profiles
|
|
429
428
|
|
|
@@ -446,7 +445,6 @@ Built-in presets declare an orchestration mapping:
|
|
|
446
445
|
| Preset | Profile |
|
|
447
446
|
|---|---|
|
|
448
447
|
| `vv-codex` | single-session |
|
|
449
|
-
| `vv-kimi` | single-session |
|
|
450
448
|
| `vv-alibaba` | single-session |
|
|
451
449
|
| `vv-osovv-ds` | single-session |
|
|
452
450
|
| `vv-osovv-mimo` | single-session |
|
|
@@ -489,13 +487,13 @@ Delegated tasks are opened with `"mode": "delegated"`, an explicitly empty `requ
|
|
|
489
487
|
- `accept` (with rationale and evidence references) records controller acceptance and reaches `ready_to_close`. Acceptance is recorded distinctly from an independent reviewer `PASS`.
|
|
490
488
|
- `request_changes` returns the task to the implementation path. Controller-directed retries are bounded to an initial attempt plus one correction; re-deciding or reopening never resets that budget. `DONE_WITH_CONCERNS` requires an explicit `concernsDisposition`.
|
|
491
489
|
- `rework` reopens an accepted task only when a failed checkpoint from the same registered run covers it, preserving acceptance history and granting exactly one additional attempt.
|
|
492
|
-
- `recover` resumes a stopped or exhausted unaccepted task without resetting history. Recovery targets the latest terminal attempt and requires an explicit `diagnosis`, a `changedCondition` (the changed condition or approach), `verification` references, and a stable `recoveryId`. When ordinary budget remains, recovery simply returns a stopped item to the launch gate; when an extra attempt is necessary, it grants exactly one. The first grant per target is the single autonomous allowance; every further unit requires a fresh root-user message referenced by `userMessageId`, which the runtime validates for role, owning-session identity, message identity, and a timestamp at or after the stop — never for its wording — and each message authorizes at most one unit per target. A successful recovery authorization only makes the next bounded attempt possible: it is not a successful implementation, not acceptance, and never satisfies a reviewer.
|
|
490
|
+
- `recover` resumes a stopped or exhausted unaccepted task without resetting history. Recovery targets the latest terminal attempt and requires an explicit `diagnosis`, a `changedCondition` (the changed condition or approach), `verification` references, and a stable `recoveryId`. When ordinary budget remains, recovery simply returns a stopped item to the launch gate; when an extra attempt is necessary, it grants exactly one. The first grant per target is the single autonomous allowance; every further unit requires a fresh root-user message referenced by `userMessageId`, which the runtime validates for role, owning-session identity, message identity, and a timestamp at or after the stop — never for its wording — and each message authorizes at most one unit per target. A successful recovery authorization only makes the next bounded attempt possible: it is not a successful implementation, not acceptance, and never satisfies a reviewer. Recovering a cancelled or interrupted attempt additionally requires authoritative cancellation evidence — a pinned native interrupt message that names the child session, the child's terminal `aborted` structured error, and active/inbox quiescence — and fails closed with a `CANCELLATION_EVIDENCE_REQUIRED` message while that evidence is missing, leaving settlement and budget unchanged.
|
|
493
491
|
|
|
494
492
|
Worker stops stay hard stops for ordinary dispatch: a `BLOCKED` or `NEEDS_CONTEXT` result is never re-launched directly, and its recorded outcome and explanation remain historical facts. The same applies to an exhausted budget — an ordinary third launch is refused until a recorded recovery raises it. Accepted items are not recovery targets; their path is checkpoint-authorized rework.
|
|
495
493
|
|
|
496
|
-
A worker can fail to launch at all: the host task wrapper rejects the call before the worker runs (for example, an unknown provider or model). The host
|
|
494
|
+
A worker can fail to launch at all: the host task wrapper rejects the call before the worker runs (for example, an unknown provider or model). The native host surfaces that thrown execution through the `tool.execute.after` hook with `status: "error"`, so the plugin consumes the failure as a distinct **failed attempt** from the live call binding instead of leaving `inFlightAttempt` stranded until a restart. The supported case is deliberately narrow — a fresh ordinary foreground `vv-implementer` task launch (no `background`, no `sessionID` resume, no command/subtask path) whose error message matches the exact pinned native wrapper `Subagent failed (sessionID: <child>): `, where the hook event's session and call identity select the parent binding, the wrapper names the child session, the binding's child matches, and no `completed` after-hook has already been observed for that call. When it applies, the attempt is marked `failed` with the bounded host error as evidence and a completion time, the item stays `awaiting_implementer`, and the attempt is charged against the same two-attempt budget. The controller can then explicitly retry with a new call; two failed attempts exhaust the normal budget exactly like two completed ones. A failed attempt never counts as `DONE`, cannot be accepted or decided as a successful completion, and persists across restart. Because a worker may have applied partial edits before failing, inspect the diff before retrying or closing.
|
|
497
495
|
|
|
498
|
-
This is not universal automatic error recovery. Background
|
|
496
|
+
This is not universal automatic error recovery. Background launches, resumed/shared/re-prompted children, cancellation or interruption (a cancelled or interrupted termination leaves the attempt in-flight and settles only through evidence-backed cancellation recovery), any subagent call whose `execute.after` already reported `completed` — latched synchronously before any parsing or repair so a later error event can never be classified as a launch failure — a replaced or mismatched child session, non-delegated launches, and unknown or non-wrapper host errors all remain fail-closed: the in-flight block is preserved and no retry is authorized from the event alone. The plugin never hydrates workflow state, infers a work item from error text, or resets a whole session because of an error event, and it does not reclassify legacy-mode or checkpoint-reviewer launches.
|
|
499
497
|
|
|
500
498
|
A worker whose execution finishes but whose final report stays protocol-invalid after the bounded continuation is settled truthfully as a **rejected report**: the exact call-bound attempt is recorded as a completed execution with status `report_rejected`, a bounded diagnostic excerpt, and the protocol error code — never as `DONE`, never as a launch failure, and never as a still-in-flight attempt. When the malformed output contains an explicit `VVOC_STATUS: BLOCKED` or `NEEDS_CONTEXT` line, the observed stop is preserved (the item parks in the corresponding hard-stop state) and no continuation runs; otherwise the item returns to the launch gate with the attempt consumed. A rejected report has the same bounded recovery path as any other terminal outcome, and `work_item_list` distinguishes it from a running attempt, an exhausted budget, and a substantive stop by exposing the remaining budget and the supported next action. Unknown or still-running host outcomes (for example a non-string task output) are never guessed terminal and cannot clear a live attempt.
|
|
501
499
|
|
|
@@ -549,7 +547,7 @@ The full nine-tool contract lives in `templates/skills/vv-execute/references/too
|
|
|
549
547
|
- `str_replace_editor` — the plugin's DeepSeek dsh contract (`view`/`create`/`str_replace`/`insert`) with exact-verbatim matching.
|
|
550
548
|
- `hashline_edit` — the plugin's hash-anchored tool with `LINE#HASH#ANCHOR` references and anchored read output (default for unmatched models).
|
|
551
549
|
|
|
552
|
-
The default routing table sends `deepseek` to `str_replace_editor`, `kimi`, `qwen`, and `glm` to `edit`, and `gpt`/`codex` to `apply_patch`; everything else stays on `hashline_edit`. Patterns match case-insensitively as substrings of the session `modelID` only; the first matching rule wins. For every mode the plugin
|
|
550
|
+
The default routing table sends `deepseek` to `str_replace_editor`, `kimi`, `qwen`, and `glm` to `edit`, and `gpt`/`codex` to `apply_patch`; everything else stays on `hashline_edit`. Patterns match case-insensitively as substrings of the session `modelID` only; the first matching rule wins. For every mode the plugin enforces one selected existing-file editor through the native session tool-list visibility — hiding the other existing-file editors (including the host `edit` for the `str_replace_editor`/`hashline_edit` cohorts) while leaving new-file creation available — and never modifies the host's own edit/patch contracts, so each session sees exactly one editing tool for existing files. Every plugin-tool write is gated by an awaited native resource permission before a file is touched.
|
|
553
551
|
|
|
554
552
|
`vvoc sync` and `vvoc init` write this default table into `vvoc.json` so it is visible and editable. Materialization is conservative: a routing value you have changed is never overwritten; the table is only filled in where it is missing. Override routing in `vvoc.json` (schema v3) — the `plugins["hashline-edit"]` entry accepts a boolean or an object:
|
|
555
553
|
|
|
@@ -571,7 +569,7 @@ Routing changes require an OpenCode restart, like other runtime plugin settings.
|
|
|
571
569
|
|
|
572
570
|
### Tool history compaction
|
|
573
571
|
|
|
574
|
-
`ToolHistoryCompactionPlugin` shrinks the context replayed to the model on every turn without touching on-disk storage. It rewrites only the in-memory
|
|
572
|
+
`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.
|
|
575
573
|
|
|
576
574
|
The recent working context is never touched: the newest message and the last `protectRecentMessages` messages (default 8, measured by message recency time with array-order fallback) are always replayed verbatim, regardless of call count, output size, tool class, or parallel batching. Compaction only applies to messages older than that window.
|
|
577
575
|
|
|
@@ -631,13 +629,13 @@ Several providers (DeepSeek, Z.AI, Qwen) bill higher rates during daily or weekd
|
|
|
631
629
|
Behavior per mode:
|
|
632
630
|
|
|
633
631
|
- **soft** (default): the message goes through and the TUI shows a persistent orange banner in the bottom slot: `⚠ PEAK deepseek until 10:00 UTC · elevated pricing · off-peak now: z-ai, qwen`.
|
|
634
|
-
- **hard**: the LLM request is rejected with the window end, the wait time, and the connected providers that are currently outside peak (`PEAK_HOURS_BLOCK: provider "deepseek" is in peak hours until 10:00 UTC (about 3 h). … Connected providers outside peak hours right now: z-ai, qwen. …`). The block fires in `
|
|
632
|
+
- **hard**: the LLM request is rejected with the window end, the wait time, and the connected providers that are currently outside peak (`PEAK_HOURS_BLOCK: provider "deepseek" is in peak hours until 10:00 UTC (about 3 h). … Connected providers outside peak hours right now: z-ai, qwen. …`). The block fires in the native `model.request` hook, after your message has been admitted into the session and before any provider request: your message stays in the session history and the block renders as a regular error entry, not a dropped message.
|
|
635
633
|
|
|
636
634
|
Nothing already in flight is ever killed:
|
|
637
635
|
|
|
638
636
|
- a session created before the current window started is grandfathered to soft for its lifetime (`graceActiveSessions`, on by default — decisions come from persisted session data, so they survive restarts);
|
|
639
637
|
- subagent sessions, managed subagents, and `guardian` are always soft — the decision to work was already admitted at the parent level;
|
|
640
|
-
- internal OpenCode agents (`compaction`, `title`, `summary`) are exempt entirely.
|
|
638
|
+
- internal OpenCode agents (`compaction`, `title`, `summary`) and auxiliary request kinds (title, compaction, generate) are exempt entirely.
|
|
641
639
|
|
|
642
640
|
Schedules match **providers, not models**. Subscription plan provider ids from the OpenCode catalog (models.dev) are gated: `zai-coding-plan` and `zhipuai-coding-plan` map to the `z-ai` schedule, `alibaba-token-plan` and `alibaba-token-plan-cn` map to the `qwen` schedule. Bare pay-per-token API providers (`zai`, `zhipuai`, `alibaba`, `alibaba-cn`, `openai`, …) publish no peak surcharge and are never gated. Unknown providers are never warned about or blocked, and a malformed schedule logs a warning and disables that provider's schedule instead of blocking anything (fail-open).
|
|
643
641
|
|
|
@@ -724,7 +722,7 @@ Credentials resolve in this order:
|
|
|
724
722
|
|
|
725
723
|
Environment variables win when both sources exist; config changes take effect after restarting OpenCode. Config `apiKey` values may be literal or use `${VAR}` placeholders resolved from the OpenCode process environment at startup, matching `secretsRedaction.secret`; a placeholder referencing an unset or empty variable logs a startup warning naming the config field and the missing variable names, never values. Placeholder-resolved `apiKey` values become exact-match SecretsRedactionPlugin rules for provider-bound message flows, and WebToolsPlugin diagnostics report only the credential source (`env` or `config`), never the value. If a project-layer `.vvoc/vvoc.json` containing an `apiKey` is tracked by Git, startup logs warn with the file name only. Prefer environment variables or the global vvoc layer; do not commit credentials.
|
|
726
724
|
|
|
727
|
-
While `web-tools` is enabled
|
|
725
|
+
While `web-tools` is enabled for a bound session family, the plugin publishes exactly `web_search` and `web_fetch` in that session's tool surface instead of the native `websearch`/`webfetch` builtins — selected through per-session tool visibility driven by the captured policy, never by mutating your permission entries. An explicitly disabled captured policy publishes the genuine native builtins instead, and an unknown policy exposes neither owned nor builtin web tools for that family. It does not rewrite OpenCode files or remove MCP servers. Disable the plugin and restart to restore stock behavior:
|
|
728
726
|
|
|
729
727
|
```bash
|
|
730
728
|
vvoc plugin disable web-tools
|
|
@@ -736,13 +734,13 @@ Unrelated MCP search or reader tools are not removed automatically; disable thos
|
|
|
736
734
|
|
|
737
735
|
Run `/context` inside an active session. Its bounded host-owned dialog has three tabs: **Overview**, **Tools**, and **MCP**. Use left/right arrows or `1`, `2`, and `3` to switch tabs and up/down to scroll long detail; the measured header remains visible on every tab. Top-line used/remaining values come from the latest assistant turn's provider-reported input, cache-read, and output token counts when OpenCode exposes them.
|
|
738
736
|
|
|
739
|
-
Overview category rows are provider-neutral estimates derived from observable
|
|
737
|
+
Overview category rows are provider-neutral estimates derived from observable native state: system instructions, skill catalog, loaded skills, tool schemas, user and assistant messages, tool calls and results, files, and the latest compaction summary. Percentages are always `estimated tokens / current model contextLimit`; if OpenCode does not expose a positive current limit, the percentage is shown as an em dash rather than using another denominator. Numeric percentages may exceed 100% when estimates drift, while visual bars clamp only their fill at 100%.
|
|
740
738
|
|
|
741
739
|
The Tools tab separates each observable current tool's persistent **schema** estimate from its active **history** estimate, call count, combined total, source, and percentages. When a schema catalog is unavailable, the row says `schema unavailable` and labels the history-only subtotal as `known total` rather than presenting a false zero. History includes only tool parts in the active context: the latest compaction summary and subsequent turns. The `skill` tool remains visible in detail, but its history belongs to Overview's `Loaded skill results` category so it is not double-counted.
|
|
742
740
|
|
|
743
|
-
The MCP tab
|
|
741
|
+
The MCP tab lists the native MCP server inventory exactly as the host reports it — server name, `connected`/`pending`/`disabled`/`failed` status, and any server error — and groups registered external or plugin tools without a known owner under **Other external/plugin tools**. Tool namespace is only a registration hint, not authoritative MCP server provenance: instead of guessing ownership from names, vvoc discloses the registered tool catalog as `unavailable` or `partial` (with warnings) when the host cannot expose it, and unattributed tools stay unattributed.
|
|
744
742
|
|
|
745
|
-
The plugin does **not** claim to reconstruct the exact final provider request or provide provider-exact tokenization. Hidden provider transformations, plugin-added data, or otherwise unattributable content appears as `Unknown/provider-only`; when visible estimates exceed provider usage, the dialog reports estimation drift instead of forcing totals to match. Collection
|
|
743
|
+
The plugin does **not** claim to reconstruct the exact final provider request or provide provider-exact tokenization. Hidden provider transformations, plugin-added data, or otherwise unattributable content appears as `Unknown/provider-only`; when visible estimates exceed provider usage, the dialog reports estimation drift instead of forcing totals to match. Collection reads the selected session's location-scoped native state (messages, agents, skills, MCP server list, model metadata, compaction summaries) plus one read-only, versioned context-inspection RPC for the registered tool catalog and allowlisted policy, marks failed or mismatched reads explicitly as unavailable instead of empty, and issues no extra MCP requests.
|
|
746
744
|
|
|
747
745
|
The `context` vvoc plugin toggle defaults to enabled. Disable it with `vvoc plugin disable context`, then restart OpenCode.
|
|
748
746
|
|
|
@@ -757,12 +755,15 @@ bun run fmt # Auto-format source files
|
|
|
757
755
|
bun run contracts:check # Read-only nine-tool contract completeness gate
|
|
758
756
|
bun run contracts:generate # Regenerate the on-demand tool-contracts reference
|
|
759
757
|
bun run contracts:host # Isolated live-host contract gate (see below)
|
|
758
|
+
bun run e2e:v2 # Installed-package real-host parity harness (see below)
|
|
760
759
|
bun run release:check # Verify package/schema release consistency
|
|
761
760
|
```
|
|
762
761
|
|
|
763
762
|
`bun run contracts:check` is a repository-only, read-only gate: it censuses owned tool registrations independently of the catalog, executes every catalog fixture through the real validators and result schemas, and fails on a fake tool, a missing fixture or result variant, an opaque known object, a changed default, or a stale generated reference. It is part of `bun run check` and requires no network or host process. Run `bun run contracts:generate` only as a deliberate, reviewed step when a contract change is intended — the generated file is checked for currency, so editing it by hand fails the gate.
|
|
764
763
|
|
|
765
|
-
`bun run contracts:host` proves the same contract against the real host. It requires a locally installed `opencode`
|
|
764
|
+
`bun run contracts:host` proves the same contract against the real host. It requires a locally installed `opencode` binary inside the supported window (2.0.18, checked by exact version), a current `bun run build` (it exercises the built `dist/` plugins), pinned native manifests with no stale `@opencode-ai` dependency, and the existing evidence target directory `.grace/changes/active/C-OPENCODE-V2-NATIVE/`. The runner only checks that this directory exists: it does not validate the GRACE approval state and it does not accept an arbitrary active bundle. It never creates or recreates the directory, never writes into an archive, and never finalizes lifecycle state — approval and lifecycle are owned by the GRACE controller. It creates disposable HOME/XDG/config/workspace directories, uses only local built plugin URLs, synthetic agents/messages/credentials, and loopback OpenAI-compatible and Anthropic-compatible responders, and it sends no real provider or paid request. `bun scripts/check-tool-contracts-host.ts --probe` runs the minimal host-seam feasibility test, while the default full run executes the nine-tool matrix and writes `compatibility-evidence.json` only on a full observed pass; a missing executable, an unsupported host version, or any failed scenario exits nonzero instead of recording a skipped success. The generated evidence is one of three distinct levels and never stands in for the separately executed pinned-native unit fixtures (the 2.0.18 schema projection plus OpenAI/Anthropic/Google lowering fixtures) or for real remote-provider acceptance and model quality — paid-provider effectiveness stays explicitly unverified.
|
|
765
|
+
|
|
766
|
+
`bun run e2e:v2` runs the installed-package parity harness (`bun scripts/e2e-v2.ts --full`): it verifies the pinned native OpenCode 2.0.18 binary and packed-tarball hashes, isolates `HOME`/`XDG_*`/scratch state with loopback-only providers and exact PID ownership, exercises the packed core, real-PTY TUI, and installed-surface tiers against the installed package, and writes machine-readable `core-evidence.json` and `parity-evidence.json` into `.grace/changes/active/C-OPENCODE-V2-NATIVE/`. It exits nonzero while any mandatory parity row is unverified beyond an accepted, documented residual. The current evidence records 38 rows: 35 verified, 3 accepted AC-11 residuals (secrets live-session WebSocket cannot be driven offline against this host; the workflow aggregate sub-checks and cancellation-recovery scenario are cross-referenced to the dedicated workflow suites under T-004/wi-20), 0 failed, 0 unverified — with recorded limits including unexercised paid providers and cross-session equal-time first-accept ordering.
|
|
766
767
|
|
|
767
768
|
Git hooks are managed via `lefthook`.
|
|
768
769
|
|
|
@@ -783,7 +784,7 @@ bun run tui:local -- -s <session-id>
|
|
|
783
784
|
bun run tui:local -- --scope project
|
|
784
785
|
```
|
|
785
786
|
|
|
786
|
-
The command defaults to `effective` config resolution. It builds the package,
|
|
787
|
+
The command defaults to `effective` config resolution. It builds the package, creates a temporary isolated config home with a native `cli.json` whose plugin list points at a local directory forwarder re-exporting the freshly built `dist/tui.js`, dropping only the previously managed vv-opencode entry while preserving unrelated settings and comments, and forwards the remaining arguments to OpenCode. Your original OpenCode, cli, and vvoc config files are not modified, and the temporary config is removed after OpenCode exits. Restart the command after source changes because runtime plugins do not live reload.
|
|
787
788
|
|
|
788
789
|
Full release verification:
|
|
789
790
|
|
|
@@ -807,7 +808,7 @@ This will:
|
|
|
807
808
|
|
|
808
809
|
1. Reject if the worktree is dirty
|
|
809
810
|
2. Bump `package.json` via `npm version --no-git-tag-version`
|
|
810
|
-
3. Generate a required AI release summary with `opencode --
|
|
811
|
+
3. Generate a required AI release summary with `opencode run --standalone`
|
|
811
812
|
4. Prepend a `### Summary` section plus conventional commit details to `CHANGELOG.md`
|
|
812
813
|
5. Update `schemas/vvoc/v3.json` `$id` to the new version
|
|
813
814
|
6. Run `release:check` for consistency
|