@zeldrisho/pi-web-search 0.15.1 → 0.15.2

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.2] - 2026-11-20
11
+
12
+ ### Changed
13
+
14
+ - Use Pi's configured expand-key hint when displaying collapsed search output.
15
+
10
16
  ## [0.15.1] - 2026-11-18
11
17
 
12
18
  ### Changed
@@ -225,7 +231,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
225
231
 
226
232
  - Add bounded Brave web search ([cbc9491](https://github.com/zeldrisho/pi-packages/commit/cbc9491dce36555ab91b6bef203ec8b380596a89))
227
233
 
228
- [Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.1...HEAD
234
+ [Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.2...HEAD
235
+ [0.15.2]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.1...pi-web-search-v0.15.2
229
236
  [0.15.1]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.15.0...pi-web-search-v0.15.1
230
237
  [0.15.0]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.6...pi-web-search-v0.15.0
231
238
  [0.14.6]: https://github.com/zeldrisho/pi-packages/compare/pi-web-search-v0.14.5...pi-web-search-v0.14.6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeldrisho/pi-web-search",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Pi extension for bounded Brave web search with generated-answer fallback",
5
5
  "keywords": [
6
6
  "brave-search",
@@ -30,7 +30,7 @@
30
30
  "access": "public"
31
31
  },
32
32
  "devDependencies": {
33
- "@earendil-works/pi-coding-agent": "^1.4.0",
33
+ "@earendil-works/pi-coding-agent": "^1.5.0",
34
34
  "@earendil-works/pi-tui": "^1.4.0",
35
35
  "typebox": "^1.4.3",
36
36
  "typescript": "^7.0.2",
package/src/index.ts CHANGED
@@ -93,6 +93,7 @@ export default function (pi: ExtensionAPI) {
93
93
  ? (overflowNotice ??
94
94
  `[${result.details?.truncation?.truncated ? "Output truncated. " : "Structured payload omitted. "}Full output: ${path}]`)
95
95
  : undefined,
96
+ context?.keyHint?.("app.tools.expand", "to expand") ?? "Ctrl+O to expand",
96
97
  )
97
98
  : new Text(theme.fg("dim", "No results"), 0, 0);
98
99
  },
package/src/render.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { getMarkdownTheme, keyHint } from "@earendil-works/pi-coding-agent";
1
+ import { getMarkdownTheme } from "@earendil-works/pi-coding-agent";
2
2
  import { Container, Markdown, Spacer, Text } from "@earendil-works/pi-tui";
3
3
 
4
4
  const COLLAPSED_LINES = 10;
@@ -10,6 +10,7 @@ export function renderCollapsibleOutput(
10
10
  theme: { fg(color: "toolOutput" | "muted" | "warning", text: string): string },
11
11
  isError = false,
12
12
  warning?: string,
13
+ expandHint = "Ctrl+O to expand",
13
14
  ): Container {
14
15
  const lines = output.replace(/\r\n/g, "\n").split("\n");
15
16
 
@@ -30,7 +31,7 @@ export function renderCollapsibleOutput(
30
31
  if (remaining > 0) {
31
32
  component.addChild(
32
33
  new Text(
33
- `${theme.fg("muted", `... (${remaining} more lines, ${lines.length} total,`)} ${keyHint("app.tools.expand", "to expand")}${theme.fg("muted", ")")}`,
34
+ `${theme.fg("muted", `... (${remaining} more lines, ${lines.length} total,`)} ${expandHint}${theme.fg("muted", ")")}`,
34
35
  0,
35
36
  0,
36
37
  ),