@openclaw/parallel-plugin 2026.6.34 → 2026.6.35
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/index.js +1 -1
- package/dist/{parallel-free-web-search-provider-NaOJ6_QF.js → parallel-free-web-search-provider-BtBHIMmY.js} +2 -2
- package/dist/{parallel-free-web-search-provider.runtime-fyyL3Xip.js → parallel-free-web-search-provider.runtime-CeJNQz60.js} +3 -3
- package/dist/{parallel-web-search-provider.runtime-CoE_E7IZ.js → parallel-web-search-provider.runtime-CgSR3C_z.js} +5 -7
- package/dist/web-search-provider.js +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-
|
|
1
|
+
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-BtBHIMmY.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/parallel/index.ts
|
|
4
4
|
var parallel_default = definePluginEntry({
|
|
@@ -101,7 +101,7 @@ const PARALLEL_MAX_SESSION_ID_CHARS = 1e3;
|
|
|
101
101
|
const PARALLEL_MAX_CLIENT_MODEL_CHARS = 100;
|
|
102
102
|
let parallelWebSearchRuntimePromise;
|
|
103
103
|
function loadParallelWebSearchRuntime() {
|
|
104
|
-
parallelWebSearchRuntimePromise ??= import("./parallel-web-search-provider.runtime-
|
|
104
|
+
parallelWebSearchRuntimePromise ??= import("./parallel-web-search-provider.runtime-CgSR3C_z.js");
|
|
105
105
|
return parallelWebSearchRuntimePromise;
|
|
106
106
|
}
|
|
107
107
|
const ParallelSearchSchema = {
|
|
@@ -169,7 +169,7 @@ const ParallelFreeSearchSchema = {
|
|
|
169
169
|
};
|
|
170
170
|
let parallelFreeWebSearchRuntimePromise;
|
|
171
171
|
function loadParallelFreeWebSearchRuntime() {
|
|
172
|
-
parallelFreeWebSearchRuntimePromise ??= import("./parallel-free-web-search-provider.runtime-
|
|
172
|
+
parallelFreeWebSearchRuntimePromise ??= import("./parallel-free-web-search-provider.runtime-CeJNQz60.js");
|
|
173
173
|
return parallelFreeWebSearchRuntimePromise;
|
|
174
174
|
}
|
|
175
175
|
function createParallelFreeWebSearchProvider() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as invalidSearchQueriesPayload, c as normalizeParallelObjective, d as normalizeParallelSessionId, f as resolveParallelSearchCount, i as buildParallelCacheKey, o as mapParallelResults, p as stripParallelGeneratedSessionId, s as normalizeParallelClientModel, u as normalizeParallelSearchQueries } from "./parallel-free-web-search-provider-
|
|
1
|
+
import { a as invalidSearchQueriesPayload, c as normalizeParallelObjective, d as normalizeParallelSessionId, f as resolveParallelSearchCount, i as buildParallelCacheKey, o as mapParallelResults, p as stripParallelGeneratedSessionId, s as normalizeParallelClientModel, u as normalizeParallelSearchQueries } from "./parallel-free-web-search-provider-BtBHIMmY.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { DEFAULT_SEARCH_COUNT, mergeScopedSearchConfig, readCachedSearchPayload, readNumberParam, readStringArrayParam, readStringParam, resolveProviderWebSearchPluginConfig, resolveSearchCacheTtlMs, resolveSearchTimeoutSeconds, withTrustedWebSearchEndpoint, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
|
|
6
|
-
import { readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
6
|
+
import { readProviderTextResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
7
7
|
//#region extensions/parallel/src/parallel-mcp-search.runtime.ts
|
|
8
8
|
const PARALLEL_MCP_SEARCH_URL = "https://search.parallel.ai/mcp";
|
|
9
9
|
const MCP_PROTOCOL_VERSION = "2025-06-18";
|
|
@@ -117,7 +117,7 @@ async function postMcp(params) {
|
|
|
117
117
|
ok: response.ok,
|
|
118
118
|
status: response.status,
|
|
119
119
|
statusText: response.statusText,
|
|
120
|
-
text: response.ok ? await response
|
|
120
|
+
text: response.ok ? await readProviderTextResponse(response, "Parallel MCP") : await readResponseTextLimited(response, PARALLEL_MCP_ERROR_BODY_LIMIT_BYTES),
|
|
121
121
|
sessionIdHeader: response.headers.get("mcp-session-id")
|
|
122
122
|
}));
|
|
123
123
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { a as invalidSearchQueriesPayload, c as normalizeParallelObjective, d as normalizeParallelSessionId, f as resolveParallelSearchCount, i as buildParallelCacheKey, l as normalizeParallelResults, o as mapParallelResults, p as stripParallelGeneratedSessionId, r as PARALLEL_SESSION_ID_MAX_LENGTH, s as normalizeParallelClientModel, u as normalizeParallelSearchQueries } from "./parallel-free-web-search-provider-
|
|
1
|
+
import { a as invalidSearchQueriesPayload, c as normalizeParallelObjective, d as normalizeParallelSessionId, f as resolveParallelSearchCount, i as buildParallelCacheKey, l as normalizeParallelResults, o as mapParallelResults, p as stripParallelGeneratedSessionId, r as PARALLEL_SESSION_ID_MAX_LENGTH, s as normalizeParallelClientModel, u as normalizeParallelSearchQueries } from "./parallel-free-web-search-provider-BtBHIMmY.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { DEFAULT_SEARCH_COUNT, mergeScopedSearchConfig, readCachedSearchPayload, readConfiguredSecretString, readNumberParam, readProviderEnvValue, readStringArrayParam, readStringParam, resolveProviderWebSearchPluginConfig, resolveSearchCacheTtlMs, resolveSearchTimeoutSeconds, withTrustedWebSearchEndpoint, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
|
|
6
|
-
import { readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
6
|
+
import { readProviderJsonResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
7
7
|
//#region extensions/parallel/src/parallel-web-search-provider.runtime.ts
|
|
8
8
|
const PARALLEL_BASE_URL = "https://api.parallel.ai";
|
|
9
9
|
const PARALLEL_SEARCH_PATHNAME = "/v1/search";
|
|
10
10
|
const PARALLEL_ERROR_BODY_LIMIT_BYTES = 8 * 1024;
|
|
11
|
+
const PARALLEL_SEARCH_RESPONSE_LIMIT_BYTES = 16 * 1024 * 1024;
|
|
11
12
|
const USER_AGENT = `openclaw-parallel/${readPluginPackageVersion({ require: createRequire(import.meta.url) })} (${process.platform})`;
|
|
12
13
|
function resolveParallelConfig(searchConfig) {
|
|
13
14
|
const parallel = searchConfig?.parallel;
|
|
@@ -73,11 +74,7 @@ async function runParallelSearch(params) {
|
|
|
73
74
|
const detail = await readResponseTextLimited(res, PARALLEL_ERROR_BODY_LIMIT_BYTES).catch(() => "");
|
|
74
75
|
throw new Error(`Parallel API error (${res.status}): ${detail || res.statusText}`);
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
-
return await res.json();
|
|
78
|
-
} catch (cause) {
|
|
79
|
-
throw new Error("Parallel API returned malformed JSON", { cause });
|
|
80
|
-
}
|
|
77
|
+
return await readProviderJsonResponse(res, "Parallel API", { maxBytes: PARALLEL_SEARCH_RESPONSE_LIMIT_BYTES });
|
|
81
78
|
});
|
|
82
79
|
}
|
|
83
80
|
async function executeParallelWebSearchProviderTool(ctx, args) {
|
|
@@ -153,6 +150,7 @@ const testing = {
|
|
|
153
150
|
resolveParallelSearchCount,
|
|
154
151
|
resolveParallelSearchEndpoint,
|
|
155
152
|
PARALLEL_ERROR_BODY_LIMIT_BYTES,
|
|
153
|
+
PARALLEL_SEARCH_RESPONSE_LIMIT_BYTES,
|
|
156
154
|
USER_AGENT
|
|
157
155
|
};
|
|
158
156
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-
|
|
1
|
+
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-BtBHIMmY.js";
|
|
2
2
|
export { createParallelFreeWebSearchProvider, createParallelWebSearchProvider };
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/parallel-plugin",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.35",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/parallel-plugin",
|
|
9
|
-
"version": "2026.6.
|
|
9
|
+
"version": "2026.6.35"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/parallel-plugin",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.35",
|
|
4
4
|
"description": "OpenClaw Parallel web search 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.
|
|
21
|
+
"pluginApi": ">=2026.6.35"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.6.
|
|
24
|
+
"openclawVersion": "2026.6.35",
|
|
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.
|
|
42
|
+
"openclaw": ">=2026.6.35"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|