@openclaw/parallel-plugin 2026.11.5 → 2026.11.10-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/README.md CHANGED
@@ -10,3 +10,12 @@ openclaw gateway restart
10
10
  ```
11
11
 
12
12
  See <https://docs.openclaw.ai/tools/parallel-search> for setup and configuration.
13
+
14
+ ## Decisions
15
+
16
+ The plugin also registers the native decision-only model `parallel/decisions-fast`
17
+ for `decision_evaluate` contract version 2. It uses `PARALLEL_API_KEY` and the
18
+ web-grounded `/v1/decisions` endpoint, not chat completions. Supports boolean,
19
+ choice, and score questions over text/JSON state; preserves refusals and shared
20
+ citations. See the [Parallel guide](https://docs.openclaw.ai/tools/parallel-search#decisions)
21
+ for setup, supported inputs, and billing.
@@ -0,0 +1,111 @@
1
+ import { resolveAgentConfig } from "openclaw/plugin-sdk/agent-scope-runtime";
2
+ import { evaluateDecisionHttp } from "openclaw/plugin-sdk/decisions-http-runtime";
3
+ import { decodeSystemOneResponse, validateDecisionResultV2 } from "openclaw/plugin-sdk/decisions";
4
+ import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
5
+ // extensions/parallel/src/decision-codec.ts
6
+ const text = (value) => value == null ? "" : typeof value === "string" ? value : JSON.stringify(value);
7
+ function encodeParallelDecisionRequest(batch) {
8
+ const entries = Object.entries(batch.questions);
9
+ if (batch.state.type !== "text" && batch.state.type !== "json" || entries.length < 1 || entries.length > 100 || entries.some(([id]) => !/^[A-Za-z0-9_-]+$/.test(id))) return;
10
+ const questions = [];
11
+ for (const [id, question] of entries) {
12
+ if (![
13
+ "boolean",
14
+ "choice",
15
+ "score"
16
+ ].includes(question.type)) return;
17
+ if (question.type === "choice") {
18
+ const options = Object.entries(question.criteria);
19
+ if (options.length < 2 || options.length > 255) return;
20
+ questions.push([id, {
21
+ type: "choice",
22
+ instructions: text(question.instructions),
23
+ criteria: Object.fromEntries(options.map(([key, value]) => [key, text(value)]))
24
+ }]);
25
+ } else if (question.type === "score") {
26
+ if (question.criteria.length < 2 || question.criteria.length > 10) return;
27
+ questions.push([id, {
28
+ type: "score",
29
+ instructions: text(question.instructions),
30
+ criteria: question.criteria.map(text)
31
+ }]);
32
+ } else if (question.type === "boolean") questions.push([id, {
33
+ type: "noul",
34
+ instructions: text(question.instructions),
35
+ ...question.criteria ? { criteria: {
36
+ true: text(question.criteria.true),
37
+ false: text(question.criteria.false)
38
+ } } : {}
39
+ }]);
40
+ }
41
+ return JSON.stringify({
42
+ mode: "fast",
43
+ state: batch.state.type === "text" ? batch.state.text : batch.state.value,
44
+ questions: Object.fromEntries(questions)
45
+ });
46
+ }
47
+ function decodeParallelDecisionResult(batch, responseValue, capabilities) {
48
+ const invalid = {
49
+ status: "unavailable",
50
+ reason: "invalid-response"
51
+ };
52
+ const root = asOptionalRecord(responseValue);
53
+ if (!root || root.mode !== "fast" || typeof root.decision_id !== "string" || !Array.isArray(root.citations)) return invalid;
54
+ if (!root.citations.every((value) => {
55
+ const citation = asOptionalRecord(value);
56
+ return citation && typeof citation.url === "string" && (citation.title === void 0 || typeof citation.title === "string") && Array.isArray(citation.excerpts) && citation.excerpts.every((excerpt) => typeof excerpt === "string");
57
+ })) return invalid;
58
+ const decoded = asOptionalRecord(decodeSystemOneResponse(batch, {
59
+ ...root,
60
+ model: "parallel/decisions-fast"
61
+ }, { confidence: "optional" }));
62
+ if (!decoded) return invalid;
63
+ const result = {
64
+ ...decoded,
65
+ usage: {
66
+ ...asOptionalRecord(decoded.usage),
67
+ units: {
68
+ unit: "requests",
69
+ amount: 1
70
+ }
71
+ },
72
+ metadata: {
73
+ ...asOptionalRecord(decoded.metadata),
74
+ decisionId: root.decision_id,
75
+ citations: root.citations
76
+ }
77
+ };
78
+ return validateDecisionResultV2(batch, result, capabilities) ? {
79
+ status: "ok",
80
+ result
81
+ } : invalid;
82
+ }
83
+ // extensions/parallel/src/decision-provider.runtime.ts
84
+ async function evaluateParallelDecision(batch, context) {
85
+ context.signal.throwIfAborted();
86
+ const providerConfig = context.config.models?.providers?.parallel;
87
+ const agent = context.agentId ? resolveAgentConfig(context.config, context.agentId) : void 0;
88
+ const modelRef = "parallel/" + context.model.id;
89
+ const hasParams = [
90
+ providerConfig?.params,
91
+ context.model.params,
92
+ context.config.agents?.defaults?.params,
93
+ context.config.agents?.defaults?.models?.[modelRef]?.params,
94
+ agent?.models?.[modelRef]?.params,
95
+ agent?.params
96
+ ].some((params) => Object.values(params ?? {}).some((value) => value !== void 0));
97
+ const body = encodeParallelDecisionRequest(batch);
98
+ if (context.model.id !== "decisions-fast" || context.reasoning !== void 0 && context.reasoning !== "auto" || hasParams || !body) return {
99
+ status: "unavailable",
100
+ reason: "unsupported-input"
101
+ };
102
+ return evaluateDecisionHttp(context, {
103
+ provider: "parallel",
104
+ baseUrl: context.model.baseUrl ?? providerConfig?.baseUrl ?? "https://api.parallel.ai/v1",
105
+ endpointPath: "decisions",
106
+ body,
107
+ authHeaders: (apiKey) => ({ "x-api-key": apiKey }),
108
+ decode: (payload) => decodeParallelDecisionResult(batch, payload, context.model.inference?.decision)
109
+ });
110
+ }
111
+ export { evaluateParallelDecision };
@@ -1,6 +1,6 @@
1
1
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
2
  import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-contract";
3
- //#region extensions/parallel/src/parallel-web-search-provider.ts
3
+ // extensions/parallel/src/parallel-web-search-provider.ts
4
4
  const PARALLEL_CREDENTIAL_PATH = "plugins.entries.parallel.config.webSearch.apiKey";
5
5
  const PARALLEL_MAX_SEARCH_COUNT = 40;
6
6
  const PARALLEL_MAX_SEARCH_QUERIES = 5;
@@ -8,7 +8,7 @@ const PARALLEL_MAX_SEARCH_QUERY_CHARS = 200;
8
8
  const PARALLEL_MAX_OBJECTIVE_CHARS = 5e3;
9
9
  const PARALLEL_MAX_SESSION_ID_CHARS = 1e3;
10
10
  const PARALLEL_MAX_CLIENT_MODEL_CHARS = 100;
11
- const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-Da3yvfmk.mjs"));
11
+ const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-COvfpm4A.mjs"));
12
12
  const ParallelSearchSchema = {
13
13
  type: "object",
14
14
  properties: {
@@ -80,8 +80,7 @@ function createParallelWebSearchProvider() {
80
80
  })
81
81
  };
82
82
  }
83
- //#endregion
84
- //#region extensions/parallel/src/parallel-free-web-search-provider.ts
83
+ // extensions/parallel/src/parallel-free-web-search-provider.ts
85
84
  const ParallelFreeSearchSchema = {
86
85
  ...ParallelSearchSchema,
87
86
  properties: {
@@ -92,7 +91,7 @@ const ParallelFreeSearchSchema = {
92
91
  }
93
92
  }
94
93
  };
95
- const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-yJVscbpB.mjs"));
94
+ const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-Co8GeBZW.mjs"));
96
95
  function createParallelFreeWebSearchProvider() {
97
96
  return {
98
97
  id: "parallel-free",
@@ -124,5 +123,4 @@ function createParallelFreeWebSearchProvider() {
124
123
  })
125
124
  };
126
125
  }
127
- //#endregion
128
126
  export { createParallelWebSearchProvider as n, createParallelFreeWebSearchProvider as t };
@@ -1,12 +1,12 @@
1
- import { t as executeParallelSearchRequest } from "./parallel-search-normalize-DLUK82z5.mjs";
1
+ import { t as executeParallelSearchRequest } from "./parallel-search-normalize-BIMgaRg9.mjs";
2
2
  import { createRequire } from "node:module";
3
+ import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
3
4
  import { randomUUID } from "node:crypto";
4
5
  import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
5
6
  import { ProviderHttpError, readProviderTextResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
6
7
  import { mergeScopedSearchConfig, resolveProviderWebSearchPluginConfig, withTrustedWebSearchEndpoint } from "openclaw/plugin-sdk/provider-web-search";
7
- import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  import { safeParseJson, truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
9
- //#region extensions/parallel/src/parallel-free-web-search-provider.runtime.ts
9
+ // extensions/parallel/src/parallel-free-web-search-provider.runtime.ts
10
10
  const PARALLEL_MCP_SEARCH_URL = "https://search.parallel.ai/mcp";
11
11
  const MCP_PROTOCOL_VERSION = "2025-06-18";
12
12
  const PARALLEL_MCP_ERROR_BODY_LIMIT_BYTES = 8192;
@@ -160,5 +160,4 @@ async function executeParallelFreeWebSearchProviderTool(ctx, args, signal) {
160
160
  }
161
161
  });
162
162
  }
163
- //#endregion
164
163
  export { executeParallelFreeWebSearchProviderTool };
@@ -1,9 +1,9 @@
1
- import { DEFAULT_SEARCH_COUNT, buildSearchCacheKey, externalContentStamp, readCachedSearchPayload, readPositiveIntegerParam, readStringArrayParam, readStringParam, resolveSearchCacheTtlMs, resolveSearchTimeoutSeconds, resolveSiteName, wrapWebContent, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
2
- import { asOptionalObjectRecord, filterStringEntries, isRecord, normalizeBoundedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
1
+ import { normalizeBoundedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
2
+ import { DEFAULT_SEARCH_COUNT, buildSearchCacheKey, externalContentStamp, nativeWebSearchCodecs, readCachedSearchPayload, readPositiveIntegerParam, readStringArrayParam, readStringParam, resolveSearchCacheTtlMs, resolveSearchTimeoutSeconds, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
3
3
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
4
4
  import { sha256Hex } from "openclaw/plugin-sdk/node-crypto-runtime";
5
5
  import { resolveIntegerOption } from "openclaw/plugin-sdk/number-runtime";
6
- //#region extensions/parallel/src/parallel-search-normalize.ts
6
+ // extensions/parallel/src/parallel-search-normalize.ts
7
7
  const PARALLEL_MAX_SEARCH_COUNT = 40;
8
8
  const PARALLEL_MAX_SEARCH_QUERY_CHARS = 200;
9
9
  const PARALLEL_MAX_OBJECTIVE_CHARS = 5e3;
@@ -50,20 +50,7 @@ async function executeParallelSearchRequest(params) {
50
50
  const start = Date.now();
51
51
  const response = await params.search(request, resolveSearchTimeoutSeconds(params.searchConfig));
52
52
  const count = request.count;
53
- const rawResults = asOptionalObjectRecord(response)?.results;
54
- const results = (Array.isArray(rawResults) ? rawResults.filter(isRecord) : []).slice(0, count).map((entry) => {
55
- const title = typeof entry.title === "string" ? entry.title : "";
56
- const url = typeof entry.url === "string" ? entry.url : "";
57
- const published = typeof entry.publish_date === "string" && entry.publish_date ? entry.publish_date : void 0;
58
- const excerpts = filterStringEntries(entry.excerpts).map((e) => wrapWebContent(e, "web_search"));
59
- const description = excerpts.join("\n\n");
60
- return Object.assign({
61
- title: title ? wrapWebContent(title, "web_search") : "",
62
- url,
63
- description,
64
- siteName: resolveSiteName(url) || void 0
65
- }, published ? { published } : {}, excerpts.length > 0 ? { excerpts } : {});
66
- });
53
+ const results = nativeWebSearchCodecs["parallel.search"].results(response, count);
67
54
  const payload = {
68
55
  ...request.objective ? { objective: request.objective } : {},
69
56
  searchQueries: request.searchQueries,
@@ -96,5 +83,4 @@ function normalizeParallelSearchQueries(candidates = []) {
96
83
  }
97
84
  return out;
98
85
  }
99
- //#endregion
100
86
  export { executeParallelSearchRequest as t };
@@ -1,12 +1,12 @@
1
- import { t as executeParallelSearchRequest } from "./parallel-search-normalize-DLUK82z5.mjs";
1
+ import { t as executeParallelSearchRequest } from "./parallel-search-normalize-BIMgaRg9.mjs";
2
2
  import { createRequire } from "node:module";
3
+ import { asOptionalRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
3
4
  import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
4
5
  import { ProviderHttpError, readProviderJsonResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
5
- import { mergeScopedSearchConfig, readWebSearchApiKey, resolveProviderWebSearchPluginConfig, withTrustedWebSearchEndpoint } from "openclaw/plugin-sdk/provider-web-search";
6
- import { asOptionalRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
+ import { mergeScopedSearchConfig, nativeWebSearchCodecs, readWebSearchApiKey, resolveProviderWebSearchPluginConfig, withTrustedWebSearchEndpoint } from "openclaw/plugin-sdk/provider-web-search";
7
7
  import { redactToolPayloadText } from "openclaw/plugin-sdk/logging-core";
8
8
  import { redactSensitiveText } from "openclaw/plugin-sdk/security-runtime";
9
- //#region extensions/parallel/src/parallel-web-search-provider.runtime.ts
9
+ // extensions/parallel/src/parallel-web-search-provider.runtime.ts
10
10
  const PARALLEL_BASE_URL = "https://api.parallel.ai";
11
11
  const PARALLEL_SEARCH_PATHNAME = "/v1/search";
12
12
  const PARALLEL_ERROR_BODY_LIMIT_BYTES = 8192;
@@ -53,10 +53,7 @@ async function executeParallelWebSearchProviderTool(ctx, args, signal) {
53
53
  args,
54
54
  searchConfig,
55
55
  search: async (request, timeoutSeconds) => {
56
- const body = {
57
- search_queries: request.searchQueries,
58
- advanced_settings: { max_results: request.count }
59
- };
56
+ const { body } = nativeWebSearchCodecs["parallel.search"].request(endpoint, request.searchQueries, request.count);
60
57
  if (request.objective) body.objective = request.objective;
61
58
  if (request.sessionId) body.session_id = request.sessionId;
62
59
  if (request.clientModel) body.client_model = request.clientModel;
@@ -85,5 +82,4 @@ async function executeParallelWebSearchProviderTool(ctx, args, signal) {
85
82
  }
86
83
  });
87
84
  }
88
- //#endregion
89
85
  export { executeParallelWebSearchProviderTool };
@@ -1 +1 @@
1
- {"version":3,"entries":[{"output":"index.js","source":"extensions/parallel/index.ts"},{"output":"web-search-contract-api.js","source":"extensions/parallel/web-search-contract-api.ts"},{"output":"web-search-provider.js","source":"extensions/parallel/web-search-provider.ts"}],"chunks":[{"output":".setup/parallel-free-web-search-provider-Bc9ZvxIO.mjs","sha256":"96ef5018be9e8d131ecad12b2bb2d4bb714ff4d4431a465d27237cebbc3e58b7","facadeSource":null,"sources":["extensions/parallel/src/parallel-free-web-search-provider.ts","extensions/parallel/src/parallel-web-search-provider.ts"]},{"output":".setup/parallel-free-web-search-provider.runtime-yJVscbpB.mjs","sha256":"980382241147b1b8db459c987415cf3c9123a25b67a9ef5dd85c398fec4ff7ec","facadeSource":"extensions/parallel/src/parallel-free-web-search-provider.runtime.ts","sources":["extensions/parallel/src/parallel-free-web-search-provider.runtime.ts"]},{"output":".setup/parallel-search-normalize-DLUK82z5.mjs","sha256":"c4a6684366db7d257b624e300b090535468658b516adad328513b05af1ddd948","facadeSource":null,"sources":["extensions/parallel/src/parallel-search-normalize.ts"]},{"output":".setup/parallel-web-search-provider.runtime-Da3yvfmk.mjs","sha256":"ec9d0598f57392afe235a2e46cf56736bab5c8686d9569fc4ba36e39e1afa726","facadeSource":"extensions/parallel/src/parallel-web-search-provider.runtime.ts","sources":["extensions/parallel/src/parallel-web-search-provider.runtime.ts"]},{"output":"index.js","sha256":"cde043dfd1a5c66cc4665d201bb0b15c3387161b0f95cfe6b82fec0610eddf07","facadeSource":"extensions/parallel/index.ts","sources":["extensions/parallel/index.ts"]},{"output":"web-search-contract-api.js","sha256":"7116933f3c6c4b0b33824ab88e581c92e6e3543a3d661fb4a4c4b0e9d530082c","facadeSource":"extensions/parallel/web-search-contract-api.ts","sources":[]},{"output":"web-search-provider.js","sha256":"c8a9fb84c1e6aa4962faa2a71420ff0e0dd120739975f585304da9e5512a5f96","facadeSource":"extensions/parallel/web-search-provider.ts","sources":[]}],"unrenderedSources":["extensions/parallel/src/parallel-free-web-search-provider.shared.ts","extensions/parallel/web-search-contract-api.ts","extensions/parallel/web-search-provider.ts"]}
1
+ {"version":3,"entries":[{"output":"index.js","source":"extensions/parallel/index.ts"},{"output":"web-search-contract-api.js","source":"extensions/parallel/web-search-contract-api.ts"},{"output":"web-search-provider.js","source":"extensions/parallel/web-search-provider.ts"}],"chunks":[{"output":".setup/decision-provider.runtime-2QPWIK1O.mjs","sha256":"09496cfa9215d2cbb22d5976372cbd88ba4eb016903350956f2ba4a0571eb334","facadeSource":"extensions/parallel/src/decision-provider.runtime.ts","sources":["extensions/parallel/src/decision-codec.ts","extensions/parallel/src/decision-provider.runtime.ts"]},{"output":".setup/parallel-free-web-search-provider-DoGZWApA.mjs","sha256":"3666793e56038e561e74cf60607c09119f6727500c584e2f9326d3261208db1c","facadeSource":null,"sources":["extensions/parallel/src/parallel-free-web-search-provider.ts","extensions/parallel/src/parallel-web-search-provider.ts"]},{"output":".setup/parallel-free-web-search-provider.runtime-Co8GeBZW.mjs","sha256":"e811d5fbdd16dcdf55cc5c10827b104a89398ce1b7a174a48c6bc50e41a0c8b9","facadeSource":"extensions/parallel/src/parallel-free-web-search-provider.runtime.ts","sources":["extensions/parallel/src/parallel-free-web-search-provider.runtime.ts"]},{"output":".setup/parallel-search-normalize-BIMgaRg9.mjs","sha256":"50af20eb0b375373c5a15fb19c8f6483aafbf9bf326da6ddd75fa94550dbff05","facadeSource":null,"sources":["extensions/parallel/src/parallel-search-normalize.ts"]},{"output":".setup/parallel-web-search-provider.runtime-COvfpm4A.mjs","sha256":"1d11b2adda4a8349cb2070d3315c1b0a4ca70b0266bda2224fc28e7e0d8c92de","facadeSource":"extensions/parallel/src/parallel-web-search-provider.runtime.ts","sources":["extensions/parallel/src/parallel-web-search-provider.runtime.ts"]},{"output":"index.js","sha256":"229895640530a9b17e81374ea13deed9662c12f80f4602cf1b465ab79d7b0d44","facadeSource":"extensions/parallel/index.ts","sources":["extensions/parallel/index.ts","extensions/parallel/src/decision-provider.ts"]},{"output":"web-search-contract-api.js","sha256":"b61e556a91b9a222354b85ba7f17221e10ee89176d414411696709c497f9f753","facadeSource":"extensions/parallel/web-search-contract-api.ts","sources":[]},{"output":"web-search-provider.js","sha256":"b2f817fa2430d9d5ec41500edf23e6be379e4e1098fef1ce037c793e51ea6546","facadeSource":"extensions/parallel/web-search-provider.ts","sources":[]}],"unrenderedSources":["extensions/parallel/src/parallel-free-web-search-provider.shared.ts","extensions/parallel/web-search-contract-api.ts","extensions/parallel/web-search-provider.ts"]}
package/dist/index.js CHANGED
@@ -1,14 +1,45 @@
1
- import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./.setup/parallel-free-web-search-provider-Bc9ZvxIO.mjs";
1
+ import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./.setup/parallel-free-web-search-provider-DoGZWApA.mjs";
2
2
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
3
- //#region extensions/parallel/index.ts
3
+ import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
4
+ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
5
+ // extensions/parallel/src/decision-provider.ts
6
+ const loadRuntime = createLazyRuntimeModule(() => import("./.setup/decision-provider.runtime-2QPWIK1O.mjs"));
7
+ function buildParallelDecisionProvider() {
8
+ return {
9
+ id: "parallel",
10
+ contractVersion: 2,
11
+ async evaluate(batch, context) {
12
+ context.signal.throwIfAborted();
13
+ const { evaluateParallelDecision } = await loadRuntime();
14
+ context.signal.throwIfAborted();
15
+ return evaluateParallelDecision(batch, context);
16
+ }
17
+ };
18
+ }
19
+ // extensions/parallel/index.ts
4
20
  var parallel_default = definePluginEntry({
5
21
  id: "parallel",
6
22
  name: "Parallel Plugin",
7
- description: "Bundled Parallel web search plugin",
23
+ description: "Bundled Parallel web search and Decisions plugin",
8
24
  register(api) {
25
+ api.registerProvider({
26
+ id: "parallel",
27
+ label: "Parallel",
28
+ docsPath: "/tools/parallel-search#decisions",
29
+ envVars: ["PARALLEL_API_KEY"],
30
+ auth: [createProviderApiKeyAuthMethod({
31
+ providerId: "parallel",
32
+ methodId: "api-key",
33
+ label: "Parallel API key",
34
+ optionKey: "parallelApiKey",
35
+ flagName: "--parallel-api-key",
36
+ envVar: "PARALLEL_API_KEY",
37
+ promptMessage: "Enter Parallel API key"
38
+ })]
39
+ });
40
+ api.registerDecisionProvider(buildParallelDecisionProvider());
9
41
  api.registerWebSearchProvider(createParallelFreeWebSearchProvider());
10
42
  api.registerWebSearchProvider(createParallelWebSearchProvider());
11
43
  }
12
44
  });
13
- //#endregion
14
45
  export { parallel_default as default };
@@ -1,2 +1,2 @@
1
- export { t as createParallelFreeWebSearchProvider, n as createParallelWebSearchProvider } from "./.setup/parallel-free-web-search-provider-Bc9ZvxIO.mjs";
1
+ export { t as createParallelFreeWebSearchProvider, n as createParallelWebSearchProvider } from "./.setup/parallel-free-web-search-provider-DoGZWApA.mjs";
2
2
  import "./web-search-provider.js";
@@ -1 +1 @@
1
- export { t as createParallelFreeWebSearchProvider, n as createParallelWebSearchProvider } from "./.setup/parallel-free-web-search-provider-Bc9ZvxIO.mjs";
1
+ export { t as createParallelFreeWebSearchProvider, n as createParallelWebSearchProvider } from "./.setup/parallel-free-web-search-provider-DoGZWApA.mjs";
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "parallel",
3
- "categories": ["web"],
3
+ "categories": [
4
+ "web"
5
+ ],
4
6
  "activation": {
5
7
  "onStartup": false
6
8
  },
@@ -8,7 +10,9 @@
8
10
  "providers": [
9
11
  {
10
12
  "id": "parallel",
11
- "envVars": ["PARALLEL_API_KEY"]
13
+ "envVars": [
14
+ "PARALLEL_API_KEY"
15
+ ]
12
16
  }
13
17
  ]
14
18
  },
@@ -25,14 +29,22 @@
25
29
  }
26
30
  },
27
31
  "contracts": {
28
- "webSearchProviders": ["parallel", "parallel-free"]
32
+ "webSearchProviders": [
33
+ "parallel",
34
+ "parallel-free"
35
+ ],
36
+ "decisionProviders": [
37
+ "parallel"
38
+ ]
29
39
  },
30
40
  "configGroups": [
31
41
  {
32
42
  "id": "web-search",
33
43
  "title": "Web search",
34
44
  "order": 10,
35
- "properties": ["webSearch"]
45
+ "properties": [
46
+ "webSearch"
47
+ ]
36
48
  }
37
49
  ],
38
50
  "configSchema": {
@@ -44,7 +56,10 @@
44
56
  "additionalProperties": false,
45
57
  "properties": {
46
58
  "apiKey": {
47
- "type": ["string", "object"]
59
+ "type": [
60
+ "string",
61
+ "object"
62
+ ]
48
63
  },
49
64
  "baseUrl": {
50
65
  "type": "string"
@@ -52,5 +67,87 @@
52
67
  }
53
68
  }
54
69
  }
55
- }
70
+ },
71
+ "providers": [
72
+ "parallel"
73
+ ],
74
+ "providerEndpoints": [
75
+ {
76
+ "endpointClass": "parallel-native",
77
+ "hosts": [
78
+ "api.parallel.ai"
79
+ ]
80
+ }
81
+ ],
82
+ "modelCatalog": {
83
+ "providers": {
84
+ "parallel": {
85
+ "baseUrl": "https://api.parallel.ai/v1",
86
+ "models": [
87
+ {
88
+ "id": "decisions-fast",
89
+ "name": "Parallel: Decisions Fast",
90
+ "input": [
91
+ "text"
92
+ ],
93
+ "inference": {
94
+ "chat": false,
95
+ "decision": {
96
+ "protocol": "parallel-decisions",
97
+ "input": [
98
+ "text"
99
+ ],
100
+ "questions": {
101
+ "boolean": {
102
+ "probabilities": "boolean",
103
+ "abstention": false
104
+ },
105
+ "choice": {
106
+ "probabilities": "categorical",
107
+ "abstention": false,
108
+ "minOptions": 2,
109
+ "maxOptions": 255
110
+ },
111
+ "score": {
112
+ "probabilities": "categorical",
113
+ "abstention": false,
114
+ "minOptions": 2,
115
+ "maxOptions": 10
116
+ }
117
+ },
118
+ "grounding": {
119
+ "webSearch": true
120
+ },
121
+ "limits": {
122
+ "maxQuestions": 100,
123
+ "maxStateAndQuestionTokens": 32000
124
+ },
125
+ "billing": {
126
+ "unit": "requests",
127
+ "source": "provider-docs"
128
+ }
129
+ }
130
+ }
131
+ }
132
+ ]
133
+ }
134
+ }
135
+ },
136
+ "providerAuthChoices": [
137
+ {
138
+ "provider": "parallel",
139
+ "method": "api-key",
140
+ "choiceId": "parallel-api-key",
141
+ "appGuidedSecret": true,
142
+ "credentialOnly": true,
143
+ "choiceLabel": "Parallel API key",
144
+ "groupId": "parallel",
145
+ "groupLabel": "Parallel",
146
+ "groupHint": "Web-grounded Decisions",
147
+ "optionKey": "parallelApiKey",
148
+ "cliFlag": "--parallel-api-key",
149
+ "cliOption": "--parallel-api-key <key>",
150
+ "cliDescription": "Parallel API key"
151
+ }
152
+ ]
56
153
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openclaw/parallel-plugin",
3
- "version": "2026.11.5",
4
- "description": "OpenClaw Parallel web search plugin.",
3
+ "version": "2026.11.10-beta.1",
4
+ "description": "OpenClaw Parallel web search and Decisions plugin.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/openclaw/openclaw"
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.6.8"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.11.5"
21
+ "pluginApi": ">=2026.11.10-beta.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.11.5",
24
+ "openclawVersion": "2026.11.10-beta.1",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -40,7 +40,7 @@
40
40
  "assets/activity.svg"
41
41
  ],
42
42
  "peerDependencies": {
43
- "openclaw": ">=2026.11.5"
43
+ "openclaw": ">=2026.11.10-beta.1"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {