@tryvira/opencode 0.1.10 → 0.1.11

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/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # `@tryvira/opencode` 0.1.10
1
+ # `@tryvira/opencode` 0.1.11
2
2
 
3
3
  OpenCode V2 server plugin for Vira host lifecycle governance. The package default
4
- export is the V2 lifecycle plugin; the legacy V1 surface is exported separately
5
- as `v1Fallback` and is never merged into the V2 export.
4
+ exports the V2 setup surface plus a compatibility `server()` transport required
5
+ by OpenCode 1.19.x; both use the same V2 lifecycle rules. The transport is also
6
+ exported separately as `v1Fallback` and is not the old unconditional-deny path.
6
7
 
7
8
  It resolves Vira behavior on every `context` hook, observes tool results, and in `enforce` mode blocks tool execution unless a host action authorizer returns an exact Vira `ALLOW` receipt. OpenCode V2 does not expose a supported response-before-display hook, so post-model verification is reported as unsupported rather than claimed as enforced.
8
9
 
package/dist/index.js CHANGED
@@ -1463,7 +1463,7 @@ var v1Fallback = { async server() {
1463
1463
  }
1464
1464
  };
1465
1465
  } };
1466
- var index_default = v2Plugin;
1466
+ var index_default = { ...v2Plugin, ...v1Fallback };
1467
1467
  export {
1468
1468
  ViraOpenCodeActionError,
1469
1469
  index_default as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/opencode",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "OpenCode V2 host lifecycle integration for Vira",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",