@openclaw/parallel-plugin 2026.7.1 → 2026.7.2-beta.1
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-COEoztd3.js → parallel-free-web-search-provider-D6TZXKny.js} +3 -3
- package/dist/{parallel-free-web-search-provider.runtime-CDEwbR6R.js → parallel-free-web-search-provider.runtime-AISBf-TU.js} +7 -5
- package/dist/{parallel-web-search-provider.runtime-BI08soMH.js → parallel-web-search-provider.runtime-yCaHnmyo.js} +1 -1
- 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-D6TZXKny.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_SEARCH_QUERY_CHARS = 200;
|
|
|
101
101
|
const PARALLEL_MAX_OBJECTIVE_CHARS = 5e3;
|
|
102
102
|
const PARALLEL_MAX_SESSION_ID_CHARS = 1e3;
|
|
103
103
|
const PARALLEL_MAX_CLIENT_MODEL_CHARS = 100;
|
|
104
|
-
const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-
|
|
104
|
+
const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-yCaHnmyo.js"));
|
|
105
105
|
const ParallelSearchSchema = {
|
|
106
106
|
type: "object",
|
|
107
107
|
properties: {
|
|
@@ -133,7 +133,7 @@ const ParallelSearchSchema = {
|
|
|
133
133
|
},
|
|
134
134
|
client_model: {
|
|
135
135
|
type: "string",
|
|
136
|
-
description: "The identifier of the LLM model making this tool call (e.g. 'claude-opus-4-7', 'gpt-5.
|
|
136
|
+
description: "The identifier of the LLM model making this tool call (e.g. 'claude-opus-4-7', 'gpt-5.6-sol', 'gemini-3.1-pro'). Pass the exact active model slug verbatim; never shorten or substitute a family alias like 'gpt-5'. Lets Parallel tailor default settings for your model's capabilities.",
|
|
137
137
|
maxLength: PARALLEL_MAX_CLIENT_MODEL_CHARS
|
|
138
138
|
}
|
|
139
139
|
},
|
|
@@ -165,7 +165,7 @@ const ParallelFreeSearchSchema = {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
|
-
const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-
|
|
168
|
+
const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-AISBf-TU.js"));
|
|
169
169
|
function createParallelFreeWebSearchProvider() {
|
|
170
170
|
return {
|
|
171
171
|
...createParallelFreeWebSearchProviderBase(),
|
|
@@ -1,7 +1,8 @@
|
|
|
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-D6TZXKny.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 { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
|
+
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
5
6
|
import { randomUUID } from "node:crypto";
|
|
6
7
|
import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
|
|
7
8
|
import { readProviderTextResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
@@ -87,16 +88,16 @@ function selectMcpEnvelope(text, requestId) {
|
|
|
87
88
|
* error or a tool-level `isError`.
|
|
88
89
|
*/
|
|
89
90
|
function extractMcpToolPayload(envelope) {
|
|
90
|
-
if ("error" in envelope) throw new Error(`Parallel MCP error: ${JSON.stringify(envelope.error)
|
|
91
|
+
if ("error" in envelope) throw new Error(`Parallel MCP error: ${truncateUtf16Safe(JSON.stringify(envelope.error), 500)}`);
|
|
91
92
|
const result = isRecord(envelope.result) ? envelope.result : {};
|
|
92
|
-
if (result.isError) throw new Error(`Parallel MCP tool error: ${JSON.stringify(result)
|
|
93
|
+
if (result.isError) throw new Error(`Parallel MCP tool error: ${truncateUtf16Safe(JSON.stringify(result), 500)}`);
|
|
93
94
|
if (isRecord(result.structuredContent)) return result.structuredContent;
|
|
94
95
|
const content = Array.isArray(result.content) ? result.content : [];
|
|
95
96
|
for (const block of content) if (isRecord(block) && block.type === "text" && typeof block.text === "string" && block.text) try {
|
|
96
97
|
const parsed = JSON.parse(block.text);
|
|
97
98
|
if (isRecord(parsed)) return parsed;
|
|
98
99
|
} catch {}
|
|
99
|
-
throw new Error(`Parallel MCP returned no parseable content: ${JSON.stringify(result)
|
|
100
|
+
throw new Error(`Parallel MCP returned no parseable content: ${truncateUtf16Safe(JSON.stringify(result), 500)}`);
|
|
100
101
|
}
|
|
101
102
|
async function postMcp(params) {
|
|
102
103
|
return withTrustedWebSearchEndpoint({
|
|
@@ -148,7 +149,7 @@ async function mcpCall(toolName, args, timeoutSeconds, signal) {
|
|
|
148
149
|
const sessionId = init.sessionIdHeader ?? void 0;
|
|
149
150
|
const initEnvelope = selectMcpEnvelope(init.text, initId);
|
|
150
151
|
const negotiatedVersion = (isRecord(initEnvelope.result) && typeof initEnvelope.result.protocolVersion === "string" ? initEnvelope.result.protocolVersion : void 0) ?? MCP_PROTOCOL_VERSION;
|
|
151
|
-
await postMcp({
|
|
152
|
+
const initialized = await postMcp({
|
|
152
153
|
body: {
|
|
153
154
|
jsonrpc: "2.0",
|
|
154
155
|
method: "notifications/initialized"
|
|
@@ -158,6 +159,7 @@ async function mcpCall(toolName, args, timeoutSeconds, signal) {
|
|
|
158
159
|
timeoutSeconds,
|
|
159
160
|
signal
|
|
160
161
|
});
|
|
162
|
+
if (!initialized.ok) throw new Error(`Parallel MCP notifications/initialized failed (${initialized.status}): ${initialized.text || initialized.statusText}`);
|
|
161
163
|
const callId = randomUUID();
|
|
162
164
|
const call = await postMcp({
|
|
163
165
|
body: {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-D6TZXKny.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";
|
|
@@ -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-D6TZXKny.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.7.1",
|
|
3
|
+
"version": "2026.7.2-beta.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/parallel-plugin",
|
|
9
|
-
"version": "2026.7.1"
|
|
9
|
+
"version": "2026.7.2-beta.1"
|
|
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.7.1",
|
|
3
|
+
"version": "2026.7.2-beta.1",
|
|
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.7.1"
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.1"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.1",
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.1",
|
|
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.7.1"
|
|
42
|
+
"openclaw": ">=2026.7.2-beta.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|