@openclaw/parallel-plugin 2026.7.1-beta.2 → 2026.7.1-beta.4

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-Djk6NQw3.js";
1
+ import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-COEoztd3.js";
2
2
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
3
3
  //#region extensions/parallel/index.ts
4
4
  var parallel_default = definePluginEntry({
@@ -2,6 +2,7 @@ import { n as createParallelFreeWebSearchProviderBase, t as createParallelWebSea
2
2
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
3
3
  import { buildSearchCacheKey, resolveSiteName, wrapWebContent } from "openclaw/plugin-sdk/provider-web-search";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
+ import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
5
6
  //#region extensions/parallel/src/parallel-search-normalize.ts
6
7
  const PARALLEL_MAX_SEARCH_COUNT$1 = 40;
7
8
  const PARALLEL_MAX_SEARCH_QUERY_CHARS$1 = 200;
@@ -19,12 +20,12 @@ function normalizeParallelSessionId(value, maxLength) {
19
20
  function normalizeParallelObjective(value) {
20
21
  const trimmed = normalizeOptionalString(value);
21
22
  if (!trimmed) return;
22
- return trimmed.length <= PARALLEL_MAX_OBJECTIVE_CHARS$1 ? trimmed : trimmed.slice(0, PARALLEL_MAX_OBJECTIVE_CHARS$1);
23
+ return trimmed.length <= PARALLEL_MAX_OBJECTIVE_CHARS$1 ? trimmed : truncateUtf16Safe(trimmed, PARALLEL_MAX_OBJECTIVE_CHARS$1);
23
24
  }
24
25
  function normalizeParallelClientModel(value) {
25
26
  const trimmed = normalizeOptionalString(value);
26
27
  if (!trimmed) return;
27
- return trimmed.length <= PARALLEL_CLIENT_MODEL_MAX_LENGTH ? trimmed : trimmed.slice(0, PARALLEL_CLIENT_MODEL_MAX_LENGTH);
28
+ return trimmed.length <= PARALLEL_CLIENT_MODEL_MAX_LENGTH ? trimmed : truncateUtf16Safe(trimmed, PARALLEL_CLIENT_MODEL_MAX_LENGTH);
28
29
  }
29
30
  function normalizeParallelSearchQueries(value) {
30
31
  const candidates = Array.isArray(value) ? value : [];
@@ -34,7 +35,7 @@ function normalizeParallelSearchQueries(value) {
34
35
  if (typeof entry !== "string") continue;
35
36
  const trimmed = entry.trim();
36
37
  if (!trimmed) continue;
37
- const capped = trimmed.length <= PARALLEL_MAX_SEARCH_QUERY_CHARS$1 ? trimmed : trimmed.slice(0, PARALLEL_MAX_SEARCH_QUERY_CHARS$1);
38
+ const capped = trimmed.length <= PARALLEL_MAX_SEARCH_QUERY_CHARS$1 ? trimmed : truncateUtf16Safe(trimmed, PARALLEL_MAX_SEARCH_QUERY_CHARS$1);
38
39
  if (seen.has(capped)) continue;
39
40
  seen.add(capped);
40
41
  out.push(capped);
@@ -100,7 +101,7 @@ const PARALLEL_MAX_SEARCH_QUERY_CHARS = 200;
100
101
  const PARALLEL_MAX_OBJECTIVE_CHARS = 5e3;
101
102
  const PARALLEL_MAX_SESSION_ID_CHARS = 1e3;
102
103
  const PARALLEL_MAX_CLIENT_MODEL_CHARS = 100;
103
- const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-B3xwAzoB.js"));
104
+ const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-BI08soMH.js"));
104
105
  const ParallelSearchSchema = {
105
106
  type: "object",
106
107
  properties: {
@@ -164,7 +165,7 @@ const ParallelFreeSearchSchema = {
164
165
  }
165
166
  }
166
167
  };
167
- const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-DtIn0zpK.js"));
168
+ const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-CDEwbR6R.js"));
168
169
  function createParallelFreeWebSearchProvider() {
169
170
  return {
170
171
  ...createParallelFreeWebSearchProviderBase(),
@@ -1,4 +1,4 @@
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";
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-COEoztd3.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";
@@ -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-Djk6NQw3.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-COEoztd3.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-Djk6NQw3.js";
1
+ import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-COEoztd3.js";
2
2
  export { createParallelFreeWebSearchProvider, createParallelWebSearchProvider };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/parallel-plugin",
3
- "version": "2026.7.1-beta.2",
3
+ "version": "2026.7.1-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/parallel-plugin",
9
- "version": "2026.7.1-beta.2"
9
+ "version": "2026.7.1-beta.4"
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-beta.2",
3
+ "version": "2026.7.1-beta.4",
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-beta.2"
21
+ "pluginApi": ">=2026.7.1-beta.4"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.1-beta.2",
24
+ "openclawVersion": "2026.7.1-beta.4",
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-beta.2"
42
+ "openclaw": ">=2026.7.1-beta.4"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {