@clwnd/opencode 0.18.7 → 0.18.9

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -387,7 +387,7 @@ function mapToolName(name) {
387
387
  if (name.startsWith(MCP_PREFIX)) return name.slice(MCP_PREFIX.length);
388
388
  return TOOL_NAME_MAP[name] ?? name;
389
389
  }
390
- var BROKERED_TOOLS = /* @__PURE__ */ new Set(["webfetch", "websearch", "todowrite"]);
390
+ var BROKERED_TOOLS = /* @__PURE__ */ new Set(["todowrite"]);
391
391
  var KNOWN_TOOLS = /* @__PURE__ */ new Set([
392
392
  // clwnd native surface
393
393
  "read",
@@ -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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clwnd/opencode",
3
- "version": "0.18.7",
3
+ "version": "0.18.9",
4
4
  "description": "clwnd for opencode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",