@herbertgao/pi-extensions 2026.11.2 → 2026.11.3

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 (51) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +11 -11
  3. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
  4. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +1 -1
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.md +1 -1
  6. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +109 -16
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +5 -1
  8. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  9. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  10. package/node_modules/@herbertgao/pi-subagents/README.md +12 -10
  11. package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +1 -1
  12. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  13. package/node_modules/@herbertgao/pi-subagents/src/agent-record-entry.ts +22 -6
  14. package/node_modules/@herbertgao/pi-subagents/src/index.ts +9 -4
  15. package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +167 -7
  16. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +8 -4
  17. package/node_modules/@narumitw/pi-btw/CHANGELOG.md +259 -0
  18. package/node_modules/@narumitw/pi-btw/package.json +6 -5
  19. package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +70 -0
  20. package/node_modules/@narumitw/pi-caffeinate/package.json +5 -4
  21. package/node_modules/pi-commandcode-provider/CHANGELOG.md +21 -0
  22. package/node_modules/pi-commandcode-provider/README.md +18 -6
  23. package/node_modules/pi-commandcode-provider/index.ts +11 -5
  24. package/node_modules/pi-commandcode-provider/package.json +1 -1
  25. package/node_modules/pi-commandcode-provider/src/api-key.ts +26 -10
  26. package/node_modules/pi-commandcode-provider/src/auth-server.ts +33 -24
  27. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +2 -2
  28. package/node_modules/pi-commandcode-provider/src/converters.ts +3 -61
  29. package/node_modules/pi-commandcode-provider/src/core.ts +29 -4
  30. package/node_modules/pi-commandcode-provider/src/cost.ts +32 -12
  31. package/node_modules/pi-commandcode-provider/src/oauth.ts +40 -6
  32. package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -3
  33. package/node_modules/pi-commandcode-provider/src/runtime.ts +14 -7
  34. package/node_modules/pi-commandcode-provider/src/transport.ts +6 -3
  35. package/node_modules/pi-web-access/CHANGELOG.md +22 -0
  36. package/node_modules/pi-web-access/README.md +31 -12
  37. package/node_modules/pi-web-access/curator-page.ts +5 -1
  38. package/node_modules/pi-web-access/curator-server.ts +2 -0
  39. package/node_modules/pi-web-access/dist/index.js +673 -308
  40. package/node_modules/pi-web-access/dist/mcp-cli.js +666 -309
  41. package/node_modules/pi-web-access/gemini-search.ts +12 -4
  42. package/node_modules/pi-web-access/github-api.ts +1 -1
  43. package/node_modules/pi-web-access/github-extract.ts +3 -2
  44. package/node_modules/pi-web-access/index.ts +7 -3
  45. package/node_modules/pi-web-access/mcp-tool-definitions.ts +1 -1
  46. package/node_modules/pi-web-access/outcrawl.ts +204 -0
  47. package/node_modules/pi-web-access/package.json +2 -2
  48. package/node_modules/pi-web-access/sofya.ts +201 -0
  49. package/node_modules/pi-web-access/utils.ts +16 -6
  50. package/node_modules/pi-web-access/web-tool-core.ts +4 -0
  51. package/package.json +9 -9
@@ -8,6 +8,7 @@
8
8
  import {
9
9
  type AgentSession,
10
10
  getMarkdownTheme,
11
+ ToolExecutionComponent,
11
12
  } from "@earendil-works/pi-coding-agent"
12
13
  import {
13
14
  type Component,
@@ -53,6 +54,49 @@ import {
53
54
  type ViewerKeys,
54
55
  } from "./viewer-keys.js"
55
56
 
57
+ /** An assistant message's tool call, and the message that answers it. */
58
+ type AgentMessage = AgentSession["messages"][number]
59
+ type ToolCallPart = Extract<
60
+ Extract<AgentMessage, { role: "assistant" }>["content"][number],
61
+ { type: "toolCall" }
62
+ >
63
+ type ToolResultPart = Extract<AgentMessage, { role: "toolResult" }>
64
+
65
+ /** A rendered tool call, reused across renders so its component's caches survive. */
66
+ interface ToolBlock {
67
+ component: ToolExecutionComponent
68
+ /** The result already handed to the component, if any. */
69
+ result?: ToolResultPart
70
+ /**
71
+ * The block's rendered rows and the width they were produced at.
72
+ *
73
+ * `ToolExecutionComponent` re-wraps and re-paints its whole subtree on every
74
+ * `render()`, which costs ~0.4 ms per settled call — enough that a 500-message
75
+ * transcript re-wrapped every block on every keystroke. The rows only change
76
+ * when the inputs above do, so they are kept and reused until one does.
77
+ */
78
+ rows?: string[]
79
+ width?: number
80
+ }
81
+
82
+ /**
83
+ * Whether pi's global theme is initialized.
84
+ *
85
+ * `ToolExecutionComponent` draws with pi's theme rather than the instance this
86
+ * viewer is handed, and pi throws on the first color lookup when nothing called
87
+ * `initTheme()`. This viewer is constructed outside pi too — its own unit tests,
88
+ * an embedded session — so the tool path is gated on a probe, the same way
89
+ * `resolveMarkdownTheme` already treats pi's Markdown theme.
90
+ */
91
+ function piThemeAvailable(): boolean {
92
+ try {
93
+ getMarkdownTheme().heading("probe")
94
+ return true
95
+ } catch {
96
+ return false
97
+ }
98
+ }
99
+
56
100
  /** Base lines consumed by chrome: top border + header + header sep + footer sep + footer + bottom border. */
57
101
  const CHROME_LINES_BASE = 6
58
102
  const MIN_VIEWPORT = 3
@@ -238,6 +282,15 @@ export class ConversationViewer implements Component, Focusable {
238
282
  object,
239
283
  { md: Markdown; text: string; failed?: boolean }
240
284
  >()
285
+ /** One block per tool call id, so a redraw reuses the component's own caches. */
286
+ private readonly toolBlocks = new Map<string, ToolBlock>()
287
+ /**
288
+ * Whether calls render through pi's components. Probe-gated: without pi's
289
+ * theme the viewer keeps its own plain rendering rather than throwing.
290
+ */
291
+ private readonly toolRendering = piThemeAvailable()
292
+ /** Whether tool blocks show their full output; toggled with pi's expand key. */
293
+ private toolsExpanded = false
241
294
 
242
295
  constructor(
243
296
  private tui: TUI,
@@ -383,6 +436,18 @@ export class ConversationViewer implements Component, Focusable {
383
436
  }
384
437
  if (this.stopArmed) this.stopArmed = false
385
438
 
439
+ // Unfold tool output — the same key, and the same meaning, as in the main
440
+ // transcript. It is what the renderers' own elision notices refer to.
441
+ if (this.keys.expand(data)) {
442
+ this.toolsExpanded = !this.toolsExpanded
443
+ for (const block of this.toolBlocks.values()) {
444
+ block.component.setExpanded(this.toolsExpanded)
445
+ block.rows = undefined
446
+ }
447
+ this.tui.requestRender()
448
+ return
449
+ }
450
+
386
451
  const totalLines = this.buildContentLines(this.lastInnerW).length
387
452
  const viewportHeight = this.viewportHeight()
388
453
  if (this.fullscreen) {
@@ -946,6 +1011,14 @@ export class ConversationViewer implements Component, Focusable {
946
1011
  return lines
947
1012
  }
948
1013
 
1014
+ // A result is folded into the block of the call it answers, so every call
1015
+ // has to find its result before the loop reaches it.
1016
+ const results = new Map<string, ToolResultPart>()
1017
+ for (const msg of messages) {
1018
+ if (msg.role === "toolResult") results.set(msg.toolCallId, msg)
1019
+ }
1020
+ const foldedCalls = new Set<string>()
1021
+
949
1022
  const mode = this.markdownMode()
950
1023
  let needsSeparator = false
951
1024
  for (const msg of messages) {
@@ -962,12 +1035,10 @@ export class ConversationViewer implements Component, Focusable {
962
1035
  }
963
1036
  } else if (msg.role === "assistant") {
964
1037
  const textParts: string[] = []
965
- const toolCalls: string[] = []
1038
+ const toolCalls: ToolCallPart[] = []
966
1039
  for (const c of msg.content) {
967
1040
  if (c.type === "text" && c.text) textParts.push(c.text)
968
- else if (c.type === "toolCall") {
969
- toolCalls.push((c as any).name ?? (c as any).toolName ?? "unknown")
970
- }
1041
+ else if (c.type === "toolCall") toolCalls.push(c)
971
1042
  }
972
1043
  if (needsSeparator) lines.push(th.fg("dim", "───"))
973
1044
  lines.push(th.bold("[Assistant]"))
@@ -979,12 +1050,31 @@ export class ConversationViewer implements Component, Focusable {
979
1050
  : this.markdownLines(msg, text, width, false)),
980
1051
  )
981
1052
  }
982
- for (const name of toolCalls) {
1053
+ for (const call of toolCalls) {
1054
+ if (!this.toolRendering) {
1055
+ lines.push(
1056
+ truncateToWidth(th.fg("muted", ` [Tool: ${call.name}]`), width),
1057
+ )
1058
+ continue
1059
+ }
1060
+ foldedCalls.add(call.id)
1061
+ // An aborted or failed response never runs its calls, so no result
1062
+ // will arrive: say so, as pi's session replay does.
1063
+ const notRun =
1064
+ msg.stopReason === "aborted"
1065
+ ? "Operation aborted"
1066
+ : msg.stopReason === "error"
1067
+ ? msg.errorMessage || "Error"
1068
+ : undefined
983
1069
  lines.push(
984
- truncateToWidth(th.fg("muted", ` [Tool: ${name}]`), width),
1070
+ ...this.toolBlockLines(call, results.get(call.id), notRun, width),
985
1071
  )
986
1072
  }
987
1073
  } else if (msg.role === "toolResult") {
1074
+ // Rendered under its call above. A result whose call is not in the
1075
+ // transcript — a compacted prefix, a reopened session — keeps the plain
1076
+ // block, because there is no call row to fold it into.
1077
+ if (foldedCalls.has(msg.toolCallId)) continue
988
1078
  const { text, elided } = capResult(extractText(msg.content).trim())
989
1079
  if (!text) continue
990
1080
  if (needsSeparator) lines.push(th.fg("dim", "───"))
@@ -1032,6 +1122,76 @@ export class ConversationViewer implements Component, Focusable {
1032
1122
  )
1033
1123
  }
1034
1124
 
1035
- return lines.map((l) => truncateToWidth(l, width))
1125
+ // Only clamp what actually overflows: `truncateToWidth` takes a slow,
1126
+ // character-by-character path for any line carrying an escape sequence, and
1127
+ // a tool block's rows are already rendered at this width by its component.
1128
+ return lines.map((l) =>
1129
+ visibleWidth(l) > width ? truncateToWidth(l, width) : l,
1130
+ )
1131
+ }
1132
+
1133
+ /**
1134
+ * One tool call as pi draws it in the main transcript: the arguments on the
1135
+ * call, then the result in that tool's own format — a bash box, read line
1136
+ * numbers, an edit diff. Blocks are cached per call id because
1137
+ * `ToolExecutionComponent` rebuilds its renderer tree on every update.
1138
+ *
1139
+ * A tool without a renderer still renders: the component falls back to a
1140
+ * generic `name key=value` header plus a bounded preview that the expand key
1141
+ * unfolds.
1142
+ */
1143
+ private toolBlockLines(
1144
+ call: ToolCallPart,
1145
+ result: ToolResultPart | undefined,
1146
+ notRun: string | undefined,
1147
+ width: number,
1148
+ ): string[] {
1149
+ let block = this.toolBlocks.get(call.id)
1150
+ let changed = false
1151
+ if (!block) {
1152
+ // Built the way pi replays a saved session: `session.messages` only holds
1153
+ // finished messages, so the arguments are final. No setArgsComplete() or
1154
+ // markExecutionStarted() — both request a render, and this runs inside
1155
+ // one; the former also makes the edit renderer re-read the file.
1156
+ const component = new ToolExecutionComponent(
1157
+ call.name,
1158
+ call.id,
1159
+ call.arguments,
1160
+ // Text only: an image needs rows this line-based renderer cannot reserve.
1161
+ { showImages: false },
1162
+ // pi's resolution for the agent's own session: builtin and extension
1163
+ // renderers, and extension overrides. `{}` for a tool no registry knows,
1164
+ // so it gets the bounded, expandable fallback rather than a raw dump.
1165
+ this.session.extensionRunner.resolveToolRenderers(call.name, () =>
1166
+ this.session.getToolDefinition(call.name),
1167
+ ) ?? {},
1168
+ this.tui,
1169
+ this.session.sessionManager.getCwd(),
1170
+ )
1171
+ component.setExpanded(this.toolsExpanded)
1172
+ // The message is final, so this is decided once, when the block is built.
1173
+ if (notRun && !result)
1174
+ component.updateResult({
1175
+ content: [{ type: "text", text: notRun }],
1176
+ isError: true,
1177
+ })
1178
+ block = { component }
1179
+ this.toolBlocks.set(call.id, block)
1180
+ changed = true
1181
+ }
1182
+ if (result && block.result !== result) {
1183
+ block.result = result
1184
+ block.component.updateResult({
1185
+ content: result.content,
1186
+ details: result.details,
1187
+ isError: result.isError,
1188
+ durationMs: result.durationMs,
1189
+ })
1190
+ changed = true
1191
+ }
1192
+ if (!changed && block.rows && block.width === width) return block.rows
1193
+ block.rows = block.component.render(width)
1194
+ block.width = width
1195
+ return block.rows
1036
1196
  }
1037
1197
  }
@@ -8,16 +8,17 @@
8
8
 
9
9
  import { type KeyId, matchesKey } from "@earendil-works/pi-tui"
10
10
 
11
- /** The `tui.select.*` keybinding ids the viewer resolves. */
12
- export type ViewerScrollKeybinding =
11
+ /** The pi keybinding ids the viewer resolves. */
12
+ export type ViewerKeybindingId =
13
13
  | "tui.select.up"
14
14
  | "tui.select.down"
15
15
  | "tui.select.pageUp"
16
16
  | "tui.select.pageDown"
17
+ | "app.tools.expand"
17
18
 
18
19
  /** Structural subset of pi-tui's `KeybindingsManager` (which satisfies it). */
19
20
  export interface ViewerKeybindings {
20
- matches(data: string, keybinding: ViewerScrollKeybinding): boolean
21
+ matches(data: string, keybinding: ViewerKeybindingId): boolean
21
22
  }
22
23
 
23
24
  export interface ViewerKeys {
@@ -25,12 +26,14 @@ export interface ViewerKeys {
25
26
  scrollDown(data: string): boolean
26
27
  pageUp(data: string): boolean
27
28
  pageDown(data: string): boolean
29
+ /** Unfold the output of the viewer's tool blocks, as in the main transcript. */
30
+ expand(data: string): boolean
28
31
  }
29
32
 
30
33
  export function createViewerKeys(keybindings?: ViewerKeybindings): ViewerKeys {
31
34
  const matches = (
32
35
  data: string,
33
- id: ViewerScrollKeybinding,
36
+ id: ViewerKeybindingId,
34
37
  fallback: KeyId,
35
38
  ): boolean =>
36
39
  keybindings ? keybindings.matches(data, id) : matchesKey(data, fallback)
@@ -45,5 +48,6 @@ export function createViewerKeys(keybindings?: ViewerKeybindings): ViewerKeys {
45
48
  pageDown: (data) =>
46
49
  matches(data, "tui.select.pageDown", "pageDown") ||
47
50
  matchesKey(data, "shift+down"),
51
+ expand: (data) => matches(data, "app.tools.expand", "ctrl+o"),
48
52
  }
49
53
  }
@@ -0,0 +1,259 @@
1
+ # @narumitw/pi-btw
2
+
3
+ ## 0.63.4
4
+
5
+ ### Patch Changes
6
+
7
+ - e484010: Include the existing package-root CHANGELOG.md in extension tarballs so Pi can show native update notices. Keep Changesets version headings and Pi's first-observation and collapseChangelog behavior unchanged.
8
+ - Updated dependencies [54f2700]
9
+ - Updated dependencies [6c76ef1]
10
+ - @narumitw/pi-tui-kit@0.69.0
11
+
12
+ ## 0.63.3
13
+
14
+ ### Patch Changes
15
+
16
+ - bab4b67: Allow main-pane submissions while a split workspace remains open, including when BTW starts while the main agent is idle. Keep the complete workspace task session-owned, prevent overlapping BTW flows, and preserve cancellation, shutdown draining, and error reporting.
17
+
18
+ ## 0.63.2
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [a21d39b]
23
+ - Updated dependencies [f68aa54]
24
+ - Updated dependencies [b062d21]
25
+ - @narumitw/pi-tui-kit@0.68.0
26
+
27
+ ## 0.63.1
28
+
29
+ ### Patch Changes
30
+
31
+ - 57eeae7: Add the opt-in `createFullscreenHandoff()` resource and native test harness. Share terminal entry/exit drain, cancellation-safe restoration, keyboard-protocol recovery, owned overlay handling, and cleanup errors through public Pi TUI APIs. Keep ordinary Kit interactions unchanged.
32
+
33
+ Use the resource in Starship's configuration chat and BTW's multi-screen workspace. Keep each extension's input policy, layouts, domain state, permissions, and persistence local. BTW now waits for native input drain before entry. Changesets raises both consumer floors to the Kit API release; dependent publication requires its exact registry artifact.
34
+ - Updated dependencies [57eeae7]
35
+ - @narumitw/pi-tui-kit@0.67.0
36
+
37
+ ## 0.63.0
38
+
39
+ ### Minor Changes
40
+
41
+ - ec9e092: Add manual preview and import of new main-thread context into retained side threads. Keep imported updates in conversation order, preserve earlier request prefixes, and reject incompatible branch or context-boundary changes. Add a configurable import shortcut with F9–F11 fallbacks.
42
+
43
+ ## 0.62.0
44
+
45
+ ### Minor Changes
46
+
47
+ - 7d15a96: Align the BTW workspace with native Pi input, prompt navigation, scrollbars, and cursor-first dock layout. Add a conflict-checked keyboard shortcut to switch panes. Keep effective key hints, native mouse editing, draft safeguards, and queue timing clear. Cancel and drain session-owned work on replacement and shutdown, and contain renderer cleanup and clipboard failures.
48
+
49
+ ### Patch Changes
50
+
51
+ - d60fa4e: Bring the BTW conversation appearance closer to native Pi. Move side identity, model, thinking, focus, and concise key hints below the editor; match native working borders and message spacing while retaining cursor-first short layouts. Keep tools absent and preserve existing input, queue, lifecycle, and draft-safety behavior.
52
+ - Updated dependencies [077137a]
53
+ - Updated dependencies [9f80b89]
54
+ - Updated dependencies [efc474c]
55
+ - @narumitw/pi-tui-kit@0.66.0
56
+
57
+ ## 0.61.2
58
+
59
+ ### Patch Changes
60
+
61
+ - 033dead: Reject unknown and duplicate modifiers when selecting the fullscreen jump-to-latest key hint. Match Pi's strict key parser so the hint names a usable binding.
62
+
63
+ ## 0.61.1
64
+
65
+ ### Patch Changes
66
+
67
+ - c073bc0: Fix the main-thread tree picker on Pi 0.87 sessions containing context edits.
68
+ - 81be3f7: Send a per-thread routing `sessionId` with side requests so provider overrides that require one, such as subscription attribution transports, no longer reject `/btw`; the main session ID is still used only for OpenCode headers.
69
+
70
+ ## 0.61.0
71
+
72
+ ### Minor Changes
73
+
74
+ - 865f1d3: Make the split-pane divider draggable and remember the side-thread width.
75
+ - 129f324: Add configurable fullscreen, side-thread-left, and side-thread-right workspaces with Pi's live main-thread view and click-to-focus input.
76
+
77
+ ### Patch Changes
78
+
79
+ - 2bacc07: Use one muted column for the split-pane divider.
80
+
81
+ ## 0.60.3
82
+
83
+ ### Patch Changes
84
+
85
+ - 34b57b2: Route side-thread requests through Pi's authenticated `modelRegistry.streamSimple()` path so extension-registered providers, OAuth endpoint overrides, headers, and environment credentials are resolved by Pi at request time.
86
+
87
+ ## 0.60.2
88
+
89
+ ### Patch Changes
90
+
91
+ - 8abd5b7: Keep generated extension runtime graphs inside Pi's Jiti-loaded TypeScript path to avoid duplicate peer-runtime evaluation during startup. Add measured generated runtimes for Context Management, Herdr, and TypeSafe Search.
92
+
93
+ ## 0.60.1
94
+
95
+ ### Patch Changes
96
+
97
+ - 67a3049: Adapt provider, transcript, usage, deferred-tool, and telemetry behavior to Pi's current runtime contracts, including accurate cache-warming accounting and exclusion from ordinary generation traces.
98
+
99
+ ## 0.60.0
100
+
101
+ ### Minor Changes
102
+
103
+ - c4d403b: Add a searchable model picker to `/btw` Settings with scoped available models, same as the main thread reset, and model-aware thinking choices.
104
+
105
+ ## 0.59.0
106
+
107
+ ### Minor Changes
108
+
109
+ - 022ba82: Render supported Mermaid fences as width-safe, themed Unicode diagrams in side-thread transcripts, with readable source fallbacks for malformed, unsupported, or oversized diagrams.
110
+
111
+ ### Patch Changes
112
+
113
+ - ddaccd2: Complete `/btw` fullscreen cancellation by forwarding upstream aborts, closing mounted composers, restoring the parent TUI, and stopping lazy Mermaid transcript preparation when cancelled.
114
+
115
+ ## 0.58.1
116
+
117
+ ### Patch Changes
118
+
119
+ - ad0fbc0: Honor the API base URL returned by Pi's authentication resolver for both inherited and explicitly configured side-thread models. This fixes misdirected requests for GitHub Copilot accounts that use a different endpoint from the provider default, without changing the main session's model.
120
+
121
+ ## 0.58.0
122
+
123
+ ### Minor Changes
124
+
125
+ - 609f6a8: Add BTW-only exit, thinking-cycle, and bring-to-main keybindings in `/btw` → Settings, with conflict validation and per-action reset. Preserve Ctrl+C as hard cancel and keep pasted input out of shortcut handling.
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [317f7bd]
130
+ - @narumitw/pi-tui-kit@0.61.0
131
+
132
+ ## 0.57.1
133
+
134
+ ### Patch Changes
135
+
136
+ - ee07eb8: Forward Pi session headers to OpenCode providers for side-thread requests.
137
+
138
+ ## 0.57.0
139
+
140
+ ### Minor Changes
141
+
142
+ - f24a5b0: Add a themed, clickable Jump to latest control that honors Pi's effective fullscreen bottom keybinding.
143
+
144
+ ## 0.56.2
145
+
146
+ ### Patch Changes
147
+
148
+ - c0fe03e: Wait for Pi's terminal input drain before restoring the parent fullscreen TUI after Ctrl+C.
149
+
150
+ ## 0.56.1
151
+
152
+ ### Patch Changes
153
+
154
+ - 612df75: Defer Ctrl+C terminal restoration until input dispatch finishes so Windows fullscreen sessions redraw and scroll correctly.
155
+
156
+ ## 0.56.0
157
+
158
+ ### Minor Changes
159
+
160
+ - f41734c: Add configurable manual fullscreen selection copying through Pi's effective copy keybinding, with paste-safe input and compatibility checks.
161
+
162
+ ## 0.55.4
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [40182e5]
167
+ - @narumitw/pi-tui-kit@0.59.0
168
+
169
+ ## 0.55.3
170
+
171
+ ### Patch Changes
172
+
173
+ - 4fb170b: Restore main-editor input immediately after Ctrl+C exits a dedicated side thread.
174
+ - 2250f3c: Close the active side flow when Ctrl+C restores the main editor while transcript search has focus.
175
+ - Updated dependencies [78276b0]
176
+ - Updated dependencies [dc9802e]
177
+ - @narumitw/pi-tui-kit@0.58.1
178
+
179
+ ## 0.55.2
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [b9eba3a]
184
+ - @narumitw/pi-tui-kit@0.58.0
185
+
186
+ ## 0.55.1
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies [6574232]
191
+ - Updated dependencies [cddc265]
192
+ - @narumitw/pi-tui-kit@0.57.0
193
+
194
+ ## 0.55.0
195
+
196
+ ### Minor Changes
197
+
198
+ - 79bc155: Add themed fullscreen transcript search and verified host clipboard feedback for mouse selections.
199
+
200
+ ## 0.54.2
201
+
202
+ ### Patch Changes
203
+
204
+ - 30bc076: Load each extension from a generated TypeScript runtime to reduce Jiti package startup work while preserving existing first-use boundaries.
205
+
206
+ ## 0.54.1
207
+
208
+ ### Patch Changes
209
+
210
+ - Updated dependencies [8bead31]
211
+ - @narumitw/pi-tui-kit@0.56.0
212
+
213
+ ## 0.54.0
214
+
215
+ ### Minor Changes
216
+
217
+ - b5c0682: Add native mouse-wheel and trackpad scrolling to side-thread transcript history.
218
+
219
+ ## 0.53.0
220
+
221
+ ### Minor Changes
222
+
223
+ - d97edfd: Add a native main-session tree picker that starts a fresh side thread from any selected branch without switching the main conversation.
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [3176172]
228
+ - @narumitw/pi-tui-kit@0.55.0
229
+
230
+ ## 0.52.0
231
+
232
+ ### Minor Changes
233
+
234
+ - f3d76af: Add a Same as main thread thinking option that starts new side threads from the current main thread level while keeping shortcut changes local.
235
+
236
+ ## 0.51.0
237
+
238
+ ### Minor Changes
239
+
240
+ - 69e8485: Add local fuzzy search to the in-memory Resume thread choice.
241
+
242
+ ## 0.50.0
243
+
244
+ ### Minor Changes
245
+
246
+ - be8d492: Add an in-memory Resume picker to `/btw` so the current Pi session can continue any non-empty side thread by its first question while `/btw <question>` remains a fresh-thread fast path.
247
+
248
+ ## 0.49.7
249
+
250
+ ### Patch Changes
251
+
252
+ - 3f33860: Run side threads in a dedicated full-screen TUI so mouse-drag copying stays stable while the main agent continues producing output in the background.
253
+ - 2a2c9c1: Queue Pi-style steering questions while a side-thread answer is running, process them one at a time without touching the main conversation, and report malformed side-model responses without hanging the side UI.
254
+
255
+ ## 0.49.6
256
+
257
+ ### Patch Changes
258
+
259
+ - a4b44ee: Route side-question completions through Pi's effective runtime provider so custom provider APIs work.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-btw",
3
- "version": "0.63.3",
3
+ "version": "0.63.4",
4
4
  "description": "Pi extension that adds a /btw side-question command.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,6 +17,7 @@
17
17
  "dist",
18
18
  "docs",
19
19
  "README.md",
20
+ "CHANGELOG.md",
20
21
  "LICENSE"
21
22
  ],
22
23
  "pi": {
@@ -32,9 +33,9 @@
32
33
  "prepack": "npm run build"
33
34
  },
34
35
  "devDependencies": {
35
- "@earendil-works/pi-ai": "1.4.0",
36
- "@earendil-works/pi-coding-agent": "1.4.0",
37
- "@earendil-works/pi-tui": "1.4.0",
36
+ "@earendil-works/pi-ai": "1.5.0",
37
+ "@earendil-works/pi-coding-agent": "1.5.0",
38
+ "@earendil-works/pi-tui": "1.5.0",
38
39
  "esbuild": "0.28.2",
39
40
  "typescript": "7.0.2"
40
41
  },
@@ -44,7 +45,7 @@
44
45
  "directory": "packages/pi-btw"
45
46
  },
46
47
  "dependencies": {
47
- "@narumitw/pi-tui-kit": "^0.68.0"
48
+ "@narumitw/pi-tui-kit": "^0.69.0"
48
49
  },
49
50
  "peerDependencies": {
50
51
  "@earendil-works/pi-ai": "*",
@@ -0,0 +1,70 @@
1
+ # @narumitw/pi-caffeinate
2
+
3
+ ## 0.49.14
4
+
5
+ ### Patch Changes
6
+
7
+ - e484010: Include the existing package-root CHANGELOG.md in extension tarballs so Pi can show native update notices. Keep Changesets version headings and Pi's first-observation and collapseChangelog behavior unchanged.
8
+ - Updated dependencies [54f2700]
9
+ - Updated dependencies [6c76ef1]
10
+ - @narumitw/pi-tui-kit@0.69.0
11
+
12
+ ## 0.49.13
13
+
14
+ ### Patch Changes
15
+
16
+ - 348412a: Update the dbus-native dependency to include its latest patch fixes.
17
+
18
+ ## 0.49.12
19
+
20
+ ### Patch Changes
21
+
22
+ - cd67ac2: Prevent the Windows keep-awake helper from overwriting the terminal title.
23
+
24
+ ## 0.49.11
25
+
26
+ ### Patch Changes
27
+
28
+ - 73a5a41: Resolve Linux D-Bus idle inhibit when a dynamic import of `dbus-native` exposes `sessionBus` only on its CommonJS default export.
29
+
30
+ ## 0.49.10
31
+
32
+ ### Patch Changes
33
+
34
+ - 2246daa: Update runtime dependencies for D-Bus, peer networking, and tracing.
35
+
36
+ ## 0.49.9
37
+
38
+ ### Patch Changes
39
+
40
+ - 68c4b95: Update runtime dependencies and preserve Pi tool-context types through the LSP session lifecycle guard for compatibility with current Pi releases.
41
+
42
+ ## 0.49.8
43
+
44
+ ### Patch Changes
45
+
46
+ - 8abd5b7: Keep generated extension runtime graphs inside Pi's Jiti-loaded TypeScript path to avoid duplicate peer-runtime evaluation during startup. Add measured generated runtimes for Context Management, Herdr, and TypeSafe Search.
47
+
48
+ ## 0.49.7
49
+
50
+ ### Patch Changes
51
+
52
+ - bd00d53: Render standard horizontal frames around the remaining extension menus.
53
+
54
+ ## 0.49.6
55
+
56
+ ### Patch Changes
57
+
58
+ - 358a179: Lazy-load Linux D-Bus support so other platforms do not load `dbus-native` during Pi startup.
59
+
60
+ ## 0.49.5
61
+
62
+ ### Patch Changes
63
+
64
+ - dc4f90e: Load each extension from a generated source-mapped Jiti runtime while preserving first-use feature boundaries.
65
+
66
+ ## 0.49.4
67
+
68
+ ### Patch Changes
69
+
70
+ - 5aaa7b3: Keep Linux desktops awake by pairing sleep blocking with `org.freedesktop.ScreenSaver` idle inhibition in display mode.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-caffeinate",
3
- "version": "0.49.13",
3
+ "version": "0.49.14",
4
4
  "description": "Pi extension that keeps the computer awake while the agent is running.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,6 +17,7 @@
17
17
  "src",
18
18
  "dist",
19
19
  "README.md",
20
+ "CHANGELOG.md",
20
21
  "LICENSE"
21
22
  ],
22
23
  "pi": {
@@ -35,7 +36,7 @@
35
36
  "@earendil-works/pi-coding-agent": "*"
36
37
  },
37
38
  "devDependencies": {
38
- "@earendil-works/pi-coding-agent": "1.4.0",
39
+ "@earendil-works/pi-coding-agent": "1.5.0",
39
40
  "@types/node": "26.6.5",
40
41
  "esbuild": "0.28.2",
41
42
  "typescript": "7.0.2"
@@ -46,7 +47,7 @@
46
47
  "directory": "packages/pi-caffeinate"
47
48
  },
48
49
  "dependencies": {
49
- "@narumitw/pi-tui-kit": "^0.59.0",
50
- "dbus-native": "^0.16.2"
50
+ "@narumitw/pi-tui-kit": "^0.69.0",
51
+ "dbus-native": "^0.16.3"
51
52
  }
52
53
  }