@tryvira/opencode 0.1.27 → 0.1.28

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,4 +1,4 @@
1
- # `@tryvira/opencode` 0.1.27
1
+ # `@tryvira/opencode` 0.1.28
2
2
 
3
3
  OpenCode V2 server plugin for Vira host lifecycle governance. The package default
4
4
  exports the V2 setup surface plus a compatibility `server()` transport required
package/dist/index.js CHANGED
@@ -1599,7 +1599,7 @@ var hostVersionFor = (options, rawContext = {}) => {
1599
1599
  return options.hostVersion?.trim() || text2(app.version).trim() || text2(raw.version).trim() || envValue("VIRA_HOST_VERSION")?.trim() || "unknown";
1600
1600
  };
1601
1601
  var adapterVersionFor = (options) => options.adapterVersion ?? envValue("VIRA_ADAPTER_VERSION") ?? "1";
1602
- var openCodeConnectConfig = (scope, options) => ({ ...scope, name: "OpenCode", systemType: "agent", adapterType: "custom-node", adapterVersion: adapterVersionFor(options), capabilities: ["conversation_input", "conversation_output", "model_call", "tool_selection", "tool_execution", "external_action", "user_feedback", "business_outcome"], privacyPolicy: { allowConversationText: false, allowToolArguments: false }, idempotencyKey: "opencode:vira:connect:capabilities-v3", reuseExistingConnectionOnConflict: true });
1602
+ var openCodeConnectConfig = (scope, options) => ({ ...scope, name: "OpenCode", systemType: "agent", adapterType: "custom-node", adapterVersion: adapterVersionFor(options), capabilities: ["conversation_input", "conversation_output", "model_call", "tool_selection", "tool_execution", "external_action", "user_feedback", "business_outcome"], privacyPolicy: { allowConversationText: false, allowToolArguments: false }, idempotencyKey: "opencode:vira:connect:capabilities-v4", reuseExistingConnectionOnConflict: true });
1603
1603
  var resolveOpenCodeToolBinding = (tools, toolName) => {
1604
1604
  const allowedToolIds = Array.isArray(tools.allowed_tool_ids) ? tools.allowed_tool_ids.map(text2) : [];
1605
1605
  const bindings = Array.isArray(tools.tool_bindings) ? tools.tool_bindings.filter((value) => value && typeof value === "object").map((value) => asRecord(value)) : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/opencode",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "OpenCode V2 host lifecycle integration for Vira",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",