@openclaw/exa-plugin 2026.6.9-beta.1 → 2026.6.9
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-BrsqKBBP.js → exa-web-search-provider-q-LG8WsD.js} +1 -1
- package/dist/{exa-web-search-provider.runtime-DmHk5mGE.js → exa-web-search-provider.runtime-BzWlE73e.js} +7 -1
- package/dist/index.js +1 -1
- package/dist/web-search-provider.js +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -4
|
@@ -17,7 +17,7 @@ const EXA_FRESHNESS_VALUES = [
|
|
|
17
17
|
const EXA_MAX_SEARCH_COUNT = 100;
|
|
18
18
|
let exaWebSearchRuntimePromise;
|
|
19
19
|
function loadExaWebSearchRuntime() {
|
|
20
|
-
exaWebSearchRuntimePromise ??= import("./exa-web-search-provider.runtime-
|
|
20
|
+
exaWebSearchRuntimePromise ??= import("./exa-web-search-provider.runtime-BzWlE73e.js");
|
|
21
21
|
return exaWebSearchRuntimePromise;
|
|
22
22
|
}
|
|
23
23
|
const ExaSearchSchema = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
2
|
+
import { readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
2
3
|
import { DEFAULT_SEARCH_COUNT, buildSearchCacheKey, mergeScopedSearchConfig, parseIsoDateRange, readCachedSearchPayload, readConfiguredSecretString, readPositiveIntegerParam, readProviderEnvValue, readStringParam, resolveProviderWebSearchPluginConfig, resolveSearchCacheTtlMs, resolveSearchTimeoutSeconds, resolveSiteName, withTrustedWebSearchEndpoint, wrapWebContent, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
|
|
3
4
|
import { normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
5
|
//#region extensions/exa/src/exa-web-search-provider.runtime.ts
|
|
@@ -18,6 +19,7 @@ const EXA_FRESHNESS_VALUES = [
|
|
|
18
19
|
"year"
|
|
19
20
|
];
|
|
20
21
|
const EXA_MAX_SEARCH_COUNT = 100;
|
|
22
|
+
const EXA_ERROR_BODY_LIMIT_BYTES = 8 * 1024;
|
|
21
23
|
async function readExaSearchResults(response) {
|
|
22
24
|
try {
|
|
23
25
|
return normalizeExaResults(await response.json());
|
|
@@ -25,6 +27,9 @@ async function readExaSearchResults(response) {
|
|
|
25
27
|
throw new Error("Exa API returned malformed JSON", { cause });
|
|
26
28
|
}
|
|
27
29
|
}
|
|
30
|
+
async function readExaErrorDetail(response) {
|
|
31
|
+
return await readResponseTextLimited(response, EXA_ERROR_BODY_LIMIT_BYTES);
|
|
32
|
+
}
|
|
28
33
|
function normalizeExaFreshness(value) {
|
|
29
34
|
const trimmed = normalizeOptionalLowercaseString(value);
|
|
30
35
|
if (!trimmed) return;
|
|
@@ -207,7 +212,7 @@ async function runExaSearch(params) {
|
|
|
207
212
|
}
|
|
208
213
|
}, async (res) => {
|
|
209
214
|
if (!res.ok) {
|
|
210
|
-
const detail = await res
|
|
215
|
+
const detail = await readExaErrorDetail(res);
|
|
211
216
|
throw new Error(`Exa API error (${res.status}): ${detail || res.statusText}`);
|
|
212
217
|
}
|
|
213
218
|
return readExaSearchResults(res);
|
|
@@ -344,6 +349,7 @@ const testing = {
|
|
|
344
349
|
resolveExaSearchCount,
|
|
345
350
|
resolveExaSearchEndpoint,
|
|
346
351
|
resolveFreshnessStartDate,
|
|
352
|
+
readExaErrorDetail,
|
|
347
353
|
readExaSearchResults
|
|
348
354
|
};
|
|
349
355
|
//#endregion
|
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-q-LG8WsD.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-q-LG8WsD.js";
|
|
2
2
|
export { createExaWebSearchProvider };
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/exa-plugin",
|
|
3
|
-
"version": "2026.6.9
|
|
3
|
+
"version": "2026.6.9",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/exa-plugin",
|
|
9
|
-
"version": "2026.6.9
|
|
9
|
+
"version": "2026.6.9"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/exa-plugin",
|
|
3
|
-
"version": "2026.6.9
|
|
3
|
+
"version": "2026.6.9",
|
|
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.6.9
|
|
21
|
+
"pluginApi": ">=2026.6.9"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.6.9
|
|
24
|
+
"openclawVersion": "2026.6.9",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.6.9
|
|
42
|
+
"openclaw": ">=2026.6.9"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|