@tryvira/opencode 0.1.50 → 0.1.51
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 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2003,7 +2003,8 @@ Assistant: ${output}`, consent: true, privacy: "CONSENTED_TENANT" }, { idempoten
|
|
|
2003
2003
|
event: async ({ event }) => {
|
|
2004
2004
|
try {
|
|
2005
2005
|
await persistCompletedText(event);
|
|
2006
|
-
} catch {
|
|
2006
|
+
} catch (error) {
|
|
2007
|
+
console.error("[tryvira] output event failed", error instanceof Error ? error.message : "unknown");
|
|
2007
2008
|
}
|
|
2008
2009
|
},
|
|
2009
2010
|
"experimental.text.complete": async (input, output) => {
|
|
@@ -2019,7 +2020,8 @@ Assistant: ${output}`, consent: true, privacy: "CONSENTED_TENANT" }, { idempoten
|
|
|
2019
2020
|
if (prompt) await client.submitTeachConversationEvidence({ id: `opencode-teach:${sessionID}:${messageID}`, conversationId: sessionID, message: `User: ${prompt}
|
|
2020
2021
|
Assistant: ${completed}`, consent: true, privacy: "CONSENTED_TENANT" }, { idempotencyKey: `opencode:teach:${sessionID}:${messageID}` });
|
|
2021
2022
|
}
|
|
2022
|
-
} catch {
|
|
2023
|
+
} catch (error) {
|
|
2024
|
+
console.error("[tryvira] text complete failed", error instanceof Error ? error.message : "unknown");
|
|
2023
2025
|
}
|
|
2024
2026
|
},
|
|
2025
2027
|
"chat.message": async (input, output) => {
|