@openclaw/perplexity-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/dist/.setup/{perplexity-web-search-provider-RWOL37q-.mjs → perplexity-web-search-provider-Dg_FWVaV.mjs} +53 -51
- package/dist/.setup/{perplexity-web-search-provider.runtime-Cz7e5C5L.mjs → perplexity-web-search-provider.runtime-Cdl_3QK8.mjs} +2 -3
- package/dist/.source-module-urls/cbd080941ec33aebae656017715967ccf4d1debe03c6345561b3c6ce176cef03.json +1 -0
- package/dist/decision-provider.js +31 -0
- package/dist/decision-provider.runtime.js +31 -0
- package/dist/index.js +4 -3
- package/dist/web-search-contract-api.js +1 -1
- package/dist/web-search-provider.js +1 -1
- package/openclaw.plugin.json +98 -5
- package/package.json +4 -4
- package/dist/.source-module-urls/55bce1209cd2907433d52e5a8d50a504c35f1f14230847335c4ef1c3a9fce6f5.json +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
2
|
import { WEB_SEARCH_QUERY_COUNT_PROPERTIES, createWebSearchProviderContractFields, mergeScopedSearchConfig, resolveProviderWebSearchPluginConfig } from "openclaw/plugin-sdk/provider-web-search-config-contract";
|
|
3
3
|
import { asNonArrayRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
|
-
|
|
4
|
+
// extensions/perplexity/src/perplexity-web-search-provider.shared.ts
|
|
5
5
|
const DEFAULT_PERPLEXITY_BASE_URL = "https://openrouter.ai/api/v1";
|
|
6
6
|
const PERPLEXITY_DIRECT_BASE_URL = "https://api.perplexity.ai";
|
|
7
7
|
const DEFAULT_PERPLEXITY_MODEL = "perplexity/sonar-pro";
|
|
@@ -31,10 +31,58 @@ function resolvePerplexityRuntime(perplexity, auth) {
|
|
|
31
31
|
transport: hasPerplexityLegacyOverride(perplexity) || !isDirectPerplexityBaseUrl(baseUrl) ? "chat_completions" : "search_api"
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
//#region extensions/perplexity/src/perplexity-web-search-provider.ts
|
|
34
|
+
// extensions/perplexity/src/perplexity-web-search-provider.ts
|
|
36
35
|
const PERPLEXITY_CREDENTIAL_PATH = "plugins.entries.perplexity.config.webSearch.apiKey";
|
|
37
|
-
const loadPerplexityWebSearchRuntime = createLazyRuntimeModule(() => import("./perplexity-web-search-provider.runtime-
|
|
36
|
+
const loadPerplexityWebSearchRuntime = createLazyRuntimeModule(() => import("./perplexity-web-search-provider.runtime-Cdl_3QK8.mjs"));
|
|
37
|
+
const PerplexityChatSchema = {
|
|
38
|
+
type: "object",
|
|
39
|
+
properties: {
|
|
40
|
+
...WEB_SEARCH_QUERY_COUNT_PROPERTIES,
|
|
41
|
+
freshness: {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "Filter by time: 'day' (24h), 'week', 'month', or 'year'."
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
required: ["query"]
|
|
47
|
+
};
|
|
48
|
+
const PerplexitySearchSchema = {
|
|
49
|
+
...PerplexityChatSchema,
|
|
50
|
+
properties: {
|
|
51
|
+
...PerplexityChatSchema.properties,
|
|
52
|
+
country: {
|
|
53
|
+
type: "string",
|
|
54
|
+
description: "Native Perplexity Search API only. 2-letter country code."
|
|
55
|
+
},
|
|
56
|
+
language: {
|
|
57
|
+
type: "string",
|
|
58
|
+
description: "Native Perplexity Search API only. ISO 639-1 language code."
|
|
59
|
+
},
|
|
60
|
+
date_after: {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "Native Perplexity Search API only. Only results published after this date (YYYY-MM-DD)."
|
|
63
|
+
},
|
|
64
|
+
date_before: {
|
|
65
|
+
type: "string",
|
|
66
|
+
description: "Native Perplexity Search API only. Only results published before this date (YYYY-MM-DD)."
|
|
67
|
+
},
|
|
68
|
+
domain_filter: {
|
|
69
|
+
type: "array",
|
|
70
|
+
items: { type: "string" },
|
|
71
|
+
description: "Native Perplexity Search API only. Domain filter (max 20)."
|
|
72
|
+
},
|
|
73
|
+
max_tokens: {
|
|
74
|
+
type: "integer",
|
|
75
|
+
description: "Native Perplexity Search API only. Total content budget across all results.",
|
|
76
|
+
minimum: 1,
|
|
77
|
+
maximum: 1e6
|
|
78
|
+
},
|
|
79
|
+
max_tokens_per_page: {
|
|
80
|
+
type: "integer",
|
|
81
|
+
description: "Native Perplexity Search API only. Max tokens extracted per page.",
|
|
82
|
+
minimum: 1
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
38
86
|
function createPerplexityWebSearchProvider() {
|
|
39
87
|
return {
|
|
40
88
|
id: "perplexity",
|
|
@@ -60,54 +108,9 @@ function createPerplexityWebSearchProvider() {
|
|
|
60
108
|
createTool: (ctx) => {
|
|
61
109
|
const searchConfig = mergeScopedSearchConfig(ctx.searchConfig, "perplexity", resolveProviderWebSearchPluginConfig(ctx.config, "perplexity"));
|
|
62
110
|
const schemaTransport = ctx.runtimeMetadata?.perplexityTransport ?? (hasPerplexityLegacyOverride(resolvePerplexityConfig(searchConfig)) ? "chat_completions" : void 0);
|
|
63
|
-
const properties = {
|
|
64
|
-
...WEB_SEARCH_QUERY_COUNT_PROPERTIES,
|
|
65
|
-
freshness: {
|
|
66
|
-
type: "string",
|
|
67
|
-
description: "Filter by time: 'day' (24h), 'week', 'month', or 'year'."
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
if (schemaTransport !== "chat_completions") {
|
|
71
|
-
properties.country = {
|
|
72
|
-
type: "string",
|
|
73
|
-
description: "Native Perplexity Search API only. 2-letter country code."
|
|
74
|
-
};
|
|
75
|
-
properties.language = {
|
|
76
|
-
type: "string",
|
|
77
|
-
description: "Native Perplexity Search API only. ISO 639-1 language code."
|
|
78
|
-
};
|
|
79
|
-
properties.date_after = {
|
|
80
|
-
type: "string",
|
|
81
|
-
description: "Native Perplexity Search API only. Only results published after this date (YYYY-MM-DD)."
|
|
82
|
-
};
|
|
83
|
-
properties.date_before = {
|
|
84
|
-
type: "string",
|
|
85
|
-
description: "Native Perplexity Search API only. Only results published before this date (YYYY-MM-DD)."
|
|
86
|
-
};
|
|
87
|
-
properties.domain_filter = {
|
|
88
|
-
type: "array",
|
|
89
|
-
items: { type: "string" },
|
|
90
|
-
description: "Native Perplexity Search API only. Domain filter (max 20)."
|
|
91
|
-
};
|
|
92
|
-
properties.max_tokens = {
|
|
93
|
-
type: "integer",
|
|
94
|
-
description: "Native Perplexity Search API only. Total content budget across all results.",
|
|
95
|
-
minimum: 1,
|
|
96
|
-
maximum: 1e6
|
|
97
|
-
};
|
|
98
|
-
properties.max_tokens_per_page = {
|
|
99
|
-
type: "integer",
|
|
100
|
-
description: "Native Perplexity Search API only. Max tokens extracted per page.",
|
|
101
|
-
minimum: 1
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
111
|
return {
|
|
105
112
|
description: schemaTransport === "chat_completions" ? "Search the web using Perplexity Sonar via Perplexity/OpenRouter chat completions. Returns AI-synthesized answers with citations from web-grounded search." : "Search the web using Perplexity. Runtime routing decides between native Search API and Sonar chat-completions compatibility. Structured filters are available on the native Search API path.",
|
|
106
|
-
parameters:
|
|
107
|
-
type: "object",
|
|
108
|
-
properties,
|
|
109
|
-
required: ["query"]
|
|
110
|
-
},
|
|
113
|
+
parameters: schemaTransport === "chat_completions" ? PerplexityChatSchema : PerplexitySearchSchema,
|
|
111
114
|
execute: async (args, context) => {
|
|
112
115
|
context?.signal?.throwIfAborted();
|
|
113
116
|
const { executePerplexitySearch } = await loadPerplexityWebSearchRuntime();
|
|
@@ -117,5 +120,4 @@ function createPerplexityWebSearchProvider() {
|
|
|
117
120
|
}
|
|
118
121
|
};
|
|
119
122
|
}
|
|
120
|
-
//#endregion
|
|
121
123
|
export { resolvePerplexityRuntime as i, isDirectPerplexityBaseUrl as n, resolvePerplexityConfig as r, createPerplexityWebSearchProvider as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as resolvePerplexityRuntime, n as isDirectPerplexityBaseUrl, r as resolvePerplexityConfig } from "./perplexity-web-search-provider-
|
|
1
|
+
import { i as resolvePerplexityRuntime, n as isDirectPerplexityBaseUrl, r as resolvePerplexityConfig } from "./perplexity-web-search-provider-Dg_FWVaV.mjs";
|
|
2
2
|
import { normalizeOptionalString, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { sha256Hex } from "openclaw/plugin-sdk/node-crypto-runtime";
|
|
4
4
|
import { readProviderJsonResponse, resolveProviderRequestHeaders } from "openclaw/plugin-sdk/provider-http";
|
|
5
5
|
import { omitNullRequestHeaders } from "openclaw/plugin-sdk/provider-request-headers";
|
|
6
6
|
import { DEFAULT_SEARCH_COUNT, buildSearchCacheKey, externalContentStamp, isoToPerplexityDate, normalizeFreshness, parseWebSearchTimeFilters, readCachedSearchPayload, readConfiguredSecretString, readPositiveIntegerParam, readProviderEnvValue, readStringArrayParam, readStringParam, readWebSearchQueryAndCount, resolveSearchCacheTtlMs, resolveSearchCount, resolveSearchTimeoutSeconds, resolveSiteName, throwWebSearchApiError, withTrustedWebSearchEndpoint, wrapWebContent, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
|
|
7
|
-
|
|
7
|
+
// extensions/perplexity/src/perplexity-web-search-provider.runtime.ts
|
|
8
8
|
const PERPLEXITY_SEARCH_ENDPOINT = "https://api.perplexity.ai/search";
|
|
9
9
|
function resolvePerplexityApiKey(perplexity) {
|
|
10
10
|
const fromConfig = readConfiguredSecretString(perplexity?.apiKey, "plugins.entries.perplexity.config.webSearch.apiKey");
|
|
@@ -244,5 +244,4 @@ async function executePerplexitySearch(args, searchConfig, signal) {
|
|
|
244
244
|
writeCachedSearchPayload(cacheKey, payload, cacheTtlMs);
|
|
245
245
|
return payload;
|
|
246
246
|
}
|
|
247
|
-
//#endregion
|
|
248
247
|
export { executePerplexitySearch };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"entries":[{"output":"decision-provider.js","source":"extensions/perplexity/decision-provider.ts"},{"output":"decision-provider.runtime.js","source":"extensions/perplexity/decision-provider.runtime.ts"},{"output":"index.js","source":"extensions/perplexity/index.ts"},{"output":"web-search-contract-api.js","source":"extensions/perplexity/web-search-contract-api.ts"},{"output":"web-search-provider.js","source":"extensions/perplexity/web-search-provider.ts"}],"chunks":[{"output":".setup/perplexity-web-search-provider-Dg_FWVaV.mjs","sha256":"97b6940f0832616bc69268deb9a6cd9b69df60b7248b70a509415c281b53303c","facadeSource":null,"sources":["extensions/perplexity/src/perplexity-web-search-provider.shared.ts","extensions/perplexity/src/perplexity-web-search-provider.ts"]},{"output":".setup/perplexity-web-search-provider.runtime-Cdl_3QK8.mjs","sha256":"3a00c0a5cf4dd0dd97f887ec9ae638b1a9d3915c3820b2aeccd927b4c0baf229","facadeSource":"extensions/perplexity/src/perplexity-web-search-provider.runtime.ts","sources":["extensions/perplexity/src/perplexity-web-search-provider.runtime.ts"]},{"output":"decision-provider.js","sha256":"170c6dbf38fc7874d705de8280125e2aadf134c871a31ce8076ef98596579255","facadeSource":"extensions/perplexity/decision-provider.ts","sources":["extensions/perplexity/decision-provider.ts"]},{"output":"decision-provider.runtime.js","sha256":"af9d3df9b80e8420e3209db81f8efd358a34c1dc9b05097423cc72ee3d2cafc4","facadeSource":"extensions/perplexity/decision-provider.runtime.ts","sources":["extensions/perplexity/decision-provider.runtime.ts"]},{"output":"index.js","sha256":"6f736f3f5e741153597782d3b1fab9b1e15ead887a8f109ddc71c8ceaec4bba7","facadeSource":"extensions/perplexity/index.ts","sources":["extensions/perplexity/index.ts"]},{"output":"web-search-contract-api.js","sha256":"a791d2af5d23351a76011ad96239d731a61a36cc517777c0a555a8c6cde6209a","facadeSource":"extensions/perplexity/web-search-contract-api.ts","sources":[]},{"output":"web-search-provider.js","sha256":"e01cfcab6b7dbf194201e213a53aa7c7af217eac7c35e1180d445a40c0c03ba1","facadeSource":"extensions/perplexity/web-search-provider.ts","sources":[]}],"unrenderedSources":["extensions/perplexity/web-search-contract-api.ts","extensions/perplexity/web-search-provider.ts"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
|
+
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
3
|
+
// extensions/perplexity/decision-provider.ts
|
|
4
|
+
const loadRuntime = createLazyRuntimeModule(() => import("./decision-provider.runtime.js"));
|
|
5
|
+
function buildPerplexityDecisionProvider() {
|
|
6
|
+
return {
|
|
7
|
+
id: "perplexity-decisions",
|
|
8
|
+
contractVersion: 2,
|
|
9
|
+
provider: {
|
|
10
|
+
label: "Perplexity",
|
|
11
|
+
docsPath: "/providers/perplexity-provider#decision-models",
|
|
12
|
+
envVars: ["PERPLEXITY_API_KEY"],
|
|
13
|
+
auth: [createProviderApiKeyAuthMethod({
|
|
14
|
+
providerId: "perplexity-decisions",
|
|
15
|
+
methodId: "api-key",
|
|
16
|
+
label: "Perplexity API key",
|
|
17
|
+
optionKey: "perplexityApiKey",
|
|
18
|
+
flagName: "--perplexity-api-key",
|
|
19
|
+
envVar: "PERPLEXITY_API_KEY",
|
|
20
|
+
promptMessage: "Enter your Perplexity API key"
|
|
21
|
+
})]
|
|
22
|
+
},
|
|
23
|
+
async evaluate(batch, context) {
|
|
24
|
+
context.signal.throwIfAborted();
|
|
25
|
+
const { evaluatePerplexityDecision } = await loadRuntime();
|
|
26
|
+
context.signal.throwIfAborted();
|
|
27
|
+
return evaluatePerplexityDecision(batch, context);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export { buildPerplexityDecisionProvider };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { decodeSystemOneResponse, encodeSystemOneQuestions, validateDecisionBatchV2, validateDecisionResultV2 } from "openclaw/plugin-sdk/decisions";
|
|
2
|
+
import { evaluateDecisionHttp } from "openclaw/plugin-sdk/decisions-http-runtime";
|
|
3
|
+
// extensions/perplexity/decision-provider.runtime.ts
|
|
4
|
+
async function evaluatePerplexityDecision(batch, context) {
|
|
5
|
+
context.signal.throwIfAborted();
|
|
6
|
+
if (context.model.provider !== "perplexity-decisions" || context.model.id !== "pplx-decider-v1.2" || context.model.api !== void 0 || !validateDecisionBatchV2(batch) || batch.state.type !== "text" && batch.state.type !== "json" || context.reasoning !== void 0 && context.reasoning !== "auto" || Object.keys(batch.questions).length > 128 || Object.values(batch.questions).some((q) => q.type !== "boolean" && q.type !== "choice" && q.type !== "score" || q.type === "choice" && Object.keys(q.criteria).length > 255 || q.type === "score" && q.criteria.length > 10)) return {
|
|
7
|
+
status: "unavailable",
|
|
8
|
+
reason: "unsupported-input"
|
|
9
|
+
};
|
|
10
|
+
return evaluateDecisionHttp(context, {
|
|
11
|
+
provider: "perplexity-decisions",
|
|
12
|
+
baseUrl: context.model.baseUrl ?? "https://api.perplexity.ai/v1",
|
|
13
|
+
endpointPath: "decisions",
|
|
14
|
+
body: JSON.stringify({
|
|
15
|
+
model: context.model.id,
|
|
16
|
+
state: batch.state.type === "text" ? batch.state.text : JSON.stringify(batch.state.value),
|
|
17
|
+
questions: encodeSystemOneQuestions(batch)
|
|
18
|
+
}),
|
|
19
|
+
decode: (payload) => {
|
|
20
|
+
const result = decodeSystemOneResponse(batch, payload);
|
|
21
|
+
return validateDecisionResultV2(batch, result) ? {
|
|
22
|
+
status: "ok",
|
|
23
|
+
result
|
|
24
|
+
} : {
|
|
25
|
+
status: "unavailable",
|
|
26
|
+
reason: "invalid-response"
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export { evaluatePerplexityDecision };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { buildPerplexityDecisionProvider } from "./decision-provider.js";
|
|
2
|
+
import { t as createPerplexityWebSearchProvider } from "./.setup/perplexity-web-search-provider-Dg_FWVaV.mjs";
|
|
2
3
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
|
-
|
|
4
|
+
// extensions/perplexity/index.ts
|
|
4
5
|
var perplexity_default = definePluginEntry({
|
|
5
6
|
id: "perplexity",
|
|
6
7
|
name: "Perplexity Plugin",
|
|
7
8
|
description: "Bundled Perplexity plugin",
|
|
8
9
|
register(api) {
|
|
9
10
|
api.registerWebSearchProvider(createPerplexityWebSearchProvider());
|
|
11
|
+
api.registerDecisionProvider(buildPerplexityDecisionProvider());
|
|
10
12
|
}
|
|
11
13
|
});
|
|
12
|
-
//#endregion
|
|
13
14
|
export { perplexity_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { t as createPerplexityWebSearchProvider } from "./.setup/perplexity-web-search-provider-
|
|
1
|
+
export { t as createPerplexityWebSearchProvider } from "./.setup/perplexity-web-search-provider-Dg_FWVaV.mjs";
|
|
2
2
|
import "./web-search-provider.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createPerplexityWebSearchProvider } from "./.setup/perplexity-web-search-provider-
|
|
1
|
+
export { t as createPerplexityWebSearchProvider } from "./.setup/perplexity-web-search-provider-Dg_FWVaV.mjs";
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "perplexity",
|
|
3
|
-
"categories": [
|
|
3
|
+
"categories": [
|
|
4
|
+
"web"
|
|
5
|
+
],
|
|
4
6
|
"activation": {
|
|
5
7
|
"onStartup": false
|
|
6
8
|
},
|
|
@@ -8,7 +10,16 @@
|
|
|
8
10
|
"providers": [
|
|
9
11
|
{
|
|
10
12
|
"id": "perplexity",
|
|
11
|
-
"envVars": [
|
|
13
|
+
"envVars": [
|
|
14
|
+
"PERPLEXITY_API_KEY",
|
|
15
|
+
"OPENROUTER_API_KEY"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "perplexity-decisions",
|
|
20
|
+
"envVars": [
|
|
21
|
+
"PERPLEXITY_API_KEY"
|
|
22
|
+
]
|
|
12
23
|
}
|
|
13
24
|
]
|
|
14
25
|
},
|
|
@@ -29,14 +40,21 @@
|
|
|
29
40
|
}
|
|
30
41
|
},
|
|
31
42
|
"contracts": {
|
|
32
|
-
"webSearchProviders": [
|
|
43
|
+
"webSearchProviders": [
|
|
44
|
+
"perplexity"
|
|
45
|
+
],
|
|
46
|
+
"decisionProviders": [
|
|
47
|
+
"perplexity-decisions"
|
|
48
|
+
]
|
|
33
49
|
},
|
|
34
50
|
"configGroups": [
|
|
35
51
|
{
|
|
36
52
|
"id": "web-search",
|
|
37
53
|
"title": "Web search",
|
|
38
54
|
"order": 10,
|
|
39
|
-
"properties": [
|
|
55
|
+
"properties": [
|
|
56
|
+
"webSearch"
|
|
57
|
+
]
|
|
40
58
|
}
|
|
41
59
|
],
|
|
42
60
|
"configSchema": {
|
|
@@ -48,7 +66,10 @@
|
|
|
48
66
|
"additionalProperties": false,
|
|
49
67
|
"properties": {
|
|
50
68
|
"apiKey": {
|
|
51
|
-
"type": [
|
|
69
|
+
"type": [
|
|
70
|
+
"string",
|
|
71
|
+
"object"
|
|
72
|
+
]
|
|
52
73
|
},
|
|
53
74
|
"baseUrl": {
|
|
54
75
|
"type": "string"
|
|
@@ -59,5 +80,77 @@
|
|
|
59
80
|
}
|
|
60
81
|
}
|
|
61
82
|
}
|
|
83
|
+
},
|
|
84
|
+
"providers": [
|
|
85
|
+
"perplexity-decisions"
|
|
86
|
+
],
|
|
87
|
+
"providerAuthChoices": [
|
|
88
|
+
{
|
|
89
|
+
"provider": "perplexity-decisions",
|
|
90
|
+
"method": "api-key",
|
|
91
|
+
"choiceId": "perplexity-decisions-api-key",
|
|
92
|
+
"appGuidedSecret": true,
|
|
93
|
+
"choiceLabel": "Perplexity API key",
|
|
94
|
+
"groupId": "perplexity-decisions",
|
|
95
|
+
"groupLabel": "Perplexity",
|
|
96
|
+
"optionKey": "perplexityApiKey",
|
|
97
|
+
"cliFlag": "--perplexity-api-key",
|
|
98
|
+
"cliOption": "--perplexity-api-key <key>",
|
|
99
|
+
"cliDescription": "Perplexity API key",
|
|
100
|
+
"credentialOnly": true
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"modelCatalog": {
|
|
104
|
+
"providers": {
|
|
105
|
+
"perplexity-decisions": {
|
|
106
|
+
"baseUrl": "https://api.perplexity.ai/v1",
|
|
107
|
+
"models": [
|
|
108
|
+
{
|
|
109
|
+
"id": "pplx-decider-v1.2",
|
|
110
|
+
"name": "Decider v1.2",
|
|
111
|
+
"inference": {
|
|
112
|
+
"chat": false,
|
|
113
|
+
"decision": {
|
|
114
|
+
"protocol": "perplexity-decisions",
|
|
115
|
+
"input": [
|
|
116
|
+
"text"
|
|
117
|
+
],
|
|
118
|
+
"questions": {
|
|
119
|
+
"boolean": {
|
|
120
|
+
"probabilities": "boolean",
|
|
121
|
+
"abstention": false
|
|
122
|
+
},
|
|
123
|
+
"choice": {
|
|
124
|
+
"probabilities": "categorical",
|
|
125
|
+
"abstention": false,
|
|
126
|
+
"minOptions": 2,
|
|
127
|
+
"maxOptions": 255
|
|
128
|
+
},
|
|
129
|
+
"score": {
|
|
130
|
+
"probabilities": "categorical",
|
|
131
|
+
"abstention": false,
|
|
132
|
+
"minOptions": 2,
|
|
133
|
+
"maxOptions": 10
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"confidence": "provider-specific",
|
|
137
|
+
"reasoning": {
|
|
138
|
+
"modes": [
|
|
139
|
+
"auto"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"limits": {
|
|
143
|
+
"maxQuestions": 128
|
|
144
|
+
},
|
|
145
|
+
"billing": {
|
|
146
|
+
"unit": "tokens",
|
|
147
|
+
"source": "provider-docs"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
62
155
|
}
|
|
63
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/perplexity-plugin",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.10-beta.1",
|
|
4
4
|
"description": "OpenClaw Perplexity 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.11.
|
|
21
|
+
"pluginApi": ">=2026.11.10-beta.1"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.11.
|
|
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.
|
|
43
|
+
"openclaw": ">=2026.11.10-beta.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"index.js","source":"extensions/perplexity/index.ts"},{"output":"web-search-contract-api.js","source":"extensions/perplexity/web-search-contract-api.ts"},{"output":"web-search-provider.js","source":"extensions/perplexity/web-search-provider.ts"}],"chunks":[{"output":".setup/perplexity-web-search-provider-RWOL37q-.mjs","sha256":"2b5c111ff20d7acb33cbf9172efc2eb17a7675712a8a6b8dc04105421fd6eb84","facadeSource":null,"sources":["extensions/perplexity/src/perplexity-web-search-provider.shared.ts","extensions/perplexity/src/perplexity-web-search-provider.ts"]},{"output":".setup/perplexity-web-search-provider.runtime-Cz7e5C5L.mjs","sha256":"c571831c9165113b74db6d62d3ae7be9a6012167a2d5a0c99759c9b3511c855b","facadeSource":"extensions/perplexity/src/perplexity-web-search-provider.runtime.ts","sources":["extensions/perplexity/src/perplexity-web-search-provider.runtime.ts"]},{"output":"index.js","sha256":"dbd5983ae6e9657bdb0ca5861fb966edaa635a1e890144b03a17a5a761cc57bf","facadeSource":"extensions/perplexity/index.ts","sources":["extensions/perplexity/index.ts"]},{"output":"web-search-contract-api.js","sha256":"bc0b4f14a00f3af3c642c6bc35a55041d69dabe9a065945589d9bc356de80553","facadeSource":"extensions/perplexity/web-search-contract-api.ts","sources":[]},{"output":"web-search-provider.js","sha256":"05d98bdb8cc7a542d081283b7f6e01b647de64c5a68133ae6c4b6cb3c1501672","facadeSource":"extensions/perplexity/web-search-provider.ts","sources":[]}],"unrenderedSources":["extensions/perplexity/web-search-contract-api.ts","extensions/perplexity/web-search-provider.ts"]}
|