@tryvira/opencode 0.1.22 → 0.1.23
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1585,7 +1585,7 @@ var hostVersionFor = (options, rawContext = {}) => {
|
|
|
1585
1585
|
return options.hostVersion?.trim() || text2(app.version).trim() || text2(raw.version).trim() || envValue("VIRA_HOST_VERSION")?.trim() || "unknown";
|
|
1586
1586
|
};
|
|
1587
1587
|
var adapterVersionFor = (options) => options.adapterVersion ?? envValue("VIRA_ADAPTER_VERSION") ?? "1";
|
|
1588
|
-
var openCodeConnectConfig = (scope, options) => ({ ...scope, name: "OpenCode", systemType: "agent", adapterType: "custom-node", adapterVersion: adapterVersionFor(options), idempotencyKey: "opencode:vira:connect", reuseExistingConnectionOnConflict: true });
|
|
1588
|
+
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-v1", reuseExistingConnectionOnConflict: true });
|
|
1589
1589
|
var resolveOpenCodeToolBinding = (tools, toolName) => {
|
|
1590
1590
|
const allowedToolIds = Array.isArray(tools.allowed_tool_ids) ? tools.allowed_tool_ids.map(text2) : [];
|
|
1591
1591
|
const bindings = Array.isArray(tools.tool_bindings) ? tools.tool_bindings.filter((value) => value && typeof value === "object").map((value) => asRecord(value)) : [];
|