pi-agent-browser-native 0.2.59 → 0.2.60

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
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.2.60 - 2026-06-24
6
+
7
+ ### Changed
8
+
9
+ - Removed a dead `as never` cast and unreachable try/catch from the `agent_browser` collapsed-output "to expand" keybinding hint. `app.tools.expand` is a host-registered keybinding id (coding-agent augments pi-tui's `Keybindings` via declaration merging), so the id is resolved cast-free via `getKeybindings().getKeys(...)` with the stock `ctrl+o` fallback preserved for bare-node test contexts. No behavior change; the `pi-coding-agent` package stays type-only in the entrypoint import path so startup tax is unchanged.
10
+
11
+ ### Validation
12
+
13
+ - Ran `npm run verify` (default gate: docs, typecheck, 575/575 unit, command-reference baseline + live drift), `npm run verify -- startup-profile --samples 3` (median 50.1ms, < 250ms budget), `npm run verify -- real-upstream`, `npm run verify -- lifecycle`, `npm run verify -- dogfood`, `npm run verify -- pre-pr`, and `npm run doctor` against the local checkout.
14
+ - Ran an independent reviewer subagent over the diff; no blockers found and the compaction-orphan audit claim was confirmed disproven against Pi 0.80.2 source.
15
+
5
16
  ## 0.2.59 - 2026-06-24
6
17
 
7
18
  ### Changed
@@ -73,16 +73,13 @@ function colorizeToolOutputLines(outputText, theme, isError) {
73
73
  return isError ? theme.fg("error", line) : theme.fg("toolOutput", line);
74
74
  });
75
75
  }
76
+ // ponytail: "app.tools.expand" is a host-registered keybinding id (coding-agent augments pi-tui's
77
+ // Keybindings via declaration merging); getKeys returns [] before the host registers its ids
78
+ // (bare-node tests), so fall back to the stock ctrl+o. pi-tui is already a runtime import at
79
+ // the entrypoint, so getKeybindings() adds no startup tax.
76
80
  function formatExpandHint(theme) {
77
- try {
78
- const [key] = getKeybindings().getKeys("app.tools.expand");
79
- if (key)
80
- return `${theme.fg("dim", key)} ${theme.fg("muted", "to expand")}`;
81
- }
82
- catch {
83
- // Fall through to the built-in default key when coding-agent keybindings are unavailable.
84
- }
85
- return `${theme.fg("dim", "ctrl+o")} ${theme.fg("muted", "to expand")}`;
81
+ const key = getKeybindings().getKeys("app.tools.expand")[0] ?? "ctrl+o";
82
+ return `${theme.fg("dim", key)} ${theme.fg("muted", "to expand")}`;
86
83
  }
87
84
  function formatVisualTruncationNotice(remainingLines, totalLines, theme, width) {
88
85
  const notice = `${theme.fg("muted", `... (${remainingLines} more lines, ${totalLines} total, `)}${formatExpandHint(theme)}${theme.fg("muted", ")")}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-browser-native",
3
- "version": "0.2.59",
3
+ "version": "0.2.60",
4
4
  "description": "pi extension that exposes agent-browser as a native tool for browser automation",
5
5
  "type": "module",
6
6
  "author": "Mitch Fultz (https://github.com/fitchmultz)",