agent.libx.js 0.93.24 → 0.93.25

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/cli.js CHANGED
@@ -3641,7 +3641,7 @@ var DuplexAgent = class {
3641
3641
  const workerToolNames = (o.actOptions?.tools ?? []).map((t) => t.name);
3642
3642
  const canSearch = workerToolNames.some((n) => /WebSearch/i.test(n));
3643
3643
  const canFetch = workerToolNames.some((n) => /WebFetch/i.test(n));
3644
- const workerWeb = canSearch ? ', and it CAN search the web and read web pages \u2014 so route any web lookup, current-info, or "search for\u2026" request to Act' : canFetch ? ", and it can fetch a specific web page URL (but cannot search the web)" : "";
3644
+ const workerWeb = canSearch ? `, and it CAN search the web and read web pages \u2014 so when the user gives you something specific to look up ("search for X", "find me\u2026", "what's the latest on\u2026"), route it to Act. But a bare capability QUESTION like "can you search the web?" just gets a short spoken "yes, I can" \u2014 do NOT dispatch and NEVER invent a query the user did not give you` : canFetch ? ", and it can fetch a specific web page URL (but cannot search the web)" : "";
3645
3645
  const prompt = VOICE_SYSTEM_PROMPT.replace("{{MEMORY_SLOT}}", memSlot).replace("{{THINK_SLOT}}", thinkSlot).replace("{{WORKER_WEB}}", workerWeb) + (o.voiceStyle === "conversational" ? "\n" + VOICE_STYLE_CONVERSATIONAL : "") + `
3646
3646
  Today's date: ${(/* @__PURE__ */ new Date()).toDateString()}.`;
3647
3647
  const tools = [