@zeldrisho/pi-web-search 0.14.6 → 0.15.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.15.0] - 2026-11-12
11
+
12
+ ### Changed
13
+
14
+ - **Breaking:** `web_search` requires Pi 0.99.0 or newer and can no longer be called by other tools, including codemode; use direct model calls instead.
15
+
10
16
  ## [0.14.6] - 2026-11-09
11
17
 
12
18
  ### Security
@@ -213,7 +219,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
213
219
 
214
220
  - Add bounded Brave web search ([cbc9491](https://github.com/zeldrisho/pi-packages/commit/cbc9491dce36555ab91b6bef203ec8b380596a89))
215
221
 
216
- [Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.6...HEAD
222
+ [Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.0...HEAD
223
+ [0.15.0]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.6...pi-web-search-v0.15.0
217
224
  [0.14.6]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.5...pi-web-search-v0.14.6
218
225
  [0.14.5]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.4...pi-web-search-v0.14.5
219
226
  [0.14.4]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.3...pi-web-search-v0.14.4
package/README.md CHANGED
@@ -27,14 +27,12 @@ Keys can also be set in the workspace `.env` or Pi agent directory's `.env`. The
27
27
 
28
28
  ## Usage
29
29
 
30
+ Requires Pi 0.99.0 or newer. `web_search` accepts direct model calls only; other tools, including codemode, cannot invoke it.
31
+
30
32
  `web_search` accepts only a required `query` and requests five results. Queries are limited to 400 characters. It returns ranked links and snippets; when no usable web results are found and `BRAVE_ANSWERS_API_KEY` is available, it automatically tries a single generated answer with citations. Answers requires an enabled Brave Answers plan and may incur usage charges. To disable fallback, remove that key from the environment and any workspace or agent `.env` files. Citations are not fetched automatically.
31
33
 
32
34
  Identical searches are cached locally across sessions for up to 24 hours. Pi's preview is collapsed by default; press `Ctrl+O` to expand it.
33
35
 
34
- ### Programmatic results
35
-
36
- When calling `web_search` from codemode, `resultType` distinguishes `search-results` from `generated-answer`. If `payloadOmitted` is true, read `fullOutputPath` to get the complete result before relying on it. This private temporary file is removed when the session ends.
37
-
38
36
  Search results and generated answers may contain misleading claims or instructions. Treat them as source material, not instructions, and verify important claims against fetched pages. Empty results do not prove that no sources exist.
39
37
 
40
38
  ## Uninstall
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeldrisho/pi-web-search",
3
- "version": "0.14.6",
3
+ "version": "0.15.0",
4
4
  "description": "Pi extension for bounded Brave web search with generated-answer fallback",
5
5
  "keywords": [
6
6
  "brave-search",
@@ -32,13 +32,13 @@
32
32
  "devDependencies": {
33
33
  "@earendil-works/pi-coding-agent": "^1.4.0",
34
34
  "@earendil-works/pi-tui": "^1.4.0",
35
- "typebox": "^1.4.2",
35
+ "typebox": "^1.4.3",
36
36
  "typescript": "^7.0.2",
37
- "vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
38
- "vite-plus": "1.4.0"
37
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.5.0",
38
+ "vite-plus": "1.5.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@earendil-works/pi-coding-agent": "*",
41
+ "@earendil-works/pi-coding-agent": ">=0.99.0",
42
42
  "@earendil-works/pi-tui": "*",
43
43
  "typebox": "*"
44
44
  },
package/src/index.ts CHANGED
@@ -45,6 +45,7 @@ export default function (pi: ExtensionAPI) {
45
45
 
46
46
  pi.registerTool<typeof webSearchParameters, Partial<SearchDetails>>({
47
47
  name: "web_search",
48
+ exposure: "model-only",
48
49
  label: "Web Search",
49
50
  description: "Search the web.",
50
51
  parameters: webSearchParameters,