agent.libx.js 0.93.22 → 0.93.23
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/README.md +1 -1
- package/dist/cli.js +8 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp.client.d.ts +33 -6
- package/dist/mcp.client.js +56 -23
- package/dist/mcp.client.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4132,9 +4132,14 @@ Another agent just implemented the above. Independently check the CURRENT state
|
|
|
4132
4132
|
const names = actTools.map((t) => t.name);
|
|
4133
4133
|
if (!names.length)
|
|
4134
4134
|
return "Your worker uses Act's default local toolset (reading/editing files, running shell commands). No extra tools (e.g. web/internet) are configured; if a request is not a basic file or shell operation, assume you can't do it and say so.";
|
|
4135
|
-
const
|
|
4136
|
-
const
|
|
4137
|
-
const
|
|
4135
|
+
const hasFetch = names.some((n) => /WebFetch/i.test(n));
|
|
4136
|
+
const hasBrowser = names.some((n) => /browser.*(navigate|click|page|type)/i.test(n));
|
|
4137
|
+
const hasSearch = names.some((n) => /(^|_)WebSearch$|search/i.test(n) && !/WebFetch|browser/i.test(n));
|
|
4138
|
+
const notes = [];
|
|
4139
|
+
if (hasFetch) notes.push("WebFetch retrieves ONE specific URL you are given \u2014 it is not a search engine.");
|
|
4140
|
+
if (hasBrowser) notes.push("The browser tools drive a real browser: you CAN open a site and, if needed, navigate to a search engine and search there \u2014 but it is manual and takes a moment, not an instant lookup.");
|
|
4141
|
+
else if (!hasSearch && hasFetch) notes.push('You have no general web-search tool, so for an instant "search the web" you can only fetch a URL they provide.');
|
|
4142
|
+
const webNote = notes.length ? " NOTE: " + notes.join(" ") : "";
|
|
4138
4143
|
return `Tools your background worker (Act) can actually use: ${names.join(", ")}. Read each name literally and match the request to a SPECIFIC tool; if none fits, you do NOT have that ability \u2014 say so honestly.` + webNote;
|
|
4139
4144
|
}
|
|
4140
4145
|
case "time":
|