@project-ava-supernova/core 0.2.124 → 0.2.126
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.
|
@@ -7,6 +7,8 @@ export declare class WebSearchTool implements Tool {
|
|
|
7
7
|
readonly outputTrust: "untrusted";
|
|
8
8
|
readonly requiresConfirmation = false;
|
|
9
9
|
readonly schema: FunctionSchema;
|
|
10
|
-
execute(args: Record<string, unknown>,
|
|
10
|
+
execute(args: Record<string, unknown>, context: ToolExecutionContext): Promise<ToolResult>;
|
|
11
|
+
/** The fallback: scraped, unauthenticated, and blocked from a datacenter. */
|
|
12
|
+
private searchDuckDuckGo;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=web-search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-search.d.ts","sourceRoot":"","sources":["../../src/tools/web-search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"web-search.d.ts","sourceRoot":"","sources":["../../src/tools/web-search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAiI5D,qBAAa,aAAc,YAAW,IAAI;IACxC,QAAQ,CAAC,IAAI,gBAAgB;IAC7B,QAAQ,CAAC,WAAW,qCAAqC;IACzD,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,WAAW,EAAG,WAAW,CAAU;IAC5C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAmB7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;IAuDhG,6EAA6E;YAC/D,gBAAgB;CA6D/B"}
|
package/dist/tools/web-search.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import { request } from 'node:https';
|
|
2
2
|
const DUCKDUCKGO_URL = 'https://lite.duckduckgo.com/lite/';
|
|
3
|
-
const REQUEST_TIMEOUT =
|
|
3
|
+
const REQUEST_TIMEOUT = 15_000;
|
|
4
4
|
const DEFAULT_MAX_RESULTS = 5;
|
|
5
|
+
/**
|
|
6
|
+
* DuckDuckGo Lite serves a browser, and says so.
|
|
7
|
+
*
|
|
8
|
+
* Measured 26 Sep 2026: the same query with "Ava-Supernova/1.0" returned 200
|
|
9
|
+
* OK, 22KB of HTML and ZERO parseable results; with a browser User-Agent it
|
|
10
|
+
* returned results. Announcing ourselves as a script is answered with a page
|
|
11
|
+
* that looks fine and contains nothing.
|
|
12
|
+
*/
|
|
13
|
+
const BROWSER_UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36';
|
|
14
|
+
/**
|
|
15
|
+
* What being throttled looks like: HTTP 202 and an anomaly page.
|
|
16
|
+
*
|
|
17
|
+
* Not 429, not an error — a 200-shaped response with no results in it. So a
|
|
18
|
+
* block was indistinguishable from "the web has nothing on this", and Ava was
|
|
19
|
+
* told the second thing when the first had happened. Three requests in a row
|
|
20
|
+
* was enough to trigger it from a home connection; from a datacenter address
|
|
21
|
+
* it is worse.
|
|
22
|
+
*/
|
|
23
|
+
const BLOCKED_RE = /anomaly|captcha|unusual traffic|rate ?limit|too many requests|blocked/i;
|
|
5
24
|
function fetchDuckDuckGo(query) {
|
|
6
25
|
return new Promise((resolve, reject) => {
|
|
7
26
|
const postData = `q=${encodeURIComponent(query)}`;
|
|
@@ -10,13 +29,18 @@ function fetchDuckDuckGo(query) {
|
|
|
10
29
|
headers: {
|
|
11
30
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
12
31
|
'Content-Length': Buffer.byteLength(postData),
|
|
13
|
-
'User-Agent':
|
|
32
|
+
'User-Agent': BROWSER_UA,
|
|
33
|
+
// Sent because a browser sends them, and the page served differs.
|
|
34
|
+
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
|
35
|
+
'Accept-Language': 'en-GB,en;q=0.9',
|
|
14
36
|
},
|
|
15
37
|
timeout: REQUEST_TIMEOUT,
|
|
16
38
|
}, (res) => {
|
|
17
39
|
const chunks = [];
|
|
18
40
|
res.on('data', (chunk) => chunks.push(chunk));
|
|
19
|
-
|
|
41
|
+
// The status matters: a throttle arrives as 202 with a page, so a
|
|
42
|
+
// caller that only sees the body cannot tell it from an empty result.
|
|
43
|
+
res.on('end', () => resolve({ status: res.statusCode ?? 0, html: Buffer.concat(chunks).toString('utf-8') }));
|
|
20
44
|
res.on('error', reject);
|
|
21
45
|
});
|
|
22
46
|
req.on('error', reject);
|
|
@@ -28,6 +52,7 @@ function fetchDuckDuckGo(query) {
|
|
|
28
52
|
req.end();
|
|
29
53
|
});
|
|
30
54
|
}
|
|
55
|
+
const wait = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
31
56
|
function parseResults(html, maxResults) {
|
|
32
57
|
const results = [];
|
|
33
58
|
// DuckDuckGo Lite returns results in a table structure.
|
|
@@ -99,19 +124,89 @@ export class WebSearchTool {
|
|
|
99
124
|
required: ['query'],
|
|
100
125
|
},
|
|
101
126
|
};
|
|
102
|
-
async execute(args,
|
|
127
|
+
async execute(args, context) {
|
|
103
128
|
const query = args.query;
|
|
104
129
|
const maxResults = Math.min(Math.max(args.max_results || DEFAULT_MAX_RESULTS, 1), 10);
|
|
105
130
|
if (!query.trim()) {
|
|
106
131
|
return { success: false, output: 'Search query cannot be empty.' };
|
|
107
132
|
}
|
|
133
|
+
/*
|
|
134
|
+
* A real search backend, when the surface has one.
|
|
135
|
+
*
|
|
136
|
+
* The platform injects Brave as `sharedState.webSearch`, and two other
|
|
137
|
+
* tools have read it since it was added. THIS tool never did — it took a
|
|
138
|
+
* `_context` it ignored and scraped DuckDuckGo regardless. So an account
|
|
139
|
+
* that was paid for and under half used sat idle while every search went
|
|
140
|
+
* to an endpoint that answers a datacenter address with a rate-limit page:
|
|
141
|
+
* measured 26 Sep 2026, six searches three seconds apart, six blocked.
|
|
142
|
+
*
|
|
143
|
+
* DuckDuckGo stays as the fallback, because the CLI and a local install
|
|
144
|
+
* have no platform key and something is better than nothing there.
|
|
145
|
+
*/
|
|
146
|
+
const backend = context?.sharedState?.webSearch;
|
|
147
|
+
if (typeof backend === 'function') {
|
|
148
|
+
try {
|
|
149
|
+
const results = await backend(query, maxResults);
|
|
150
|
+
if (!results.length) {
|
|
151
|
+
return {
|
|
152
|
+
success: true,
|
|
153
|
+
output: `No results found for "${query}".`,
|
|
154
|
+
metadata: { count: 0, backend: 'platform' },
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
success: true,
|
|
159
|
+
output: `Search results for "${query}":\n\n${results
|
|
160
|
+
.map((r, i) => `${i + 1}. ${r.title}\n ${r.url}${r.snippet ? `\n ${r.snippet}` : ''}`)
|
|
161
|
+
.join('\n\n')}`,
|
|
162
|
+
metadata: { count: results.length, backend: 'platform' },
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
catch (error) {
|
|
166
|
+
// Fall through to the fallback rather than failing the turn — but say
|
|
167
|
+
// which one answered, so a bad result can be traced to its source.
|
|
168
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
169
|
+
const fallback = await this.searchDuckDuckGo(query, maxResults);
|
|
170
|
+
return fallback.success
|
|
171
|
+
? fallback
|
|
172
|
+
: { ...fallback, output: `The platform's search backend failed (${message}), and the fallback did not answer either. ${fallback.output}` };
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return this.searchDuckDuckGo(query, maxResults);
|
|
176
|
+
}
|
|
177
|
+
/** The fallback: scraped, unauthenticated, and blocked from a datacenter. */
|
|
178
|
+
async searchDuckDuckGo(query, maxResults) {
|
|
108
179
|
try {
|
|
109
|
-
|
|
110
|
-
|
|
180
|
+
// One retry, because a throttle is often over in a second or two and
|
|
181
|
+
// failing the whole turn for it is expensive.
|
|
182
|
+
let res = await fetchDuckDuckGo(query);
|
|
183
|
+
let blocked = res.status === 202 || BLOCKED_RE.test(res.html);
|
|
184
|
+
if (blocked) {
|
|
185
|
+
await wait(1_500);
|
|
186
|
+
res = await fetchDuckDuckGo(query);
|
|
187
|
+
blocked = res.status === 202 || BLOCKED_RE.test(res.html);
|
|
188
|
+
}
|
|
189
|
+
// BEING REFUSED IS NOT AN EMPTY RESULT. This used to return success with
|
|
190
|
+
// "No results found", so a throttled search told the caller the web had
|
|
191
|
+
// nothing on the subject — a false negative stated as fact, which is
|
|
192
|
+
// worse than an error because it gets believed and acted on.
|
|
193
|
+
if (blocked) {
|
|
194
|
+
return {
|
|
195
|
+
success: false,
|
|
196
|
+
output: `The search was refused, not empty — DuckDuckGo answered with a rate-limit page (HTTP ${res.status}) rather than results. `
|
|
197
|
+
+ `This says NOTHING about whether "${query}" has answers on the web; do not conclude there is nothing. `
|
|
198
|
+
+ 'Wait a moment and try once more, or carry on from what you already know and say plainly that you could not search.',
|
|
199
|
+
metadata: { count: 0, blocked: true },
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
const results = parseResults(res.html, maxResults);
|
|
111
203
|
if (results.length === 0) {
|
|
112
204
|
return {
|
|
113
|
-
|
|
114
|
-
|
|
205
|
+
// Still a failure: a page with no parseable results is far more
|
|
206
|
+
// often the markup having moved than the web being silent.
|
|
207
|
+
success: false,
|
|
208
|
+
output: `No results could be read for "${query}". The page came back ${res.html.length.toLocaleString()} characters long and HTTP ${res.status}, but nothing in it parsed as a result — `
|
|
209
|
+
+ 'which usually means the search page changed shape rather than that there is nothing to find. Do not report this as "no information exists".',
|
|
115
210
|
metadata: { count: 0 },
|
|
116
211
|
};
|
|
117
212
|
}
|
|
@@ -130,7 +225,11 @@ export class WebSearchTool {
|
|
|
130
225
|
}
|
|
131
226
|
catch (error) {
|
|
132
227
|
const message = error instanceof Error ? error.message : String(error);
|
|
133
|
-
return {
|
|
228
|
+
return {
|
|
229
|
+
success: false,
|
|
230
|
+
output: `Web search failed: ${message}. This is the search not reaching an answer, not an answer — `
|
|
231
|
+
+ `say you could not search rather than that "${query}" has nothing behind it.`,
|
|
232
|
+
};
|
|
134
233
|
}
|
|
135
234
|
}
|
|
136
235
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-search.js","sourceRoot":"","sources":["../../src/tools/web-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,MAAM,cAAc,GAAG,mCAAmC,CAAC;AAC3D,MAAM,eAAe,GAAG,MAAM,CAAC;AAC/B,MAAM,mBAAmB,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"web-search.js","sourceRoot":"","sources":["../../src/tools/web-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,MAAM,cAAc,GAAG,mCAAmC,CAAC;AAC3D,MAAM,eAAe,GAAG,MAAM,CAAC;AAC/B,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAE9B;;;;;;;GAOG;AACH,MAAM,UAAU,GAAG,iHAAiH,CAAC;AAErI;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,wEAAwE,CAAC;AAU5F,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,QAAQ,GAAG,KAAK,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,MAAM,GAAG,GAAG,OAAO,CACjB,cA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