open-agents-ai 0.187.285 → 0.187.286
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 +28 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -333363,14 +333363,40 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
|
|
|
333363
333363
|
}
|
|
333364
333364
|
if (name11 === "voice_tool_catalog") {
|
|
333365
333365
|
const cat2 = activeTask2?.runner.getToolCatalog() ?? [];
|
|
333366
|
-
const allow = /* @__PURE__ */ new Set([
|
|
333366
|
+
const allow = /* @__PURE__ */ new Set([
|
|
333367
|
+
"list_directory",
|
|
333368
|
+
"file_read",
|
|
333369
|
+
"grep_search",
|
|
333370
|
+
"find_files",
|
|
333371
|
+
"memory_read",
|
|
333372
|
+
"memory_search",
|
|
333373
|
+
"todo_read",
|
|
333374
|
+
"codebase_map",
|
|
333375
|
+
"diagnostic",
|
|
333376
|
+
"git_info",
|
|
333377
|
+
"web_search",
|
|
333378
|
+
"web_fetch"
|
|
333379
|
+
]);
|
|
333367
333380
|
const filtered = cat2.filter((t2) => allow.has(t2.name));
|
|
333368
333381
|
return JSON.stringify(filtered, null, 2);
|
|
333369
333382
|
}
|
|
333370
333383
|
if (name11 === "voice_tool_call") {
|
|
333371
333384
|
const toolName = String(args2?.name || "").trim();
|
|
333372
333385
|
const toolArgs = args2?.args || {};
|
|
333373
|
-
const allow = /* @__PURE__ */ new Set([
|
|
333386
|
+
const allow = /* @__PURE__ */ new Set([
|
|
333387
|
+
"list_directory",
|
|
333388
|
+
"file_read",
|
|
333389
|
+
"grep_search",
|
|
333390
|
+
"find_files",
|
|
333391
|
+
"memory_read",
|
|
333392
|
+
"memory_search",
|
|
333393
|
+
"todo_read",
|
|
333394
|
+
"codebase_map",
|
|
333395
|
+
"diagnostic",
|
|
333396
|
+
"git_info",
|
|
333397
|
+
"web_search",
|
|
333398
|
+
"web_fetch"
|
|
333399
|
+
]);
|
|
333374
333400
|
if (!allow.has(toolName)) return `Tool not allowed: ${toolName}`;
|
|
333375
333401
|
if (!activeTask2) return "No active task.";
|
|
333376
333402
|
const result = await activeTask2.runner.runToolByName(toolName, toolArgs);
|
package/package.json
CHANGED