@herbertgao/pi-extensions 2026.11.2 → 2026.11.3
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/CHANGELOG.md +10 -0
- package/README.md +11 -11
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +1 -1
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +1 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +109 -16
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +5 -1
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +12 -10
- package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +1 -1
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-record-entry.ts +22 -6
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +9 -4
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +167 -7
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +8 -4
- package/node_modules/@narumitw/pi-btw/CHANGELOG.md +259 -0
- package/node_modules/@narumitw/pi-btw/package.json +6 -5
- package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +70 -0
- package/node_modules/@narumitw/pi-caffeinate/package.json +5 -4
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +21 -0
- package/node_modules/pi-commandcode-provider/README.md +18 -6
- package/node_modules/pi-commandcode-provider/index.ts +11 -5
- package/node_modules/pi-commandcode-provider/package.json +1 -1
- package/node_modules/pi-commandcode-provider/src/api-key.ts +26 -10
- package/node_modules/pi-commandcode-provider/src/auth-server.ts +33 -24
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +2 -2
- package/node_modules/pi-commandcode-provider/src/converters.ts +3 -61
- package/node_modules/pi-commandcode-provider/src/core.ts +29 -4
- package/node_modules/pi-commandcode-provider/src/cost.ts +32 -12
- package/node_modules/pi-commandcode-provider/src/oauth.ts +40 -6
- package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -3
- package/node_modules/pi-commandcode-provider/src/runtime.ts +14 -7
- package/node_modules/pi-commandcode-provider/src/transport.ts +6 -3
- package/node_modules/pi-web-access/CHANGELOG.md +22 -0
- package/node_modules/pi-web-access/README.md +31 -12
- package/node_modules/pi-web-access/curator-page.ts +5 -1
- package/node_modules/pi-web-access/curator-server.ts +2 -0
- package/node_modules/pi-web-access/dist/index.js +673 -308
- package/node_modules/pi-web-access/dist/mcp-cli.js +666 -309
- package/node_modules/pi-web-access/gemini-search.ts +12 -4
- package/node_modules/pi-web-access/github-api.ts +1 -1
- package/node_modules/pi-web-access/github-extract.ts +3 -2
- package/node_modules/pi-web-access/index.ts +7 -3
- package/node_modules/pi-web-access/mcp-tool-definitions.ts +1 -1
- package/node_modules/pi-web-access/outcrawl.ts +204 -0
- package/node_modules/pi-web-access/package.json +2 -2
- package/node_modules/pi-web-access/sofya.ts +201 -0
- package/node_modules/pi-web-access/utils.ts +16 -6
- package/node_modules/pi-web-access/web-tool-core.ts +4 -0
- package/package.json +9 -9
|
@@ -20,7 +20,7 @@ export interface TemporaryPricing {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const PRICING_SOURCE_URL = "https://commandcode.ai/docs/resources/pricing-limits"
|
|
23
|
-
export const PRICING_LAST_VERIFIED = "2026-
|
|
23
|
+
export const PRICING_LAST_VERIFIED = "2026-11-04"
|
|
24
24
|
|
|
25
25
|
export const ZERO_MODEL_COST: CommandCodeModelCost = {
|
|
26
26
|
input: 0,
|
|
@@ -39,12 +39,15 @@ export const ZERO_MODEL_COST: CommandCodeModelCost = {
|
|
|
39
39
|
*/
|
|
40
40
|
export const MODEL_COSTS: Readonly<Record<string, CommandCodeModelCost>> = {
|
|
41
41
|
// Free models
|
|
42
|
+
// Free while the stealth preview lasts; no fixed expiry is published.
|
|
43
|
+
"stealth/crouton-alpha": { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
42
44
|
"poolside/laguna-s-2.1-free": { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
43
45
|
"stealth/glyph-cluster:free": { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
44
46
|
// Free while capacity lasts; no fixed expiry is published.
|
|
45
47
|
"reflection/beam:free": { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
46
48
|
|
|
47
49
|
// Open and open-weight models
|
|
50
|
+
"inclusionai/ling-3.1-flash-1019": { input: 0.3, output: 0.9, cacheRead: 0.06, cacheWrite: 0 },
|
|
48
51
|
"ornith/ornith-1.5-122b": { input: 0.16, output: 0.64, cacheRead: 0.02, cacheWrite: 0 },
|
|
49
52
|
"inclusionai/ling-3.1-flash": { input: 0.3, output: 0.9, cacheRead: 0.06, cacheWrite: 0 },
|
|
50
53
|
"mistral/mistral-large-4": { input: 1.36, output: 4.18, cacheRead: 0.14, cacheWrite: 0 },
|
|
@@ -365,6 +368,5 @@ export const MODEL_COSTS: Readonly<Record<string, CommandCodeModelCost>> = {
|
|
|
365
368
|
},
|
|
366
369
|
}
|
|
367
370
|
|
|
368
|
-
//
|
|
369
|
-
// publishes a promotion end date, so tests fail when it needs review.
|
|
371
|
+
// Dated promotions only; remove an entry when the model leaves the API.
|
|
370
372
|
export const TEMPORARY_PRICING: readonly TemporaryPricing[] = []
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommandCodeModel, LoadCommandCodeModelsResult } from "./models.ts"
|
|
2
|
+
import { redactCommandCodeErrorText } from "./overflow.ts"
|
|
2
3
|
|
|
3
4
|
export interface CommandCodeUi {
|
|
4
5
|
notify(message: string, type?: "info" | "warning" | "error"): void
|
|
@@ -31,6 +32,13 @@ export interface CommandCodeRuntimeOptions<TProviderConfig> {
|
|
|
31
32
|
loadCachedModels: () => Promise<readonly CommandCodeModel[]>
|
|
32
33
|
createProviderConfig: (models: readonly CommandCodeModel[]) => TProviderConfig
|
|
33
34
|
getTransport?: () => "unknown" | "provider" | "generate"
|
|
35
|
+
/**
|
|
36
|
+
* Forget the probed transport so the next request re-tries the Provider API.
|
|
37
|
+
* Called by `/commandcode-refresh`, the user's explicit "re-check my
|
|
38
|
+
* account" action, since an account upgraded from Go stays on the generate
|
|
39
|
+
* fallback until the key changes or the host restarts.
|
|
40
|
+
*/
|
|
41
|
+
resetTransport?: () => void
|
|
34
42
|
getStreamWarning?: () => string | undefined
|
|
35
43
|
now?: () => number
|
|
36
44
|
logWarning?: (message: string) => void
|
|
@@ -71,15 +79,13 @@ function redactUrl(value: string): string {
|
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Diagnostics drop URL query strings and fragments entirely, then apply the
|
|
84
|
+
* same credential redaction as error messages so both surfaces agree.
|
|
85
|
+
*/
|
|
74
86
|
export function redactDiagnosticText(value: string): string {
|
|
75
87
|
const redactedUrls = value.replace(/https?:\/\/[^\s)]+/gi, (match) => redactUrl(match))
|
|
76
|
-
return redactedUrls
|
|
77
|
-
.replace(/\bBearer\s+[A-Za-z0-9._~+/=-]+/gi, `Bearer ${REDACTED}`)
|
|
78
|
-
.replace(/\b(?:user|cc)_[A-Za-z0-9_-]{8,}\b/gi, REDACTED)
|
|
79
|
-
.replace(/\b(?:api[-_ ]?key|token|secret|password)\s*[=:]\s*[^\s,;)]+/gi, (match) => {
|
|
80
|
-
const separator = match.match(/\s*[=:]\s*/)?.[0] ?? "="
|
|
81
|
-
return `${match.slice(0, match.indexOf(separator))}${separator}${REDACTED}`
|
|
82
|
-
})
|
|
88
|
+
return redactCommandCodeErrorText(redactedUrls)
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
export function redactEndpoint(value: string): string {
|
|
@@ -291,6 +297,7 @@ export class CommandCodeRuntime<TProviderConfig, TContext extends CommandCodeCom
|
|
|
291
297
|
description: "Refresh the Command Code model catalog",
|
|
292
298
|
handler: async (_args, ctx) => {
|
|
293
299
|
await ctx.waitForIdle?.()
|
|
300
|
+
this.options.resetTransport?.()
|
|
294
301
|
const result = await this.refresh()
|
|
295
302
|
if (result.refreshed) {
|
|
296
303
|
ctx.ui.notify(
|
|
@@ -41,6 +41,7 @@ async function isUpgradeRequired(response: Response): Promise<boolean> {
|
|
|
41
41
|
|
|
42
42
|
export function createCommandCodeTransportRouter(deps: TransportDependencies) {
|
|
43
43
|
let transport: CommandCodeTransport = "unknown"
|
|
44
|
+
let generation = 0
|
|
44
45
|
let apiKey: string | undefined
|
|
45
46
|
|
|
46
47
|
function pipe(
|
|
@@ -58,6 +59,7 @@ export function createCommandCodeTransportRouter(deps: TransportDependencies) {
|
|
|
58
59
|
},
|
|
59
60
|
|
|
60
61
|
reset(): void {
|
|
62
|
+
generation += 1
|
|
61
63
|
transport = "unknown"
|
|
62
64
|
apiKey = undefined
|
|
63
65
|
},
|
|
@@ -68,10 +70,11 @@ export function createCommandCodeTransportRouter(deps: TransportDependencies) {
|
|
|
68
70
|
options?: StreamOptions,
|
|
69
71
|
): AssistantMessageEventStreamLike {
|
|
70
72
|
if (options?.apiKey !== apiKey) {
|
|
73
|
+
generation += 1
|
|
71
74
|
apiKey = options?.apiKey
|
|
72
75
|
transport = "unknown"
|
|
73
76
|
}
|
|
74
|
-
const
|
|
77
|
+
const requestGeneration = generation
|
|
75
78
|
if (transport === "generate") return deps.streamGenerate(model, context, options)
|
|
76
79
|
|
|
77
80
|
const output = deps.createStream()
|
|
@@ -96,7 +99,7 @@ export function createCommandCodeTransportRouter(deps: TransportDependencies) {
|
|
|
96
99
|
try {
|
|
97
100
|
for await (const event of providerStream) {
|
|
98
101
|
if (!upgradeRequired) {
|
|
99
|
-
if (
|
|
102
|
+
if (generation === requestGeneration) transport = "provider"
|
|
100
103
|
output.push(event)
|
|
101
104
|
}
|
|
102
105
|
}
|
|
@@ -108,7 +111,7 @@ export function createCommandCodeTransportRouter(deps: TransportDependencies) {
|
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
if (upgradeRequired) {
|
|
111
|
-
if (
|
|
114
|
+
if (generation === requestGeneration) transport = "generate"
|
|
112
115
|
await pipe(deps.streamGenerate(model, context, options), output)
|
|
113
116
|
}
|
|
114
117
|
output.end()
|
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [0.47.0] - 2026-11-04
|
|
8
|
+
|
|
9
|
+
### Highlights
|
|
10
|
+
|
|
11
|
+
- Two new search options, each used only when you pick it: Sofya, which can filter by site and date, and Outcrawl.
|
|
12
|
+
- If your proxy adds your real API keys, you can now lock it in so the model can't skip it and end up with confusing "bad key" errors.
|
|
13
|
+
- Fetching a GitHub repository now gives you READMEs up to 100K characters instead of cutting them off at 8K.
|
|
14
|
+
- On Windows, cloned GitHub repositories go to your temp folder instead of C:\tmp.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Search with [Sofya](https://sofya.co) using `provider: "sofya"`, configured with `sofyaApiKey` or `SOFYA_API_KEY` (and an optional `sofyaBaseUrl` gateway). It runs only when you name it or list it in `searchRouting`: `auto` and `provider: "all"` never choose it. Domain filters map to Sofya's `include_domains`/`exclude_domains` and are reapplied locally; recency maps to its `freshness` filter. Each search returns at most 20 results. Thanks to [@yusufgurdogan](https://github.com/yusufgurdogan) for [PR #659](https://github.com/nicobailon/pi-web-access/pull/659).
|
|
19
|
+
- Search with [Outcrawl](https://outcrawl.ai) using `provider: "outcrawl"`, configured with `outcrawlApiKey` or `OUTCRAWL_API_KEY` (and an optional `outcrawlBaseUrl` gateway). It runs only when you name it or list it in `searchRouting`: `auto` and `provider: "all"` never choose it. Domain filters become `site:` clauses and are reapplied locally; Outcrawl has no date filter, so recency is not applied. Each search returns at most 20 results. Thanks to [@heydryft](https://github.com/heydryft) for [PR #656](https://github.com/nicobailon/pi-web-access/pull/656).
|
|
20
|
+
- `lockProxy: true` in `web-search.json` makes the `proxy` you set there the only route for `web_search`, `source_check`, and `fetch_content`. A tool call that passes `proxy: ""` (direct connection) or a different proxy now fails before anything is sent, with a message saying to leave `proxy` out, instead of quietly skipping your proxy. This matters when the proxy adds your real API keys and the extension only holds placeholders: a model that sends `proxy: ""` used to get a 401 that looked like a bad key. With `lockProxy` set and no `proxy` configured, every call fails instead of connecting directly. The tool descriptions also tell the model to leave `proxy` out by default. Thanks to [@xiangsheng](https://github.com/xiangsheng) for [#653](https://github.com/nicobailon/pi-web-access/issues/653).
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- On Windows, GitHub repositories cloned by `fetch_content` now go to your temp folder (`%TEMP%\pi-github-repos`) instead of `C:\tmp\pi-github-repos` next to Windows and Program Files. On macOS they move to your per-user temp folder; Linux is unchanged. A `githubClone.clonePath` you set still wins. Thanks to [@bLueriVerLHR](https://github.com/bLueriVerLHR) for [PR #655](https://github.com/nicobailon/pi-web-access/pull/655).
|
|
25
|
+
- `fetch_content` on a GitHub repository now returns READMEs up to 100K characters instead of cutting them at 8K, the same limit used when you fetch a single file. Long results are still shortened to `maxInlineContentChars` in the reply, with the rest readable through `get_search_content`. Thanks to [@huiyi9420](https://github.com/huiyi9420) for [#658](https://github.com/nicobailon/pi-web-access/issues/658).
|
|
26
|
+
|
|
5
27
|
## [0.46.0] - 2026-10-28
|
|
6
28
|
|
|
7
29
|
### Highlights
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Pi Web Access
|
|
6
6
|
|
|
7
|
-
**Web search, content extraction, and video understanding for Pi agent. OpenAI/Codex search, zero-config Exa search, Brave, Parallel, TinyFish, Search1API, Searchinfinity, Querit, Tavily, Firecrawl, Jina, SERPdive, Kagi, Bocha, Ollama, AnySearch, XCrawl, Valyu, xAI/Grok, Mistral, Bright Data SERP, SerpBase, SerpApi, Linkup, Serper, explicit-only Serply, SearchApi, self-hosted SearXNG, degoog metasearch, self-hosted Crawl4AI extraction, keyless DuckDuckGo, keyless Keenable, optional browser-cookie Gemini Web, Kimi Code Plan search, or bring your own API keys.**
|
|
7
|
+
**Web search, content extraction, and video understanding for Pi agent. OpenAI/Codex search, zero-config Exa search, Brave, Parallel, TinyFish, Search1API, Searchinfinity, Querit, Tavily, Firecrawl, Jina, SERPdive, Kagi, Bocha, Ollama, AnySearch, XCrawl, Valyu, xAI/Grok, Mistral, Bright Data SERP, SerpBase, SerpApi, Linkup, Serper, explicit-only Serply, SearchApi, Outcrawl, Sofya, self-hosted SearXNG, degoog metasearch, self-hosted Crawl4AI extraction, keyless DuckDuckGo, keyless Keenable, optional browser-cookie Gemini Web, Kimi Code Plan search, or bring your own API keys.**
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/pi-web-access)
|
|
10
10
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
<https://github.com/user-attachments/assets/cac6a17a-1eeb-4dde-9818-cdf85d8ea98f>
|
|
14
14
|
|
|
15
|
+
## What's new in 0.46
|
|
16
|
+
|
|
17
|
+
https://github.com/user-attachments/assets/e20f3e53-182f-42f5-9551-c29a432f2877
|
|
18
|
+
|
|
19
|
+
Page fetches can now connect the way a browser does, so more sites that block bots send the page: in a test of 68 pages, the extension read 31 instead of 18. Pages that still refuse can be read through Exa or Tabstack. Three new search providers run only when you pick them: Cloudflare, Google through SearchApi, and Tabstack, which returns one cited answer instead of a list of links. Over MCP, the tools take about half as many tokens on every request, and reading a PDF now gives you its text. See the [changelog](CHANGELOG.md#0460---2026-10-28) for everything in this release.
|
|
20
|
+
|
|
15
21
|
## What's new in 0.45
|
|
16
22
|
|
|
17
23
|
https://github.com/user-attachments/assets/d9296f9b-9769-4ca0-8c27-ef1a766afcdc
|
|
@@ -20,7 +26,7 @@ The agent can now pull specific values off a page, like a price or a rate limit,
|
|
|
20
26
|
|
|
21
27
|
## Why Pi Web Access
|
|
22
28
|
|
|
23
|
-
**Zero Config** — Works out of the box with Exa MCP (no API key needed). If you're signed into Pi with a Codex subscription, OpenAI web search can reuse that auth. An active Kimi Code Plan signed in through `/login kimi-coding` enables explicit Kimi search without a separate Open Platform key. Add API keys or endpoints for OpenAI, Brave, Parallel, TinyFish, Search1API, Searchinfinity, Querit, Tavily, Firecrawl, Jina, SERPdive, Kagi, Bocha, Ollama, Valyu, SerpBase, SerpApi, Serper, explicit-only Serply, SearchApi, Exa, Perplexity, Gemini API, or Mistral for more control; configure a self-hosted SearXNG endpoint or a degoog metasearch instance (public `https://degoog.org` by default) for private search; or add a Tabstack key for cited research answers; or opt into browser-cookie access for Gemini Web.
|
|
29
|
+
**Zero Config** — Works out of the box with Exa MCP (no API key needed). If you're signed into Pi with a Codex subscription, OpenAI web search can reuse that auth. An active Kimi Code Plan signed in through `/login kimi-coding` enables explicit Kimi search without a separate Open Platform key. Add API keys or endpoints for OpenAI, Brave, Parallel, TinyFish, Search1API, Searchinfinity, Querit, Tavily, Firecrawl, Jina, SERPdive, Kagi, Bocha, Ollama, Valyu, SerpBase, SerpApi, Serper, explicit-only Serply, SearchApi, Outcrawl, Sofya, Exa, Perplexity, Gemini API, or Mistral for more control; configure a self-hosted SearXNG endpoint or a degoog metasearch instance (public `https://degoog.org` by default) for private search; or add a Tabstack key for cited research answers; or opt into browser-cookie access for Gemini Web.
|
|
24
30
|
|
|
25
31
|
**Video Understanding** — Point it at a YouTube video or local screen recording and ask questions about what's on screen. Full transcripts, visual descriptions, and frame extraction at exact timestamps.
|
|
26
32
|
|
|
@@ -197,7 +203,7 @@ fetch_content({ url: "/path/to/recording.mp4", prompt: "What error appears on sc
|
|
|
197
203
|
|
|
198
204
|
### web_search
|
|
199
205
|
|
|
200
|
-
Search the web via OpenAI, Brave, Parallel, TinyFish, Search1API, Searchinfinity, Querit, Tavily, Firecrawl, Jina, SERPdive, Kagi, Bocha, Ollama, AnySearch, XCrawl, Valyu, xAI, Mistral, Bright Data SERP, SerpBase, SerpApi, Serper, Serply, SearchApi, You.com, keyless Keenable, Ceramic, DeepSeek, Linkup, a 9router gateway, the Cloudflare Web Search API, explicit-only Tabstack Research, self-hosted SearXNG, explicit-only degoog, keyless DuckDuckGo, Exa, Perplexity AI, Gemini, or Kimi. The default `none` workflow makes no summary-generation model call and opens no curator/browser: it returns bounded raw results, identifies the provider used for each query, and stores the full results for retrieval by responseId. The selected search provider may itself be model-backed.
|
|
206
|
+
Search the web via OpenAI, Brave, Parallel, TinyFish, Search1API, Searchinfinity, Querit, Tavily, Firecrawl, Jina, SERPdive, Kagi, Bocha, Ollama, AnySearch, XCrawl, Valyu, xAI, Mistral, Bright Data SERP, SerpBase, SerpApi, Serper, Serply, SearchApi, Outcrawl, Sofya, You.com, keyless Keenable, Ceramic, DeepSeek, Linkup, a 9router gateway, the Cloudflare Web Search API, explicit-only Tabstack Research, self-hosted SearXNG, explicit-only degoog, keyless DuckDuckGo, Exa, Perplexity AI, Gemini, or Kimi. The default `none` workflow makes no summary-generation model call and opens no curator/browser: it returns bounded raw results, identifies the provider used for each query, and stores the full results for retrieval by responseId. The selected search provider may itself be model-backed.
|
|
201
207
|
|
|
202
208
|
```typescript
|
|
203
209
|
web_search({ query: "rust async programming" })
|
|
@@ -223,11 +229,11 @@ web_search({ queries: ["query 1", "query 2"], workflow: "auto-summary" })
|
|
|
223
229
|
| `recencyFilter` | `day`, `week`, `month`, or `year` |
|
|
224
230
|
| `domainFilter` | Limit to domains (prefix with `-` to exclude) |
|
|
225
231
|
| `category` | Exa only: restrict results to a category such as `publication` (research papers), `news`, or `company`; other providers ignore it. Each Exa source lists its published date and authors when Exa returns them, and `publication` results also list the citation count and DOI. Without an API key, if Exa's filtered search is unavailable, the category is added to the query instead |
|
|
226
|
-
| `provider` | Omit it or pass `"auto"` to use the configured provider (auto-selects when no provider or routing is configured). `"all"` searches every eligible provider at once; [All providers](#all-providers) lists the explicit-only providers it skips. Otherwise one name (`openai`, `brave`, `parallel`, `parallel-mcp`, `tinyfish`, `search1api`, `searchinfinity`, `querit`, `tavily`, `you`, `firecrawl`, `jina`, `serpdive`, `kagi`, `bocha`, `ollama`, `anysearch`, `xcrawl`, `valyu`, `xai`, `mistral`, `brightdata`, `serpbase`, `serpapi`, `serper`, `serply`, `searchapi`, `baizhi`, `zai`, `keenable`, `ceramic`, `deepseek`, `linkup`, `ninerouter`, `cloudflare`, `tabstack`, `searxng`, `degoog`, `duckduckgo`, `exa`, `perplexity`, `gemini`, or `kimi`), or several comma-separated names such as `"brave,exa"` to search them at once. An unknown name fails before any request with an error that lists the valid names |
|
|
232
|
+
| `provider` | Omit it or pass `"auto"` to use the configured provider (auto-selects when no provider or routing is configured). `"all"` searches every eligible provider at once; [All providers](#all-providers) lists the explicit-only providers it skips. Otherwise one name (`openai`, `brave`, `parallel`, `parallel-mcp`, `tinyfish`, `search1api`, `searchinfinity`, `querit`, `tavily`, `you`, `firecrawl`, `jina`, `serpdive`, `kagi`, `bocha`, `ollama`, `anysearch`, `xcrawl`, `valyu`, `xai`, `mistral`, `brightdata`, `serpbase`, `serpapi`, `serper`, `serply`, `searchapi`, `outcrawl`, `sofya`, `baizhi`, `zai`, `keenable`, `ceramic`, `deepseek`, `linkup`, `ninerouter`, `cloudflare`, `tabstack`, `searxng`, `degoog`, `duckduckgo`, `exa`, `perplexity`, `gemini`, or `kimi`), or several comma-separated names such as `"brave,exa"` to search them at once. An unknown name fails before any request with an error that lists the valid names |
|
|
227
233
|
| `includeContent` | Fetch full page content from sources in background |
|
|
228
234
|
| `model` | Model ID for this call only, used instead of `openaiSearchModel`, `xaiSearchModel`, `mistralSearchModel`, or Gemini's `searchModel`. Requires `provider` set to exactly one of `openai`, `xai`, `mistral`, or `gemini`. A failure is reported as an error rather than retried with another model or provider, and Gemini uses only its API, never browser cookies. Listed only when `webSearch.allowedProviders` allows one of those providers; not available with `workflow: "summary-review"` or over MCP |
|
|
229
235
|
| `workflow` | `none` (skip curator; fresh-install default), `summary-review` (open curator and auto-generate a summary draft), or `auto-summary` (generate a summary without opening the curator) |
|
|
230
|
-
| `proxy` | http(s) or socks proxy URL for every request in this call; `""` forces a direct connection. `HTTP(S)_PROXY` env vars are ignored. See [Proxy](#proxy-proxy) |
|
|
236
|
+
| `proxy` | http(s) or socks proxy URL for every request in this call; `""` forces a direct connection. Rejected when `lockProxy` is set, unless it matches the configured proxy. `HTTP(S)_PROXY` env vars are ignored. See [Proxy](#proxy-proxy) |
|
|
231
237
|
|
|
232
238
|
Batch searches run up to three queries concurrently. Provider routing and fallback within each query remain sequential. Brave requests share an in-process queue and honor the rate-limit buckets returned in `X-RateLimit-*`; exhausted short windows delay the next request with a small safety margin, while long quota resets fail fast and keep the advertised cooldown active for later queued calls. HTTP 429 responses are retried once after the advertised `Retry-After` or rate-limit reset. Brave's 30-second search deadline covers queueing, cooldown waits, and both request attempts. The queue coordinates one Pi process; separate Pi processes still rely on Brave's 429 response.
|
|
233
239
|
|
|
@@ -262,7 +268,7 @@ fetch_content({ url: "https://example.com/diagram.png" })
|
|
|
262
268
|
| `model` | Gemini model for video and YouTube analysis (default: config, else `gemini-3.6-flash`) |
|
|
263
269
|
| `forceClone` | Clone GitHub repos that exceed the 350MB size threshold |
|
|
264
270
|
| `auth` | `authFetch` profile name for local browser-cookie fetching, or `true` when exactly one profile exists. See [Blocked pages](#blocked-pages) |
|
|
265
|
-
| `proxy` | Proxy URL for this fetch; `""` forces a direct connection. See [Proxy](#proxy-proxy) |
|
|
271
|
+
| `proxy` | Proxy URL for this fetch; `""` forces a direct connection. Rejected when `lockProxy` is set, unless it matches the configured proxy. See [Proxy](#proxy-proxy) |
|
|
266
272
|
| `redirects` | `"same-origin"` refuses redirects that change the scheme, hostname, or port. See `fetchContent.redirects` |
|
|
267
273
|
|
|
268
274
|
For a standing answer-mode model, set both `fetch.answerProvider` and `fetch.answerModel` in `web-search.json`; a per-call `answerModel` takes precedence. Configured answer defaults are opt-in and can send fetched page text to a different provider/model, which may change privacy and cost behavior.
|
|
@@ -312,7 +318,7 @@ source_check({
|
|
|
312
318
|
| `recencyFilter` | `day`, `week`, `month`, or `year` |
|
|
313
319
|
| `domainFilter` | Limit to domains (prefix with `-` to exclude) |
|
|
314
320
|
| `provider` | Same as `web_search`: `"auto"`, `"all"`, one name, or a list such as `"brave,exa"` |
|
|
315
|
-
| `proxy` | http(s) or socks proxy URL for every request in this call; `""` forces a direct connection. See [Proxy](#proxy-proxy) |
|
|
321
|
+
| `proxy` | http(s) or socks proxy URL for every request in this call; `""` forces a direct connection. Rejected when `lockProxy` is set, unless it matches the configured proxy. See [Proxy](#proxy-proxy) |
|
|
316
322
|
|
|
317
323
|
The artifact preserves the `supported`, `contradicted`, `unclear`, or `missing-evidence` claim status schema, source quality hints, SHA-256 content hashes, and passage IDs with exact source offsets. It does not judge the claim: retrieved passages produce `unclear` for manual review, while no passages produce `missing-evidence`. Search and fetch errors remain in the artifact instead of being silently discarded. Artifacts are stored with the session and retrieved through `get_search_content` using the returned `responseId`; paged artifact responses are JSON slices, so request the next `offset` when needed.
|
|
318
324
|
|
|
@@ -447,10 +453,13 @@ An empty string (`""`) forces a direct connection even when a config-level proxy
|
|
|
447
453
|
|
|
448
454
|
The config-level `proxy` applies only to requests made by this extension's tools. Other traffic in the host process — such as the coding agent's own model API calls — is never routed through it, so a configured proxy that is temporarily down cannot break unrelated requests.
|
|
449
455
|
|
|
456
|
+
A tool call can override the config-level `proxy` with `""` or another proxy. Set `"lockProxy": true` to make the configured proxy the only route, for example when the proxy injects real API keys and the extension holds placeholders. Then a call that omits `proxy` or passes the same URL uses the configured proxy, and a call that passes `""` or a different proxy fails before any request is sent, with a message telling the caller to omit `proxy`. `lockProxy` without a configured `proxy` fails every call rather than connecting directly. It covers this extension's tools only, not other network access in the process.
|
|
457
|
+
|
|
450
458
|
```jsonc
|
|
451
459
|
// ~/.pi/agent/web-search.json — global proxy for all tools
|
|
452
460
|
{
|
|
453
|
-
"proxy": "http://mcr:4444"
|
|
461
|
+
"proxy": "http://mcr:4444",
|
|
462
|
+
"lockProxy": true // optional: reject per-call proxy overrides
|
|
454
463
|
}
|
|
455
464
|
```
|
|
456
465
|
|
|
@@ -560,6 +569,8 @@ Config defaults to `~/.pi/agent/web-search.json` when neither `PI_CODING_AGENT_D
|
|
|
560
569
|
"serperApiKey": "$SERPER_API_KEY",
|
|
561
570
|
"serplyApiKey": "$SERPLY_API_KEY",
|
|
562
571
|
"searchapiApiKey": "$SEARCHAPI_API_KEY",
|
|
572
|
+
"outcrawlApiKey": "$OUTCRAWL_API_KEY",
|
|
573
|
+
"sofyaApiKey": "$SOFYA_API_KEY",
|
|
563
574
|
"baizhiApiKey": "$BAIZHI_API_KEY",
|
|
564
575
|
"zaiApiKey": "$ZAI_API_KEY",
|
|
565
576
|
"brightdataApiKey": "$BRIGHTDATA_API_KEY",
|
|
@@ -700,7 +711,7 @@ Config defaults to `~/.pi/agent/web-search.json` when neither `PI_CODING_AGENT_D
|
|
|
700
711
|
|
|
701
712
|
`summaryInstructions` appends custom text to the Requirements section of the summary prompt used by the curator UI and `auto-summary` mode (e.g. `"- Preserve concrete figures verbatim: prices, limits, versions, dates.\n- Name the product version each claim applies to."`). The text is passed verbatim to the summary model, so use one `- ` bullet per requirement. It is additive: the built-in guardrails (no invented sources, explicit weak/conflicting-evidence notes, the Sources section) always stay in place, and curator regeneration feedback is still appended afterwards. Missing, non-string, or blank values leave the default prompt unchanged.
|
|
702
713
|
|
|
703
|
-
All provider API-key fields (`openaiApiKey`, `braveApiKey`, `parallelApiKey`, `tinyfishApiKey`, `search1apiApiKey`, `searchinfinityApiKey`, `queritApiKey`, `tavilyApiKey`, `tabstackApiKey`, `youApiKey`, `jinaApiKey`, `serpdiveApiKey`, `kagiApiKey`, `bochaApiKey`, `ollamaApiKey`, `valyuApiKey`, `serpbaseApiKey`, `serpapiApiKey`, `serperApiKey`, `serplyApiKey`, `searchapiApiKey`, `baizhiApiKey`, `zaiApiKey`, `keenableApiKey`, `ceramicApiKey`, `linkupApiKey`, `ninerouterApiKey`, `deepseekApiKey`, `degoogApiKey`, `anysearchApiKey`, `xcrawlApiKey`, `xaiApiKey`, `mistralApiKey`, `brightdataApiKey`, `firecrawlApiKey`, `crawl4aiApiToken`, `exaApiKey`, `perplexityApiKey`, `geminiApiKey`, `datalabApiKey`, and `cloudflareApiKey`) accept explicit credential sources. Use `$NAME` or `${NAME}` to read one named environment variable, or prefix a trusted local shell command with `!` to resolve one value at provider request time. Escape `$$` as a literal leading `$` and `$!` as a literal leading `!`:
|
|
714
|
+
All provider API-key fields (`openaiApiKey`, `braveApiKey`, `parallelApiKey`, `tinyfishApiKey`, `search1apiApiKey`, `searchinfinityApiKey`, `queritApiKey`, `tavilyApiKey`, `tabstackApiKey`, `youApiKey`, `jinaApiKey`, `serpdiveApiKey`, `kagiApiKey`, `bochaApiKey`, `ollamaApiKey`, `valyuApiKey`, `serpbaseApiKey`, `serpapiApiKey`, `serperApiKey`, `serplyApiKey`, `searchapiApiKey`, `outcrawlApiKey`, `sofyaApiKey`, `baizhiApiKey`, `zaiApiKey`, `keenableApiKey`, `ceramicApiKey`, `linkupApiKey`, `ninerouterApiKey`, `deepseekApiKey`, `degoogApiKey`, `anysearchApiKey`, `xcrawlApiKey`, `xaiApiKey`, `mistralApiKey`, `brightdataApiKey`, `firecrawlApiKey`, `crawl4aiApiToken`, `exaApiKey`, `perplexityApiKey`, `geminiApiKey`, `datalabApiKey`, and `cloudflareApiKey`) accept explicit credential sources. Use `$NAME` or `${NAME}` to read one named environment variable, or prefix a trusted local shell command with `!` to resolve one value at provider request time. Escape `$$` as a literal leading `$` and `$!` as a literal leading `!`:
|
|
704
715
|
|
|
705
716
|
```json
|
|
706
717
|
{
|
|
@@ -711,7 +722,7 @@ All provider API-key fields (`openaiApiKey`, `braveApiKey`, `parallelApiKey`, `t
|
|
|
711
722
|
}
|
|
712
723
|
```
|
|
713
724
|
|
|
714
|
-
This syntax applies to provider credentials only; other configuration fields are not interpolated. `firecrawlApiKey`, `crawl4aiApiToken`, `kagiApiKey`, `ollamaApiKey`, `valyuApiKey`, `serpbaseApiKey`, `serpapiApiKey`, `serperApiKey`, `serplyApiKey`, `searchapiApiKey`, `baizhiApiKey`, `zaiApiKey`, `keenableApiKey`, `ceramicApiKey`, `linkupApiKey`, `ninerouterApiKey`, `deepseekApiKey`, `degoogApiKey`, `mistralApiKey`, and `brightdataApiKey` use the same credential-source rules, while API base URLs, `firecrawlApiVersion`, `firecrawlFreshScrape`, `firecrawlPdfMaxPages`, `crawl4aiBaseUrl`, `degoogBaseUrl`, `degoogEngines`, `brightdataSerpZone`, `brightdataUnlockerZone`, and `zaiEndpoint` are literal config values.
|
|
725
|
+
This syntax applies to provider credentials only; other configuration fields are not interpolated. `firecrawlApiKey`, `crawl4aiApiToken`, `kagiApiKey`, `ollamaApiKey`, `valyuApiKey`, `serpbaseApiKey`, `serpapiApiKey`, `serperApiKey`, `serplyApiKey`, `searchapiApiKey`, `outcrawlApiKey`, `sofyaApiKey`, `baizhiApiKey`, `zaiApiKey`, `keenableApiKey`, `ceramicApiKey`, `linkupApiKey`, `ninerouterApiKey`, `deepseekApiKey`, `degoogApiKey`, `mistralApiKey`, and `brightdataApiKey` use the same credential-source rules, while API base URLs, `firecrawlApiVersion`, `firecrawlFreshScrape`, `firecrawlPdfMaxPages`, `crawl4aiBaseUrl`, `degoogBaseUrl`, `degoogEngines`, `brightdataSerpZone`, `brightdataUnlockerZone`, and `zaiEndpoint` are literal config values.
|
|
715
726
|
|
|
716
727
|
A command source is not run while the extension loads or registers tools. Each selected provider request runs it again with a five-second timeout, a 16 KiB output limit, a minimized environment, and a one-line non-empty stdout requirement. Command text and stderr are omitted from errors. On Windows the command runs in Git Bash (or `bash.exe` on `PATH`), like Pi's own `!command` config values, so POSIX syntax such as `$HOME` works; it falls back to `cmd.exe` when no bash is found. These commands are trusted local configuration, not a same-user process isolation boundary; use absolute executable paths and protect the config file. `OP_SESSION_*` and `OP_SERVICE_ACCOUNT_TOKEN`, when present in Pi's environment, are forwarded to trusted resolver commands so 1Password CLI sessions and service accounts can be reused without storing their credentials in config. For example, `"braveApiKey": "!/absolute/path/to/op read 'op://Automation/Brave/credential'"` resolves that item after you replace the executable placeholder with your trusted installation's absolute path, but the `op://` argument is not an authorization boundary: every configured resolver command that receives the token can exercise all vault and item permissions granted to its service account. Prefer a narrowly scoped service account. An explicit source overrides legacy provider environment variables and fails that provider locally rather than falling back with a stale credential. Direct Google Gemini API requests send the resolved key only in the `x-goog-api-key` header, never in the URL.
|
|
717
728
|
|
|
@@ -735,6 +746,8 @@ These providers accept an API base URL for compatible gateways. Environment vari
|
|
|
735
746
|
| `linkupBaseUrl` | `LINKUP_BASE_URL` | `/v1/search` |
|
|
736
747
|
| `mistralSearchBaseUrl` | `MISTRAL_SEARCH_BASE_URL` | `/v1/conversations` |
|
|
737
748
|
| `ollamaBaseUrl` | `PI_OLLAMA_BASE_URL` | `/api/web_search`, `/api/web_fetch` |
|
|
749
|
+
| `outcrawlBaseUrl` | `OUTCRAWL_BASE_URL` | `/v1/search` |
|
|
750
|
+
| `sofyaBaseUrl` | `SOFYA_BASE_URL` | `/v1/search` |
|
|
738
751
|
| `parallelBaseUrl` | `PARALLEL_BASE_URL` | `/v1/search`, `/v1/extract` |
|
|
739
752
|
| `perplexityBaseUrl` | `PERPLEXITY_BASE_URL` | `/search`, `/chat/completions` |
|
|
740
753
|
| `queritBaseUrl` | `QUERIT_BASE_URL` | `/v1/search`, `/v1/contents` |
|
|
@@ -825,11 +838,15 @@ The Baizhi input contract is based on the [published September 16 discovery snap
|
|
|
825
838
|
|
|
826
839
|
**SearchApi.** Set `searchapiApiKey` or `SEARCHAPI_API_KEY` and select `provider: "searchapi"` to query [SearchApi](https://www.searchapi.io)'s Google Search API. SearchApi is explicit-only: it is never chosen by `auto` or `provider: "all"`, but it can be configured as the named provider or added to `searchRouting`. The key is sent as a `Bearer` token in the `Authorization` request header, never in the URL. Domain filters are sent as Google `site:` clauses and reapplied locally; recency maps to SearchApi's `time_period` filter (`last_day`, `last_week`, `last_month`, `last_year`). Each request fetches one Google results page and consumes SearchApi search credits, so a search returns at most 10 results even when `numResults` asks for more; results are trimmed to `numResults` locally. See the [API documentation](https://www.searchapi.io/docs/google).
|
|
827
840
|
|
|
841
|
+
**Outcrawl.** Set `outcrawlApiKey` or `OUTCRAWL_API_KEY` and select `provider: "outcrawl"` to query the [Outcrawl](https://outcrawl.ai) Search API. Outcrawl is explicit-only: it is never chosen by `auto` or `provider: "all"`, but it can be configured as the named provider or added to `searchRouting`. The key is sent as a `Bearer` token in the `Authorization` request header, never in the URL. Domain filters are sent as `site:` clauses and reapplied locally, with a few extra results requested so filtering still fills `numResults`; Outcrawl has no date filter, so `recencyFilter` is not applied. Each search returns at most 20 results and uses Outcrawl credits; there is a free tier of 1,000 credits a month. See the [API documentation](https://outcrawl.ai/docs).
|
|
842
|
+
|
|
843
|
+
**Sofya.** Set `sofyaApiKey` or `SOFYA_API_KEY` and select `provider: "sofya"` to query the [Sofya](https://sofya.co) Search API. Sofya is explicit-only: it is never chosen by `auto` or `provider: "all"`, but it can be configured as the named provider or added to `searchRouting`. The key is sent as a `Bearer` token in the `Authorization` request header, never in the URL. Domain filters are sent as Sofya's `include_domains` and `exclude_domains` (up to 10 each) and reapplied locally; recency maps to its `freshness` filter (`day`, `week`, `month`, `year`). Searches use the `snippets` depth (title, URL and snippet, 1 credit each) and return at most 20 results. Sofya is pay as you go, and GitHub accounts a year or older get free monthly credits. See the [API documentation](https://sofya.co/docs).
|
|
844
|
+
|
|
828
845
|
**You.com.** Set `youApiKey` or `YDC_API_KEY` and select `provider: "you"` to query the [You.com Web Search API](https://you.com/docs/guides/search). You.com is explicit-only: it is never chosen by `auto` or `provider: "all"`, but it can be configured as the named provider or added to `searchRouting`. The key is sent in the `X-API-Key` request header. Domain filters map to `include_domains` and `exclude_domains`, and recency maps to `freshness`. Each request consumes You.com API credits.
|
|
829
846
|
|
|
830
847
|
**Parallel MCP.** Select `provider: "parallel-mcp"` to use Parallel Search MCP without an API key, or add it to `searchRouting`. It is explicit-only and is never chosen by `auto` or `provider: "all"`; the existing `parallel` provider remains the key-required REST API. A configured `parallelApiKey` or `PARALLEL_API_KEY` is sent as an optional Bearer token for higher MCP limits. To use MCP `web_fetch`, add `parallel-mcp` to `fetchRouting.providers` and set `fetchRouting.allowRemoteHostedProviders` to `true`; it is not part of the default fetch route.
|
|
831
848
|
|
|
832
|
-
Without an explicit `$` or `!` source, `OPENAI_API_KEY`, `BRAVE_API_KEY`, `PARALLEL_API_KEY`, `TINYFISH_API_KEY`, `SEARCH1API_KEY`, `SEARCHINFINITY_API_KEY`, `QUERIT_API_KEY`, `TAVILY_API_KEY`, `TABSTACK_API_KEY`, `YDC_API_KEY`, `JINA_API_KEY`, `SERPDIVE_API_KEY`, `KAGI_API_KEY`, `BOCHA_API_KEY`, `OLLAMA_API_KEY`, `SERPBASE_API_KEY`, `SERPAPI_KEY`, `SERPER_API_KEY`, `SERPLY_API_KEY`, `SEARCHAPI_API_KEY`, `BAIZHI_API_KEY`, `ZAI_API_KEY`, `KEENABLE_API_KEY`, `CERAMIC_API_KEY`, `DEEPSEEK_API_KEY`, `LINKUP_API_KEY`, `NINEROUTER_API_KEY`, `ANYSEARCH_API_KEY`, `XCRAWL_API_KEY`, `VALYU_API_KEY`, `XAI_API_KEY`, `MISTRAL_API_KEY`, `BRIGHTDATA_API_KEY`, `FIRECRAWL_API_KEY`, `CRAWL4AI_API_TOKEN`, `DEGOOG_API_KEY`, `EXA_API_KEY`, `GEMINI_API_KEY`, `DATALAB_API_KEY`, `DATALAB_PROCESSING_LOCATION`, `DATALAB_MODE`, `DATALAB_API_BASE`, `PERPLEXITY_API_KEY`, `GOOGLE_GEMINI_BASE_URL`, and `CLOUDFLARE_API_KEY` env vars retain their existing precedence over literal config file values. `openaiResponsesUrl` can point OpenAI `web_search` and `source_check` at a third-party gateway that supports the OpenAI Responses API and web search tool; it is an explicit endpoint override, not derived from Pi model provider settings, and defaults to `https://api.openai.com/v1/responses`. `openaiSearchModel` pins the model id used for OpenAI `web_search`, bypassing automatic selection (newest Luna model, then newest bare `gpt-N` or `gpt-N.N` id, then newest other `gpt-<version>` id; `gpt-6-luna` when only an API key is configured); the id is sent verbatim with whichever OpenAI auth resolves, so gateway-only model ids work too. `xaiSearchModel` similarly pins the xAI search model. `openaiSearchProviders` sets which Pi model providers OpenAI `web_search` resolves login credentials from, in priority order; it defaults to `["openai-codex", "openai"]`, entries that are not registered or not signed in are skipped, and an empty array skips Pi credentials entirely so the `openaiApiKey` / `OPENAI_API_KEY` fallback applies. Useful for choosing between multiple Codex accounts (for example a second account registered by an extension) or forcing API-key billing while signed into Codex. Configured Exa API keys use Exa's own account limits directly; any legacy local `exa-usage.json` file is ignored. `GOOGLE_GEMINI_BASE_URL` overrides the Gemini API host for Gemini generate-content calls such as search, URL context, YouTube, and local video analysis. Set it to a bare host with no trailing slash and no version segment, for example `https://my-gateway.example.com/gemini`; `geminiBaseUrl` is the config-file equivalent. When the configured host contains `gateway.ai.cloudflare.com`, authentication uses `cf-aig-authorization: Bearer <token>` from `CLOUDFLARE_API_KEY` or `cloudflareApiKey`, and `GEMINI_API_KEY` is not required for generate-content calls. Alternatively, set `geminiAuth` to `"adc"` to authenticate Gemini generate-content calls with Google Application Default Credentials (ADC) instead of an API key; calls go to the Vertex AI endpoint (`aiplatform.googleapis.com`) with an OAuth bearer token minted from the ADC file (`GOOGLE_APPLICATION_CREDENTIALS` or `~/.config/gcloud/application_default_credentials.json`, i.e. `gcloud auth application-default login`) or, on Compute Engine, from the metadata server. `geminiProject`/`geminiLocation` set the Vertex project and location and fall back to the `GOOGLE_CLOUD_PROJECT`/`GOOGLE_CLOUD_LOCATION` (or `GCLOUD_PROJECT`) env vars; project and location are required. ADC supports `authorized_user` (OAuth refresh token) and `service_account` (JWT assertion) credential files, and when neither `GOOGLE_APPLICATION_CREDENTIALS` nor `~/.config/gcloud/application_default_credentials.json` exists and Pi runs on Google Compute Engine, ADC uses the attached service account token from the GCE metadata server (`GCE_METADATA_HOST` overrides the host; `METADATA_SERVER_DETECTION=none` disables it); tokens are cached and refreshed from expiry. ADC mode covers search, URL context, and PDF/inline-data extraction; YouTube and local video analysis still go through the Gemini Files API, so they fall back to Gemini Web unless a `GEMINI_API_KEY` is also configured. The access token is treated as a credential and is redacted from errors. Local video file upload still uses Google's Files API directly, so gateway-only video extraction falls back to Gemini Web unless a `GEMINI_API_KEY` is also configured. `provider` or `searchProvider` sets the default search provider and is used when a tool call omits `provider` or sends `"auto"`: `"all"`, `"openai"`, `"brave"`, `"parallel"`, `"parallel-mcp"`, `"tinyfish"`, `"search1api"`, `"searchinfinity"`, `"querit"`, `"tavily"`, `"firecrawl"`, `"jina"`, `"serpdive"`, `"kagi"`, `"bocha"`, `"ollama"`, `"anysearch"`, `"xcrawl"`, `"valyu"`, `"xai"`, `"mistral"`, `"brightdata"`, `"serpbase"`, `"serpapi"`, `"serper"`, `"serply"`, `"searchapi"`, `"you"`, `"baizhi"`, `"zai"`, `"keenable"`, `"ceramic"`, `"deepseek"`, `"ninerouter"`, `"cloudflare"`, `"tabstack"`, `"searxng"`, `"degoog"`, `"exa"`, `"perplexity"`, or `"gemini"`. Parallel MCP, degoog, AnySearch, XCrawl, Valyu, xAI, Mistral, Bright Data, SerpBase, SerpApi, Serper, Serply, You.com, Baizhi, Z.ai, Keenable, Ceramic, DeepSeek, Linkup, 9router, Cloudflare, SearchApi, and Tabstack are never selected by `auto`; choose them explicitly or place them in `searchRouting`. If either single-provider field is configured, it takes precedence over `searchRouting`. Otherwise, `searchRouting` can opt into an ordered `providers` list and an explicit `fallbackOn` list containing `"transient"`, `"quota"`, `"network"`, and/or `"invalid-response"`; only those typed failures continue to the next available candidate. `fallbackOn` may also list `"empty"` (a successful response with no results and no answer) and `"domain-miss"` (no result on a requested include domain; an empty response also counts when an include domain was requested), so a route moves on from a successful but unusable response; if every candidate is weak, the first weak response is returned instead of an error. Both are off unless listed. `searchRouting.timeoutMs` (integer, 1 to 600000) optionally caps one routed search across all candidates, including each candidate's availability check and credential or browser-cookie lookup: when it elapses the in-flight request is aborted, later candidates are not tried, and the first weak response or the exhausted-route diagnostics (with `routing timeout after <N>ms`) are returned. Cancelling the search yourself is still reported as a cancellation, and a named provider is never affected. `"all"` is not valid inside `searchRouting.providers`, because that list defines sequential fallback rather than multi-provider aggregation. Named providers remain strict, and exhausted routes return per-provider diagnostics. `provider` can also be a non-empty array of named providers such as `["brave", "exa"]`; those providers run concurrently using the same aggregation path as `"all"`, while `"auto"` and `"all"` are invalid inside arrays. When every provider in a default array fails and each failure is a `fallbackOn` type, the search continues through the `searchRouting` providers the array did not try; a list given in a tool call (`"brave,exa"` from Pi, or an array over MCP) stays strict. Random, weighted, sticky, and cooldown routing are not enabled. This is also updated automatically when you change the provider in the curator UI. Set `webSearch.enabled` to `false` to unregister the configured search and source-check tools while leaving fetch/content tools available. `toolNames` can opt into alternate public tool names for environments where another extension or model reserves the defaults, without changing behavior: `webSearch`, `sourceCheck`, `fetchContent`, and `getSearchContent` default to `web_search`, `source_check`, `fetch_content`, and `get_search_content`. `workflow` sets the default search workflow: `"none"` (default; raw results, no curator), `"summary-review"` (opens curator with an auto-generated summary draft), or `"auto-summary"` (returns a model-generated summary without opening the browser curator). Overridden per-call via the `workflow` parameter on the configured search tool, or toggled at runtime with `/curator`. `browserCookies.profile` pins Gemini Web cookie lookup to a specific Chromium profile. When omitted, detected Chromium profiles are scanned in stable order and the first profile containing the required Gemini cookies is used. macOS discovery supports Helium, Chrome, Brave, and Arc; Linux discovery supports Chromium and Chrome. `allowBrowserCookies` enables Chromium cookie extraction for Gemini Web; it defaults to `false` to avoid browser data access and surprise macOS Keychain prompts. You can also set `PI_ALLOW_BROWSER_COOKIES=1`. Cookie databases are copied to a temporary read-only working copy; the reader uses `node:sqlite` when available and otherwise tries the `sqlite3` CLI or Python's standard-library SQLite module. `searchModel` overrides the Gemini API model used by the configured search tool without changing URL, YouTube, or video extraction defaults. Gemini API grounded search uses `gemini-3.6-flash` by default; set `searchModel` to choose another model. Gemini Web browser-cookie fallback uses its separate `gemini-3.1-pro` default because Gemini Web relies on private header values; explicitly configured unsupported Web models fail instead of silently falling back to 2.5 Flash. `summaryModel` sets the default model used for generating summary drafts in the curator UI and `auto-summary` mode (e.g. `"anthropic/claude-haiku-4-5"`, `"openai-codex/gpt-5.3-codex-spark"`, or `"openrouter/nvidia/nemotron-3-super-120b-a12b:free"`). Preferred summary and query-rewrite models also resolve through routed provider registrations such as OpenRouter when the native provider is unavailable. When Pi `enabledModels` is configured, summaries are limited to that allowlist; if no enabled summary model is available, the tool returns a deterministic summary instead of calling an unrelated model. `summaryGenerationDeadlineMs` sets the maximum time for one summary model attempt in the curator UI and `auto-summary` mode. It defaults to `30000`, must be a positive integer, and is capped at `600000`. `maxInlineContentChars` sets the direct `fetch_content` content slice and the default and maximum `get_search_content` slice. It defaults to `30000`, must be a positive integer, and is capped at `200000`; full fetched content remains stored for later retrieval. `curatorTimeoutSeconds` controls the initial curator idle timeout (default `20`, max `600`); users can still adjust the timer in the curator UI. `ssrf.allowRanges` lists CIDR ranges (e.g. `"198.18.0.0/15"`, `"fd00::/8"`) exempted from the SSRF guard that otherwise blocks private/reserved IP ranges. This unblocks `fetch_content`/`web_search` on hosts whose network proxy runs in TUN + fake-IP mode (Surge, Clash, Mihomo, Stash, ...), where public domains resolve into a synthetic reserved range. It is **off by default** — the guard stays fully enabled unless you list ranges here. Use the narrowest range that covers your proxy's fake-IP pool. All-address CIDRs such as `0.0.0.0/0` and `::/0` are rejected. `ssrf.trustEnvProxy` is a separate opt-in for networks where only the proxy can resolve hostnames; it skips local DNS preflight only for hostnames sent through the configured `proxy` or, when none is configured, hostnames covered by valid HTTP(S) proxy env vars in sandboxes that route through them, and still blocks localhost, literal private IP targets, and `NO_PROXY` matches. It does not configure proxy transport.
|
|
849
|
+
Without an explicit `$` or `!` source, `OPENAI_API_KEY`, `BRAVE_API_KEY`, `PARALLEL_API_KEY`, `TINYFISH_API_KEY`, `SEARCH1API_KEY`, `SEARCHINFINITY_API_KEY`, `QUERIT_API_KEY`, `TAVILY_API_KEY`, `TABSTACK_API_KEY`, `YDC_API_KEY`, `JINA_API_KEY`, `SERPDIVE_API_KEY`, `KAGI_API_KEY`, `BOCHA_API_KEY`, `OLLAMA_API_KEY`, `SERPBASE_API_KEY`, `SERPAPI_KEY`, `SERPER_API_KEY`, `SERPLY_API_KEY`, `SEARCHAPI_API_KEY`, `OUTCRAWL_API_KEY`, `SOFYA_API_KEY`, `BAIZHI_API_KEY`, `ZAI_API_KEY`, `KEENABLE_API_KEY`, `CERAMIC_API_KEY`, `DEEPSEEK_API_KEY`, `LINKUP_API_KEY`, `NINEROUTER_API_KEY`, `ANYSEARCH_API_KEY`, `XCRAWL_API_KEY`, `VALYU_API_KEY`, `XAI_API_KEY`, `MISTRAL_API_KEY`, `BRIGHTDATA_API_KEY`, `FIRECRAWL_API_KEY`, `CRAWL4AI_API_TOKEN`, `DEGOOG_API_KEY`, `EXA_API_KEY`, `GEMINI_API_KEY`, `DATALAB_API_KEY`, `DATALAB_PROCESSING_LOCATION`, `DATALAB_MODE`, `DATALAB_API_BASE`, `PERPLEXITY_API_KEY`, `GOOGLE_GEMINI_BASE_URL`, and `CLOUDFLARE_API_KEY` env vars retain their existing precedence over literal config file values. `openaiResponsesUrl` can point OpenAI `web_search` and `source_check` at a third-party gateway that supports the OpenAI Responses API and web search tool; it is an explicit endpoint override, not derived from Pi model provider settings, and defaults to `https://api.openai.com/v1/responses`. `openaiSearchModel` pins the model id used for OpenAI `web_search`, bypassing automatic selection (newest Luna model, then newest bare `gpt-N` or `gpt-N.N` id, then newest other `gpt-<version>` id; `gpt-6-luna` when only an API key is configured); the id is sent verbatim with whichever OpenAI auth resolves, so gateway-only model ids work too. `xaiSearchModel` similarly pins the xAI search model. `openaiSearchProviders` sets which Pi model providers OpenAI `web_search` resolves login credentials from, in priority order; it defaults to `["openai-codex", "openai"]`, entries that are not registered or not signed in are skipped, and an empty array skips Pi credentials entirely so the `openaiApiKey` / `OPENAI_API_KEY` fallback applies. Useful for choosing between multiple Codex accounts (for example a second account registered by an extension) or forcing API-key billing while signed into Codex. Configured Exa API keys use Exa's own account limits directly; any legacy local `exa-usage.json` file is ignored. `GOOGLE_GEMINI_BASE_URL` overrides the Gemini API host for Gemini generate-content calls such as search, URL context, YouTube, and local video analysis. Set it to a bare host with no trailing slash and no version segment, for example `https://my-gateway.example.com/gemini`; `geminiBaseUrl` is the config-file equivalent. When the configured host contains `gateway.ai.cloudflare.com`, authentication uses `cf-aig-authorization: Bearer <token>` from `CLOUDFLARE_API_KEY` or `cloudflareApiKey`, and `GEMINI_API_KEY` is not required for generate-content calls. Alternatively, set `geminiAuth` to `"adc"` to authenticate Gemini generate-content calls with Google Application Default Credentials (ADC) instead of an API key; calls go to the Vertex AI endpoint (`aiplatform.googleapis.com`) with an OAuth bearer token minted from the ADC file (`GOOGLE_APPLICATION_CREDENTIALS` or `~/.config/gcloud/application_default_credentials.json`, i.e. `gcloud auth application-default login`) or, on Compute Engine, from the metadata server. `geminiProject`/`geminiLocation` set the Vertex project and location and fall back to the `GOOGLE_CLOUD_PROJECT`/`GOOGLE_CLOUD_LOCATION` (or `GCLOUD_PROJECT`) env vars; project and location are required. ADC supports `authorized_user` (OAuth refresh token) and `service_account` (JWT assertion) credential files, and when neither `GOOGLE_APPLICATION_CREDENTIALS` nor `~/.config/gcloud/application_default_credentials.json` exists and Pi runs on Google Compute Engine, ADC uses the attached service account token from the GCE metadata server (`GCE_METADATA_HOST` overrides the host; `METADATA_SERVER_DETECTION=none` disables it); tokens are cached and refreshed from expiry. ADC mode covers search, URL context, and PDF/inline-data extraction; YouTube and local video analysis still go through the Gemini Files API, so they fall back to Gemini Web unless a `GEMINI_API_KEY` is also configured. The access token is treated as a credential and is redacted from errors. Local video file upload still uses Google's Files API directly, so gateway-only video extraction falls back to Gemini Web unless a `GEMINI_API_KEY` is also configured. `provider` or `searchProvider` sets the default search provider and is used when a tool call omits `provider` or sends `"auto"`: `"all"`, `"openai"`, `"brave"`, `"parallel"`, `"parallel-mcp"`, `"tinyfish"`, `"search1api"`, `"searchinfinity"`, `"querit"`, `"tavily"`, `"firecrawl"`, `"jina"`, `"serpdive"`, `"kagi"`, `"bocha"`, `"ollama"`, `"anysearch"`, `"xcrawl"`, `"valyu"`, `"xai"`, `"mistral"`, `"brightdata"`, `"serpbase"`, `"serpapi"`, `"serper"`, `"serply"`, `"searchapi"`, `"outcrawl"`, `"sofya"`, `"you"`, `"baizhi"`, `"zai"`, `"keenable"`, `"ceramic"`, `"deepseek"`, `"ninerouter"`, `"cloudflare"`, `"tabstack"`, `"searxng"`, `"degoog"`, `"exa"`, `"perplexity"`, or `"gemini"`. Parallel MCP, degoog, AnySearch, XCrawl, Valyu, xAI, Mistral, Bright Data, SerpBase, SerpApi, Serper, Serply, You.com, Baizhi, Z.ai, Keenable, Ceramic, DeepSeek, Linkup, 9router, Cloudflare, SearchApi, Outcrawl, Sofya, and Tabstack are never selected by `auto`; choose them explicitly or place them in `searchRouting`. If either single-provider field is configured, it takes precedence over `searchRouting`. Otherwise, `searchRouting` can opt into an ordered `providers` list and an explicit `fallbackOn` list containing `"transient"`, `"quota"`, `"network"`, and/or `"invalid-response"`; only those typed failures continue to the next available candidate. `fallbackOn` may also list `"empty"` (a successful response with no results and no answer) and `"domain-miss"` (no result on a requested include domain; an empty response also counts when an include domain was requested), so a route moves on from a successful but unusable response; if every candidate is weak, the first weak response is returned instead of an error. Both are off unless listed. `searchRouting.timeoutMs` (integer, 1 to 600000) optionally caps one routed search across all candidates, including each candidate's availability check and credential or browser-cookie lookup: when it elapses the in-flight request is aborted, later candidates are not tried, and the first weak response or the exhausted-route diagnostics (with `routing timeout after <N>ms`) are returned. Cancelling the search yourself is still reported as a cancellation, and a named provider is never affected. `"all"` is not valid inside `searchRouting.providers`, because that list defines sequential fallback rather than multi-provider aggregation. Named providers remain strict, and exhausted routes return per-provider diagnostics. `provider` can also be a non-empty array of named providers such as `["brave", "exa"]`; those providers run concurrently using the same aggregation path as `"all"`, while `"auto"` and `"all"` are invalid inside arrays. When every provider in a default array fails and each failure is a `fallbackOn` type, the search continues through the `searchRouting` providers the array did not try; a list given in a tool call (`"brave,exa"` from Pi, or an array over MCP) stays strict. Random, weighted, sticky, and cooldown routing are not enabled. This is also updated automatically when you change the provider in the curator UI. Set `webSearch.enabled` to `false` to unregister the configured search and source-check tools while leaving fetch/content tools available. `toolNames` can opt into alternate public tool names for environments where another extension or model reserves the defaults, without changing behavior: `webSearch`, `sourceCheck`, `fetchContent`, and `getSearchContent` default to `web_search`, `source_check`, `fetch_content`, and `get_search_content`. `workflow` sets the default search workflow: `"none"` (default; raw results, no curator), `"summary-review"` (opens curator with an auto-generated summary draft), or `"auto-summary"` (returns a model-generated summary without opening the browser curator). Overridden per-call via the `workflow` parameter on the configured search tool, or toggled at runtime with `/curator`. `browserCookies.profile` pins Gemini Web cookie lookup to a specific Chromium profile. When omitted, detected Chromium profiles are scanned in stable order and the first profile containing the required Gemini cookies is used. macOS discovery supports Helium, Chrome, Brave, and Arc; Linux discovery supports Chromium and Chrome. `allowBrowserCookies` enables Chromium cookie extraction for Gemini Web; it defaults to `false` to avoid browser data access and surprise macOS Keychain prompts. You can also set `PI_ALLOW_BROWSER_COOKIES=1`. Cookie databases are copied to a temporary read-only working copy; the reader uses `node:sqlite` when available and otherwise tries the `sqlite3` CLI or Python's standard-library SQLite module. `searchModel` overrides the Gemini API model used by the configured search tool without changing URL, YouTube, or video extraction defaults. Gemini API grounded search uses `gemini-3.6-flash` by default; set `searchModel` to choose another model. Gemini Web browser-cookie fallback uses its separate `gemini-3.1-pro` default because Gemini Web relies on private header values; explicitly configured unsupported Web models fail instead of silently falling back to 2.5 Flash. `summaryModel` sets the default model used for generating summary drafts in the curator UI and `auto-summary` mode (e.g. `"anthropic/claude-haiku-4-5"`, `"openai-codex/gpt-5.3-codex-spark"`, or `"openrouter/nvidia/nemotron-3-super-120b-a12b:free"`). Preferred summary and query-rewrite models also resolve through routed provider registrations such as OpenRouter when the native provider is unavailable. When Pi `enabledModels` is configured, summaries are limited to that allowlist; if no enabled summary model is available, the tool returns a deterministic summary instead of calling an unrelated model. `summaryGenerationDeadlineMs` sets the maximum time for one summary model attempt in the curator UI and `auto-summary` mode. It defaults to `30000`, must be a positive integer, and is capped at `600000`. `maxInlineContentChars` sets the direct `fetch_content` content slice and the default and maximum `get_search_content` slice. It defaults to `30000`, must be a positive integer, and is capped at `200000`; full fetched content remains stored for later retrieval. `curatorTimeoutSeconds` controls the initial curator idle timeout (default `20`, max `600`); users can still adjust the timer in the curator UI. `ssrf.allowRanges` lists CIDR ranges (e.g. `"198.18.0.0/15"`, `"fd00::/8"`) exempted from the SSRF guard that otherwise blocks private/reserved IP ranges. This unblocks `fetch_content`/`web_search` on hosts whose network proxy runs in TUN + fake-IP mode (Surge, Clash, Mihomo, Stash, ...), where public domains resolve into a synthetic reserved range. It is **off by default** — the guard stays fully enabled unless you list ranges here. Use the narrowest range that covers your proxy's fake-IP pool. All-address CIDRs such as `0.0.0.0/0` and `::/0` are rejected. `ssrf.trustEnvProxy` is a separate opt-in for networks where only the proxy can resolve hostnames; it skips local DNS preflight only for hostnames sent through the configured `proxy` or, when none is configured, hostnames covered by valid HTTP(S) proxy env vars in sandboxes that route through them, and still blocks localhost, literal private IP targets, and `NO_PROXY` matches. It does not configure proxy transport.
|
|
833
850
|
|
|
834
851
|
`searchRouting.fallbackOn` can also list `"off-topic"` to move on when a provider's answer and results have nothing to do with the query, as judged by the classifier model named in `searchRouting.offTopicModel` (`"cloudflare-workers-ai/@cf/cloudflare/clef"`, `"typesafe/jev-latest"`, or `"cloudflare-workers-ai/typesafe/jev-1.14.0"`, with Pi's credentials for that provider); the query, answer and result snippets are sent to that provider on every routed search that returns something. If the check fails, the response is kept. It works only in Pi, not over MCP. [docs/offtopic-judge.md](docs/offtopic-judge.md) has the measurements.
|
|
835
852
|
|
|
@@ -864,7 +881,7 @@ Kimi is explicit-only: it is never chosen by `auto` and never participates in `p
|
|
|
864
881
|
|
|
865
882
|
### All providers
|
|
866
883
|
|
|
867
|
-
Set `provider: "all"` on `web_search` or `source_check`, or configure `"provider": "all"` as the default, to run the same query against every eligible search provider simultaneously. Parallel MCP, degoog, DuckDuckGo, Kimi, AnySearch, XCrawl, Valyu, xAI, Mistral, Bright Data, SerpBase, SerpApi, Serper, Serply, You.com, Baizhi, Z.ai, Keenable, Ceramic, DeepSeek, Linkup, 9router, Cloudflare, SearchApi, and Tabstack are always excluded because they are explicit-only; Bright Data, SerpBase, SerpApi, Serper, Serply, SearchApi, You.com, Ceramic, DeepSeek, Linkup, and Tabstack are paid search APIs, while Baizhi, Z.ai, Kimi, and Mistral may consume account quota or paid search-tool usage, so `all` never spends either resource without an explicit request. Exa remains eligible through its zero-config MCP path, OpenAI can use Pi auth, and other API-backed search providers participate when their API key, local endpoint, or gateway makes them available. Browser-cookie access alone does not opt Gemini into `all`; select Gemini explicitly or configure its API/gateway.
|
|
884
|
+
Set `provider: "all"` on `web_search` or `source_check`, or configure `"provider": "all"` as the default, to run the same query against every eligible search provider simultaneously. Parallel MCP, degoog, DuckDuckGo, Kimi, AnySearch, XCrawl, Valyu, xAI, Mistral, Bright Data, SerpBase, SerpApi, Serper, Serply, You.com, Baizhi, Z.ai, Keenable, Ceramic, DeepSeek, Linkup, 9router, Cloudflare, SearchApi, Outcrawl, Sofya, and Tabstack are always excluded because they are explicit-only; Bright Data, SerpBase, SerpApi, Serper, Serply, SearchApi, Outcrawl, Sofya, You.com, Ceramic, DeepSeek, Linkup, and Tabstack are paid search APIs, while Baizhi, Z.ai, Kimi, and Mistral may consume account quota or paid search-tool usage, so `all` never spends either resource without an explicit request. Exa remains eligible through its zero-config MCP path, OpenAI can use Pi auth, and other API-backed search providers participate when their API key, local endpoint, or gateway makes them available. Browser-cookie access alone does not opt Gemini into `all`; select Gemini explicitly or configure its API/gateway.
|
|
868
885
|
|
|
869
886
|
Successful provider answers are preserved separately while source URLs and inline content are deduplicated, and one provider failure does not discard the other results. If every participating provider fails, the tool returns per-provider diagnostics. Configured Firecrawl participates in `all` like other eligible providers. In the Curator, **All** can also be selected like the other provider buttons. Each participating provider gets its own result card, including a provider badge and independent selection checkbox; failed providers get their own disabled error card. The final summary is generated from the selected provider cards and is what Pi receives. Outside the Curator, the same provider answers remain available as labeled sections in one tool response.
|
|
870
887
|
|
|
@@ -1317,6 +1334,8 @@ Rate limits: Perplexity is capped at 10 requests/minute (client-side). Jina Sear
|
|
|
1317
1334
|
| `serper.ts` | Explicit-only Serper Google SERP provider |
|
|
1318
1335
|
| `serply.ts` | Explicit-only Serply Google SERP provider |
|
|
1319
1336
|
| `searchapi.ts` | Explicit-only SearchApi Google Search provider |
|
|
1337
|
+
| `outcrawl.ts` | Explicit-only Outcrawl search provider |
|
|
1338
|
+
| `sofya.ts` | Explicit-only Sofya search provider |
|
|
1320
1339
|
| `baizhi.ts` | Explicit-only Baizhi Streamable HTTP MCP search provider |
|
|
1321
1340
|
| `zai.ts` | Explicit-only Z.ai GLM Coding Plan MCP search provider |
|
|
1322
1341
|
| `anysearch.ts` | Explicit-only AnySearch search provider |
|
|
@@ -57,6 +57,8 @@ function buildProviderButtons(
|
|
|
57
57
|
{ value: "ninerouter", label: "9router", available: available.ninerouter },
|
|
58
58
|
{ value: "cloudflare", label: "Cloudflare", available: available.cloudflare },
|
|
59
59
|
{ value: "searchapi", label: "SearchApi", available: available.searchapi },
|
|
60
|
+
{ value: "outcrawl", label: "Outcrawl", available: available.outcrawl },
|
|
61
|
+
{ value: "sofya", label: "Sofya", available: available.sofya },
|
|
60
62
|
{ value: "tabstack", label: "Tabstack", available: available.tabstack },
|
|
61
63
|
{ value: "deepseek", label: "DeepSeek", available: available.deepseek },
|
|
62
64
|
];
|
|
@@ -1490,7 +1492,7 @@ const SCRIPT = `(function() {
|
|
|
1490
1492
|
var token = DATA.sessionToken;
|
|
1491
1493
|
var timeoutSec = DATA.timeout;
|
|
1492
1494
|
var queries = Array.isArray(DATA.queries) ? DATA.queries : [];
|
|
1493
|
-
var providers = ["auto", "all", "openai", "exa", "brave", "parallel", "parallel-mcp", "tinyfish", "search1api", "searchinfinity", "querit", "tavily", "firecrawl", "jina", "serpdive", "kagi", "bocha", "ollama", "searxng", "degoog", "duckduckgo", "perplexity", "gemini", "kimi", "anysearch", "xcrawl", "xai", "mistral", "brightdata", "serpbase", "serpapi", "serper", "serply", "valyu", "baizhi", "you", "zai", "keenable", "ceramic", "deepseek", "linkup", "ninerouter", "cloudflare", "searchapi", "tabstack"];
|
|
1495
|
+
var providers = ["auto", "all", "openai", "exa", "brave", "parallel", "parallel-mcp", "tinyfish", "search1api", "searchinfinity", "querit", "tavily", "firecrawl", "jina", "serpdive", "kagi", "bocha", "ollama", "searxng", "degoog", "duckduckgo", "perplexity", "gemini", "kimi", "anysearch", "xcrawl", "xai", "mistral", "brightdata", "serpbase", "serpapi", "serper", "serply", "valyu", "baizhi", "you", "zai", "keenable", "ceramic", "deepseek", "linkup", "ninerouter", "cloudflare", "searchapi", "outcrawl", "sofya", "tabstack"];
|
|
1494
1496
|
var availProviders = DATA.availableProviders && typeof DATA.availableProviders === "object" ? DATA.availableProviders : {};
|
|
1495
1497
|
var workflow = "summary-review";
|
|
1496
1498
|
var initialDefaultProvider = typeof DATA.defaultProvider === "string" ? DATA.defaultProvider : "exa";
|
|
@@ -1737,6 +1739,8 @@ const SCRIPT = `(function() {
|
|
|
1737
1739
|
if (provider === "ninerouter") return "9router";
|
|
1738
1740
|
if (provider === "cloudflare") return "Cloudflare";
|
|
1739
1741
|
if (provider === "searchapi") return "SearchApi";
|
|
1742
|
+
if (provider === "outcrawl") return "Outcrawl";
|
|
1743
|
+
if (provider === "sofya") return "Sofya";
|
|
1740
1744
|
if (provider === "deepseek") return "DeepSeek";
|
|
1741
1745
|
return "Unknown";
|
|
1742
1746
|
}
|
|
@@ -317,6 +317,8 @@ export function startCuratorServer(
|
|
|
317
317
|
if (provider === "ninerouter") return availableProviders.ninerouter;
|
|
318
318
|
if (provider === "cloudflare") return availableProviders.cloudflare;
|
|
319
319
|
if (provider === "searchapi") return availableProviders.searchapi;
|
|
320
|
+
if (provider === "outcrawl") return availableProviders.outcrawl;
|
|
321
|
+
if (provider === "sofya") return availableProviders.sofya;
|
|
320
322
|
if (provider === "deepseek") return availableProviders.deepseek;
|
|
321
323
|
return false;
|
|
322
324
|
}
|