@tryvira/opencode 0.1.46 → 0.1.48
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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1952,7 +1952,8 @@ var v1Fallback = { async server(rawContext = {}) {
|
|
|
1952
1952
|
const identity = (input) => ({ ...scope, hostName: options.hostName ?? "opencode", hostVersion, aiSystemId: required2(connectedIdentity?.aiSystemId ?? options.aiSystemId ?? env("VIRA_AI_SYSTEM_ID"), "VIRA_HOST_AI_SYSTEM_REQUIRED"), connectionId: required2(connectedIdentity?.connectionId ?? options.connectionId ?? env("VIRA_CONNECTION_ID"), "VIRA_HOST_CONNECTION_REQUIRED"), conversationId: required2(input.sessionID ?? input.conversationId ?? input.id, "VIRA_HOST_SESSION_REQUIRED"), sessionId: text2(input.sessionID ?? input.sessionId ?? input.conversationId) || void 0 });
|
|
1953
1953
|
const partsText = (value) => Array.isArray(value) ? value.map((part) => text2(asRecord(part).text)).filter(Boolean).join("\n") : "";
|
|
1954
1954
|
const persistCompletedText = async (raw) => {
|
|
1955
|
-
const
|
|
1955
|
+
const envelope = asRecord(raw);
|
|
1956
|
+
const event = asRecord(envelope.event ?? raw);
|
|
1956
1957
|
const data = asRecord(event.data ?? event.properties);
|
|
1957
1958
|
if (text2(event.type) !== "session.text.ended") return;
|
|
1958
1959
|
const part = asRecord(data.part ?? data.message ?? data.output);
|
|
@@ -2058,10 +2059,9 @@ Assistant: ${completed}`, consent: true, privacy: "CONSENTED_TENANT" }, { idempo
|
|
|
2058
2059
|
}
|
|
2059
2060
|
};
|
|
2060
2061
|
} };
|
|
2061
|
-
|
|
2062
|
-
Object.assign(legacyDefault, v2Plugin, v1Fallback);
|
|
2062
|
+
Object.assign(v2Plugin, v1Fallback);
|
|
2063
2063
|
var server = v1Fallback.server;
|
|
2064
|
-
var index_default =
|
|
2064
|
+
var index_default = v2Plugin;
|
|
2065
2065
|
|
|
2066
2066
|
// src/runtime-entry.ts
|
|
2067
2067
|
var runtime = Object.assign(index_default, {
|