@zeldrisho/pi-web-search 0.15.0 → 0.15.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/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.1] - 2026-11-18
11
+
12
+ ### Changed
13
+
14
+ - Restore codemode access to structured search results with Pi 0.99.0 or newer.
15
+
10
16
  ## [0.15.0] - 2026-11-12
11
17
 
12
18
  ### Changed
@@ -219,7 +225,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
219
225
 
220
226
  - Add bounded Brave web search ([cbc9491](https://github.com/zeldrisho/pi-packages/commit/cbc9491dce36555ab91b6bef203ec8b380596a89))
221
227
 
222
- [Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.0...HEAD
228
+ [Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.1...HEAD
229
+ [0.15.1]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.0...pi-web-search-v0.15.1
223
230
  [0.15.0]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.6...pi-web-search-v0.15.0
224
231
  [0.14.6]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.5...pi-web-search-v0.14.6
225
232
  [0.14.5]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.4...pi-web-search-v0.14.5
package/README.md CHANGED
@@ -27,12 +27,14 @@ 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
-
32
30
  `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.
33
31
 
34
32
  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.
35
33
 
34
+ ### Programmatic results
35
+
36
+ Structured codemode results require Pi 0.99.0 or newer. When calling `web_search` from codemode, `resultType` distinguishes `search-results` from `generated-answer`. If `payloadOmitted` is true, `fullOutputPath` points to the full formatted text, not the complete structured result; fields such as result quality and answer usage may be absent. This private temporary file is removed when the session ends.
37
+
36
38
  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.
37
39
 
38
40
  ## Uninstall
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeldrisho/pi-web-search",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Pi extension for bounded Brave web search with generated-answer fallback",
5
5
  "keywords": [
6
6
  "brave-search",
@@ -48,12 +48,6 @@
48
48
  ]
49
49
  },
50
50
  "scripts": {
51
- "check": "vp check",
52
- "test": "vp test",
53
- "test:watch": "vp test --watch",
54
- "lint": "vp lint",
55
- "lint:fix": "vp lint --fix",
56
- "format": "vp fmt --write",
57
- "typecheck": "vp check --no-fmt --no-lint"
51
+ "test": "vp test"
58
52
  }
59
53
  }
package/src/index.ts CHANGED
@@ -45,7 +45,6 @@ export default function (pi: ExtensionAPI) {
45
45
 
46
46
  pi.registerTool<typeof webSearchParameters, Partial<SearchDetails>>({
47
47
  name: "web_search",
48
- exposure: "model-only",
49
48
  label: "Web Search",
50
49
  description: "Search the web.",
51
50
  parameters: webSearchParameters,