@openclaw/exa-plugin 2026.9.1-beta.1 → 2026.9.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.
- package/dist/{exa-web-search-provider-Du2L8CNV.js → exa-web-search-provider-DFtZDNkf.js} +1 -1
- package/dist/{exa-web-search-provider.runtime-C29VmLqm.js → exa-web-search-provider.runtime-r2xmdHRN.js} +7 -12
- package/dist/index.js +1 -1
- package/dist/web-search-contract-api.js +1 -1
- package/dist/web-search-provider.js +1 -1
- package/package.json +4 -4
|
@@ -44,7 +44,7 @@ const EXA_FRESHNESS_VALUES = [
|
|
|
44
44
|
"year"
|
|
45
45
|
];
|
|
46
46
|
const EXA_MAX_SEARCH_COUNT = 100;
|
|
47
|
-
const loadExaWebSearchRuntime = createLazyRuntimeModule(() => import("./exa-web-search-provider.runtime-
|
|
47
|
+
const loadExaWebSearchRuntime = createLazyRuntimeModule(() => import("./exa-web-search-provider.runtime-r2xmdHRN.js"));
|
|
48
48
|
const ExaSearchSchema = {
|
|
49
49
|
type: "object",
|
|
50
50
|
properties: {
|
|
@@ -20,10 +20,11 @@ const EXA_FRESHNESS_VALUES = [
|
|
|
20
20
|
"year"
|
|
21
21
|
];
|
|
22
22
|
const EXA_MAX_SEARCH_COUNT = 100;
|
|
23
|
-
const EXA_ERROR_BODY_LIMIT_BYTES =
|
|
24
|
-
const EXA_SEARCH_JSON_MAX_BYTES =
|
|
23
|
+
const EXA_ERROR_BODY_LIMIT_BYTES = 8192;
|
|
24
|
+
const EXA_SEARCH_JSON_MAX_BYTES = 16777216;
|
|
25
25
|
async function readExaSearchResults(response, opts) {
|
|
26
|
-
const
|
|
26
|
+
const maxBytes = opts?.maxBytes ?? EXA_SEARCH_JSON_MAX_BYTES;
|
|
27
|
+
const bytes = await readResponseWithLimit(response, maxBytes, { onOverflow: ({ maxBytes: maxBytesLocal }) => /* @__PURE__ */ new Error(`Exa API response exceeds ${maxBytesLocal} bytes`) });
|
|
27
28
|
try {
|
|
28
29
|
return normalizeExaResults(JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes)));
|
|
29
30
|
} catch (cause) {
|
|
@@ -276,7 +277,8 @@ async function executeExaWebSearchProviderTool(ctx, args, signal) {
|
|
|
276
277
|
dateBefore,
|
|
277
278
|
contents
|
|
278
279
|
});
|
|
279
|
-
const
|
|
280
|
+
const cacheTtlMs = resolveSearchCacheTtlMs(searchConfig);
|
|
281
|
+
const cached = readCachedSearchPayload(cacheKey, cacheTtlMs);
|
|
280
282
|
if (cached) return cached;
|
|
281
283
|
const start = Date.now();
|
|
282
284
|
const results = await runExaSearch({
|
|
@@ -320,17 +322,10 @@ async function executeExaWebSearchProviderTool(ctx, args, signal) {
|
|
|
320
322
|
}, summary ? { summary: wrapWebContent(summary, `web_search`) } : {}, highlightScores.length > 0 ? { highlightScores } : {});
|
|
321
323
|
})
|
|
322
324
|
};
|
|
323
|
-
writeCachedSearchPayload(cacheKey, payload,
|
|
325
|
+
writeCachedSearchPayload(cacheKey, payload, cacheTtlMs);
|
|
324
326
|
return payload;
|
|
325
327
|
}
|
|
326
328
|
const testing = {
|
|
327
|
-
parseExaContents,
|
|
328
|
-
buildExaCacheKey,
|
|
329
|
-
resolveExaApiKey,
|
|
330
|
-
resolveExaDescription,
|
|
331
|
-
resolveExaSearchCount,
|
|
332
|
-
resolveExaSearchEndpoint,
|
|
333
|
-
resolveFreshnessStartDate,
|
|
334
329
|
readExaErrorDetail,
|
|
335
330
|
readExaSearchResults
|
|
336
331
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createExaWebSearchProvider } from "./exa-web-search-provider-
|
|
1
|
+
import { t as createExaWebSearchProvider } from "./exa-web-search-provider-DFtZDNkf.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/exa/index.ts
|
|
4
4
|
var exa_default = definePluginEntry({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createExaWebSearchProvider } from "./exa-web-search-provider-
|
|
1
|
+
import { t as createExaWebSearchProvider } from "./exa-web-search-provider-DFtZDNkf.js";
|
|
2
2
|
export { createExaWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/exa-plugin",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.2",
|
|
4
4
|
"description": "OpenClaw Exa plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.6.8"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.9.
|
|
21
|
+
"pluginApi": ">=2026.9.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
24
|
+
"openclawVersion": "2026.9.2",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.9.
|
|
41
|
+
"openclaw": ">=2026.9.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|