@tryvira/opencode 0.1.44 → 0.1.45

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1954,9 +1954,9 @@ var v1Fallback = { async server(rawContext = {}) {
1954
1954
  const persistCompletedText = async (raw) => {
1955
1955
  const event = asRecord(raw);
1956
1956
  const data = asRecord(event.data ?? event.properties);
1957
- if (text2(event.type) !== "session.next.text.ended") return;
1958
- const sessionID = text2(data.sessionID);
1959
- const output = text2(data.text);
1957
+ if (text2(event.type) !== "session.text.ended") return;
1958
+ const sessionID = text2(data.sessionID ?? data.sessionId);
1959
+ const output = text2(data.text ?? data.content);
1960
1960
  if (!sessionID || !output.trim()) return;
1961
1961
  const current = identity({ sessionID });
1962
1962
  const messageID = text2(data.assistantMessageID) || text2(data.textID) || digest2(output).slice(0, 16);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/opencode",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "description": "OpenCode host lifecycle integration for Vira",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",