@openclaw/exa-plugin 2026.6.11 → 2026.7.1-beta.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-q-LG8WsD.js → exa-web-search-provider-Bu9S5fus.js} +2 -5
- package/dist/{exa-web-search-provider.runtime-BzWlE73e.js → exa-web-search-provider.runtime-B7xl86Gk.js} +5 -2
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as createExaWebSearchProviderBase } from "./exa-web-search-provider.shared-CWlikD_3.js";
|
|
2
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
3
|
//#region extensions/exa/src/exa-web-search-provider.ts
|
|
3
4
|
const EXA_SEARCH_TYPES = [
|
|
4
5
|
"auto",
|
|
@@ -15,11 +16,7 @@ const EXA_FRESHNESS_VALUES = [
|
|
|
15
16
|
"year"
|
|
16
17
|
];
|
|
17
18
|
const EXA_MAX_SEARCH_COUNT = 100;
|
|
18
|
-
|
|
19
|
-
function loadExaWebSearchRuntime() {
|
|
20
|
-
exaWebSearchRuntimePromise ??= import("./exa-web-search-provider.runtime-BzWlE73e.js");
|
|
21
|
-
return exaWebSearchRuntimePromise;
|
|
22
|
-
}
|
|
19
|
+
const loadExaWebSearchRuntime = createLazyRuntimeModule(() => import("./exa-web-search-provider.runtime-B7xl86Gk.js"));
|
|
23
20
|
const ExaSearchSchema = {
|
|
24
21
|
type: "object",
|
|
25
22
|
properties: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
2
2
|
import { readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
3
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";
|
|
4
|
+
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
4
5
|
import { normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
6
|
//#region extensions/exa/src/exa-web-search-provider.runtime.ts
|
|
6
7
|
const EXA_SEARCH_ENDPOINT = "https://api.exa.ai/search";
|
|
@@ -20,9 +21,11 @@ const EXA_FRESHNESS_VALUES = [
|
|
|
20
21
|
];
|
|
21
22
|
const EXA_MAX_SEARCH_COUNT = 100;
|
|
22
23
|
const EXA_ERROR_BODY_LIMIT_BYTES = 8 * 1024;
|
|
23
|
-
|
|
24
|
+
const EXA_SEARCH_JSON_MAX_BYTES = 16 * 1024 * 1024;
|
|
25
|
+
async function readExaSearchResults(response, opts) {
|
|
26
|
+
const bytes = await readResponseWithLimit(response, opts?.maxBytes ?? EXA_SEARCH_JSON_MAX_BYTES, { onOverflow: ({ maxBytes: maxBytesLocal }) => /* @__PURE__ */ new Error(`Exa API response exceeds ${maxBytesLocal} bytes`) });
|
|
24
27
|
try {
|
|
25
|
-
return normalizeExaResults(
|
|
28
|
+
return normalizeExaResults(JSON.parse(new TextDecoder().decode(bytes)));
|
|
26
29
|
} catch (cause) {
|
|
27
30
|
throw new Error("Exa API returned malformed JSON", { cause });
|
|
28
31
|
}
|
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-Bu9S5fus.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-Bu9S5fus.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.
|
|
3
|
+
"version": "2026.7.1-beta.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/exa-plugin",
|
|
9
|
-
"version": "2026.
|
|
9
|
+
"version": "2026.7.1-beta.2"
|
|
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.
|
|
3
|
+
"version": "2026.7.1-beta.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.
|
|
21
|
+
"pluginApi": ">=2026.7.1-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.
|
|
24
|
+
"openclawVersion": "2026.7.1-beta.2",
|
|
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.
|
|
42
|
+
"openclaw": ">=2026.7.1-beta.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|