@khalilgharbaoui/opencode-claude-code-plugin 0.4.7 → 0.4.8
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 +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -382,6 +382,19 @@ Now continuing with the current message:
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
+
} else if (msg.role === "tool") {
|
|
386
|
+
if (Array.isArray(msg.content)) {
|
|
387
|
+
for (const part of msg.content) {
|
|
388
|
+
if (part?.type === "tool-result") {
|
|
389
|
+
const p = part;
|
|
390
|
+
content.push({
|
|
391
|
+
type: "tool_result",
|
|
392
|
+
tool_use_id: p.toolCallId,
|
|
393
|
+
content: getToolResultText(p)
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
385
398
|
}
|
|
386
399
|
}
|
|
387
400
|
if (content.length === 0) {
|