@xmoon76/dsh-pi-tui 0.5.4 → 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.
- package/README.en.md +28 -7
- package/README.md +25 -6
- package/dist/application-runtime-CbBO4bY-.mjs +6860 -0
- package/dist/bootstrap-DLOydLLj.mjs +108410 -0
- package/dist/builtins.mjs +2 -3
- package/dist/client-bootstrap-DwSFzcTW.mjs +872 -0
- package/dist/context-summary-Bz0AGXa1.mjs +12027 -0
- package/dist/{context-summary-DAisTA_7.mjs → context-summary-D9mhxPXL.mjs} +1468 -10
- package/dist/custom-items-CKrOBCox.mjs +655 -0
- package/dist/disposal-BYBbEpVY.mjs +54 -0
- package/dist/dispose-cause-BzcXo4hu.mjs +123 -0
- package/dist/dist-C7QMk0ws.mjs +15431 -0
- package/dist/{entry-control-DvSrndWd.mjs → entry-control-DnduyDiw.mjs} +12 -31
- package/dist/{extensions-CcuMY4n2.mjs → extensions-pcFiH7Qe.mjs} +758 -68
- package/dist/extensions.mjs +1 -1
- package/dist/host-bootstrap-CKdfLkNS.mjs +188 -0
- package/dist/host-foundation-probe-CYHsbAw6.mjs +143 -0
- package/dist/host-prerequisites-9JBTtVNu.mjs +36 -0
- package/dist/host-runtime.d.mts +26 -0
- package/dist/host-runtime.mjs +450 -0
- package/dist/index.d.mts +8 -1
- package/dist/index.mjs +5192 -2118
- package/dist/local-client.mjs +1681 -188
- package/dist/local-discovery-CXnLT4GF.mjs +755 -0
- package/dist/local-discovery-DVFFpfBG.mjs +2 -0
- package/dist/local-host.mjs +927 -78
- package/dist/local-transport-C9aonplC.mjs +513 -0
- package/dist/performance-host.d.mts +2 -2
- package/dist/performance-host.mjs +258 -1
- package/dist/pi-tui-remote-contribution-DRk6Tl3J.mjs +78 -0
- package/dist/pi-tui-terminal-progress-contract-CdBH9j78.mjs +70 -0
- package/dist/pi-tui-terminal-progress-contract-XTQKj-WW.mjs +905 -0
- package/dist/{runtime-vc4mdr-R.mjs → runtime-Bh5OsftD.mjs} +655 -675
- package/dist/runtime-C5ROZqFj.mjs +2 -0
- package/dist/{session-tdJHLnJR.mjs → session-4keoXjk0.mjs} +2341 -217
- package/dist/session-B2zqv4wr.mjs +10869 -0
- package/dist/{startup-JaVZoTIl.mjs → startup-Ct2UUjUL.mjs} +7 -6
- package/dist/startup.d.mts +1 -1
- package/dist/startup.mjs +1 -1
- package/dist/{client-bootstrap-F5DHFI9t.mjs → terminal-progress-source-BhufrZ74.mjs} +3431 -3007
- package/dist/terminal-progress-source-CsBinCJ_.mjs +965 -0
- package/package.json +125 -116
- package/dist/host-bootstrap-DAgKknbY.mjs +0 -119
- package/dist/performance-host-CcDJjjVA.mjs +0 -266
- package/dist/rolldown-runtime-8H4AJuhK.mjs +0 -14
- package/dist/terminal-progress-source-xor3vakJ.mjs +0 -2256
package/README.en.md
CHANGED
|
@@ -41,7 +41,7 @@ dsh --profile pi-tui
|
|
|
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
43
|
> [compatibility guide](docs/guides/dsh-compatibility.md) for the matching rules; the
|
|
44
|
-
> stable `0.5.
|
|
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
|
|
|
@@ -64,22 +64,29 @@ 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.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 |
|
|
68
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 |
|
|
69
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 |
|
|
70
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 |
|
|
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.
|
|
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 |
|
|
72
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 |
|
|
73
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 |
|
|
74
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 |
|
|
75
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 |
|
|
76
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 |
|
|
77
78
|
|
|
78
|
-
Do not mix the stable and `@next` prerelease lines. `0.5.
|
|
79
|
+
Do not mix the stable and `@next` prerelease lines. `0.5.5` is the current
|
|
79
80
|
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.
|
|
81
|
-
published `0.5.3`
|
|
82
|
-
`0.2.1-rc.3` and `0.2.1-rc.4`. The
|
|
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
|
|
83
90
|
`dsh-v0.2.1-rc.1` has no paired TUI, and `0.5.2-rc.1` is the previous preview
|
|
84
91
|
published to the npm `next` channel (its pairing, 0.2.0-rc.2, stays in the table
|
|
85
92
|
above; it does not cover 0.2.1-rc.2). The previous stable
|
|
@@ -515,6 +522,20 @@ Images in user messages, assistant messages and tool results are shown inside th
|
|
|
515
522
|
|
|
516
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.
|
|
517
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
|
+
|
|
518
539
|
### TSP renderer (experimental)
|
|
519
540
|
|
|
520
541
|
Set `DSH_PI_TUI_RENDERER=tsp` to enable the experimental Tern TSP renderer:
|
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ dsh --profile pi-tui
|
|
|
38
38
|
> `@deepseek-ai/dsh@alpha` 指向 `0.2.1-alpha.5`,而 `@xmoon76/dsh-pi-tui@next`
|
|
39
39
|
> 仍指向 `0.5.2-rc.1`(peer floor `>=0.2.0-rc.2`,npm semver 不接受不同
|
|
40
40
|
> major.minor.patch tuple 的 prerelease)。请以下方版本对应表和
|
|
41
|
-
> [兼容性指南](docs/guides/dsh-compatibility.md) 的通用匹配原则为准;稳定版 `0.5.
|
|
41
|
+
> [兼容性指南](docs/guides/dsh-compatibility.md) 的通用匹配原则为准;稳定版 `0.5.5` 发布在
|
|
42
42
|
> `@latest` 而不是 `@next`,因此这两个移动 channel 上没有可安装的兼容组合。
|
|
43
43
|
> 本 checkout 的精确验证请使用 `pnpm compat:dsh:npm`。
|
|
44
44
|
|
|
@@ -60,21 +60,26 @@ pnpm compat:dsh:npm
|
|
|
60
60
|
|
|
61
61
|
| TUI 包版本 | 对应的官方 DSH tags | 说明 |
|
|
62
62
|
|---|---|---|
|
|
63
|
-
| `0.5.
|
|
63
|
+
| `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` | 当前稳定版;最低 DSH 版本为 0.2.1-rc.2,本仓库当前 checkout 的精确验证目标为 0.2.1-rc.5 |
|
|
64
|
+
| `0.5.4`(stable,历史) | `dsh-v0.2.1-rc.2`、`dsh-v0.2.1-rc.3`、`dsh-v0.2.1-rc.4` | 上一稳定版;最低 DSH 版本为 0.2.1-rc.2,已在该三个 DSH 版本通过官方 preset assembly |
|
|
64
65
|
| `0.5.3`(stable,历史) | `dsh-v0.2.1-rc.2`、`dsh-v0.2.1-rc.3`、`dsh-v0.2.1-rc.4` | 上一稳定版;最低 DSH 版本为 0.2.1-rc.2,已在该三个 DSH 版本通过官方 preset assembly |
|
|
65
66
|
| `0.5.1`(stable,历史) | `dsh-v0.2.0-rc.2` | 上一稳定版;最低与精确验证目标均为 0.2.0-rc.2 family |
|
|
66
67
|
| `0.5.2-rc.1`(next 通道预览,已发布) | `dsh-v0.2.0-rc.2` | 上一轮 next 预览:已发布到 npm `next` 通道(2026-10-17);整套 peer floor 仍是 `>=0.2.0-rc.2`,不覆盖 0.2.1-rc.2 |
|
|
67
|
-
| `dsh-v0.2.1-rc.1`(无配对 TUI) | 无 | 该中间版本没有本矩阵宣称兼容的已发布 TUI;不要为它复用 `0.5.
|
|
68
|
+
| `dsh-v0.2.1-rc.1`(无配对 TUI) | 无 | 该中间版本没有本矩阵宣称兼容的已发布 TUI;不要为它复用 `0.5.5` |
|
|
68
69
|
| `0.5.0`(stable,历史) | `dsh-v0.1.7-rc.2`、`dsh-v0.2.0-rc.1` | 上一稳定版;最低 0.1.7-rc.2,精确验证目标 0.2.0-rc.1 |
|
|
69
70
|
| `0.4.9`(stable,历史) | `dsh-v0.1.7-rc.2` | 上一稳定版;0.1.7-rc.2 runtime 的兼容 TUI |
|
|
70
71
|
| `0.4.8`(stable,历史) | `dsh-v0.1.7-rc.1` | 上一稳定版;0.1.7-rc.1 runtime 的兼容 TUI |
|
|
71
72
|
| `0.4.6`(stable,历史) | `dsh-v0.1.5-rc.1`、`dsh-v0.1.5-rc.2` | 上一稳定版;0.1.5 runtime 的兼容 TUI |
|
|
72
73
|
| `0.4.7-alpha.2`(next,历史) | `dsh-v0.1.6-alpha.2` | 上一条 next 线;0.1.6-alpha.2 runtime 的兼容 TUI |
|
|
73
74
|
|
|
74
|
-
不要把稳定线与 `@next` 预发布线混装。`0.5.
|
|
75
|
+
不要把稳定线与 `@next` 预发布线混装。`0.5.5` 是当前稳定版:它的最低 DSH
|
|
75
76
|
版本(peer floor)仍是 `0.2.1-rc.2` family,本仓库当前 checkout 的精确验证目标
|
|
76
|
-
是 `0.2.1-rc.
|
|
77
|
-
`0.2.1-rc.3`、`0.2.1-rc.4`
|
|
77
|
+
是 `0.2.1-rc.5`。已发布的 `0.5.4`、`0.5.3` 是上一稳定版,同样可与
|
|
78
|
+
`0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.4` 配对使用。从旧的稳定版升级到 `0.5.5`
|
|
79
|
+
的安全顺序:先让进行中的对话回合与后台任务正常结束,再正常退出旧的
|
|
80
|
+
TUI/DSH 进程,然后用官方 plugin 命令安装 `0.5.5` 并重新启动;不要在旧版本
|
|
81
|
+
进程仍活跃运行时直接安装新包并期待零中断热替换,本版不承诺对运行中的旧
|
|
82
|
+
Host 做原地无损升级。中间的
|
|
78
83
|
`dsh-v0.2.1-rc.1` 没有配对 TUI,`0.5.2-rc.1` 是上一轮已发布到 npm `next` 通道的
|
|
79
84
|
预览身份(配对 0.2.0-rc.2;它不覆盖 0.2.1-rc.2)。上一稳定版 `0.5.1` 继续配对
|
|
80
85
|
0.2.0-rc.2:它把整个 DSH peer floor 提升到 `>=0.2.0-rc.2`(Question 生命周期消费
|
|
@@ -412,6 +417,20 @@ Ctrl+V 会读取系统剪贴板:剪贴板里是图片时得到规范占位符
|
|
|
412
417
|
|
|
413
418
|
全屏图片信息行最右 3 格 `[-]`/`[+]` 只折叠该图片;点击图片正文打开只读查看器。`/view-image` 列出当前已挂载 transcript window 的图片,`Enter` 查看、`Esc back` 返回原列表。
|
|
414
419
|
|
|
420
|
+
### 图片协议选择
|
|
421
|
+
|
|
422
|
+
默认按 `auto` 自动协商(Direct/Zellij 为 Kitty > SIXEL > 文本;tmux 保留其 live U1/Sxl 相对优先级)。可在启动时用同一个 `PI_IMAGE_PROTOCOL` 显式选择:
|
|
423
|
+
|
|
424
|
+
```sh
|
|
425
|
+
PI_IMAGE_PROTOCOL=auto # 默认自动协商;严格识别的 Zellij + Windows Terminal 会避开已知的 Kitty 启动期假阳性
|
|
426
|
+
PI_IMAGE_PROTOCOL=kitty # 只使用已准入的 Kitty 传输,否则文本
|
|
427
|
+
PI_IMAGE_PROTOCOL=sixel # 只使用已准入的 SIXEL 传输(Direct 需真实 DA1;Zellij/tmux 仍走各自安全门),否则文本
|
|
428
|
+
PI_IMAGE_PROTOCOL=iterm2 # 仅 Direct 的 legacy iTerm2 路径;Multiplexer 不假装转发
|
|
429
|
+
PI_IMAGE_PROTOCOL=none # 关闭所有渲染后端的图片像素;0 等价
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
显式值是对协议**选择**,不是对不支持终端的保证:tmux 的 live client/Sxl/U1、Zellij 的 DA1/版本/Screen 就绪以及 DCS 所有权检查仍然生效。非法值会在启动时报错。`none` 只关闭终端像素预览,不影响图片附件、模型输入或发送;实验性 TSP renderer 的原生图片也遵循同一开关。
|
|
433
|
+
|
|
415
434
|
### TSP renderer(实验性)
|
|
416
435
|
|
|
417
436
|
设置 `DSH_PI_TUI_RENDERER=tsp` 后启用实验性 Tern TSP renderer:支持原生工具卡、
|