@xmoon76/dsh-pi-tui 0.5.3 → 0.5.5

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 (59) hide show
  1. package/README.en.md +195 -150
  2. package/README.md +137 -103
  3. package/cordis.patch.yml +54 -2
  4. package/dist/application-runtime-CbBO4bY-.mjs +6860 -0
  5. package/dist/bootstrap-DLOydLLj.mjs +108410 -0
  6. package/dist/builtins.mjs +2 -3
  7. package/dist/client-bootstrap-DwSFzcTW.mjs +872 -0
  8. package/dist/context-summary-Bz0AGXa1.mjs +12027 -0
  9. package/dist/context-summary-D9mhxPXL.mjs +10015 -0
  10. package/dist/custom-items-CKrOBCox.mjs +655 -0
  11. package/dist/disposal-BYBbEpVY.mjs +54 -0
  12. package/dist/dispose-cause-BzcXo4hu.mjs +123 -0
  13. package/dist/dispose-cause-CNFuUnjR.mjs +24 -0
  14. package/dist/dist-C7QMk0ws.mjs +15431 -0
  15. package/dist/entry-control-DnduyDiw.mjs +92 -0
  16. package/dist/extension/advanced.d.mts +1 -1
  17. package/dist/extension/unstable.d.mts +1 -1
  18. package/dist/{extensions-DzpBiiYb.d.mts → extensions-Bte3XOt5.d.mts} +1 -1
  19. package/dist/{extensions-a-rxanjw.mjs → extensions-pcFiH7Qe.mjs} +1498 -410
  20. package/dist/extensions.d.mts +2 -2
  21. package/dist/extensions.mjs +1 -1
  22. package/dist/host-bootstrap-CKdfLkNS.mjs +188 -0
  23. package/dist/host-foundation-probe-CYHsbAw6.mjs +143 -0
  24. package/dist/host-prerequisites-9JBTtVNu.mjs +36 -0
  25. package/dist/host-runtime.d.mts +26 -0
  26. package/dist/host-runtime.mjs +450 -0
  27. package/dist/index.d.mts +9 -2
  28. package/dist/index.mjs +45779 -24480
  29. package/dist/local-client.mjs +1816 -0
  30. package/dist/local-discovery-CXnLT4GF.mjs +755 -0
  31. package/dist/local-discovery-DVFFpfBG.mjs +2 -0
  32. package/dist/local-host.mjs +1025 -0
  33. package/dist/local-transport-C9aonplC.mjs +513 -0
  34. package/dist/performance-host.d.mts +2 -2
  35. package/dist/performance-host.mjs +258 -1
  36. package/dist/{performance-view-jvvd8Jn7.mjs → performance-view-CfGvLZyD.mjs} +1 -1
  37. package/dist/pi-tui-remote-contribution-DRk6Tl3J.mjs +78 -0
  38. package/dist/pi-tui-terminal-progress-contract-CdBH9j78.mjs +70 -0
  39. package/dist/pi-tui-terminal-progress-contract-XTQKj-WW.mjs +905 -0
  40. package/dist/{public-types-gZi3iFNh.d.mts → public-types-Dgf1bDke.d.mts} +3 -3
  41. package/dist/{runtime-BtPH-UUb.mjs → runtime-Bh5OsftD.mjs} +1311 -1024
  42. package/dist/runtime-C5ROZqFj.mjs +2 -0
  43. package/dist/runtime-status-0lp9CM0V.mjs +1923 -0
  44. package/dist/session-4keoXjk0.mjs +10869 -0
  45. package/dist/session-B2zqv4wr.mjs +10869 -0
  46. package/dist/{startup-D5Xu8diR.mjs → startup-Ct2UUjUL.mjs} +55 -13
  47. package/dist/startup.d.mts +2 -1
  48. package/dist/startup.mjs +1 -1
  49. package/dist/terminal-progress-source-BhufrZ74.mjs +6000 -0
  50. package/dist/terminal-progress-source-CsBinCJ_.mjs +965 -0
  51. package/dist/visual-tools.d.mts +62 -0
  52. package/dist/visual-tools.mjs +556 -0
  53. package/generated/dsh-presets/README.md +1 -1
  54. package/package.json +145 -117
  55. package/dist/context-summary-CxUpNkA9.mjs +0 -2951
  56. package/dist/performance-host-BJT6scGF.mjs +0 -266
  57. package/dist/rolldown-runtime-8H4AJuhK.mjs +0 -14
  58. package/dist/session-BZLxhrPQ.mjs +0 -5697
  59. package/dist/terminal-progress-source-BlmksrSD.mjs +0 -2200
package/README.en.md CHANGED
@@ -40,8 +40,8 @@ dsh --profile pi-tui
40
40
  > `0.2.1-alpha.5`, while `@xmoon76/dsh-pi-tui@next` still resolves to
41
41
  > `0.5.2-rc.1` (peer floor `>=0.2.0-rc.2`, and npm semver excludes a
42
42
  > different-major.minor.patch prerelease). Use the pairing table below and
43
- > [the compatibility document](docs/dsh-compatibility.md) for the exact pair; the
44
- > stable `0.5.3` publishes to `@latest`, not `@next`, so no installable compatible
43
+ > [compatibility guide](docs/guides/dsh-compatibility.md) for the matching rules; the
44
+ > stable `0.5.5` publishes to `@latest`, not `@next`, so no installable compatible
45
45
  > combination exists on those two moving channels. Validate this exact checkout
46
46
  > with `pnpm compat:dsh:npm`.
47
47
 
@@ -52,7 +52,7 @@ checkout and exercises the full build/test/package path):
52
52
  pnpm compat:dsh:npm
53
53
  ```
54
54
 
55
- See the [compatibility guide](docs/dsh-compatibility.md) for the stable minimum,
55
+ See the [compatibility guide](docs/guides/dsh-compatibility.md) for the stable minimum,
56
56
  next compatibility range, and fallback paths.
57
57
 
58
58
  ### Requirements
@@ -64,23 +64,32 @@ next compatibility range, and fallback paths.
64
64
 
65
65
  | TUI package line | Official DSH tags for the pairing | Notes |
66
66
  |---|---|---|
67
- | `0.5.3` (stable / `@latest`) | `dsh-v0.2.1-rc.2` | Current published stable line; both the minimum and the exact validation target are the 0.2.1-rc.2 family |
67
+ | `0.5.5` (stable / `@latest`) | `dsh-v0.2.1-rc.2`, `dsh-v0.2.1-rc.3`, `dsh-v0.2.1-rc.4`, `dsh-v0.2.1-rc.5` | Current stable line; the minimum DSH version is 0.2.1-rc.2, and this checkout's exact validation target is 0.2.1-rc.5 |
68
+ | `0.5.4` (stable, previous) | `dsh-v0.2.1-rc.2`, `dsh-v0.2.1-rc.3`, `dsh-v0.2.1-rc.4` | Previous stable line; the minimum DSH version is 0.2.1-rc.2, and it passes the official preset assembly on all three DSH versions |
69
+ | `0.5.3` (stable, previous) | `dsh-v0.2.1-rc.2`, `dsh-v0.2.1-rc.3`, `dsh-v0.2.1-rc.4` | Previous stable line; the minimum DSH version is 0.2.1-rc.2, and it passes the official preset assembly on all three DSH versions |
68
70
  | `0.5.1` (stable, previous) | `dsh-v0.2.0-rc.2` | Previous stable line; both the minimum and the exact validation target are the 0.2.0-rc.2 family |
69
71
  | `0.5.2-rc.1` (published next-channel preview) | `dsh-v0.2.0-rc.2` | Previous next preview: published to the npm `next` dist-tag on 2026-10-17; its whole peer floor stays `>=0.2.0-rc.2`, so it does not cover 0.2.1-rc.2 |
70
- | `dsh-v0.2.1-rc.1` (no paired TUI) | none | No released TUI in this matrix claims that intermediate release; never reuse `0.5.3` for it |
72
+ | `dsh-v0.2.1-rc.1` (no paired TUI) | none | No released TUI in this matrix claims that intermediate release; never reuse `0.5.5` for it |
71
73
  | `0.5.0` (stable, previous) | `dsh-v0.1.7-rc.2`, `dsh-v0.2.0-rc.1` | Previous stable; 0.1.7-rc.2 minimum, exact validation target 0.2.0-rc.1 |
72
74
  | `0.4.9` (stable, previous) | `dsh-v0.1.7-rc.2` | Previous stable; the compatible TUI for a 0.1.7-rc.2 runtime |
73
75
  | `0.4.8` (stable, previous) | `dsh-v0.1.7-rc.1` | Previous stable; the compatible TUI for a 0.1.7-rc.1 runtime |
74
76
  | `0.4.6` (stable, previous) | `dsh-v0.1.5-rc.1`, `dsh-v0.1.5-rc.2` | Previous stable; the compatible TUI for a 0.1.5 runtime |
75
77
  | `0.4.7-alpha.2` (next, previous) | `dsh-v0.1.6-alpha.2` | Previous next line; the compatible TUI for a 0.1.6-alpha.2 runtime |
76
78
 
77
- Do not mix the stable and `@next` prerelease lines. `0.5.3` is the current
78
- published stable release: its minimum DSH version (peer floor) and its exact
79
- validation target are both the `0.2.1-rc.2` family. The intermediate
79
+ Do not mix the stable and `@next` prerelease lines. `0.5.5` is the current
80
+ stable release: its minimum DSH version (peer floor) stays the `0.2.1-rc.2`
81
+ family, and this checkout's exact validation target is `0.2.1-rc.5`. The
82
+ published `0.5.4` and `0.5.3` are the previous stable lines and also pair with
83
+ `0.2.1-rc.2`, `0.2.1-rc.3` and `0.2.1-rc.4`. The safe order for upgrading from
84
+ an older stable line to `0.5.5`: let in-flight conversation turns and
85
+ background jobs finish, exit the old TUI/DSH process normally, then install
86
+ `0.5.5` with the official plugin command and start it again. Do not install
87
+ the new package while an old process is still live and expect a
88
+ zero-interruption hot swap; no in-place lossless upgrade of a running old
89
+ Host is promised. The intermediate
80
90
  `dsh-v0.2.1-rc.1` has no paired TUI, and `0.5.2-rc.1` is the previous preview
81
91
  published to the npm `next` channel (its pairing, 0.2.0-rc.2, stays in the table
82
- above; it does not cover 0.2.1-rc.2, which is why the new stable line uses the
83
- `0.5.3` identity). The previous stable
92
+ above; it does not cover 0.2.1-rc.2). The previous stable
84
93
  `0.5.1` keeps pairing with 0.2.0-rc.2: it lifts the whole DSH peer floor to
85
94
  `>=0.2.0-rc.2` (the Question lifecycle consumes contracts published only in
86
95
  that rc.2 family). The previous stable `0.5.0`
@@ -88,9 +97,10 @@ line keeps its `>=0.1.7-rc.2` floor (exact validation target 0.2.0-rc.1);
88
97
  older runtimes fail at the normal
89
98
  incompatible-runtime boundary, so install the paired TUI line from the table
90
99
  above. The startup notice
91
- is best-effort rather than a Loader startup-order guarantee. See the [full
92
- historical compatibility matrix](docs/dsh-compatibility.md) for official-tag
93
- pairings and fallback commands, and see the [latest `next`
100
+ is best-effort rather than a Loader startup-order guarantee. The pairing table
101
+ above is the published-line summary; see the [compatibility
102
+ guide](docs/guides/dsh-compatibility.md) for general matching, fallback and
103
+ diagnosis, and the [latest `next`
94
104
  README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md) for the current
95
105
  integration status.
96
106
 
@@ -138,7 +148,12 @@ dsh --profile pi-tui --session <session-id>
138
148
  * Full-text Transcript search
139
149
  * Folding for long Session history
140
150
  * Context, token, model, and runtime status
151
+ * Full-screen Settings workspace: About status, Models / Account, Agent and dynamic Extensions
141
152
  * Approval and `ask_user_question` dialogs
153
+ * Images: terminal-capability admission, JPEG/WebP previews, draft images and a read-only viewer
154
+ * Chart/SVG tools, `present_visual` publication and inline final-answer rendering
155
+ * Delivered-files tail and the `/deliverables` browser
156
+ * Experimental TSP renderer: native tool cards, Work Hub, images and published figures
142
157
  * Plan Review
143
158
  * Todo / Goal status
144
159
  * Human-readable terminal window titles
@@ -148,6 +163,8 @@ dsh --profile pi-tui --session <session-id>
148
163
 
149
164
  `Ctrl+O` controls Tool and System details and expands/collapses long user prompts in regular mode and in fullscreen outside Focus — in fullscreen Focus it bulk-expands the recent Thought roots or collapses them all, while long user prompts are expanded by clicking the marker (or by a search hit) and collapsed with `Ctrl+O`. `Alt+T` controls Thinking separately.
150
165
 
166
+ Tool approvals appear in the editor seat: the full Reason/Arguments body is readable in a scrollable area (no six-line preview), with `y` to allow once, `n` to reject, `Esc`/`Ctrl+C` to cancel, `c` to copy the raw arguments and `e` to expand. Fullscreen can click the actually painted Allow once / Reject / Cancel actions and wheel the body; regular mode stays keyboard-only. Short viewports show the real compact payload or `Resize to inspect more`, never a cropped decision.
167
+
151
168
  ### Conversation display
152
169
 
153
170
  `/display` switches between three presentation presets: `full` (default) is the normal Transcript projection; `focus` groups the current turn's Thinking, Tool Calls, and intermediate replies into a live Thought block; `compact` folds contiguous process into `Activity` spans with Header + `Think:` / `Action:` previews, keeps the session and assistant intermediate output visible in chronological order, renders injected notice / relay / recall entries separately (adjacent environment injections merge into an expandable Context cluster), and expands with a mouse click or `Ctrl+O`. The `Display` row in `/settings` offers the same values and persists the choice; `/focus` remains available as a compatibility command.
@@ -223,16 +240,34 @@ Transcript's tool card. Explicit `run_in_background: true` jobs (and jobs
223
240
  promoted to the background after a foreground timeout) remain visible in
224
241
  `TRACKED` after completion as long as the Job Registry keeps their record.
225
242
 
226
- `/plugins` opens the active profile's fullscreen Plugin Manager: the catalog is
227
- grouped as TUI & Extensions / Official DSH / Third-party / Experimental (the
228
- Experimental group is always last), with a two-column wide layout and a
229
- one-column narrow layout. Search, status filters, provenance/status facts,
230
- official catalog installs, enablement and removal are available from the page;
231
- the actual Host-reported version, restart requirement and errors are shown
232
- verbatim. The `dsh-pi-tui` bundle currently providing the surface is read-only
233
- and cannot be disabled or removed from its own screen. The first-level
234
- `Settings → Plugins` category opens the same page in place, and returning
235
- preserves the Settings category, scroll and selection.
243
+ `/plugins` is a deep link into `/settings → Plugins`: both take the SAME
244
+ Settings fullscreen lease and the SAME Plugin Manager page — there is no
245
+ separate plugin screen and no Session create/switch. The catalog is grouped as
246
+ TUI & Extensions / Official DSH / Third-party / Experimental (the Experimental
247
+ group is always last). At >=120 columns, and only while the frame can grant six
248
+ real business-body rows, the frame shows
249
+ `Categories | Plugin List | Details`; a shorter frame degrades to the pair or one
250
+ column instead of squeezing the body. At 76-119 columns it shows
251
+ `Categories | List` or `List | Details` depending on the keyboard owner — the pair
252
+ again needs six real business-body rows, otherwise it degrades to one column; below
253
+ 76 columns it is one column. Install, dangerous confirmations and Diagnostics
254
+ always take the full width so risk text is never squeezed. Settings paints the
255
+ shared header/metadata/rule/pane header and the single last-row action bar; the
256
+ plugin page contributes only its business body. Search, status filters,
257
+ provenance/status facts, official catalog installs, enablement and removal are
258
+ available from the page; the actual Host-reported version, restart requirement
259
+ and errors are shown verbatim. The `dsh-pi-tui` bundle currently providing the
260
+ surface is read-only and cannot be disabled or removed from its own screen. The
261
+ category preview and `/plugins` share one page instance and one background
262
+ install request: `Esc` from the List returns to the Settings category and a
263
+ second `Esc` closes the workspace. Press `d` inside the page
264
+ for the read-only **Diagnostics** view: extension contribution health grouped by
265
+ owner (`active/failed/shadowed` with the full `lastError`), live registry counts,
266
+ the actual advertised capabilities, and contributions with no proven Loader-entry
267
+ owner under `Unassociated extension contributions`. `c` copies the selected fact,
268
+ `C` copies everything, `r` rereads and Esc returns. Diagnostics reads only the
269
+ extension ledger; Host package state and install logs stay out of it. `copy`
270
+ still proves emission only, never an OS-clipboard receipt.
236
271
 
237
272
  The 14 official rc.2 Experimental bundles carry a bounded, identity-exact
238
273
  Detail statement of their terminal surface and limits/risks (Web-only,
@@ -286,6 +321,24 @@ provider/model per call (bounded by the allowlist). The setting is sampled at
286
321
  session composition and never rewrites the tools of an already-running
287
322
  session.
288
323
 
324
+ ### Delivered files and `/deliverables`
325
+
326
+ A final answer's `present` files render as a compact tail: at most four files,
327
+ two rows each (path relative to the current display subject's workspace plus
328
+ description), with `+N more · /deliverables` beyond four. On a fullscreen
329
+ AltScreen, Full, Compact and Focus can click `Browse all` and per-file
330
+ `Details`; a regular split keeps only the command entry.
331
+
332
+ `/deliverables` opens the delivery panel for the currently displayed session
333
+ (including a viewed child) with Files / Turns / Details: `↑↓` selects, `Enter`
334
+ opens details, `/` filters by filename, full Host path and description, `T`
335
+ switches among Turns with deliveries, `C` copies the raw Host path and `Esc`
336
+ goes back or closes. `Enter Preview` on Details reads one 120-line page of UTF-8
337
+ Host text; binary/document suffixes show that preview is unavailable without
338
+ reading bytes; a file that changes between pages restarts from the beginning.
339
+ Panel text is mouse-selectable, the panel is centered, and a terminal resize
340
+ keeps the current page, filter, cursor and scroll position.
341
+
289
342
  ### Shell
290
343
 
291
344
  The editor supports two Shell modes:
@@ -362,6 +415,9 @@ Common entry points:
362
415
  ```text
363
416
  /model
364
417
  /settings
418
+ /status
419
+ /deliverables
420
+ /view-image
365
421
  /login
366
422
  /permission
367
423
  /plan
@@ -371,116 +427,74 @@ Common entry points:
371
427
  /statusline
372
428
  ```
373
429
 
374
- Model selection, Reasoning Effort, permission presets, Plan, and Goal all keep the corresponding DSH runtime semantics. `/model` candidates come only from the Host catalog: rc.2's `deepseek-flash` is identified by the exact `(provider, model)` pair (the display name `DeepSeek-V4.1-Flash` is never the ID), and a selection writes the official Session/global default. A deployment catalog that no longer offers the ID shows no invented row.
375
-
376
- `/settings` opens a real full-screen workspace where the three-, two- and
377
- single-column layouts are projections of the SAME `categories → rows → detail`
378
- levels: wide terminals show all three columns, medium ones show
379
- `categories + rows` or `rows + details` for the current level, and narrow ones
380
- show only the current level. At every width ASCII `Right` advances exactly one
381
- level and `Left` returns one level (inert at L0); `Enter` follows the same
382
- transitions, and `Esc`/`Backspace` step back, closing at the outermost level.
383
- `Tab`/`Shift+Tab` remain inert. The Action Bar stays pinned to the last physical
384
- row. Multi-column choosing retains the active `[Details]` marker unless that
385
- heading would consume the only content row. It presents the real Appearance /
386
- Display facts: the theme's source-qualified raw value plus its friendly name,
387
- Icon style, the live Transcript display preset alongside the persisted preference,
388
- the live Thinking detail state, and each row's configuration Scope and backend
389
- readiness. `R`
390
- re-reads and `C` copies the selected row's exact source value. Browsing, choosing
391
- and copying alone never write configuration.
392
-
393
- The **`Configured theme` and `Transcript display` rows are directly editable**:
394
- from L1, `Right` or `Enter`, the painted `[Change…]` button, or ordinary visible
395
- Detail content opens the candidate choice in the SAME L2 pane. Current-value and
396
- Runtime/Persisted facts stay in the same pane above the candidate region and scroll
397
- independently. `Up`/`Down`/`Home`/`End` move the candidate; `PgUp`/`PgDn` and the
398
- wheel over facts scroll only the fact region, while the candidate wheel scrolls
399
- independently. During choice, `C` copies the original row value only while the
400
- Action Bar paints `c copy`; it never copies or commits the draft candidate. `Enter`
401
- or `[Confirm]` confirms explicitly, and `Left`/`Esc`/`Backspace` or `[Cancel]`
402
- cancels directly to L1 without writing anything. If the selected candidate identity
403
- has scrolled out of view, the first Enter only reveals it; confirmation requires a
404
- later Enter. From L2 browse or a settled outcome, Enter reopens choice for a
405
- writable non-pending row. At 44×8, a long identity may first reclaim the optional
406
- `Choose value` heading; if still needed, the fact area shrinks only to one original
407
- `Value` row. The complete identity, `Confirm` and `Enter confirm` must be visible
408
- before a write.
409
- An identity beyond the remaining candidate capacity stays unconfirmable. Only
410
- buttons and candidates that are really painted can be clicked. A confirmed change is stored through the existing
411
- serialized whole-document write path and then re-read from the authority: the
412
- detail names the live runtime fact (`Runtime`, e.g. the current palette) and the
413
- stored preference (`Persisted`) separately and states `Saving…`, `Verified`,
414
- `Not saved · <reason>`, `Commit accepted · verification unavailable` or
415
- `Outcome unknown · <reason>` — only a completed write whose authoritative
416
- re-read agrees is called Verified; a rejected write re-reads the authority first
417
- and reports Not saved only while it still carries the value the request started
418
- from; a third value, a value already in place or an unreadable authority is
419
- Outcome unknown, and a success whose readable readback disagrees is a failure
420
- rather than "verification unavailable". On a non-ready backend the theme is
421
- neither applied nor written; a display preset may already be live locally and
422
- then says that it was not stored instead of pretending it was. A plugin theme is
423
- resolved again by its source-qualified identity at confirm time, so an unloaded
424
- plugin theme is listed as unavailable and refused rather than degrading into a
425
- same-named file theme. Icon style and Thinking detail stay read-only rows. The
426
- existing complete settings editor is still available: `Other settings` → `Open
427
- existing settings…` retires the workspace and restores the surface it paused
428
- before opening the original editor, so Theme, the Plugin Manager, keybindings,
429
- permissions and extension settings keep every existing write path.
430
-
431
- `Other settings` in `/settings` now has a `Web Search / Fetch` row: it retires the workspace,
432
- opens the existing editor's Web section and focuses its first item. The section switches the search
433
- provider (`Messages`, the official default, or the separately billed `DeepSeek Search API`), the fetch
434
- provider (`HTTP`, the official default, or `DeepSeek Fetch API`), the Search API result count (1–50,
435
- quick picks 5/10/20/50), `Share Original Question` (on by default; each new Search API call carries
436
- up to 128 characters of the triggering human question as `ori_question`, never the full history or
437
- system prompt) and the API endpoint base (an https address the user must confirm explicitly; the
438
- credential and query are sent to it). Both APIs are separate opt-in billed providers: a login or an
439
- ordinary Messages plan does not guarantee coverage of their fees, and the default
440
- `Messages`/`HTTP` combination calls no billed API. This Web configuration belongs to the base
441
- profile, not to a Bxx Optional Bundle, so installing or enabling another bundle never changes these
442
- providers. `[current]` moves only after
443
- the official mutation and its authoritative read-back agree, and a refused write reads `Not saved`.
444
- The choice applies to the next search/fetch; a running operation is never changed retroactively. The
445
- DeepSeek API key row shows only whether the reference is configured and its source layer; configure
446
- or clear it through the existing masked `/login DEEPSEEK_API_KEY` / `/logout DEEPSEEK_API_KEY` paths,
447
- which run after the settings surface closes. Esc from the Web section restores the same
448
- `Web Search / Fetch` row; the original `Open existing settings…` entry still returns to the
449
- conversation. A Remote backend reports the section unavailable and names no Host namespace.
450
-
451
- The `Icon style` option in `/settings` switches the TUI's structural icons:
452
- `Emoji` (default, colorful), `Symbols` (compact single-cell terminal
453
- symbols), or `Minimal` (decorative icons hidden; only status/interaction
454
- markers remain). Switching applies immediately and persists.
455
-
456
- The `Terminal progress` row in `/settings` selects the native terminal status
457
- reporting in four modes: `9;4+7501` (default — both the OSC 9;4 progress bar and
458
- the OSC 7501 semantic state), `9;4` (progress-bar compatibility only), `7501`
459
- (semantic state only: working, waiting for approval/answer, done, error) and
460
- `Off` (clear and stop reporting). Switching applies immediately; done and error
461
- are reported only once a real run's last turn result is proven, while a
462
- cancelled or interrupted run returns to idle. A persisted `On` reads as the
463
- dual-protocol default.
464
-
465
- Terminal compatibility: a terminal that does not know OSC 7501 simply ignores
466
- it — Ghostty's GUI currently shows the OSC 9;4 progress bar and not the 7501
467
- semantic state, which is expected and not a reporting failure. Inside tmux and
468
- other terminal multiplexers an unknown OSC may not be forwarded to the outer
469
- terminal (this feature deliberately implements no tmux DCS passthrough and does
470
- not change multiplexer settings); use an outer terminal that supports it when
471
- the state must survive a multiplexer. The OSC 7501 semantic state describes the
472
- current Main Agent only.
473
-
474
- This project's own Remote composition (experimental, our Host) reports the same
475
- state: the Host side is served by this extension's private Host status stream and
476
- shares ONE interval classifier with Direct. **A third-party DSH Host without this
477
- extension's Host plugin is not supported** (it has no equivalent event source).
478
-
479
- Slash Commands registered by other plugins through `ctx.commands` are discovered automatically.
430
+ Model selection, Reasoning Effort, permission presets, Plan, and Goal all keep the corresponding DSH runtime semantics. `/model` candidates come only from the Host catalog: `deepseek-flash` is identified by the exact `(provider, model)` pair (the display name `DeepSeek-V4.1-Flash` is never the ID), and a selection writes the official Session/global default. A deployment catalog that no longer offers the ID shows no invented row.
431
+
432
+ `/settings` and `/status` open the same full-screen settings workspace on the
433
+ About home. Wide and medium terminals show a category rail plus the content
434
+ column; narrow terminals (under 76 columns) show About directly. The fixed
435
+ categories are About / Models / Account / Agent / Appearance / Conversation /
436
+ Input & Terminal / Tools / Plugins, with Extensions appended only while the
437
+ extension settings registry has rows. `Tab`/`Shift+Tab` move focus between
438
+ regions, `Right`/`Enter` go one level deeper, `Left`/`Esc`/`Backspace` step
439
+ back, and the outermost back closes the workspace; the Action Bar stays on the
440
+ last row.
441
+
442
+ About shows the TUI/DSH versions, backend, captured session identity,
443
+ whole-session statistics, TTFB/throughput and Context occupancy; `c` copies the
444
+ selected fact's raw value, `C` copies the full report and `r` refreshes. The old
445
+ `/status` page is gone; extension diagnostics moved to
446
+ `Settings → Plugins → Diagnostics` (`d`).
447
+
448
+ Models lists the Host provider catalog, API-key presence (not a connectivity
449
+ test), provider details, masked input and clear confirmations, the Add Provider
450
+ wizard and provider-native sign-in; the home lists only configured providers,
451
+ with unconfigured ones in the Add Provider catalog. Account shows sign-in state,
452
+ the browser authorization URL, SSH tunnel guidance, independent wallets, exact
453
+ attempt cancellation, refresh and a confirmed sign-out. `/login` and `/logout`
454
+ open the matching page deep link. DeepSeek Account sign-in uses the official Host
455
+ `host-webserver` loopback `/oauth/callback` on `127.0.0.1:0`; the TUI never
456
+ receives a token or grant, and `--help` opens no port.
457
+
458
+ Settings edits in place: Appearance (Icon style, Status line mode), Conversation
459
+ (Transcript detail, Thinking detail, Progress updates, Response style, Submit
460
+ while busy, Git attribution), Input & Terminal (Home/End keys, Fullscreen, wheel
461
+ lines, notifications, Terminal progress, Footer layout, Keyboard shortcuts),
462
+ Agent (approval policy, default permission, subagent model allowlist/selection,
463
+ user shell sandbox), Tools (Web Search / Fetch, Visual tools) and Extensions
464
+ (dynamic settings grouped by plugin). Every write needs explicit confirmation
465
+ and reports `Verified` / `Not saved` / `Outcome unknown` from the authoritative
466
+ read-back; `Fullscreen` applies after Settings closes normally. `/footer`,
467
+ `/statusline`, bare `/keybindings` and `/plugins` are deep links into the same
468
+ workspace; the legacy main settings editor and standalone plugin screen are
469
+ gone.
470
+
471
+ The **Visual tools** switch under `Settings → Tools` (default On) is the
472
+ profile-wide `pi-tui-visual-tools.enabled` and controls `dsh_pi_tui_chart`,
473
+ `dsh_pi_tui_svg` and `present_visual` together. After it is turned off, new
474
+ model requests no longer see the three tools, while historical results remain
475
+ displayable, copyable, searchable and exportable. Direct verifies the Host
476
+ registry state before showing Verified; Remote only reports that the preference
477
+ was saved.
478
+
479
+ `Settings → Tools → Web Search / Fetch` is a page in the same workspace: search
480
+ and fetch providers, result count, `Share Original Question`, HTTPS endpoint and
481
+ a read-only API-key reference. Each value is written only by an explicit Enter
482
+ confirmation and shows the Host's authoritative read-back. The two APIs are
483
+ separately billed providers; the default Messages/HTTP pair calls no billed API.
484
+
485
+ `Extensions` groups the live registration rows by owner with `Tab`/`Shift+Tab`
486
+ cycling groups and arrows/Home/End/paging/wheel staying inside the group.
487
+ Entries open native Detail/Choice; only an explicit Confirm writes to the
488
+ running plugin, `Verified` requires a live read-back, and a same-id HMR
489
+ re-registration inherits no old state. Extension settings never write the TUI
490
+ settings document or a Host profile.
480
491
 
481
492
  ### Footer customization
482
493
 
483
- `/footer` is the interactive Footer editor. You can combine builtin status items, change their side and order, choose a Style and Tone, edit Prefix/Suffix and Importance, and create your own Footer items.
494
+ `/footer` opens the Footer editor inside the same full-screen Settings workspace
495
+ (Appearance → Configure footer layout). You can combine builtin status items,
496
+ change their side and order, choose a Style and Tone, edit Prefix/Suffix and
497
+ Importance, and create your own Footer items.
484
498
 
485
499
  Four item sources are supported:
486
500
 
@@ -495,11 +509,41 @@ A `/footer` Custom Command Item is different from `footer: command`: the former
495
509
 
496
510
  For the full `/footer` workflow, Custom Text / Command items, YAML reference, security model, and troubleshooting, see:
497
511
 
498
- - [Footer customization guide](docs/footer-customization.md)
499
- - [Extension API for plugin authors](docs/extension-api.md)
512
+ - [Footer customization guide](docs/guides/footer.md)
513
+ - [Extension API for plugin authors](docs/extensions/stable.md)
500
514
 
501
515
  `/statusline` is an alias of `/footer`.
502
516
 
517
+ ### Images
518
+
519
+ Ctrl+V reads the system clipboard: an image becomes the canonical placeholder `[image #N (WxH)]` with draft thumbnails in one row above the composer (a short window lets the client hide that row, while typing and sending still work and the status line keeps reporting the real draft count); text is inserted at the live caret. `/image` and `/attach` can also add an image or a regular file to the current draft. A placeholder that appears several times shows several positions while the bytes are read and uploaded once.
520
+
521
+ Images in user messages, assistant messages and tool results are shown inside their own card, in their original order: one identity line (name, pixel size, byte count) plus one image. The PiTUI viewer is described below; in the experimental TSP renderer, viewing and zooming are the Tern client's own affordances (moving between neighbouring images depends on the client's version and capabilities). When an image cannot be read, its format is unsupported, or it exceeds the 16 MiB single-image limit, the card states the identity and the real reason instead of drawing a fabricated image. On a native Kitty terminal, transcript thumbnails, the composer draft card and the fullscreen image viewer all first convert JPEG/WebP to a bounded PNG in the background before painting pixels (WebP uses only its first frame, EXIF orientation is applied, and the longest edge is capped at 768 pixels; the identity row and the viewer keep the original name, dimensions, media type and byte count; the draft card only derives the one last local image it is allowed to show). A collapsed occurrence never starts a conversion; while converting or after a failure only text is shown (a failure reads `Preview unavailable`), and only a body that really painted pixels is clickable. The fullscreen viewer shows that same bounded derivative rather than a full-resolution original; PNG, iTerm2, GIF, narrow and graphics-unsupported terminals keep their existing behavior.
522
+
523
+ The rightmost three cells of a fullscreen image info row are `[-]`/`[+]`, folding only that image; clicking its body opens the read-only viewer. `/view-image` lists the images of the currently mounted transcript window; `Enter` views one and `Esc back` returns to the same list.
524
+
525
+ ### Image protocol selection
526
+
527
+ The default is `auto` (Direct/Zellij use Kitty > SIXEL > text; tmux keeps its live U1/Sxl relative priority). Choose a protocol explicitly at startup with the same `PI_IMAGE_PROTOCOL` variable:
528
+
529
+ ```sh
530
+ PI_IMAGE_PROTOCOL=auto # default; strict local Zellij + Windows Terminal avoids the known startup Kitty false positive
531
+ PI_IMAGE_PROTOCOL=kitty # only an admitted Kitty transport, otherwise text
532
+ PI_IMAGE_PROTOCOL=sixel # only an admitted SIXEL transport (Direct needs real DA1; Zellij/tmux keep their own gates), otherwise text
533
+ PI_IMAGE_PROTOCOL=iterm2 # Direct legacy iTerm2 only; multiplexers never pretend to forward it
534
+ PI_IMAGE_PROTOCOL=none # disable image pixels for every renderer; 0 is equivalent
535
+ ```
536
+
537
+ An explicit value is a protocol **selection**, not a promise for an unsupported terminal: tmux live-client/Sxl/U1 checks, Zellij DA1/version/Screen readiness and DCS ownership still apply. Invalid values fail startup. `none` only disables terminal pixel previews; image attachments, model input and sending are unchanged. The experimental TSP renderer's native images follow the same switch.
538
+
539
+ ### TSP renderer (experimental)
540
+
541
+ Set `DSH_PI_TUI_RENDERER=tsp` to enable the experimental Tern TSP renderer:
542
+ native tool cards, Preparing rows, PTC child calls, the Work Hub
543
+ (`/tasks`, `/subagents`), image paste and historical images, and native display
544
+ with Copy for published charts/SVGs. The default renderer remains PiTui;
545
+ Settings and Plugins pages that TSP cannot host are refused explicitly.
546
+
503
547
  ## Common keys
504
548
 
505
549
  | Key | Action |
@@ -518,6 +562,9 @@ For the full `/footer` workflow, Custom Text / Command items, YAML reference, se
518
562
  | `Ctrl+End` | Jump to the latest Transcript output in fullscreen; a clickable `↓ Latest` appears after leaving the live tail |
519
563
  | `Ctrl+O` | Expand / collapse Tool and System details and long user prompts in regular/fullscreen-non-Focus; in fullscreen Focus, bulk-toggle the Thought roots (expand long user prompts by clicking the marker) |
520
564
  | `Alt+T` | Expand / collapse Thinking |
565
+ | `Alt+V` | Select / cycle the current window's published charts or SVGs |
566
+ | `Alt+C` | Copy the selected chart / SVG |
567
+ | `Alt+O` | Open the selected SVG |
521
568
  | `Ctrl+G` | Edit current input in `$VISUAL`/`$EDITOR` |
522
569
  | `Ctrl+V` | Paste image |
523
570
  | `Tab` | Autocomplete slash commands and file paths |
@@ -575,8 +622,9 @@ keybindings:
575
622
  action-first, editable Keyboard Shortcuts Editor: it groups actions by
576
623
  category, searches action IDs/descriptions/current keys/default keys, and
577
624
  marks customized, conflict, Unbound, Disabled, and fixed states. A standalone Leader key row also configures the global leader key.
578
- - `/settings` has one `Keyboard shortcuts` launcher that opens the same editor
579
- and persistence controller as `/keybindings`.
625
+ - `/settings` has one `Keyboard shortcuts…` entry that opens the same-lease
626
+ full-screen page and the same persistence controller as bare `/keybindings`
627
+ (no 88-column overlay).
580
628
  - The recorder reads a real terminal key, parses it with `parseKey`, and stores
581
629
  the canonical `KeyId`; known dead, typing-swallowing, terminal-ambiguous, and
582
630
  conflicting shortcuts are rejected before saving. Ordinary recording cancels
@@ -729,12 +777,11 @@ export function apply(ctx: Context): void {
729
777
 
730
778
  Documentation:
731
779
 
732
- * [Extension API](docs/extension-api.md)
733
- * [Extension tiers](docs/extension-tiers.md)
734
- * [Advanced API](docs/extension-advanced.md)
735
- * [Unstable API](docs/extension-unstable.md)
736
- * [Plugin authoring](docs/plugin-authoring.md)
737
- * [Capability matrix](docs/extension-capability-matrix.md)
780
+ * [Extension API](docs/extensions/stable.md)
781
+ * [Extension tiers](docs/extensions/tiers.md)
782
+ * [Advanced API](docs/extensions/advanced.md)
783
+ * [Unstable API](docs/extensions/unstable.md)
784
+ * [Plugin authoring](docs/extensions/authoring.md)
738
785
 
739
786
  ## Development
740
787
 
@@ -792,7 +839,7 @@ The published package already contains the Pi TUI fork required at runtime. No s
792
839
 
793
840
  ### CI validation policy
794
841
 
795
- CI follows the tracked `test/compat/dsh-mode.json` policy for pushes to `next` and pull requests targeting `next`; `main` and every tag use npm Mode. Source Mode reads the source target from `test/compat/dsh-source.json` and validates the complete official DSH tarball family, TUI presets, and the old-runtime boundary; npm Mode uses the DSH version declared by the checkout's `package.json` and frozen lockfile to run the registry lane. The published `pi2dsh` ecosystem check is explicitly marked skipped for an unpublished source family. See [`docs/dsh-compatibility.md`](docs/dsh-compatibility.md) for the full workflow.
842
+ CI follows the tracked `test/compat/dsh-mode.json` policy for pushes to `next` and pull requests targeting `next`; `main` and every tag use npm Mode. Source Mode reads the source target from `test/compat/dsh-source.json` and validates the complete official DSH tarball family, TUI presets, and the old-runtime boundary; npm Mode uses the DSH version declared by the checkout's `package.json` and frozen lockfile to run the registry lane. The published `pi2dsh` ecosystem check runs in both modes and always targets the published ecosystem (it installs the published DSH and pi2dsh from the registry), so a source pack is explicitly skipped rather than passed. See [`docs/guides/dsh-compatibility.md`](docs/guides/dsh-compatibility.md) for the compatibility method.
796
843
 
797
844
  ## Repository layout
798
845
 
@@ -819,15 +866,13 @@ Contributor-oriented repository structure and development rules are documented i
819
866
 
820
867
  | Document | Content |
821
868
  | ------------------------------------------------------ | --------------------------------- |
822
- | [docs/README.md](docs/README.md) | Documentation index |
823
- | [docs/architecture.md](docs/architecture.md) | Architecture and module ownership |
824
- | [docs/input-history.md](docs/input-history.md) | Input history |
825
- | [docs/surface-decisions.md](docs/surface-decisions.md) | TUI interaction decisions |
826
- | [docs/concurrency.md](docs/concurrency.md) | Session concurrency |
827
- | [docs/failure-model.md](docs/failure-model.md) | Async failure / cancellation |
828
- | [docs/perf-baseline.md](docs/perf-baseline.md) | Performance baseline |
829
- | [docs/local-development.md](docs/local-development.md) | Local development and worktree policy |
830
- | [docs/extension-api.md](docs/extension-api.md) | Extension API |
869
+ | [docs/README.md](docs/README.md) | Documentation policy and index |
870
+ | [docs/architecture/overview.md](docs/architecture/overview.md) | Architecture, layers and dependency direction |
871
+ | [docs/architecture/host-client.md](docs/architecture/host-client.md) | Host/Client boundary and currentness contracts |
872
+ | [docs/architecture/surface-behavior.md](docs/architecture/surface-behavior.md) | Workspace/task/plugin surface behavior |
873
+ | [docs/guides/development.md](docs/guides/development.md) | Local development, worktrees and benchmark reruns |
874
+ | [docs/extensions/stable.md](docs/extensions/stable.md) | Extension API |
875
+ | [docs/guides/code-review.md](docs/guides/code-review.md) | Repository review checkpoints |
831
876
  | [AGENTS.md](AGENTS.md) | Contributor operating manual |
832
877
 
833
878
  ## Changelog