@openclaw/parallel-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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-NaOJ6_QF.js";
1
+ import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-Djk6NQw3.js";
2
2
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
3
3
  //#region extensions/parallel/index.ts
4
4
  var parallel_default = definePluginEntry({
@@ -1,4 +1,5 @@
1
1
  import { n as createParallelFreeWebSearchProviderBase, t as createParallelWebSearchProviderBase } from "./parallel-web-search-provider.shared-B8yrY1oc.js";
2
+ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
3
  import { buildSearchCacheKey, resolveSiteName, wrapWebContent } from "openclaw/plugin-sdk/provider-web-search";
3
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
4
5
  //#region extensions/parallel/src/parallel-search-normalize.ts
@@ -99,11 +100,7 @@ const PARALLEL_MAX_SEARCH_QUERY_CHARS = 200;
99
100
  const PARALLEL_MAX_OBJECTIVE_CHARS = 5e3;
100
101
  const PARALLEL_MAX_SESSION_ID_CHARS = 1e3;
101
102
  const PARALLEL_MAX_CLIENT_MODEL_CHARS = 100;
102
- let parallelWebSearchRuntimePromise;
103
- function loadParallelWebSearchRuntime() {
104
- parallelWebSearchRuntimePromise ??= import("./parallel-web-search-provider.runtime-CoE_E7IZ.js");
105
- return parallelWebSearchRuntimePromise;
106
- }
103
+ const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-B3xwAzoB.js"));
107
104
  const ParallelSearchSchema = {
108
105
  type: "object",
109
106
  properties: {
@@ -167,11 +164,7 @@ const ParallelFreeSearchSchema = {
167
164
  }
168
165
  }
169
166
  };
170
- let parallelFreeWebSearchRuntimePromise;
171
- function loadParallelFreeWebSearchRuntime() {
172
- parallelFreeWebSearchRuntimePromise ??= import("./parallel-free-web-search-provider.runtime-fyyL3Xip.js");
173
- return parallelFreeWebSearchRuntimePromise;
174
- }
167
+ const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-DtIn0zpK.js"));
175
168
  function createParallelFreeWebSearchProvider() {
176
169
  return {
177
170
  ...createParallelFreeWebSearchProviderBase(),
@@ -1,9 +1,10 @@
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-NaOJ6_QF.js";
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-Djk6NQw3.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
+ import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
5
  import { randomUUID } from "node:crypto";
5
6
  import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
6
- import { readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
7
+ import { readProviderTextResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
7
8
  //#region extensions/parallel/src/parallel-mcp-search.runtime.ts
8
9
  const PARALLEL_MCP_SEARCH_URL = "https://search.parallel.ai/mcp";
9
10
  const MCP_PROTOCOL_VERSION = "2025-06-18";
@@ -11,9 +12,6 @@ const MCP_TIMEOUT_SECONDS = 30;
11
12
  const PARALLEL_MCP_ERROR_BODY_LIMIT_BYTES = 8 * 1024;
12
13
  const PLUGIN_VERSION = readPluginPackageVersion({ require: createRequire(import.meta.url) });
13
14
  const USER_AGENT = `openclaw-parallel/${PLUGIN_VERSION} (${process.platform})`;
14
- function isRecord(value) {
15
- return typeof value === "object" && value !== null && !Array.isArray(value);
16
- }
17
15
  function mcpHeaders(params) {
18
16
  const headers = {
19
17
  "Content-Type": "application/json",
@@ -117,7 +115,7 @@ async function postMcp(params) {
117
115
  ok: response.ok,
118
116
  status: response.status,
119
117
  statusText: response.statusText,
120
- text: response.ok ? await response.text() : await readResponseTextLimited(response, PARALLEL_MCP_ERROR_BODY_LIMIT_BYTES),
118
+ text: response.ok ? await readProviderTextResponse(response, "Parallel MCP") : await readResponseTextLimited(response, PARALLEL_MCP_ERROR_BODY_LIMIT_BYTES),
121
119
  sessionIdHeader: response.headers.get("mcp-session-id")
122
120
  }));
123
121
  }
@@ -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-NaOJ6_QF.js";
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-Djk6NQw3.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
- try {
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-NaOJ6_QF.js";
1
+ import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-Djk6NQw3.js";
2
2
  export { createParallelFreeWebSearchProvider, createParallelWebSearchProvider };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/parallel-plugin",
3
- "version": "2026.6.11",
3
+ "version": "2026.7.1-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/parallel-plugin",
9
- "version": "2026.6.11"
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/parallel-plugin",
3
- "version": "2026.6.11",
3
+ "version": "2026.7.1-beta.2",
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.11"
21
+ "pluginApi": ">=2026.7.1-beta.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.6.11",
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.6.11"
42
+ "openclaw": ">=2026.7.1-beta.2"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {