@herbertgao/pi-extensions 2026.11.1 → 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 (76) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +14 -14
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +1 -1
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +1 -1
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +109 -16
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/write-execution.ts +5 -1
  9. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  10. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +12 -0
  11. package/node_modules/@herbertgao/pi-subagents/README.md +54 -42
  12. package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +1 -1
  13. package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +2 -0
  14. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  15. package/node_modules/@herbertgao/pi-subagents/src/agent-file-toggle.ts +9 -8
  16. package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +70 -9
  17. package/node_modules/@herbertgao/pi-subagents/src/agent-record-entry.ts +183 -0
  18. package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +156 -13
  19. package/node_modules/@herbertgao/pi-subagents/src/custom-agents.ts +52 -8
  20. package/node_modules/@herbertgao/pi-subagents/src/default-agents.ts +3 -4
  21. package/node_modules/@herbertgao/pi-subagents/src/index.ts +158 -56
  22. package/node_modules/@herbertgao/pi-subagents/src/settings.ts +3 -2
  23. package/node_modules/@herbertgao/pi-subagents/src/status-note.ts +3 -1
  24. package/node_modules/@herbertgao/pi-subagents/src/types.ts +5 -0
  25. package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +167 -7
  26. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +8 -4
  27. package/node_modules/@herbertgao/pi-subagents/src/workflow/host.ts +88 -6
  28. package/node_modules/@herbertgao/pi-subagents/src/workflow/progress.ts +3 -2
  29. package/node_modules/@narumitw/pi-btw/CHANGELOG.md +259 -0
  30. package/node_modules/@narumitw/pi-btw/package.json +6 -5
  31. package/node_modules/@narumitw/pi-caffeinate/CHANGELOG.md +70 -0
  32. package/node_modules/@narumitw/pi-caffeinate/package.json +5 -4
  33. package/node_modules/pi-commandcode-provider/CHANGELOG.md +21 -0
  34. package/node_modules/pi-commandcode-provider/README.md +18 -6
  35. package/node_modules/pi-commandcode-provider/index.ts +11 -5
  36. package/node_modules/pi-commandcode-provider/package.json +1 -1
  37. package/node_modules/pi-commandcode-provider/src/api-key.ts +26 -10
  38. package/node_modules/pi-commandcode-provider/src/auth-server.ts +33 -24
  39. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +2 -2
  40. package/node_modules/pi-commandcode-provider/src/converters.ts +3 -61
  41. package/node_modules/pi-commandcode-provider/src/core.ts +29 -4
  42. package/node_modules/pi-commandcode-provider/src/cost.ts +32 -12
  43. package/node_modules/pi-commandcode-provider/src/oauth.ts +40 -6
  44. package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -3
  45. package/node_modules/pi-commandcode-provider/src/runtime.ts +14 -7
  46. package/node_modules/pi-commandcode-provider/src/transport.ts +6 -3
  47. package/node_modules/pi-provider-qoder/README.md +40 -0
  48. package/node_modules/pi-provider-qoder/dist/index.js +64 -0
  49. package/node_modules/pi-provider-qoder/package.json +4 -3
  50. package/node_modules/pi-typesafe/README.md +3 -3
  51. package/node_modules/pi-typesafe/dist/auth.d.ts +21 -4
  52. package/node_modules/pi-typesafe/dist/auth.js +32 -7
  53. package/node_modules/pi-typesafe/dist/backends.d.ts +2 -2
  54. package/node_modules/pi-typesafe/dist/backends.js +9 -0
  55. package/node_modules/pi-typesafe/dist/client.js +7 -12
  56. package/node_modules/pi-typesafe/dist/errors.d.ts +3 -2
  57. package/node_modules/pi-typesafe/dist/errors.js +12 -10
  58. package/node_modules/pi-typesafe/dist/extension.js +14 -10
  59. package/node_modules/pi-typesafe/package.json +1 -1
  60. package/node_modules/pi-web-access/CHANGELOG.md +22 -0
  61. package/node_modules/pi-web-access/README.md +31 -12
  62. package/node_modules/pi-web-access/curator-page.ts +5 -1
  63. package/node_modules/pi-web-access/curator-server.ts +2 -0
  64. package/node_modules/pi-web-access/dist/index.js +673 -308
  65. package/node_modules/pi-web-access/dist/mcp-cli.js +666 -309
  66. package/node_modules/pi-web-access/gemini-search.ts +12 -4
  67. package/node_modules/pi-web-access/github-api.ts +1 -1
  68. package/node_modules/pi-web-access/github-extract.ts +3 -2
  69. package/node_modules/pi-web-access/index.ts +7 -3
  70. package/node_modules/pi-web-access/mcp-tool-definitions.ts +1 -1
  71. package/node_modules/pi-web-access/outcrawl.ts +204 -0
  72. package/node_modules/pi-web-access/package.json +2 -2
  73. package/node_modules/pi-web-access/sofya.ts +201 -0
  74. package/node_modules/pi-web-access/utils.ts +16 -6
  75. package/node_modules/pi-web-access/web-tool-core.ts +4 -0
  76. package/package.json +11 -11
@@ -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
  }
@@ -38,6 +38,7 @@ import type {
38
38
  ExtensionContext,
39
39
  } from "@earendil-works/pi-coding-agent"
40
40
  import type { AgentManager } from "../agent-manager.js"
41
+ import { reopenTarget, worktreeLost } from "../agent-record-entry.js"
41
42
  import { getAgentConfig, resolveSpawnType } from "../agent-types.js"
42
43
  import { resolveModel } from "../model-resolver.js"
43
44
  import { checkModelScope } from "../model-scope.js"
@@ -177,6 +178,27 @@ export function createWorkflowHost(deps: WorkflowHostOptions): WorkflowHost {
177
178
  const { pi, ctx, manager } = deps
178
179
  /** Runtime agent id → the manager record it spawned. Never pruned mid-run. */
179
180
  const records = new Map<string, string>()
181
+ /**
182
+ * Manager record id → what reopening that child needs once the manager has
183
+ * evicted it, ten minutes after it finished. A long review or a merge queue
184
+ * outlasts that easily, and `resume` must still reach the child (#385).
185
+ * Lives exactly as long as the run, like `records`, so memory stays bounded
186
+ * by the run itself; the manager keeps no tombstone for an owned child.
187
+ */
188
+ const settled = new Map<
189
+ string,
190
+ Pick<AgentRecord, "type" | "description" | "sessionFile"> & {
191
+ worktreeLost: boolean
192
+ }
193
+ >()
194
+ const remember = (record: AgentRecord): void => {
195
+ settled.set(record.id, {
196
+ type: record.type,
197
+ description: record.description,
198
+ sessionFile: record.sessionFile,
199
+ worktreeLost: worktreeLost(record),
200
+ })
201
+ }
180
202
  /**
181
203
  * scopeModels warnings already toasted, so a fan-out that pins one
182
204
  * out-of-scope agent file raises one notification rather than one per child.
@@ -214,6 +236,66 @@ export function createWorkflowHost(deps: WorkflowHostOptions): WorkflowHost {
214
236
  return { ok: result.code === 0, output }
215
237
  }
216
238
 
239
+ /**
240
+ * Resume a child the manager has evicted: reopen its saved session under the
241
+ * same id, still owned by this run, as `Agent({ resume })` does for a
242
+ * top-level agent. The continuation runs under the agent type's current
243
+ * definition, like every reopen — the script's model, schema and isolation
244
+ * for the first run are not replayed.
245
+ */
246
+ async function reopenAgent(
247
+ id: string,
248
+ prompt: string,
249
+ onResolved: Parameters<NonNullable<WorkflowHost["resumeAgent"]>>[2],
250
+ ): Promise<WorkflowSpawnResult> {
251
+ const kept = settled.get(id)
252
+ if (kept === undefined)
253
+ return {
254
+ ok: false,
255
+ error: `Agent ${id} cannot be resumed — it never finished a run to resume from.`,
256
+ }
257
+ const reopen = reopenTarget(kept.type, kept.sessionFile, kept.worktreeLost)
258
+ if (!reopen.ok)
259
+ return {
260
+ ok: false,
261
+ error: `Agent ${id} cannot be resumed — ${reopen.reason}.`,
262
+ }
263
+ const config = getAgentConfig(reopen.type)
264
+ try {
265
+ const { record } = await manager.spawnAndWait(
266
+ pi,
267
+ ctx,
268
+ reopen.type,
269
+ prompt,
270
+ {
271
+ description: kept.description,
272
+ resumeSessionFile: reopen.sessionFile,
273
+ reclaim: { id },
274
+ ...(config?.isolated !== undefined
275
+ ? { isolated: config.isolated }
276
+ : {}),
277
+ ...(deps.workflowId !== undefined
278
+ ? { workflowId: deps.workflowId }
279
+ : {}),
280
+ ...(deps.signal !== undefined ? { signal: deps.signal } : {}),
281
+ ...(deps.rootSessionId !== undefined
282
+ ? { rootSessionId: deps.rootSessionId }
283
+ : {}),
284
+ },
285
+ () => onResolved?.({ recordId: id }),
286
+ )
287
+ remember(record)
288
+ const info = resolvedInfo(record)
289
+ if (info !== undefined) onResolved?.(info)
290
+ return toSpawnResult(record)
291
+ } catch (error) {
292
+ return {
293
+ ok: false,
294
+ error: error instanceof Error ? error.message : String(error),
295
+ }
296
+ }
297
+ }
298
+
217
299
  return {
218
300
  async spawnAgent(request) {
219
301
  const dispatch = resolveSpawnType(request.agentType)
@@ -402,6 +484,7 @@ export function createWorkflowHost(deps: WorkflowHostOptions): WorkflowHost {
402
484
  reportResolved()
403
485
  },
404
486
  )
487
+ remember(record)
405
488
  return {
406
489
  ...toSpawnResult(record),
407
490
  ...(gate !== undefined ? { gate } : {}),
@@ -433,12 +516,11 @@ export function createWorkflowHost(deps: WorkflowHostOptions): WorkflowHost {
433
516
  }
434
517
  }
435
518
  const record = await manager.resume(id, prompt, deps.signal)
436
- if (record === undefined) {
437
- return {
438
- ok: false,
439
- error: `Agent ${id} has no session left to resume — records are dropped ten minutes after they finish.`,
440
- }
441
- }
519
+ // No live session: the manager evicted the child, or it never got as far
520
+ // as having one. `reopenAgent` refuses the second with the reason — and a
521
+ // record still in memory without a session is refused by the manager,
522
+ // which never reopens an id that is still live.
523
+ if (record === undefined) return reopenAgent(id, prompt, onResolved)
442
524
  // The resumed row is built from scratch, so it has to be told the same
443
525
  // thing the first one was — the child's session already exists, so this is
444
526
  // simply read back rather than waited for. The id goes first for the same
@@ -379,8 +379,9 @@ export function stats(
379
379
  let started = 0
380
380
  let anyLive = false
381
381
 
382
- for (const entry of progress) {
383
- if (entry.type !== "workflow_agent") continue
382
+ // The log holds an entry per transition (queued, started, progress, settled);
383
+ // only each agent's latest one describes it.
384
+ for (const entry of collapse(progress).agents) {
384
385
  seen++
385
386
  if (entry.state === "done") {
386
387
  done++
@@ -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
  }
@@ -2,6 +2,27 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.7.12 - 2026-11-04
6
+
7
+ - Reuse the shared credential redactor for `/commandcode-status` diagnostic text while preserving URL query, fragment, and userinfo removal. Defensive hardening with synthetic regression coverage, not a confirmed production leak. Carries the shared-redactor fix from #165 by @patlux ([#195](https://github.com/patlux/pi-commandcode-provider/pull/195)).
8
+ - Clear the `/commandcode-status` stream-warning slot when the next Responses HTTP request starts, rather than keeping a one-off malformed-reasoning warning until restart. Other transports do not clear the slot; concurrent Responses requests still share it. Carries the warning-reset fix from #165 by @patlux, with precise reset semantics and a real Pi RPC regression ([#194](https://github.com/patlux/pi-commandcode-provider/pull/194)).
9
+ - Preserve and double context-tier rates alongside base rates during DeepSeek V4 peak windows on the Provider API path. Copy the readonly catalog into an independent mutable cost table at the native-host boundary. The adapter's mutable return shape is guarded by the project typecheck and mutation tests; this does not extend typecheck coverage to the host entrypoint. This is a synthetic future-proofing case: no current time-priced model has context tiers. Carries the peak-tier fix from #165 by @patlux, with the native-host contract adapted during integration ([#193](https://github.com/patlux/pi-commandcode-provider/pull/193)).
10
+ - Reset the transport probe on `/commandcode-refresh` so an upgraded Go account retries the Provider API with the same key. Prevent requests started before a reset or key change from overwriting the new probe result. Carries the refresh fix from #165 by @patlux, with same-key race coverage and a real Pi RPC wiring test ([#192](https://github.com/patlux/pi-commandcode-provider/pull/192)).
11
+ - Make server-side taste learning opt-in on the legacy generate transport via `COMMANDCODE_TASTE_LEARNING=1`, always disabled under `CMD_ZDR=1` or `COMMANDCODE_ZDR=1`. Caller headers cannot override this policy, regardless of casing. Document the working-directory, project-slug, and session metadata. Carries the taste-learning fix from #165 by @patlux, with the header-override review concern addressed ([#191](https://github.com/patlux/pi-commandcode-provider/pull/191)).
12
+ - Validate pasted `/login` API keys against the configured `COMMANDCODE_API_BASE` instead of always calling production, with a 15-second deadline even when fetch ignores cancellation. An explicitly empty base is preserved instead of silently sending the key to production. Carries the login-validation fix from #165 by @patlux ([#190](https://github.com/patlux/pi-commandcode-provider/pull/190)).
13
+ - Read ambient credentials through one shared reader for the Provider API, generate fallback, and quota commands. The generate fallback now follows the documented `.commandcode` → pi → `.omp` file order and accepts the `"command-code": "user_..."` string form. `PI_CODING_AGENT_DIR` redirects the pi slot without falling back to the default pi profile; `.commandcode` and `.omp` still resolve from `HOME`. Carries the credential-reader fix from #165 by @patlux ([#189](https://github.com/patlux/pi-commandcode-provider/pull/189)).
14
+ - Require the matching login state token before honoring OAuth callback errors, and reject the local development browser origin `http://localhost:3000`. Invalid callbacks leave the server waiting for the legitimate login. Carried forward from @patlux's #165 (`a918138`); callbacks that omit the state on cancellation now wait for the existing timeout and manual-key fallback instead of cancelling immediately ([#186](https://github.com/patlux/pi-commandcode-provider/pull/186)).
15
+ - Add reviewed zero display pricing for `stealth/crouton-alpha`, free up to 1,000 requests per day while the stealth preview lasts, with no fixed expiry published. Refresh the API/pricing snapshots to 96 models, verified on 2026-11-04. CLI capability metadata remains unchanged at `command-code@1.88.2`; Crouton keeps conservative text-only, non-reasoning defaults with a 65,536-token output limit and uses its advertised Chat Completions endpoint ([#188](https://github.com/patlux/pi-commandcode-provider/pull/188)).
16
+ - Report generate response-body stalls as timeouts instead of user cancellations, retrying only while no visible content has been emitted and the retry budget remains. Real user cancellations still abort without retry. Carried forward from @patlux's #165 (`cef7402`); the native Provider API transports are unchanged ([#187](https://github.com/patlux/pi-commandcode-provider/pull/187)).
17
+ - Add reviewed display pricing for `inclusionai/ling-3.1-flash-1019` after its free preview ended on 2026-11-03 at 16:00 UTC: $0.30 input / $0.90 output / $0.06 cache read per million tokens, with no cache-write charge. Remove the retired `:free` entry and its dated pricing guard, and refresh the 95-model snapshot against the Provider API. The existing `inclusionai/ling-3.1-flash` keeps its own list rates. The CLI still publishes no capability metadata for the 1019 model, so it retains conservative text-only, non-reasoning defaults with a 65,536-token output limit ([#185](https://github.com/patlux/pi-commandcode-provider/pull/185)).
18
+ - Refresh the capability snapshot pin to `command-code@1.88.2`; upstream reports no capability or output-limit changes ([#178](https://github.com/patlux/pi-commandcode-provider/pull/178)).
19
+ - Stabilize the abort regression test by cancelling after the first observed text delta, verifying iterator completion and upstream closure, and bounding failed-test teardown. Cover immediate and delayed mock responses; no runtime behavior change ([#196](https://github.com/patlux/pi-commandcode-provider/pull/196)).
20
+
21
+ ### Contributors
22
+
23
+ - @patlux (Patrick Wozniak) — authored the nine auth, credential, privacy, transport, pricing-tier and diagnostic-redaction lots carried forward from #165 through #186, #187 and #189–#195.
24
+ - @pierreraby — reviewed and adapted the carries, contributed integration guards and tests, maintained model pricing, stabilized the abort test, and prepared this release.
25
+
5
26
  ## 0.7.11 - 2026-10-28
6
27
 
7
28
  - Refresh the static capability snapshot to `command-code@1.88.1`, which publishes metadata for two models the CLI previously did not describe: `moonshotai/Kimi-K3.1-Pro` finally gains image input, reasoning, and selectable `low`/`high`/`max` efforts instead of the conservative text-only defaults it carried since 0.7.10, and the newly advertised `gpt-6.1-terra` arrives with image input, reasoning, and `low`/`medium`/`high`/`xhigh`/`max` efforts. Neither model publishes a model-specific output limit, so both keep the 65,536-token default. No other model metadata changed ([#175](https://github.com/patlux/pi-commandcode-provider/pull/175)).