@xmoon76/dsh-pi-tui 0.5.5 → 0.5.6
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 +30 -47
- package/README.md +30 -30
- package/cordis.patch.yml +77 -7
- package/dist/{bootstrap-DLOydLLj.mjs → bootstrap-DQ4YPL-7.mjs} +12416 -7243
- package/dist/builtins.mjs +3 -8
- package/dist/{application-runtime-CbBO4bY-.mjs → client-bootstrap-Cr1JCaF5.mjs} +3098 -1747
- package/dist/{dist-C7QMk0ws.mjs → dist-CIsR7cz4.mjs} +510 -224
- package/dist/{extensions-pcFiH7Qe.mjs → extensions-Bp0L37lP.mjs} +527 -249
- package/dist/extensions.mjs +1 -1
- package/dist/{host-bootstrap-CKdfLkNS.mjs → host-bootstrap-DilsvA6f.mjs} +106 -13
- package/dist/host-foundation-probe--5jtvHVe.mjs +413 -0
- package/dist/host-runtime.d.mts +10 -6
- package/dist/host-runtime.mjs +877 -10
- package/dist/index.d.mts +11 -17
- package/dist/index.mjs +13328 -6828
- package/dist/local-client.mjs +408 -61
- package/dist/{local-discovery-CXnLT4GF.mjs → local-discovery-C9VMjc0K.mjs} +10 -6
- package/dist/{local-discovery-DVFFpfBG.mjs → local-discovery-CDaQHA_R.mjs} +1 -1
- package/dist/local-host.mjs +188 -36
- package/dist/{local-transport-C9aonplC.mjs → local-transport-BVwFYq_Y.mjs} +1 -1
- package/dist/{context-summary-D9mhxPXL.mjs → pasted-path-range-CMnxuGPx.mjs} +6166 -227
- package/dist/{context-summary-Bz0AGXa1.mjs → pasted-path-range-r6qzV_tC.mjs} +5927 -444
- package/dist/{pi-tui-remote-contribution-DRk6Tl3J.mjs → pi-tui-remote-contribution-B0EQsP0N.mjs} +27 -20
- package/dist/{pi-tui-terminal-progress-contract-XTQKj-WW.mjs → pi-tui-terminal-progress-contract-MLXZ-i3t.mjs} +2 -2
- package/dist/pi-tui-web-access-contract-BN8Cc_Ho.mjs +118 -0
- package/dist/{runtime-status-0lp9CM0V.mjs → runtime-status-Cj1nFOdS.mjs} +72 -214
- package/dist/{session-4keoXjk0.mjs → session-BKGXyh80.mjs} +7487 -2562
- package/dist/{session-B2zqv4wr.mjs → session-CPt_U8_f.mjs} +7486 -2560
- package/dist/{startup-Ct2UUjUL.mjs → startup-7BYWuvBU.mjs} +121 -6
- package/dist/startup.mjs +1 -1
- package/dist/{terminal-progress-source-BhufrZ74.mjs → terminal-progress-source-DrqQhtT8.mjs} +305 -45
- package/dist/visual-tools.d.mts +2 -2
- package/dist/visual-tools.mjs +26 -31
- package/dist/web-preferences.d.mts +29 -0
- package/dist/web-preferences.mjs +15 -0
- package/dist/web-roster-CjqnUXNk.mjs +285 -0
- package/generated/dsh-presets/cordis.patch.yml +5 -3
- package/generated/dsh-presets/ptc.patch.yml +7 -7
- package/generated/dsh-presets/standard.patch.yml +6 -4
- package/package.json +182 -168
- package/dist/client-bootstrap-DwSFzcTW.mjs +0 -872
- package/dist/custom-items-CKrOBCox.mjs +0 -655
- package/dist/dispose-cause-BzcXo4hu.mjs +0 -123
- package/dist/host-foundation-probe-CYHsbAw6.mjs +0 -143
- package/dist/host-prerequisites-9JBTtVNu.mjs +0 -36
- package/dist/runtime-Bh5OsftD.mjs +0 -6798
- package/dist/runtime-C5ROZqFj.mjs +0 -2
- package/dist/terminal-progress-source-CsBinCJ_.mjs +0 -965
package/README.en.md
CHANGED
|
@@ -24,6 +24,16 @@ dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@latest
|
|
|
24
24
|
dsh --profile pi-tui
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
### Exact version pairing (0.5.6)
|
|
28
|
+
|
|
29
|
+
This release requires DSH `>=0.2.2-rc.1`, targets `0.2.2-rc.1` for exact validation, and requires Node.js `>=24.9.0`. Finish Agent turns and exit the old TUI/Host normally before installing or upgrading; hot upgrade is not supported.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@0.2.2-rc.1
|
|
33
|
+
dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@0.5.6
|
|
34
|
+
dsh --profile pi-tui
|
|
35
|
+
```
|
|
36
|
+
|
|
27
37
|
### Next / npm line (validation)
|
|
28
38
|
|
|
29
39
|
Preview installation uses the DSH `alpha` channel and the TUI `next` channel.
|
|
@@ -35,15 +45,7 @@ dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@next
|
|
|
35
45
|
dsh --profile pi-tui
|
|
36
46
|
```
|
|
37
47
|
|
|
38
|
-
> **
|
|
39
|
-
> channel pointers only: `@deepseek-ai/dsh@alpha` currently resolves to
|
|
40
|
-
> `0.2.1-alpha.5`, while `@xmoon76/dsh-pi-tui@next` still resolves to
|
|
41
|
-
> `0.5.2-rc.1` (peer floor `>=0.2.0-rc.2`, and npm semver excludes a
|
|
42
|
-
> different-major.minor.patch prerelease). Use the pairing table below and
|
|
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
|
-
> combination exists on those two moving channels. Validate this exact checkout
|
|
46
|
-
> with `pnpm compat:dsh:npm`.
|
|
48
|
+
> **Next/alpha are independent moving pointers, not a guaranteed installable DSH/TUI pair.** Check the actual published versions and their peer/engines ranges before installing; do not mix incompatible DSH families. Use the pinned commands above for the exact 0.5.6 pairing. To qualify this checkout, run `pnpm compat:dsh:npm`.
|
|
47
49
|
|
|
48
50
|
Use the isolated npm driver (it installs the exact DSH version declared by this
|
|
49
51
|
checkout and exercises the full build/test/package path):
|
|
@@ -58,13 +60,14 @@ next compatibility range, and fallback paths.
|
|
|
58
60
|
### Requirements
|
|
59
61
|
|
|
60
62
|
* DeepSeek Harness
|
|
61
|
-
* Node.js
|
|
63
|
+
* Node.js `>=24.9.0`
|
|
62
64
|
|
|
63
65
|
### DSH/TUI version pairing (important)
|
|
64
66
|
|
|
65
67
|
| TUI package line | Official DSH tags for the pairing | Notes |
|
|
66
68
|
|---|---|---|
|
|
67
|
-
| `0.5.
|
|
69
|
+
| `0.5.6` (stable / `@latest`) | `dsh-v0.2.2-rc.1` | Current stable release; minimum and exact validation target DSH is `0.2.2-rc.1`, Node.js `>=24.9.0`; incompatible with `0.2.1-rc.*` |
|
|
70
|
+
| `0.5.5` (previous stable) | `dsh-v0.2.1-rc.2`, `dsh-v0.2.1-rc.3`, `dsh-v0.2.1-rc.4`, `dsh-v0.2.1-rc.5` | Previous stable release; minimum DSH version `0.2.1-rc.2` |
|
|
68
71
|
| `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
72
|
| `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 |
|
|
70
73
|
| `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 |
|
|
@@ -76,33 +79,7 @@ next compatibility range, and fallback paths.
|
|
|
76
79
|
| `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 |
|
|
77
80
|
| `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 |
|
|
78
81
|
|
|
79
|
-
Do not mix the stable and `@next` prerelease lines. `0.5.
|
|
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
|
|
90
|
-
`dsh-v0.2.1-rc.1` has no paired TUI, and `0.5.2-rc.1` is the previous preview
|
|
91
|
-
published to the npm `next` channel (its pairing, 0.2.0-rc.2, stays in the table
|
|
92
|
-
above; it does not cover 0.2.1-rc.2). The previous stable
|
|
93
|
-
`0.5.1` keeps pairing with 0.2.0-rc.2: it lifts the whole DSH peer floor to
|
|
94
|
-
`>=0.2.0-rc.2` (the Question lifecycle consumes contracts published only in
|
|
95
|
-
that rc.2 family). The previous stable `0.5.0`
|
|
96
|
-
line keeps its `>=0.1.7-rc.2` floor (exact validation target 0.2.0-rc.1);
|
|
97
|
-
older runtimes fail at the normal
|
|
98
|
-
incompatible-runtime boundary, so install the paired TUI line from the table
|
|
99
|
-
above. The startup notice
|
|
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`
|
|
104
|
-
README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md) for the current
|
|
105
|
-
integration status.
|
|
82
|
+
Do not mix the stable and `@next` prerelease lines. `0.5.6` is the current stable release: it requires DSH `>=0.2.2-rc.1` and is not compatible with `0.2.1-rc.*`. Before upgrading, let turns and background work finish, exit the old TUI/Host normally, and back up the Profile/patch, raw Session logs, Workspace and necessary Host resources or credential references. Hot upgrade is not supported. Data written under 0.2.2 semantics is not guaranteed readable by rc5 in place; restore a backup to a separate directory and use the matching old DSH/TUI pair to roll back. Historical pairings are in the table above. See the [compatibility guide](docs/guides/dsh-compatibility.md) for matching and diagnosis, and the [next branch README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md) for its integration status.
|
|
106
83
|
|
|
107
84
|
New agent sessions use the official roster's selected preset id. A custom DSH
|
|
108
85
|
preset literally named `code` is valid and remains `code` when it exists in the
|
|
@@ -154,6 +131,9 @@ dsh --profile pi-tui --session <session-id>
|
|
|
154
131
|
* Chart/SVG tools, `present_visual` publication and inline final-answer rendering
|
|
155
132
|
* Delivered-files tail and the `/deliverables` browser
|
|
156
133
|
* Experimental TSP renderer: native tool cards, Work Hub, images and published figures
|
|
134
|
+
* Host-wide Scheduled Task management in PiTui Direct
|
|
135
|
+
* Plugin Manager: inspect and update third-party Registry bundles marked updatable by the Host
|
|
136
|
+
* Agent guidance for file links, image references and `present` deliveries
|
|
157
137
|
* Plan Review
|
|
158
138
|
* Todo / Goal status
|
|
159
139
|
* Human-readable terminal window titles
|
|
@@ -186,7 +166,7 @@ Supports persisted DSH Sessions, including:
|
|
|
186
166
|
* Rewind
|
|
187
167
|
* Session lineage
|
|
188
168
|
* `/export` — full Session archive (descendants + attachments) saved to a Client-local directory
|
|
189
|
-
* `/transcript` —
|
|
169
|
+
* `/transcript` — official DSH Session Markdown in Direct mode, saved to a Client-local directory
|
|
190
170
|
|
|
191
171
|
Use:
|
|
192
172
|
|
|
@@ -198,9 +178,13 @@ Use:
|
|
|
198
178
|
/transcript
|
|
199
179
|
```
|
|
200
180
|
|
|
181
|
+
In Direct mode, `/transcript` reads official Host Session Markdown and saves a local `.md` file; user messages are blockquotes and process activity may be inside `<details>`. `/export` remains a separate ZIP archive.
|
|
182
|
+
|
|
201
183
|
When the Agent is idle and the editor is empty, pressing `Esc` twice quickly also opens Rewind.
|
|
202
184
|
|
|
203
|
-
Rewind creates a new Child Session from a selected historical User Turn and restores that Prompt into the editor. The original Session is
|
|
185
|
+
Rewind creates a new Child Session from a selected historical User Turn and restores that Prompt into the editor. The original Session is unchanged. Ordinary Fork/Rewind Sessions are independent, not parent/child lineage; Session lineage represents Subagents.
|
|
186
|
+
|
|
187
|
+
In PiTui, `/sessions`, `/search` and `/resume` open the fullscreen Session Workspace, grouped into Needs attention, Working and Recent. Filter by Current, a Workspace or Unassigned; `Space` opens a read-only Peek and `Enter` switches Sessions. In Direct mode, new Sessions including `/new` use the official Host Workspace. When the main editor owns the keyboard and the draft is strictly empty, two unmodified `←` presses within 600 ms open All workspaces; the first remains ordinary cursor movement.
|
|
204
188
|
|
|
205
189
|
### Input history
|
|
206
190
|
|
|
@@ -253,11 +237,7 @@ again needs six real business-body rows, otherwise it degrades to one column; be
|
|
|
253
237
|
76 columns it is one column. Install, dangerous confirmations and Diagnostics
|
|
254
238
|
always take the full width so risk text is never squeezed. Settings paints the
|
|
255
239
|
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
|
|
240
|
+
plugin page contributes only its business body. Search, status filters, provenance/status facts, official catalog installs, enablement and removal are available from the page; third-party Registry Profile bundles marked updatable by the Host can show available versions and be updated after explicit confirmation. The actual Host-reported version, restart requirement and errors are shown verbatim. The `dsh-pi-tui` bundle currently providing the surface is read-only and cannot be updated, disabled or removed from its own screen. The
|
|
261
241
|
category preview and `/plugins` share one page instance and one background
|
|
262
242
|
install request: `Esc` from the List returns to the Settings category and a
|
|
263
243
|
second `Esc` closes the workspace. Press `d` inside the page
|
|
@@ -400,7 +380,7 @@ Typing `@` opens workspace file search and completion:
|
|
|
400
380
|
@"path with spaces/file.ts"
|
|
401
381
|
```
|
|
402
382
|
|
|
403
|
-
`/attach <path>` is the unified Client-local image/file intake; `/image <path>` keeps its image-only compatibility semantics. Both complete files and directories; paths with spaces, quotes
|
|
383
|
+
`/attach <path>` is the unified Client-local image/file intake; `/image <path>` keeps its image-only compatibility semantics. Both complete files and directories; paths with spaces, quotes or Windows separators preserve the input dialect, and directories can be expanded further. In terminals with bracketed-paste support, a recognized local absolute image path can be staged as an attachment; sending is blocked while it is read, and a failed read keeps the path text.
|
|
404
384
|
|
|
405
385
|
Resolvable relative paths are canonicalized before submission.
|
|
406
386
|
|
|
@@ -414,6 +394,7 @@ Common entry points:
|
|
|
414
394
|
|
|
415
395
|
```text
|
|
416
396
|
/model
|
|
397
|
+
/schedule
|
|
417
398
|
/settings
|
|
418
399
|
/status
|
|
419
400
|
/deliverables
|
|
@@ -429,6 +410,8 @@ Common entry points:
|
|
|
429
410
|
|
|
430
411
|
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
412
|
|
|
413
|
+
In PiTui Direct, `/schedule` opens the Host-wide task workspace without a Session. The Host owns its timer; stopping the Host stops background delivery.
|
|
414
|
+
|
|
432
415
|
`/settings` and `/status` open the same full-screen settings workspace on the
|
|
433
416
|
About home. Wide and medium terminals show a category rail plus the content
|
|
434
417
|
column; narrow terminals (under 76 columns) show About directly. The fixed
|
|
@@ -839,7 +822,7 @@ The published package already contains the Pi TUI fork required at runtime. No s
|
|
|
839
822
|
|
|
840
823
|
### CI validation policy
|
|
841
824
|
|
|
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
|
|
825
|
+
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 independent of the selected mode and always targets the published ecosystem (every run resolves `pi2dsh@latest` and the highest published DSH intersection from the registry); it does not accept a source pack and refuses `--distribution` with a non-zero error rather than reporting a pass. See [`docs/guides/dsh-compatibility.md`](docs/guides/dsh-compatibility.md) for the compatibility method.
|
|
843
826
|
|
|
844
827
|
## Repository layout
|
|
845
828
|
|
package/README.md
CHANGED
|
@@ -23,6 +23,16 @@ dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@latest
|
|
|
23
23
|
dsh --profile pi-tui
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
### 精确版本配对(0.5.6)
|
|
27
|
+
|
|
28
|
+
本版要求 DSH `>=0.2.2-rc.1`,精确验证目标为 `0.2.2-rc.1`,并要求 Node.js `>=24.9.0`。安装或升级前先正常结束 Agent 回合、退出旧 TUI/Host;不支持热升级。
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@0.2.2-rc.1
|
|
32
|
+
dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@0.5.6
|
|
33
|
+
dsh --profile pi-tui
|
|
34
|
+
```
|
|
35
|
+
|
|
26
36
|
### Next / npm 线(验证)
|
|
27
37
|
|
|
28
38
|
预览安装使用 DSH 的 `alpha` channel 与 TUI 的 `next` channel;安装 DSH
|
|
@@ -34,13 +44,7 @@ dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@next
|
|
|
34
44
|
dsh --profile pi-tui
|
|
35
45
|
```
|
|
36
46
|
|
|
37
|
-
>
|
|
38
|
-
> `@deepseek-ai/dsh@alpha` 指向 `0.2.1-alpha.5`,而 `@xmoon76/dsh-pi-tui@next`
|
|
39
|
-
> 仍指向 `0.5.2-rc.1`(peer floor `>=0.2.0-rc.2`,npm semver 不接受不同
|
|
40
|
-
> major.minor.patch tuple 的 prerelease)。请以下方版本对应表和
|
|
41
|
-
> [兼容性指南](docs/guides/dsh-compatibility.md) 的通用匹配原则为准;稳定版 `0.5.5` 发布在
|
|
42
|
-
> `@latest` 而不是 `@next`,因此这两个移动 channel 上没有可安装的兼容组合。
|
|
43
|
-
> 本 checkout 的精确验证请使用 `pnpm compat:dsh:npm`。
|
|
47
|
+
> **Next/alpha 是独立移动指针,不保证构成可安装的 DSH/TUI 配对。** 安装前请核对两个包实际发布的版本及 peer/engines 范围,不要混用不兼容的 DSH 系列。确定的 0.5.6 配对见上方命令;验证当前 checkout 可运行 `pnpm compat:dsh:npm`。
|
|
44
48
|
|
|
45
49
|
隔离的 npm 驱动仍按本 checkout 声明的精确 DSH 版本运行,并执行完整的
|
|
46
50
|
build/test/package 路径:
|
|
@@ -54,13 +58,14 @@ pnpm compat:dsh:npm
|
|
|
54
58
|
### 环境要求
|
|
55
59
|
|
|
56
60
|
* DeepSeek Harness
|
|
57
|
-
* Node.js
|
|
61
|
+
* Node.js `>=24.9.0`
|
|
58
62
|
|
|
59
63
|
### DSH 与 TUI 版本对应(重要)
|
|
60
64
|
|
|
61
65
|
| TUI 包版本 | 对应的官方 DSH tags | 说明 |
|
|
62
66
|
|---|---|---|
|
|
63
|
-
| `0.5.
|
|
67
|
+
| `0.5.6`(stable / `@latest`) | `dsh-v0.2.2-rc.1` | 当前正式版;最低与精确验证目标为 DSH `0.2.2-rc.1`,Node.js `>=24.9.0`;不兼容 `0.2.1-rc.*` |
|
|
68
|
+
| `0.5.5`(stable,历史) | `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` |
|
|
64
69
|
| `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 |
|
|
65
70
|
| `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 |
|
|
66
71
|
| `0.5.1`(stable,历史) | `dsh-v0.2.0-rc.2` | 上一稳定版;最低与精确验证目标均为 0.2.0-rc.2 family |
|
|
@@ -72,22 +77,7 @@ pnpm compat:dsh:npm
|
|
|
72
77
|
| `0.4.6`(stable,历史) | `dsh-v0.1.5-rc.1`、`dsh-v0.1.5-rc.2` | 上一稳定版;0.1.5 runtime 的兼容 TUI |
|
|
73
78
|
| `0.4.7-alpha.2`(next,历史) | `dsh-v0.1.6-alpha.2` | 上一条 next 线;0.1.6-alpha.2 runtime 的兼容 TUI |
|
|
74
79
|
|
|
75
|
-
|
|
76
|
-
版本(peer floor)仍是 `0.2.1-rc.2` family,本仓库当前 checkout 的精确验证目标
|
|
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 做原地无损升级。中间的
|
|
83
|
-
`dsh-v0.2.1-rc.1` 没有配对 TUI,`0.5.2-rc.1` 是上一轮已发布到 npm `next` 通道的
|
|
84
|
-
预览身份(配对 0.2.0-rc.2;它不覆盖 0.2.1-rc.2)。上一稳定版 `0.5.1` 继续配对
|
|
85
|
-
0.2.0-rc.2:它把整个 DSH peer floor 提升到 `>=0.2.0-rc.2`(Question 生命周期消费
|
|
86
|
-
rc.2 才发布的公开契约)。更早的 `0.5.0`
|
|
87
|
-
保持 `>=0.1.7-rc.2` floor 不变(精确验证目标 0.2.0-rc.1);旧 runtime 会在正常的
|
|
88
|
-
不兼容边界以非零状态失败,请按上表安装配对的 TUI 线。上方的版本对应表是已发布
|
|
89
|
-
线的摘要;通用版本匹配原则与回退/诊断流程见[兼容性指南](docs/guides/dsh-compatibility.md);要查看 `@next` 的最新集成
|
|
90
|
-
状态,请看 [next 分支 README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md)。
|
|
80
|
+
不要混装稳定线与 `@next` 预发布线。`0.5.6` 是当前正式版,要求 DSH `>=0.2.2-rc.1`,且不兼容 `0.2.1-rc.*`。升级前让回合和后台任务结束,正常退出旧 TUI/Host,并备份 Profile/patch、Session 原始日志、Workspace 及所需 Host 资源与凭据引用;不支持热升级。0.2.2 写入的数据不保证能由 rc5 原地读取,回退时须恢复到独立目录并使用匹配的旧版 DSH/TUI。历史配对见上表;通用匹配和诊断方式见[兼容性指南](docs/guides/dsh-compatibility.md),`@next` 集成状态见 [next 分支 README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md)。
|
|
91
81
|
|
|
92
82
|
新的 Agent preset 使用当前 roster 中选定的 id。DSH 允许合法的自定义
|
|
93
83
|
`code` preset;只要当前 roster 存在它,显式输入和持久化状态都会保留 `code`。
|
|
@@ -138,6 +128,9 @@ dsh --profile pi-tui --session <session-id>
|
|
|
138
128
|
* 图表/SVG 工具、`present_visual` 发布与最终回答内联显示
|
|
139
129
|
* 交付文件尾部与 `/deliverables` 浏览器
|
|
140
130
|
* 实验性 TSP renderer:原生工具卡、Work Hub、图片与已发布图
|
|
131
|
+
* Host-wide Scheduled Task 管理(PiTui Direct)
|
|
132
|
+
* Plugin Manager:检查并更新 Host 标记可更新的第三方 Registry bundle
|
|
133
|
+
* Agent 文件链接、图片引用与 `present` 交付指导
|
|
141
134
|
* Plan Review
|
|
142
135
|
* Todo / Goal 状态展示
|
|
143
136
|
* 可读的终端窗口标题
|
|
@@ -170,7 +163,7 @@ dsh --profile pi-tui --session <session-id>
|
|
|
170
163
|
* Rewind
|
|
171
164
|
* Session lineage
|
|
172
165
|
* `/export` — 完整 Session 归档(含子代理与附件),保存到 Client 本地目录
|
|
173
|
-
* `/transcript` —
|
|
166
|
+
* `/transcript` — 官方 DSH Session Markdown(Direct),保存到 Client 本地目录
|
|
174
167
|
|
|
175
168
|
使用:
|
|
176
169
|
|
|
@@ -182,9 +175,13 @@ dsh --profile pi-tui --session <session-id>
|
|
|
182
175
|
/transcript
|
|
183
176
|
```
|
|
184
177
|
|
|
178
|
+
`/transcript` 在 Direct 下读取官方 Host Session Markdown 并保存为本地 `.md`;用户消息使用引用块,过程内容可折叠在 `<details>` 中。`/export` 仍是独立 ZIP 归档。
|
|
179
|
+
|
|
185
180
|
空闲且编辑器为空时也可以快速按两次 `Esc` 打开 Rewind。
|
|
186
181
|
|
|
187
|
-
Rewind 会从选中的历史 User Turn 创建新的 Child Session,并把对应 Prompt 放回编辑器。原 Session
|
|
182
|
+
Rewind 会从选中的历史 User Turn 创建新的 Child Session,并把对应 Prompt 放回编辑器。原 Session 不会被修改。普通 Fork/Rewind 创建独立 Session,不形成父子 lineage;Session lineage 用于显示 Subagent 关系。
|
|
183
|
+
|
|
184
|
+
PiTui 的 `/sessions`、`/search` 和 `/resume` 打开全屏 Session Workspace,按 Needs attention、Working、Recent 分组,可按 Current、各 Workspace 或 Unassigned 筛选。`Space` 查看只读 Peek,`Enter` 才切换。Direct 下新建 Session(包括 `/new`)依据官方 Host Workspace 确定归属。主编辑器持有键盘且草稿严格为空时,600ms 内连续两次无修饰 `←` 打开 All workspaces;第一次仍是普通左移。
|
|
188
185
|
|
|
189
186
|
### 输入历史
|
|
190
187
|
|
|
@@ -206,7 +203,7 @@ Rewind 会从选中的历史 User Turn 创建新的 Child Session,并把对应
|
|
|
206
203
|
|
|
207
204
|
Task Center 的 `ACTIVE` / `TRACKED` 是展示范围:`ACTIVE` 只显示当前活动项,`TRACKED` 显示当前跟踪源(Job Registry / Subagent catalog)仍列出的全部项;`TRACKED` 不是 Session 执行历史。DSH `0.1.7` 会在普通前台 `bash` / `pwsh` 执行期间临时注册 Job,使其可以在 Task Center 中观察和停止;如果命令在前台等待内完成,DSH 会移除该临时记录,最终结果仍保留在 Transcript 的 tool card 中。显式 `run_in_background: true` 或被提升为后台的 Job 在完成后,只要 Job Registry 继续保留其记录,就仍可在 `TRACKED` 中查看。
|
|
208
205
|
|
|
209
|
-
`/plugins` 是 `/settings → Plugins` 的深链:两者使用同一个 Settings 全屏 lease 与同一个 Plugin Manager 页面,不再有独立的插件全屏界面,也不会新建或切换 Session。目录固定为 TUI & Extensions / Official DSH / Third-party / Experimental
|
|
206
|
+
`/plugins` 是 `/settings → Plugins` 的深链:两者使用同一个 Settings 全屏 lease 与同一个 Plugin Manager 页面,不再有独立的插件全屏界面,也不会新建或切换 Session。目录固定为 TUI & Extensions / Official DSH / Third-party / Experimental(实验组最后),可搜索、筛选、查看来源与状态,并从官方目录执行安装、启用/禁用与删除;Host 标记可更新的第三方 Registry Profile bundle 还可查看可用版本并经确认更新;结果以 Host 实际返回的版本、重启要求和错误为准。≥120 列且能留出至少 6 行真实业务正文时同屏显示 `类别 | 插件列表 | 详情`;76–119 列按键盘焦点显示 `类别 | 列表` 或 `列表 | 详情`(`列表 | 详情` 同样要求至少 6 行真实业务正文,不足则退化为单栏),<76 列单栏;安装、危险确认与 Diagnostics 始终占满整宽,以免压缩风险文案。顶部身份/元数据/分隔线/面栏和最后一行操作栏由 Settings 统一绘制,插件只占业务正文。正在提供当前界面的 `dsh-pi-tui` 只读,不能从自身界面更新、禁用或移除。从 Settings 的 `Plugins` 分类预览或 `/plugins` 进入都保留同一个页面实例与后台安装请求:Esc 从列表回到 Settings 分类,再按一次 Esc 关闭。页面内按 `d` 打开只读的 **Diagnostics**:按 owner 分组显示 extension 贡献的 `active/failed/shadowed` 状态与完整 `lastError`、各 registry 计数、实际 capabilities,以及无法证明 Loader entry 归属的贡献(单列 `Unassociated extension contributions`);`c` 复制所选事实、`C` 复制全部、`r` 重新读取、Esc 返回。Diagnostics 只读 extension ledger,不把 Host 包安装状态或安装日志混入其中;`copy` 仍只证明已发送,不证明操作系统剪贴板已收到。
|
|
210
207
|
|
|
211
208
|
Experimental 组的 14 个官方 rc.2 实验包在 Detail 中给出固定的终端可用面与限制/风险说明(Web-only、Host-only、B04 的 WEB_ONLY/Host 行未挂载(Owner 已接受)、B13/B14 的已验证 one-shot/provider 边界等),这些说明只随精确官方包身份出现,不随启用状态伪装成 Host 能力通过;升级指引按 Host 事实区分「随 DSH 发行升级」「profile 包先 Remove 再显式 Install」「官方 on-demand 目标」和「当前 TUI 由外部管理」,不提供原地更新、版本选择器或静默重装。
|
|
212
209
|
|
|
@@ -315,7 +312,7 @@ product-model 官方署名 + Assisted-By: <provider>/<model>
|
|
|
315
312
|
@"path with spaces/file.ts"
|
|
316
313
|
```
|
|
317
314
|
|
|
318
|
-
`/attach <path>` 是统一的 Client-local 图片/文件入口;`/image <path>` 保持图片专用兼容语义。两者都支持文件与目录补全;带空格、引号或 Windows
|
|
315
|
+
`/attach <path>` 是统一的 Client-local 图片/文件入口;`/image <path>` 保持图片专用兼容语义。两者都支持文件与目录补全;带空格、引号或 Windows 分隔符的路径会保留输入方言,目录可以继续展开。支持括号粘贴的终端中,粘贴可识别的本地绝对图片路径可直接暂存为图片附件;读取未完成时不能发送,读取失败会保留原路径文字。
|
|
319
316
|
|
|
320
317
|
能够解析的相对路径会在提交时转换为明确的文件路径。
|
|
321
318
|
|
|
@@ -329,6 +326,7 @@ TUI 使用 DSH 提供的模型和设置服务。
|
|
|
329
326
|
|
|
330
327
|
```text
|
|
331
328
|
/model
|
|
329
|
+
/schedule
|
|
332
330
|
/settings
|
|
333
331
|
/status
|
|
334
332
|
/deliverables
|
|
@@ -344,6 +342,8 @@ TUI 使用 DSH 提供的模型和设置服务。
|
|
|
344
342
|
|
|
345
343
|
模型切换、Reasoning Effort、权限 Preset、Plan 和 Goal 都沿用 DSH 对应的运行时语义。`/model` 的候选完全来自 Host 的模型目录:`deepseek-flash` 以精确 `(provider, model)` 身份出现(显示名 `DeepSeek-V4.1-Flash` 不当作 ID),选择后写回官方 Session/global 默认;部署覆盖目录不再提供该 ID 时不会凭空显示。
|
|
346
344
|
|
|
345
|
+
`/schedule` 在 PiTui Direct 中打开 Host-wide 任务工作区,不需要 Session;定时任务由 Host 持有,停止 Host 后不再后台执行。
|
|
346
|
+
|
|
347
347
|
`/settings` 与 `/status` 打开同一个全屏设置工作区,默认落在 About。宽/中屏为分类栏
|
|
348
348
|
+ 内容栏,窄屏(<76 列)直接显示 About;一级分类固定为 About / Models / Account /
|
|
349
349
|
Agent / Appearance / Conversation / Input & Terminal / Tools / Plugins,只有扩展设置
|
|
@@ -718,7 +718,7 @@ symlink 写入发布 package。
|
|
|
718
718
|
|
|
719
719
|
### CI 验证策略
|
|
720
720
|
|
|
721
|
-
CI 对 push 到 `next` 以及目标为 `next` 的 PR 遵循跟踪的 `test/compat/dsh-mode.json` 策略;`main` 和所有 tag 使用 npm Mode。Source Mode 从 `test/compat/dsh-source.json` 读取 source target 并验证完整的官方 DSH tarball family、TUI 预设和旧 runtime 边界;npm Mode 则使用 checkout 的 `package.json`/冻结 lockfile 中声明的 DSH 版本运行 registry lane。已发布 `pi2dsh`
|
|
721
|
+
CI 对 push 到 `next` 以及目标为 `next` 的 PR 遵循跟踪的 `test/compat/dsh-mode.json` 策略;`main` 和所有 tag 使用 npm Mode。Source Mode 从 `test/compat/dsh-source.json` 读取 source target 并验证完整的官方 DSH tarball family、TUI 预设和旧 runtime 边界;npm Mode 则使用 checkout 的 `package.json`/冻结 lockfile 中声明的 DSH 版本运行 registry lane。已发布 `pi2dsh` 的生态检查独立于模式选择,始终针对已发布生态(每次运行解析 `pi2dsh@latest` 与已发布 DSH 的最高交集);它不接受 source pack,传入 `--distribution` 会以非零错误拒绝而不是伪装成通过。详细流程见 [`docs/guides/dsh-compatibility.md`](docs/guides/dsh-compatibility.md)。
|
|
722
722
|
|
|
723
723
|
## 项目结构
|
|
724
724
|
|
package/cordis.patch.yml
CHANGED
|
@@ -68,6 +68,15 @@
|
|
|
68
68
|
name: '@xmoon76/dsh-pi-tui/visual-tools'
|
|
69
69
|
inject: [tools, agents, sessionQuery, sessionProjections]
|
|
70
70
|
|
|
71
|
+
# The profile-owned Web startup preference (M5-W PR-C): ONE durable boolean,
|
|
72
|
+
# `autoStart`, that a NEW Split Host reads BEFORE it becomes Ready. The row
|
|
73
|
+
# performs no work; it exists so the official Settings service projects the
|
|
74
|
+
# section and the Loader persists the user patch. It is deliberately NOT
|
|
75
|
+
# gated on `tuiStartup`: a Direct process also loads the profile and must be
|
|
76
|
+
# able to edit the preference for the Split Host it may start later.
|
|
77
|
+
- id: pi-tui-web-preferences
|
|
78
|
+
name: '@xmoon76/dsh-pi-tui/web-preferences'
|
|
79
|
+
|
|
71
80
|
# The OFFICIAL Host browser-callback listener for DeepSeek Account sign-in.
|
|
72
81
|
# The account provider registers `/oauth/callback` on this instance while an
|
|
73
82
|
# attempt is waiting for the browser; it is mounted here because the dsh-base
|
|
@@ -132,6 +141,64 @@
|
|
|
132
141
|
- id: workspace
|
|
133
142
|
name: '@deepseek-ai/dsh-workspace'
|
|
134
143
|
|
|
144
|
+
# The ONE Host Workspace commands/follow owner over the registry above
|
|
145
|
+
# (`ctx.workspaceController`, Typert namespace `workspace`): the same
|
|
146
|
+
# official row ID the web bundle mounts, so a Direct Host and a Host-only
|
|
147
|
+
# Split Host expose one Workspace Remote authority instead of two. Gating on
|
|
148
|
+
# `tuiStartup` is Direct's command-line admission only (`--help` starts no
|
|
149
|
+
# Host mutation); the Host-only overlay removes exactly that dependency in
|
|
150
|
+
# place, and the class's own `static inject` still supplies
|
|
151
|
+
# `remoteAccess`/`typert`/`workspaceRegistry`. Mounting it registers the
|
|
152
|
+
# generated `workspace` Remote namespace; it creates no Workspace and no
|
|
153
|
+
# directory by itself.
|
|
154
|
+
- id: workspace-controller
|
|
155
|
+
name: '@deepseek-ai/dsh-api-workspace-controller'
|
|
156
|
+
inject: [tuiStartup]
|
|
157
|
+
|
|
158
|
+
# ── Host Schedule management (S5-PR4) ──────────────────────────────────
|
|
159
|
+
# ONE Host Schedule domain shared by Direct and the Host-only Split
|
|
160
|
+
# overlay: the official durable task store, the single timer, the session
|
|
161
|
+
# FIFO and the delivery receipts all belong to this row. The Host-only
|
|
162
|
+
# overlay removes only the `tuiStartup` gate IN PLACE (`inject:
|
|
163
|
+
# [sessionController]`) and never inserts a second copy.
|
|
164
|
+
#
|
|
165
|
+
# `sessionController` is injected as a readiness barrier, not as a second
|
|
166
|
+
# owner: the Schedule runtime creates a `new`/`new_once` target Session
|
|
167
|
+
# through the one official Host Session controller, so the row must not
|
|
168
|
+
# arm its timer before that provider exists. The class's own inject still
|
|
169
|
+
# supplies agents/sessions/storageDomain/sessionPersistence, and
|
|
170
|
+
# `--help` (no tuiStartup) mounts neither this row nor the three Direct
|
|
171
|
+
# prerequisites below.
|
|
172
|
+
- id: pi-tui-schedule
|
|
173
|
+
name: '@deepseek-ai/dsh-schedule'
|
|
174
|
+
inject: [tuiStartup, sessionController]
|
|
175
|
+
|
|
176
|
+
# The three OFFICIAL Direct activation prerequisites of a Schedule target
|
|
177
|
+
# that creates Sessions, declared exactly once for the Direct graph:
|
|
178
|
+
# `SessionController` injects `fileUploads`, and `FileUploads` injects the
|
|
179
|
+
# Host `connection`. They are the same packages the web bundle and the
|
|
180
|
+
# Split Host-only overlay mount; the Split overlay disables exactly these
|
|
181
|
+
# three Direct rows so one Host PID never holds two Connections, two
|
|
182
|
+
# FileUploads or two Session controllers. `trustedHosts: []` keeps the
|
|
183
|
+
# loopback listener and the listener's own bind IP as the only accepted
|
|
184
|
+
# authorities, and `nativeOpen: false` keeps the controller from opening a
|
|
185
|
+
# host-side native surface for a Remote client.
|
|
186
|
+
- id: pi-tui-direct-connection
|
|
187
|
+
name: '@deepseek-ai/dsh-client-connection'
|
|
188
|
+
inject: [tuiStartup, credentials, webServer]
|
|
189
|
+
config:
|
|
190
|
+
trustedHosts: []
|
|
191
|
+
|
|
192
|
+
- id: pi-tui-direct-file-upload
|
|
193
|
+
name: '@deepseek-ai/dsh-client-file-upload'
|
|
194
|
+
inject: [tuiStartup, agents, attachments, commands, connection]
|
|
195
|
+
|
|
196
|
+
- id: pi-tui-direct-session-controller
|
|
197
|
+
name: '@deepseek-ai/dsh-api-session-controller'
|
|
198
|
+
inject: [tuiStartup, agentDefaultModel, agents, attachments, fileUploads, fs, llm, remoteAccess, sessions, sessionProjections, sessionQuery, typert, typertGateway, workspaceRegistry]
|
|
199
|
+
config:
|
|
200
|
+
nativeOpen: false
|
|
201
|
+
|
|
135
202
|
# The OFFICIAL Host `@`-file reference authority (M3-3A): this row is
|
|
136
203
|
# the same one the official web bundle mounts. It provides
|
|
137
204
|
# `ctx.fileReferences` (the discovery service the Session Controller's
|
|
@@ -145,6 +212,11 @@
|
|
|
145
212
|
- id: file-reference-local
|
|
146
213
|
name: '@deepseek-ai/dsh-file-reference-local'
|
|
147
214
|
|
|
215
|
+
# Shared Host prompt guidance for delivered file links and present results.
|
|
216
|
+
# Independent of Web serving; inherited unchanged by Direct and Split Host.
|
|
217
|
+
- id: deliverable-file-references
|
|
218
|
+
name: '@deepseek-ai/dsh-deliverable-file-references'
|
|
219
|
+
|
|
148
220
|
# The 0.1.7 declarative preset registry: preset identity, revisions and
|
|
149
221
|
# default/selection policy are registry-owned (deployment `default` here;
|
|
150
222
|
# the user's `selectedDefault` rides the profile form). The four shipped
|
|
@@ -159,8 +231,9 @@
|
|
|
159
231
|
default: standard
|
|
160
232
|
|
|
161
233
|
# The official standard preset composes its `subagent` tool with
|
|
162
|
-
# `
|
|
163
|
-
# service — the row is required for the standard
|
|
234
|
+
# `modelSelection: true` + `modelDiscovery: true`, which injects this
|
|
235
|
+
# Host-owned setting service — the row is required for the standard
|
|
236
|
+
# composition to mount.
|
|
164
237
|
# Mounting the service ALONE enables nothing: it only owns the
|
|
165
238
|
# `subagent-model-selection` settings section (default enabled=false,
|
|
166
239
|
# empty allowlist). Each NEW session samples that section at
|
|
@@ -194,8 +267,8 @@
|
|
|
194
267
|
# their host infrastructure, `permission`, `approval`, `sandbox*`,
|
|
195
268
|
# `fs-observation-policy`, `spill*`, `timeout-policy`, `repeat-tool-reminder`,
|
|
196
269
|
# `session-*`, `token-meter`. The base's official `ptc-runtime` row also stays:
|
|
197
|
-
# it provides `ptcRuntime`, which the `ptc` preset's `tool-
|
|
198
|
-
#
|
|
270
|
+
# it provides `ptcRuntime`, which the `ptc` preset's `tool-executor-ptc` row
|
|
271
|
+
# injects, and this overlay owns no second PTC runtime.
|
|
199
272
|
# `command-goal` is disabled below and reintroduced
|
|
200
273
|
# only by presets that own that command in their scoped composition.
|
|
201
274
|
|
|
@@ -241,9 +314,6 @@
|
|
|
241
314
|
- id: tool-subagent-control
|
|
242
315
|
disabled: true
|
|
243
316
|
|
|
244
|
-
- id: tool-subagent-list-agents
|
|
245
|
-
disabled: true
|
|
246
|
-
|
|
247
317
|
- id: tool-subagent
|
|
248
318
|
disabled: true
|
|
249
319
|
|