@clwnd/opencode 0.5.1 → 0.5.2

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 +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -282,6 +282,13 @@ var generateId = createIdGenerator();
282
282
  var { btoa, atob } = globalThis;
283
283
 
284
284
  // provider.ts
285
+ import { appendFileSync, mkdirSync } from "fs";
286
+ var LOG_DIR = `${process.env.XDG_DATA_HOME || process.env.HOME + "/.local/share"}/opencode`;
287
+ var LOG_FILE = `${LOG_DIR}/clwnd-plugin.log`;
288
+ try {
289
+ mkdirSync(LOG_DIR, { recursive: true });
290
+ } catch {
291
+ }
285
292
  var MCP_PREFIX = "mcp__clwnd__";
286
293
  var TOOL_NAME_MAP = {
287
294
  WebFetch: "webfetch",
@@ -295,7 +302,7 @@ function mapToolName(name14) {
295
302
  if (name14.startsWith(MCP_PREFIX)) return name14.slice(MCP_PREFIX.length);
296
303
  return TOOL_NAME_MAP[name14] ?? name14;
297
304
  }
298
- var BROKERED_TOOLS = /* @__PURE__ */ new Set(["webfetch", "websearch", "todowrite"]);
305
+ var BROKERED_TOOLS = /* @__PURE__ */ new Set(["webfetch", "todowrite"]);
299
306
  var INPUT_FIELD_MAP = {
300
307
  read: { file_path: "filePath" },
301
308
  edit: { file_path: "filePath", old_string: "oldString", new_string: "newString", replace_all: "replaceAll" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clwnd/opencode",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "clwnd for opencode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",