@xmoon76/dsh-pi-tui 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +174 -150
- package/README.md +118 -103
- package/cordis.patch.yml +54 -2
- package/dist/builtins.mjs +2 -2
- package/dist/client-bootstrap-F5DHFI9t.mjs +5576 -0
- package/dist/context-summary-DAisTA_7.mjs +8557 -0
- package/dist/dispose-cause-CNFuUnjR.mjs +24 -0
- package/dist/entry-control-DvSrndWd.mjs +111 -0
- package/dist/extension/advanced.d.mts +1 -1
- package/dist/extension/unstable.d.mts +1 -1
- package/dist/{extensions-DzpBiiYb.d.mts → extensions-Bte3XOt5.d.mts} +1 -1
- package/dist/{extensions-a-rxanjw.mjs → extensions-CcuMY4n2.mjs} +722 -324
- package/dist/extensions.d.mts +2 -2
- package/dist/extensions.mjs +1 -1
- package/dist/host-bootstrap-DAgKknbY.mjs +119 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +45243 -27018
- package/dist/local-client.mjs +323 -0
- package/dist/local-host.mjs +176 -0
- package/dist/{performance-host-BJT6scGF.mjs → performance-host-CcDJjjVA.mjs} +1 -1
- package/dist/performance-host.mjs +1 -1
- package/dist/{performance-view-jvvd8Jn7.mjs → performance-view-CfGvLZyD.mjs} +1 -1
- package/dist/{public-types-gZi3iFNh.d.mts → public-types-Dgf1bDke.d.mts} +3 -3
- package/dist/runtime-status-0lp9CM0V.mjs +1923 -0
- package/dist/{runtime-BtPH-UUb.mjs → runtime-vc4mdr-R.mjs} +1395 -1088
- package/dist/{session-BZLxhrPQ.mjs → session-tdJHLnJR.mjs} +3329 -281
- package/dist/{startup-D5Xu8diR.mjs → startup-JaVZoTIl.mjs} +54 -13
- package/dist/startup.d.mts +2 -1
- package/dist/startup.mjs +1 -1
- package/dist/{terminal-progress-source-BlmksrSD.mjs → terminal-progress-source-xor3vakJ.mjs} +102 -46
- package/dist/visual-tools.d.mts +62 -0
- package/dist/visual-tools.mjs +556 -0
- package/generated/dsh-presets/README.md +1 -1
- package/package.json +132 -113
- package/dist/context-summary-CxUpNkA9.mjs +0 -2951
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
|
-
> [
|
|
44
|
-
> stable `0.5.
|
|
43
|
+
> [compatibility guide](docs/guides/dsh-compatibility.md) for the matching rules; the
|
|
44
|
+
> stable `0.5.4` 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,25 @@ 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.
|
|
67
|
+
| `0.5.4` (stable / `@latest`) | `dsh-v0.2.1-rc.2`, `dsh-v0.2.1-rc.3`, `dsh-v0.2.1-rc.4` | 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.4 |
|
|
68
|
+
| `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
69
|
| `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
70
|
| `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.
|
|
71
|
+
| `dsh-v0.2.1-rc.1` (no paired TUI) | none | No released TUI in this matrix claims that intermediate release; never reuse `0.5.4` for it |
|
|
71
72
|
| `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
73
|
| `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
74
|
| `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
75
|
| `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
76
|
| `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
77
|
|
|
77
|
-
Do not mix the stable and `@next` prerelease lines. `0.5.
|
|
78
|
-
|
|
79
|
-
validation target
|
|
78
|
+
Do not mix the stable and `@next` prerelease lines. `0.5.4` is the current
|
|
79
|
+
stable release: its minimum DSH version (peer floor) stays the `0.2.1-rc.2`
|
|
80
|
+
family, and this checkout's exact validation target is `0.2.1-rc.4`. The
|
|
81
|
+
published `0.5.3` is the previous stable line and also pairs with `0.2.1-rc.2`,
|
|
82
|
+
`0.2.1-rc.3` and `0.2.1-rc.4`. The intermediate
|
|
80
83
|
`dsh-v0.2.1-rc.1` has no paired TUI, and `0.5.2-rc.1` is the previous preview
|
|
81
84
|
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
|
|
83
|
-
`0.5.3` identity). The previous stable
|
|
85
|
+
above; it does not cover 0.2.1-rc.2). The previous stable
|
|
84
86
|
`0.5.1` keeps pairing with 0.2.0-rc.2: it lifts the whole DSH peer floor to
|
|
85
87
|
`>=0.2.0-rc.2` (the Question lifecycle consumes contracts published only in
|
|
86
88
|
that rc.2 family). The previous stable `0.5.0`
|
|
@@ -88,9 +90,10 @@ line keeps its `>=0.1.7-rc.2` floor (exact validation target 0.2.0-rc.1);
|
|
|
88
90
|
older runtimes fail at the normal
|
|
89
91
|
incompatible-runtime boundary, so install the paired TUI line from the table
|
|
90
92
|
above. The startup notice
|
|
91
|
-
is best-effort rather than a Loader startup-order guarantee.
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
is best-effort rather than a Loader startup-order guarantee. The pairing table
|
|
94
|
+
above is the published-line summary; see the [compatibility
|
|
95
|
+
guide](docs/guides/dsh-compatibility.md) for general matching, fallback and
|
|
96
|
+
diagnosis, and the [latest `next`
|
|
94
97
|
README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md) for the current
|
|
95
98
|
integration status.
|
|
96
99
|
|
|
@@ -138,7 +141,12 @@ dsh --profile pi-tui --session <session-id>
|
|
|
138
141
|
* Full-text Transcript search
|
|
139
142
|
* Folding for long Session history
|
|
140
143
|
* Context, token, model, and runtime status
|
|
144
|
+
* Full-screen Settings workspace: About status, Models / Account, Agent and dynamic Extensions
|
|
141
145
|
* Approval and `ask_user_question` dialogs
|
|
146
|
+
* Images: terminal-capability admission, JPEG/WebP previews, draft images and a read-only viewer
|
|
147
|
+
* Chart/SVG tools, `present_visual` publication and inline final-answer rendering
|
|
148
|
+
* Delivered-files tail and the `/deliverables` browser
|
|
149
|
+
* Experimental TSP renderer: native tool cards, Work Hub, images and published figures
|
|
142
150
|
* Plan Review
|
|
143
151
|
* Todo / Goal status
|
|
144
152
|
* Human-readable terminal window titles
|
|
@@ -148,6 +156,8 @@ dsh --profile pi-tui --session <session-id>
|
|
|
148
156
|
|
|
149
157
|
`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
158
|
|
|
159
|
+
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.
|
|
160
|
+
|
|
151
161
|
### Conversation display
|
|
152
162
|
|
|
153
163
|
`/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 +233,34 @@ Transcript's tool card. Explicit `run_in_background: true` jobs (and jobs
|
|
|
223
233
|
promoted to the background after a foreground timeout) remain visible in
|
|
224
234
|
`TRACKED` after completion as long as the Job Registry keeps their record.
|
|
225
235
|
|
|
226
|
-
`/plugins`
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
`
|
|
235
|
-
|
|
236
|
+
`/plugins` is a deep link into `/settings → Plugins`: both take the SAME
|
|
237
|
+
Settings fullscreen lease and the SAME Plugin Manager page — there is no
|
|
238
|
+
separate plugin screen and no Session create/switch. The catalog is grouped as
|
|
239
|
+
TUI & Extensions / Official DSH / Third-party / Experimental (the Experimental
|
|
240
|
+
group is always last). At >=120 columns, and only while the frame can grant six
|
|
241
|
+
real business-body rows, the frame shows
|
|
242
|
+
`Categories | Plugin List | Details`; a shorter frame degrades to the pair or one
|
|
243
|
+
column instead of squeezing the body. At 76-119 columns it shows
|
|
244
|
+
`Categories | List` or `List | Details` depending on the keyboard owner — the pair
|
|
245
|
+
again needs six real business-body rows, otherwise it degrades to one column; below
|
|
246
|
+
76 columns it is one column. Install, dangerous confirmations and Diagnostics
|
|
247
|
+
always take the full width so risk text is never squeezed. Settings paints the
|
|
248
|
+
shared header/metadata/rule/pane header and the single last-row action bar; the
|
|
249
|
+
plugin page contributes only its business body. Search, status filters,
|
|
250
|
+
provenance/status facts, official catalog installs, enablement and removal are
|
|
251
|
+
available from the page; the actual Host-reported version, restart requirement
|
|
252
|
+
and errors are shown verbatim. The `dsh-pi-tui` bundle currently providing the
|
|
253
|
+
surface is read-only and cannot be disabled or removed from its own screen. The
|
|
254
|
+
category preview and `/plugins` share one page instance and one background
|
|
255
|
+
install request: `Esc` from the List returns to the Settings category and a
|
|
256
|
+
second `Esc` closes the workspace. Press `d` inside the page
|
|
257
|
+
for the read-only **Diagnostics** view: extension contribution health grouped by
|
|
258
|
+
owner (`active/failed/shadowed` with the full `lastError`), live registry counts,
|
|
259
|
+
the actual advertised capabilities, and contributions with no proven Loader-entry
|
|
260
|
+
owner under `Unassociated extension contributions`. `c` copies the selected fact,
|
|
261
|
+
`C` copies everything, `r` rereads and Esc returns. Diagnostics reads only the
|
|
262
|
+
extension ledger; Host package state and install logs stay out of it. `copy`
|
|
263
|
+
still proves emission only, never an OS-clipboard receipt.
|
|
236
264
|
|
|
237
265
|
The 14 official rc.2 Experimental bundles carry a bounded, identity-exact
|
|
238
266
|
Detail statement of their terminal surface and limits/risks (Web-only,
|
|
@@ -286,6 +314,24 @@ provider/model per call (bounded by the allowlist). The setting is sampled at
|
|
|
286
314
|
session composition and never rewrites the tools of an already-running
|
|
287
315
|
session.
|
|
288
316
|
|
|
317
|
+
### Delivered files and `/deliverables`
|
|
318
|
+
|
|
319
|
+
A final answer's `present` files render as a compact tail: at most four files,
|
|
320
|
+
two rows each (path relative to the current display subject's workspace plus
|
|
321
|
+
description), with `+N more · /deliverables` beyond four. On a fullscreen
|
|
322
|
+
AltScreen, Full, Compact and Focus can click `Browse all` and per-file
|
|
323
|
+
`Details`; a regular split keeps only the command entry.
|
|
324
|
+
|
|
325
|
+
`/deliverables` opens the delivery panel for the currently displayed session
|
|
326
|
+
(including a viewed child) with Files / Turns / Details: `↑↓` selects, `Enter`
|
|
327
|
+
opens details, `/` filters by filename, full Host path and description, `T`
|
|
328
|
+
switches among Turns with deliveries, `C` copies the raw Host path and `Esc`
|
|
329
|
+
goes back or closes. `Enter Preview` on Details reads one 120-line page of UTF-8
|
|
330
|
+
Host text; binary/document suffixes show that preview is unavailable without
|
|
331
|
+
reading bytes; a file that changes between pages restarts from the beginning.
|
|
332
|
+
Panel text is mouse-selectable, the panel is centered, and a terminal resize
|
|
333
|
+
keeps the current page, filter, cursor and scroll position.
|
|
334
|
+
|
|
289
335
|
### Shell
|
|
290
336
|
|
|
291
337
|
The editor supports two Shell modes:
|
|
@@ -362,6 +408,9 @@ Common entry points:
|
|
|
362
408
|
```text
|
|
363
409
|
/model
|
|
364
410
|
/settings
|
|
411
|
+
/status
|
|
412
|
+
/deliverables
|
|
413
|
+
/view-image
|
|
365
414
|
/login
|
|
366
415
|
/permission
|
|
367
416
|
/plan
|
|
@@ -371,116 +420,74 @@ Common entry points:
|
|
|
371
420
|
/statusline
|
|
372
421
|
```
|
|
373
422
|
|
|
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:
|
|
375
|
-
|
|
376
|
-
`/settings`
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
row.
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
and
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
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.
|
|
423
|
+
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.
|
|
424
|
+
|
|
425
|
+
`/settings` and `/status` open the same full-screen settings workspace on the
|
|
426
|
+
About home. Wide and medium terminals show a category rail plus the content
|
|
427
|
+
column; narrow terminals (under 76 columns) show About directly. The fixed
|
|
428
|
+
categories are About / Models / Account / Agent / Appearance / Conversation /
|
|
429
|
+
Input & Terminal / Tools / Plugins, with Extensions appended only while the
|
|
430
|
+
extension settings registry has rows. `Tab`/`Shift+Tab` move focus between
|
|
431
|
+
regions, `Right`/`Enter` go one level deeper, `Left`/`Esc`/`Backspace` step
|
|
432
|
+
back, and the outermost back closes the workspace; the Action Bar stays on the
|
|
433
|
+
last row.
|
|
434
|
+
|
|
435
|
+
About shows the TUI/DSH versions, backend, captured session identity,
|
|
436
|
+
whole-session statistics, TTFB/throughput and Context occupancy; `c` copies the
|
|
437
|
+
selected fact's raw value, `C` copies the full report and `r` refreshes. The old
|
|
438
|
+
`/status` page is gone; extension diagnostics moved to
|
|
439
|
+
`Settings → Plugins → Diagnostics` (`d`).
|
|
440
|
+
|
|
441
|
+
Models lists the Host provider catalog, API-key presence (not a connectivity
|
|
442
|
+
test), provider details, masked input and clear confirmations, the Add Provider
|
|
443
|
+
wizard and provider-native sign-in; the home lists only configured providers,
|
|
444
|
+
with unconfigured ones in the Add Provider catalog. Account shows sign-in state,
|
|
445
|
+
the browser authorization URL, SSH tunnel guidance, independent wallets, exact
|
|
446
|
+
attempt cancellation, refresh and a confirmed sign-out. `/login` and `/logout`
|
|
447
|
+
open the matching page deep link. DeepSeek Account sign-in uses the official Host
|
|
448
|
+
`host-webserver` loopback `/oauth/callback` on `127.0.0.1:0`; the TUI never
|
|
449
|
+
receives a token or grant, and `--help` opens no port.
|
|
450
|
+
|
|
451
|
+
Settings edits in place: Appearance (Icon style, Status line mode), Conversation
|
|
452
|
+
(Transcript detail, Thinking detail, Progress updates, Response style, Submit
|
|
453
|
+
while busy, Git attribution), Input & Terminal (Home/End keys, Fullscreen, wheel
|
|
454
|
+
lines, notifications, Terminal progress, Footer layout, Keyboard shortcuts),
|
|
455
|
+
Agent (approval policy, default permission, subagent model allowlist/selection,
|
|
456
|
+
user shell sandbox), Tools (Web Search / Fetch, Visual tools) and Extensions
|
|
457
|
+
(dynamic settings grouped by plugin). Every write needs explicit confirmation
|
|
458
|
+
and reports `Verified` / `Not saved` / `Outcome unknown` from the authoritative
|
|
459
|
+
read-back; `Fullscreen` applies after Settings closes normally. `/footer`,
|
|
460
|
+
`/statusline`, bare `/keybindings` and `/plugins` are deep links into the same
|
|
461
|
+
workspace; the legacy main settings editor and standalone plugin screen are
|
|
462
|
+
gone.
|
|
463
|
+
|
|
464
|
+
The **Visual tools** switch under `Settings → Tools` (default On) is the
|
|
465
|
+
profile-wide `pi-tui-visual-tools.enabled` and controls `dsh_pi_tui_chart`,
|
|
466
|
+
`dsh_pi_tui_svg` and `present_visual` together. After it is turned off, new
|
|
467
|
+
model requests no longer see the three tools, while historical results remain
|
|
468
|
+
displayable, copyable, searchable and exportable. Direct verifies the Host
|
|
469
|
+
registry state before showing Verified; Remote only reports that the preference
|
|
470
|
+
was saved.
|
|
471
|
+
|
|
472
|
+
`Settings → Tools → Web Search / Fetch` is a page in the same workspace: search
|
|
473
|
+
and fetch providers, result count, `Share Original Question`, HTTPS endpoint and
|
|
474
|
+
a read-only API-key reference. Each value is written only by an explicit Enter
|
|
475
|
+
confirmation and shows the Host's authoritative read-back. The two APIs are
|
|
476
|
+
separately billed providers; the default Messages/HTTP pair calls no billed API.
|
|
477
|
+
|
|
478
|
+
`Extensions` groups the live registration rows by owner with `Tab`/`Shift+Tab`
|
|
479
|
+
cycling groups and arrows/Home/End/paging/wheel staying inside the group.
|
|
480
|
+
Entries open native Detail/Choice; only an explicit Confirm writes to the
|
|
481
|
+
running plugin, `Verified` requires a live read-back, and a same-id HMR
|
|
482
|
+
re-registration inherits no old state. Extension settings never write the TUI
|
|
483
|
+
settings document or a Host profile.
|
|
480
484
|
|
|
481
485
|
### Footer customization
|
|
482
486
|
|
|
483
|
-
`/footer`
|
|
487
|
+
`/footer` opens the Footer editor inside the same full-screen Settings workspace
|
|
488
|
+
(Appearance → Configure footer layout). You can combine builtin status items,
|
|
489
|
+
change their side and order, choose a Style and Tone, edit Prefix/Suffix and
|
|
490
|
+
Importance, and create your own Footer items.
|
|
484
491
|
|
|
485
492
|
Four item sources are supported:
|
|
486
493
|
|
|
@@ -495,11 +502,27 @@ A `/footer` Custom Command Item is different from `footer: command`: the former
|
|
|
495
502
|
|
|
496
503
|
For the full `/footer` workflow, Custom Text / Command items, YAML reference, security model, and troubleshooting, see:
|
|
497
504
|
|
|
498
|
-
- [Footer customization guide](docs/footer
|
|
499
|
-
- [Extension API for plugin authors](docs/
|
|
505
|
+
- [Footer customization guide](docs/guides/footer.md)
|
|
506
|
+
- [Extension API for plugin authors](docs/extensions/stable.md)
|
|
500
507
|
|
|
501
508
|
`/statusline` is an alias of `/footer`.
|
|
502
509
|
|
|
510
|
+
### Images
|
|
511
|
+
|
|
512
|
+
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.
|
|
513
|
+
|
|
514
|
+
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.
|
|
515
|
+
|
|
516
|
+
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.
|
|
517
|
+
|
|
518
|
+
### TSP renderer (experimental)
|
|
519
|
+
|
|
520
|
+
Set `DSH_PI_TUI_RENDERER=tsp` to enable the experimental Tern TSP renderer:
|
|
521
|
+
native tool cards, Preparing rows, PTC child calls, the Work Hub
|
|
522
|
+
(`/tasks`, `/subagents`), image paste and historical images, and native display
|
|
523
|
+
with Copy for published charts/SVGs. The default renderer remains PiTui;
|
|
524
|
+
Settings and Plugins pages that TSP cannot host are refused explicitly.
|
|
525
|
+
|
|
503
526
|
## Common keys
|
|
504
527
|
|
|
505
528
|
| Key | Action |
|
|
@@ -518,6 +541,9 @@ For the full `/footer` workflow, Custom Text / Command items, YAML reference, se
|
|
|
518
541
|
| `Ctrl+End` | Jump to the latest Transcript output in fullscreen; a clickable `↓ Latest` appears after leaving the live tail |
|
|
519
542
|
| `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
543
|
| `Alt+T` | Expand / collapse Thinking |
|
|
544
|
+
| `Alt+V` | Select / cycle the current window's published charts or SVGs |
|
|
545
|
+
| `Alt+C` | Copy the selected chart / SVG |
|
|
546
|
+
| `Alt+O` | Open the selected SVG |
|
|
521
547
|
| `Ctrl+G` | Edit current input in `$VISUAL`/`$EDITOR` |
|
|
522
548
|
| `Ctrl+V` | Paste image |
|
|
523
549
|
| `Tab` | Autocomplete slash commands and file paths |
|
|
@@ -575,8 +601,9 @@ keybindings:
|
|
|
575
601
|
action-first, editable Keyboard Shortcuts Editor: it groups actions by
|
|
576
602
|
category, searches action IDs/descriptions/current keys/default keys, and
|
|
577
603
|
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
|
|
579
|
-
and persistence controller as `/keybindings
|
|
604
|
+
- `/settings` has one `Keyboard shortcuts…` entry that opens the same-lease
|
|
605
|
+
full-screen page and the same persistence controller as bare `/keybindings`
|
|
606
|
+
(no 88-column overlay).
|
|
580
607
|
- The recorder reads a real terminal key, parses it with `parseKey`, and stores
|
|
581
608
|
the canonical `KeyId`; known dead, typing-swallowing, terminal-ambiguous, and
|
|
582
609
|
conflicting shortcuts are rejected before saving. Ordinary recording cancels
|
|
@@ -729,12 +756,11 @@ export function apply(ctx: Context): void {
|
|
|
729
756
|
|
|
730
757
|
Documentation:
|
|
731
758
|
|
|
732
|
-
* [Extension API](docs/
|
|
733
|
-
* [Extension tiers](docs/
|
|
734
|
-
* [Advanced API](docs/
|
|
735
|
-
* [Unstable API](docs/
|
|
736
|
-
* [Plugin authoring](docs/
|
|
737
|
-
* [Capability matrix](docs/extension-capability-matrix.md)
|
|
759
|
+
* [Extension API](docs/extensions/stable.md)
|
|
760
|
+
* [Extension tiers](docs/extensions/tiers.md)
|
|
761
|
+
* [Advanced API](docs/extensions/advanced.md)
|
|
762
|
+
* [Unstable API](docs/extensions/unstable.md)
|
|
763
|
+
* [Plugin authoring](docs/extensions/authoring.md)
|
|
738
764
|
|
|
739
765
|
## Development
|
|
740
766
|
|
|
@@ -792,7 +818,7 @@ The published package already contains the Pi TUI fork required at runtime. No s
|
|
|
792
818
|
|
|
793
819
|
### CI validation policy
|
|
794
820
|
|
|
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
|
|
821
|
+
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
822
|
|
|
797
823
|
## Repository layout
|
|
798
824
|
|
|
@@ -819,15 +845,13 @@ Contributor-oriented repository structure and development rules are documented i
|
|
|
819
845
|
|
|
820
846
|
| Document | Content |
|
|
821
847
|
| ------------------------------------------------------ | --------------------------------- |
|
|
822
|
-
| [docs/README.md](docs/README.md)
|
|
823
|
-
| [docs/architecture.md](docs/architecture.md)
|
|
824
|
-
| [docs/
|
|
825
|
-
| [docs/surface-
|
|
826
|
-
| [docs/
|
|
827
|
-
| [docs/
|
|
828
|
-
| [docs/
|
|
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 |
|
|
848
|
+
| [docs/README.md](docs/README.md) | Documentation policy and index |
|
|
849
|
+
| [docs/architecture/overview.md](docs/architecture/overview.md) | Architecture, layers and dependency direction |
|
|
850
|
+
| [docs/architecture/host-client.md](docs/architecture/host-client.md) | Host/Client boundary and currentness contracts |
|
|
851
|
+
| [docs/architecture/surface-behavior.md](docs/architecture/surface-behavior.md) | Workspace/task/plugin surface behavior |
|
|
852
|
+
| [docs/guides/development.md](docs/guides/development.md) | Local development, worktrees and benchmark reruns |
|
|
853
|
+
| [docs/extensions/stable.md](docs/extensions/stable.md) | Extension API |
|
|
854
|
+
| [docs/guides/code-review.md](docs/guides/code-review.md) | Repository review checkpoints |
|
|
831
855
|
| [AGENTS.md](AGENTS.md) | Contributor operating manual |
|
|
832
856
|
|
|
833
857
|
## Changelog
|