@openclaw/parallel-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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-bR8lt5fb.js";
1
+ import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-NaOJ6_QF.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-Hkr5nWrH.js");
104
+ parallelWebSearchRuntimePromise ??= import("./parallel-web-search-provider.runtime-CoE_E7IZ.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-IGwansnj.js");
172
+ parallelFreeWebSearchRuntimePromise ??= import("./parallel-free-web-search-provider.runtime-fyyL3Xip.js");
173
173
  return parallelFreeWebSearchRuntimePromise;
174
174
  }
175
175
  function createParallelFreeWebSearchProvider() {
@@ -1,12 +1,14 @@
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-bR8lt5fb.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-NaOJ6_QF.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
7
  //#region extensions/parallel/src/parallel-mcp-search.runtime.ts
7
8
  const PARALLEL_MCP_SEARCH_URL = "https://search.parallel.ai/mcp";
8
9
  const MCP_PROTOCOL_VERSION = "2025-06-18";
9
10
  const MCP_TIMEOUT_SECONDS = 30;
11
+ const PARALLEL_MCP_ERROR_BODY_LIMIT_BYTES = 8 * 1024;
10
12
  const PLUGIN_VERSION = readPluginPackageVersion({ require: createRequire(import.meta.url) });
11
13
  const USER_AGENT = `openclaw-parallel/${PLUGIN_VERSION} (${process.platform})`;
12
14
  function isRecord(value) {
@@ -115,7 +117,7 @@ async function postMcp(params) {
115
117
  ok: response.ok,
116
118
  status: response.status,
117
119
  statusText: response.statusText,
118
- text: await response.text(),
120
+ text: response.ok ? await response.text() : await readResponseTextLimited(response, PARALLEL_MCP_ERROR_BODY_LIMIT_BYTES),
119
121
  sessionIdHeader: response.headers.get("mcp-session-id")
120
122
  }));
121
123
  }
@@ -1,11 +1,13 @@
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-bR8lt5fb.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-NaOJ6_QF.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
7
  //#region extensions/parallel/src/parallel-web-search-provider.runtime.ts
7
8
  const PARALLEL_BASE_URL = "https://api.parallel.ai";
8
9
  const PARALLEL_SEARCH_PATHNAME = "/v1/search";
10
+ const PARALLEL_ERROR_BODY_LIMIT_BYTES = 8 * 1024;
9
11
  const USER_AGENT = `openclaw-parallel/${readPluginPackageVersion({ require: createRequire(import.meta.url) })} (${process.platform})`;
10
12
  function resolveParallelConfig(searchConfig) {
11
13
  const parallel = searchConfig?.parallel;
@@ -68,7 +70,7 @@ async function runParallelSearch(params) {
68
70
  }
69
71
  }, async (res) => {
70
72
  if (!res.ok) {
71
- const detail = await res.text().catch(() => "");
73
+ const detail = await readResponseTextLimited(res, PARALLEL_ERROR_BODY_LIMIT_BYTES).catch(() => "");
72
74
  throw new Error(`Parallel API error (${res.status}): ${detail || res.statusText}`);
73
75
  }
74
76
  try {
@@ -150,6 +152,7 @@ const testing = {
150
152
  resolveParallelConfig,
151
153
  resolveParallelSearchCount,
152
154
  resolveParallelSearchEndpoint,
155
+ PARALLEL_ERROR_BODY_LIMIT_BYTES,
153
156
  USER_AGENT
154
157
  };
155
158
  //#endregion
@@ -1,2 +1,2 @@
1
- import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-bR8lt5fb.js";
1
+ import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-NaOJ6_QF.js";
2
2
  export { createParallelFreeWebSearchProvider, createParallelWebSearchProvider };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/parallel-plugin",
3
- "version": "2026.6.9-beta.1",
3
+ "version": "2026.6.9",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/parallel-plugin",
9
- "version": "2026.6.9-beta.1"
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/parallel-plugin",
3
- "version": "2026.6.9-beta.1",
3
+ "version": "2026.6.9",
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.9-beta.1"
21
+ "pluginApi": ">=2026.6.9"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.6.9-beta.1",
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-beta.1"
42
+ "openclaw": ">=2026.6.9"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {