pi-web-providers 3.2.0 → 3.4.0

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.
Files changed (3) hide show
  1. package/README.md +24 -3
  2. package/dist/index.js +1697 -626
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -66,7 +66,7 @@ reported when the tool is actually called.
66
66
  | **Brave** | ✔ | | ✔ | ✔ | `BRAVE_SEARCH_API_KEY` / `BRAVE_ANSWERS_API_KEY` |
67
67
  | **Cloudflare** | | ✔ | | | `CLOUDFLARE_API_TOKEN` + `CLOUDFLARE_ACCOUNT_ID` |
68
68
  | **Exa** | ✔ | ✔ | ✔ | ✔ | `EXA_API_KEY` |
69
- | **Firecrawl** | ✔ | ✔ | | | `FIRECRAWL_API_KEY` |
69
+ | **Firecrawl** | ✔ | ✔ || | `FIRECRAWL_API_KEY` |
70
70
  | **Gemini** | ✔ | | ✔ | ✔ | `GOOGLE_API_KEY` |
71
71
  | **Linkup** | ✔ | ✔ | | ✔ | `LINKUP_API_KEY` |
72
72
  | **Ollama** | ✔ | ✔ | | | `OLLAMA_API_KEY` |
@@ -188,7 +188,22 @@ in tool calls.
188
188
  Unlike the other managed tools, `web_research` does not accept local timeout,
189
189
  retry, polling, or resume controls. Research has one opinionated execution
190
190
  style: pi starts it asynchronously, tracks it locally, and saves the final
191
- report under `.pi/artifacts/research/`.
191
+ report under `.pi/artifacts/research/`. Saved research reports are Markdown
192
+ files with YAML frontmatter for job metadata such as query, provider, status,
193
+ and timestamps.
194
+
195
+ Use `/web-research` in interactive pi sessions to browse and manage researches.
196
+ The command opens a table of running and finished researches with status, date,
197
+ provider, duration, and title. Running researches show a live spinner and
198
+ elapsed time; press `c` twice to cancel one. Cancellation aborts the provider
199
+ call and records a durable `cancelled` artifact under
200
+ `.pi/artifacts/research/`. Press `Enter` on a finished research to read the
201
+ report in a scrollable Markdown overlay; from there, `c` copies the report as
202
+ Markdown to the clipboard and `i` injects it into the current conversation so
203
+ the agent can build on earlier research.
204
+
205
+ While researches run, a one-line summary above the editor shows the number of
206
+ active researches with their status and elapsed time.
192
207
 
193
208
  </details>
194
209
 
@@ -315,13 +330,19 @@ scope, or account ID is usually wrong.
315
330
  <summary><strong>Firecrawl</strong></summary>
316
331
 
317
332
  - SDK: `@mendable/firecrawl-js`
318
- - Supports `web_search` and `web_contents`
333
+ - Supports `web_search`, `web_contents`, and page-scoped `web_answer`
319
334
  - Search can optionally include Firecrawl scrape-backed result enrichment
320
335
  - Contents extraction uses Firecrawl scrape with markdown-first defaults
336
+ - Answers use Firecrawl scrape's `question` format against one explicit page URL;
337
+ set `options.url` in the `web_answer` call or
338
+ `providers.firecrawl.options.answer.url` as a default
321
339
  - Exposes search options such as `lang`, `country`, `sources`, `categories`,
322
340
  `location`, `timeout`, and `scrapeOptions`
323
341
  - Exposes contents options such as `formats`, `onlyMainContent`, `includeTags`,
324
342
  `excludeTags`, `waitFor`, `headers`, `location`, `mobile`, and `proxy`
343
+ - Exposes answer options `url`, `onlyMainContent`, `includeTags`,
344
+ `excludeTags`, `waitFor`, `headers`, `location`, `mobile`, and `proxy`
345
+ - Firecrawl charges 5 credits per page for the `question` format
325
346
  - Optional `baseUrl` overrides are supported for self-hosted Firecrawl
326
347
  instances, proxies, and testing. API keys are required for Firecrawl Cloud,
327
348
  but can be omitted for self-hosted endpoints that do not enforce