@clwnd/opencode 0.18.7 → 0.18.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 +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1021,9 +1021,12 @@ var ClwndModel = class {
|
|
|
1021
1021
|
})();
|
|
1022
1022
|
if (isBrokeredToolReturn(opts.prompt) && !isPermReturn) {
|
|
1023
1023
|
trace("brokered.return", { sid });
|
|
1024
|
+
const textId = `brokered-${Date.now()}`;
|
|
1024
1025
|
return {
|
|
1025
1026
|
stream: new ReadableStream({
|
|
1026
1027
|
start(controller) {
|
|
1028
|
+
controller.enqueue({ type: "text-start", id: textId });
|
|
1029
|
+
controller.enqueue({ type: "text-end", id: textId });
|
|
1027
1030
|
controller.enqueue({ type: "finish", finishReason: { unified: "stop", raw: "stop" }, usage: zeroUsage() });
|
|
1028
1031
|
controller.close();
|
|
1029
1032
|
}
|
|
@@ -1476,7 +1479,6 @@ var clwndPlugin = async (input) => {
|
|
|
1476
1479
|
};
|
|
1477
1480
|
if (replaced[input2.toolID]) {
|
|
1478
1481
|
output.description = replaced[input2.toolID];
|
|
1479
|
-
output.parameters = { type: "object", properties: {} };
|
|
1480
1482
|
}
|
|
1481
1483
|
},
|
|
1482
1484
|
"chat.headers": async (ctx, output) => {
|