@xmoon76/dsh-pi-tui 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +130 -17
- package/README.md +76 -16
- package/cordis.patch.yml +17 -49
- package/dist/builtins.mjs +3 -2
- package/dist/context-summary-CxUpNkA9.mjs +2951 -0
- package/dist/extension/advanced.d.mts +2 -2
- package/dist/extension/unstable.d.mts +1 -1
- package/dist/{extensions-v3Rf-qJA.d.mts → extensions-DzpBiiYb.d.mts} +1 -1
- package/dist/{extensions-1WYBUQ8I.mjs → extensions-a-rxanjw.mjs} +3514 -2892
- package/dist/extensions.d.mts +2 -2
- package/dist/extensions.mjs +1 -1
- package/dist/index.d.mts +13 -11
- package/dist/index.mjs +20158 -7768
- package/dist/performance-host-BJT6scGF.mjs +266 -0
- package/dist/performance-host.d.mts +36 -0
- package/dist/performance-host.mjs +2 -0
- package/dist/performance-view-jvvd8Jn7.mjs +476 -0
- package/dist/{public-types-BEjj7FEb.d.mts → public-types-gZi3iFNh.d.mts} +1 -1
- package/dist/rolldown-runtime-8H4AJuhK.mjs +14 -0
- package/dist/{runtime-CcQyhIvI.mjs → runtime-BtPH-UUb.mjs} +625 -261
- package/dist/session-BZLxhrPQ.mjs +5697 -0
- package/dist/{startup-CmTYVTGC.mjs → startup-D5Xu8diR.mjs} +22 -7
- package/dist/startup.d.mts +1 -2
- package/dist/startup.mjs +1 -1
- package/dist/tasks-D_z5Yjjr.mjs +267 -0
- package/dist/{terminal-progress-source-BfiTKDT-.mjs → terminal-progress-source-BlmksrSD.mjs} +116 -265
- package/generated/dsh-presets/cordis.patch.yml +8 -26
- package/generated/dsh-presets/minimal.patch.yml +17 -0
- package/generated/dsh-presets/ptc.patch.yml +8 -26
- package/generated/dsh-presets/standard.patch.yml +8 -26
- package/package.json +166 -146
package/README.en.md
CHANGED
|
@@ -35,6 +35,16 @@ dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@next
|
|
|
35
35
|
dsh --profile pi-tui
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
> **Those two channels are not an installable compatible pair today.** They are
|
|
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
|
+
> [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
|
|
45
|
+
> combination exists on those two moving channels. Validate this exact checkout
|
|
46
|
+
> with `pnpm compat:dsh:npm`.
|
|
47
|
+
|
|
38
48
|
Use the isolated npm driver (it installs the exact DSH version declared by this
|
|
39
49
|
checkout and exercises the full build/test/package path):
|
|
40
50
|
|
|
@@ -54,18 +64,26 @@ next compatibility range, and fallback paths.
|
|
|
54
64
|
|
|
55
65
|
| TUI package line | Official DSH tags for the pairing | Notes |
|
|
56
66
|
|---|---|---|
|
|
57
|
-
| `0.5.
|
|
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 |
|
|
68
|
+
| `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
|
+
| `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 |
|
|
58
71
|
| `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 |
|
|
59
72
|
| `0.4.9` (stable, previous) | `dsh-v0.1.7-rc.2` | Previous stable; the compatible TUI for a 0.1.7-rc.2 runtime |
|
|
60
73
|
| `0.4.8` (stable, previous) | `dsh-v0.1.7-rc.1` | Previous stable; the compatible TUI for a 0.1.7-rc.1 runtime |
|
|
61
74
|
| `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 |
|
|
62
75
|
| `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 |
|
|
63
76
|
|
|
64
|
-
Do not mix the stable and `@next` prerelease lines. `0.5.
|
|
65
|
-
peer floor
|
|
66
|
-
|
|
67
|
-
`
|
|
68
|
-
|
|
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
|
|
80
|
+
`dsh-v0.2.1-rc.1` has no paired TUI, and `0.5.2-rc.1` is the previous preview
|
|
81
|
+
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
|
|
84
|
+
`0.5.1` keeps pairing with 0.2.0-rc.2: it lifts the whole DSH peer floor to
|
|
85
|
+
`>=0.2.0-rc.2` (the Question lifecycle consumes contracts published only in
|
|
86
|
+
that rc.2 family). The previous stable `0.5.0`
|
|
69
87
|
line keeps its `>=0.1.7-rc.2` floor (exact validation target 0.2.0-rc.1);
|
|
70
88
|
older runtimes fail at the normal
|
|
71
89
|
incompatible-runtime boundary, so install the paired TUI line from the table
|
|
@@ -132,7 +150,7 @@ dsh --profile pi-tui --session <session-id>
|
|
|
132
150
|
|
|
133
151
|
### Conversation display
|
|
134
152
|
|
|
135
|
-
`/display focus` groups the current turn's Thinking, Tool Calls, and intermediate replies into a live Thought block;
|
|
153
|
+
`/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.
|
|
136
154
|
|
|
137
155
|
The full process can still be expanded when needed. In fullscreen Focus, Thought roots can be expanded/collapsed in bulk or opened with an individual card click, and the viewport survives switches and resizes. Display presets only change presentation; they do not modify Session events.
|
|
138
156
|
|
|
@@ -185,10 +203,14 @@ Regular `↑` / `↓` history recall is still available for recent input.
|
|
|
185
203
|
|
|
186
204
|
`/tasks` opens the full Task Center, showing the work the current Session's
|
|
187
205
|
Job Registry / Subagent catalog still tracks; the Footer's `↓` opens the
|
|
188
|
-
lightweight Quick Tasks view for the current active work. Selecting a Job
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
the
|
|
206
|
+
lightweight Quick Tasks view for the current active work. Selecting a Job opens
|
|
207
|
+
the fullscreen Job workspace: one status row with the Job identity, the themed
|
|
208
|
+
status and the `[GAP]`/`[ERROR]`/`[SETTLED]` facts, followed by the real
|
|
209
|
+
progress/detail, the command summary and the `Output` / `Command` reading tabs.
|
|
210
|
+
Output is the official non-consuming live preview (scrollable, searchable and
|
|
211
|
+
explicitly labelled as a retained tail rather than the full history), and the
|
|
212
|
+
Command page shows and copies the original shell command. It never consumes the
|
|
213
|
+
model's `job_output` cursor and never becomes session history.
|
|
192
214
|
|
|
193
215
|
Task Center is a live tracked/control projection, not an execution-history
|
|
194
216
|
list. `ACTIVE` / `TRACKED` are presentation scopes: `ACTIVE` shows only the
|
|
@@ -201,11 +223,27 @@ Transcript's tool card. Explicit `run_in_background: true` jobs (and jobs
|
|
|
201
223
|
promoted to the background after a foreground timeout) remain visible in
|
|
202
224
|
`TRACKED` after completion as long as the Job Registry keeps their record.
|
|
203
225
|
|
|
204
|
-
`/plugins` opens the active profile's Plugin Manager:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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.
|
|
236
|
+
|
|
237
|
+
The 14 official rc.2 Experimental bundles carry a bounded, identity-exact
|
|
238
|
+
Detail statement of their terminal surface and limits/risks (Web-only,
|
|
239
|
+
Host-only, the B04 WEB_ONLY/Host-row-pending boundary accepted by the Owner,
|
|
240
|
+
and the B13/B14 verified one-shot/provider boundaries). That copy never follows
|
|
241
|
+
enablement and never claims a live Host capability PASS. Upgrade guidance is
|
|
242
|
+
derived from Host facts only: shipped bundles upgrade with the DSH installation,
|
|
243
|
+
profile-owned bundles require Remove followed by an explicit later install,
|
|
244
|
+
missing entries use the official on-demand target, and the Current TUI bundle
|
|
245
|
+
is managed outside the screen. There is no in-place update, version picker or
|
|
246
|
+
silent reinstall.
|
|
209
247
|
|
|
210
248
|
Subagents are shown using their complete lineage, including nested descendants:
|
|
211
249
|
|
|
@@ -333,7 +371,82 @@ Common entry points:
|
|
|
333
371
|
/statusline
|
|
334
372
|
```
|
|
335
373
|
|
|
336
|
-
Model selection, Reasoning Effort, permission presets, Plan, and Goal all keep the corresponding DSH runtime semantics.
|
|
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.
|
|
337
450
|
|
|
338
451
|
The `Icon style` option in `/settings` switches the TUI's structural icons:
|
|
339
452
|
`Emoji` (default, colorful), `Symbols` (compact single-cell terminal
|
package/README.md
CHANGED
|
@@ -34,6 +34,14 @@ dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@next
|
|
|
34
34
|
dsh --profile pi-tui
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
> **这两个 channel 今天不构成可安装的兼容 pair。** 它们只是通道指针:当前
|
|
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/dsh-compatibility.md) 的精确配对为准;稳定版 `0.5.3` 发布在
|
|
42
|
+
> `@latest` 而不是 `@next`,因此这两个移动 channel 上没有可安装的兼容组合。
|
|
43
|
+
> 本 checkout 的精确验证请使用 `pnpm compat:dsh:npm`。
|
|
44
|
+
|
|
37
45
|
隔离的 npm 驱动仍按本 checkout 声明的精确 DSH 版本运行,并执行完整的
|
|
38
46
|
build/test/package 路径:
|
|
39
47
|
|
|
@@ -52,22 +60,26 @@ pnpm compat:dsh:npm
|
|
|
52
60
|
|
|
53
61
|
| TUI 包版本 | 对应的官方 DSH tags | 说明 |
|
|
54
62
|
|---|---|---|
|
|
55
|
-
| `0.5.
|
|
63
|
+
| `0.5.3`(stable / `@latest`) | `dsh-v0.2.1-rc.2` | 当前已发布稳定版;最低与精确验证目标均为 0.2.1-rc.2 family |
|
|
64
|
+
| `0.5.1`(stable,历史) | `dsh-v0.2.0-rc.2` | 上一稳定版;最低与精确验证目标均为 0.2.0-rc.2 family |
|
|
65
|
+
| `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 |
|
|
66
|
+
| `dsh-v0.2.1-rc.1`(无配对 TUI) | 无 | 该中间版本没有本矩阵宣称兼容的已发布 TUI;不要为它复用 `0.5.3` |
|
|
56
67
|
| `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 |
|
|
57
68
|
| `0.4.9`(stable,历史) | `dsh-v0.1.7-rc.2` | 上一稳定版;0.1.7-rc.2 runtime 的兼容 TUI |
|
|
58
69
|
| `0.4.8`(stable,历史) | `dsh-v0.1.7-rc.1` | 上一稳定版;0.1.7-rc.1 runtime 的兼容 TUI |
|
|
59
70
|
| `0.4.6`(stable,历史) | `dsh-v0.1.5-rc.1`、`dsh-v0.1.5-rc.2` | 上一稳定版;0.1.5 runtime 的兼容 TUI |
|
|
60
71
|
| `0.4.7-alpha.2`(next,历史) | `dsh-v0.1.6-alpha.2` | 上一条 next 线;0.1.6-alpha.2 runtime 的兼容 TUI |
|
|
61
72
|
|
|
62
|
-
不要把稳定线与 `@next` 预发布线混装。`0.5.
|
|
63
|
-
floor
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
`0.5.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[
|
|
73
|
+
不要把稳定线与 `@next` 预发布线混装。`0.5.3` 是当前已发布稳定版:它的最低 DSH
|
|
74
|
+
版本(peer floor)与精确验证目标都是 `0.2.1-rc.2` family。中间的
|
|
75
|
+
`dsh-v0.2.1-rc.1` 没有配对 TUI,`0.5.2-rc.1` 是上一轮已发布到 npm `next` 通道的
|
|
76
|
+
预览身份(配对 0.2.0-rc.2;它不覆盖 0.2.1-rc.2,因此新的稳定线使用 `0.5.3`
|
|
77
|
+
身份)。上一稳定版 `0.5.1` 继续配对 0.2.0-rc.2:它把整个 DSH peer floor 提升到
|
|
78
|
+
`>=0.2.0-rc.2`(Question 生命周期消费 rc.2 才发布的公开契约)。更早的 `0.5.0`
|
|
79
|
+
保持 `>=0.1.7-rc.2` floor 不变(精确验证目标 0.2.0-rc.1);旧 runtime 会在正常的
|
|
80
|
+
不兼容边界以非零状态失败,请按上表安装配对的 TUI 线。完整的历史兼容矩阵和
|
|
81
|
+
fallback 命令见[兼容性文档](docs/dsh-compatibility.md);要查看 `@next` 的最新集成
|
|
82
|
+
状态,请看 [next 分支 README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md)。
|
|
71
83
|
|
|
72
84
|
新的 Agent preset 使用当前 roster 中选定的 id。DSH 允许合法的自定义
|
|
73
85
|
`code` preset;只要当前 roster 存在它,显式输入和持久化状态都会保留 `code`。
|
|
@@ -124,7 +136,7 @@ dsh --profile pi-tui --session <session-id>
|
|
|
124
136
|
|
|
125
137
|
### Conversation display
|
|
126
138
|
|
|
127
|
-
`/display focus`
|
|
139
|
+
`/display` 在三种展示预设间切换:`full`(默认)是普通 Transcript 展示;`focus` 将当前回合的 Thinking、Tool Call 和中间回复聚合为一个实时更新的 Thought 区块;`compact` 把连续的过程折叠为带 Header + `Think:` / `Action:` 预览的 `Activity` 段,会话与 assistant 的中间输出仍按时间顺序可见,注入的 notice / relay / recall 改为独立呈现(相邻的环境类注入合并为可展开的 Context 簇),展开用鼠标点击或 `Ctrl+O`。`/settings` 的 `Display` 行提供同一组取值并持久化;`/focus` 仍作为兼容命令保留。
|
|
128
140
|
|
|
129
141
|
需要查看过程时可以展开,关闭 Focus 后恢复普通 Transcript 展示。全屏 Focus 中可以按 Thought root 批量展开/收起,也可以单独点击卡片;切换或缩放时会保留 viewport。展示预设只影响界面投影,不修改 Session 中保存的事件。
|
|
130
142
|
|
|
@@ -175,11 +187,13 @@ Rewind 会从选中的历史 User Turn 创建新的 Child Session,并把对应
|
|
|
175
187
|
|
|
176
188
|
### Subagent 与 Task Center
|
|
177
189
|
|
|
178
|
-
`/tasks` 打开完整 Task Center,显示当前 Session 中仍由 Job Registry / Subagent catalog 跟踪的工作;Footer 的
|
|
190
|
+
`/tasks` 打开完整 Task Center,显示当前 Session 中仍由 Job Registry / Subagent catalog 跟踪的工作;Footer 的 `↓`(仅在光标位于编辑器最后一个可视行时)打开按需的 Quick 窗口,它默认不占行、出现在整个 Footer 之下。选中 Job 后进入全屏 Job 工作区:顶部一行显示 Job 身份、主题状态与大写状态及 `[GAP]`/`[ERROR]`/`[SETTLED]` 事实,下面是真实进度/说明、命令摘要与 `Output`/`Command` 阅读标签。Output 是官方非消耗式的实时输出预览(可滚动、可搜索,并明确标注为保留尾部而非完整历史),Command 页可阅读并按原文复制 shell 命令。工作区不会消耗模型的 `job_output` 游标,也不写入会话历史。
|
|
179
191
|
|
|
180
192
|
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` 中查看。
|
|
181
193
|
|
|
182
|
-
`/plugins` 打开当前 profile
|
|
194
|
+
`/plugins` 打开当前 profile 的全屏 Plugin Manager:目录固定为 TUI & Extensions / Official DSH / Third-party / Experimental(实验组最后),窄屏单栏、宽屏双栏,可搜索、筛选、查看来源与状态,并从官方目录执行安装、启用/禁用与删除;结果以 Host 实际返回的版本、重启要求和错误为准。正在提供当前界面的 `dsh-pi-tui` 只读且不可从自身界面禁用或移除。`/settings` 的顶级 `Plugins` 分类原地打开同一页面,返回时保留 Settings 的分类、滚动与选择。
|
|
195
|
+
|
|
196
|
+
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 由外部管理」,不提供原地更新、版本选择器或静默重装。
|
|
183
197
|
|
|
184
198
|
Subagent 按完整 lineage 显示,包括嵌套创建的 descendant:
|
|
185
199
|
|
|
@@ -198,9 +212,9 @@ main
|
|
|
198
212
|
* nested descendant
|
|
199
213
|
* Job Registry 跟踪的 Job(含运行中的前台 shell)
|
|
200
214
|
|
|
201
|
-
Footer `↓` 打开的 Quick
|
|
215
|
+
Footer `↓` 打开的 Quick 窗口默认不占行,只在编辑器最后一个可视行按 `↓` 时展开到 Footer 之下:`↑↓` / `PgUp` / `PgDn` 选择,`Enter` 用真实任务身份打开既有详情,`↑`(首行)或 `Esc` 返回编辑器并保留草稿;列表末尾的 “Open Task Center” 行进入完整 Task Center。
|
|
202
216
|
|
|
203
|
-
完整 Task Center 额外提供 `A` 切换 Active / Tracked、`/` 搜索、`Tab` / `Shift+Tab` 双向切换类型、`S`(确认后)停止所选任务以及 `R` 刷新 / 重试。Quick
|
|
217
|
+
完整 Task Center 额外提供 `A` 切换 Active / Tracked、`/` 搜索、`Tab` / `Shift+Tab` 双向切换类型、`S`(确认后)停止所选任务以及 `R` 刷新 / 重试。Quick 窗口只消费上述导航键,其余输入一律 no-op,不会进入搜索、停止确认或任务管理状态,因此 `Esc` 始终一层关闭。
|
|
204
218
|
|
|
205
219
|
已经结束的 one-shot Subagent 仍可以打开并查看持久化 Transcript。
|
|
206
220
|
|
|
@@ -297,7 +311,53 @@ TUI 使用 DSH 提供的模型和设置服务。
|
|
|
297
311
|
/statusline
|
|
298
312
|
```
|
|
299
313
|
|
|
300
|
-
模型切换、Reasoning Effort、权限 Preset、Plan 和 Goal 都沿用 DSH
|
|
314
|
+
模型切换、Reasoning Effort、权限 Preset、Plan 和 Goal 都沿用 DSH 对应的运行时语义。`/model` 的候选完全来自 Host 的模型目录:rc.2 的 `deepseek-flash` 以精确 `(provider, model)` 身份出现(显示名 `DeepSeek-V4.1-Flash` 不当作 ID),选择后写回官方 Session/global 默认;部署覆盖目录不再提供该 ID 时不会凭空显示。
|
|
315
|
+
|
|
316
|
+
`/settings` 打开一个真正的全屏工作区,三栏 / 两栏 / 单栏只是同一套
|
|
317
|
+
`分类 → 设置行 → 详情` 三层的投影:宽屏同时显示三栏,中屏按当前层显示
|
|
318
|
+
`分类 + 设置行` 或 `设置行 + 详情`,窄屏只显示当前层。所有宽度上 `Right` 只前进一层,
|
|
319
|
+
`Left` 返回一层(在最外层无效);`Enter` 遵循相同层级,`Esc`/`Backspace` 逐级返回,
|
|
320
|
+
最外层关闭工作区。`Tab`/`Shift+Tab` 不承担导航,底部操作栏始终固定在最后一行。多栏编辑态仍
|
|
321
|
+
保留 `[Details]` 焦点标识;只有标题会占掉唯一内容行时才让位。
|
|
322
|
+
它展示 Appearance / Display 的真实事实:主题的 source-qualified 原始值与友好名称、
|
|
323
|
+
Icon style、Transcript display 的运行时当前值与持久偏好、Thinking detail 的当前运行
|
|
324
|
+
态,以及每个条目的配置来源 Scope 与 backend 就绪状态;`R` 重新读取、`C` 复制所选行的
|
|
325
|
+
原始值;浏览、选择与复制本身都不写入配置。
|
|
326
|
+
|
|
327
|
+
其中**「Configured theme」和「Transcript display」两行可以直接修改**:在 L1 设置行按
|
|
328
|
+
`Right` 或 `Enter`,或点击 `[Change…]` / 可见的 Detail 内容,即可在同一 L2 详情中打开
|
|
329
|
+
候选选择;当前值与 Runtime / Persisted 事实留在同一详情事实区,并与候选列表独立滚动。`Up`/`Down`/`Home`/`End`
|
|
330
|
+
移动候选,`PgUp`/`PgDn` 和事实区上的滚轮只滚动详情事实,候选区滚轮独立滚动候选;
|
|
331
|
+
选择期间可按 `C` 复制仍未更改的原始值,但仅当动作栏实际绘出 `c copy`,它不会提交候选。
|
|
332
|
+
`Enter` 或点击 `[Confirm]` 明确确认,`Left`/`Esc`/`Backspace` 或 `[Cancel]` 取消并直接回到
|
|
333
|
+
L1,零写入。L2 浏览/已结算时,`Enter` 可重新打开可写行的选择;pending 写入时不触发新选择。若当前候选身份已滚出可见区域,第一次 `Enter` 只将其重新显示,之后才能确认;
|
|
334
|
+
44×8 短屏在长身份需要空间时先省略可选的 `Choose value` 标题;若仍不足,再将事实区压到只保留旧 `Value` 的一行。只有完整身份、`Confirm` 与 `Enter confirm` 同屏可见时才能确认,超过剩余容量仍拒绝写入。只有实际绘制出来的
|
|
335
|
+
按钮与候选行可以点击。确认后走既有的串行整文档写入路径落盘,再从权威来源重读目标字段核对:
|
|
336
|
+
详情里分别显示运行态(`Runtime`,如当前 palette)与持久偏好(`Persisted`),并显示
|
|
337
|
+
`Saving…` / `Verified` / `Not saved · 原因` / `Commit accepted · verification unavailable` /
|
|
338
|
+
`Outcome unknown · 原因`,只有写入完成、backend `ready` 且权威回读一致才显示 Verified;
|
|
339
|
+
被拒绝的写入会先重读权威:仍停留在请求起点值才报 Not saved,出现第三个值、已是目标值或无法读取
|
|
340
|
+
则如实报 Outcome unknown;写返回成功但权威可读地不一致同样按失败显示,而不是
|
|
341
|
+
"verification unavailable"。backend 不 ready 时主题不会被应用或写入;显示预设可以先在本机生效,
|
|
342
|
+
此时会明确说明未能保存,而不是假装保存成功。插件主题在确认时再次按 source-qualified 身份解析,
|
|
343
|
+
已卸载的插件主题标记为 unavailable 并拒绝确认,不会退化成同名文件主题。Icon style 与
|
|
344
|
+
Thinking detail 仍是只读行。旧的完整设置编辑器仍然可用:`Other settings` → `Open existing settings…`
|
|
345
|
+
会先关闭工作区并恢复原界面,再打开原有编辑器,Theme、Plugin Manager、键位、权限与扩展设置的写入路径全部不变。
|
|
346
|
+
|
|
347
|
+
`/settings` 的 `Other settings` 里新增 `Web Search / Fetch`:选择后先关闭工作区,再打开原有编辑器
|
|
348
|
+
的 Web 段并定位到第一项。段内可切换搜索 Provider(`Messages`,官方默认,或独立计费的
|
|
349
|
+
`DeepSeek Search API`)、Fetch Provider(`HTTP`,官方默认,或 `DeepSeek Fetch API`),设置 Search API
|
|
350
|
+
结果数(1–50,快选 5/10/20/50)、`Share Original Question`(官方默认为开启;每次新的 Search API
|
|
351
|
+
调用附带最多 128 字符的触发人类问题 `ori_question`,不发送完整历史或系统提示词)与 API endpoint
|
|
352
|
+
base(必须显式确认 https 地址;凭据与查询会发往该地址)。两套 API 都是独立的 opt-in 收费
|
|
353
|
+
provider:登录或普通 Messages 套餐不保证覆盖其费用,默认的 `Messages`/`HTTP` 组合也不会调用收费
|
|
354
|
+
API。Web 配置是 base profile 所有的设置,不是 Bxx Optional Bundle;安装或启用任何其他 Bundle
|
|
355
|
+
都不会改变这两个 provider。
|
|
356
|
+
`[current]` 只在官方写入与权威回读一致后移动,失败显示 `Not saved`;选择对下一次搜索/获取生效,
|
|
357
|
+
运行中的操作不会被追溯切换。DeepSeek API key 只显示是否配置与来源层,配置/清除复用现有遮蔽
|
|
358
|
+
`/login DEEPSEEK_API_KEY` / `/logout DEEPSEEK_API_KEY`(先关闭设置界面再执行)。Esc 从 Web 段返回
|
|
359
|
+
同一 `Web Search / Fetch` 行;从 `Open existing settings…` 进入的旧路径仍返回会话。Remote 后端显示
|
|
360
|
+
不可用,不发任何 Host 命名空间。
|
|
301
361
|
|
|
302
362
|
`/settings` 中的 `Icon style` 可切换 TUI 结构图标的风格:`Emoji`(默认,
|
|
303
363
|
彩色)、`Symbols`(紧凑的单格终端符号)、`Minimal`(隐藏装饰性图标,只
|
package/cordis.patch.yml
CHANGED
|
@@ -24,6 +24,18 @@
|
|
|
24
24
|
name: '@xmoon76/dsh-pi-tui/builtins'
|
|
25
25
|
inject: [tuiStartup, piTuiExtensions]
|
|
26
26
|
|
|
27
|
+
# The bundle's OWN Host performance projection (plan PR-1): the single
|
|
28
|
+
# authority for the R5 / All model-request output rate and the recent TTFB.
|
|
29
|
+
# It registers the `piTuiPerformance` unit on the official
|
|
30
|
+
# `sessionProjections` seam — the same seam the official `sessionStats` row
|
|
31
|
+
# uses — and then publishes the `piTuiPerformanceReady` gate. Gating on
|
|
32
|
+
# `tuiStartup` keeps `--help` from mounting it; the `sessionProjections`
|
|
33
|
+
# inject makes the row wait for the Host registry instead of registering
|
|
34
|
+
# into a missing seam.
|
|
35
|
+
- id: pi-tui-performance-host
|
|
36
|
+
name: '@xmoon76/dsh-pi-tui/performance-host'
|
|
37
|
+
inject: [tuiStartup, sessionProjections]
|
|
38
|
+
|
|
27
39
|
- id: tui-app
|
|
28
40
|
name: '@xmoon76/dsh-pi-tui'
|
|
29
41
|
# `workspaceRegistry` is injected, not merely looked up: D2.4 Direct fork
|
|
@@ -36,7 +48,11 @@
|
|
|
36
48
|
# dsh-base layer already mounts it (disabled only without a profile),
|
|
37
49
|
# so this is an explicit lifecycle ordering dependency, never a second
|
|
38
50
|
# package-manager row.
|
|
39
|
-
|
|
51
|
+
# `piTuiPerformanceReady` is the bundle's own Host projection gate: the
|
|
52
|
+
# surface must not mount without its performance authority, so a profile
|
|
53
|
+
# that disables the `pi-tui-performance-host` row fails loudly here
|
|
54
|
+
# instead of silently falling back to a Client-side estimate.
|
|
55
|
+
inject: [tuiStartup, piTuiExtensions, authorization, workspaceRegistry, pluginManager, jobController, piTuiPerformanceReady]
|
|
40
56
|
config:
|
|
41
57
|
sessionId: ''
|
|
42
58
|
|
|
@@ -77,18 +93,6 @@
|
|
|
77
93
|
- id: file-reference-local
|
|
78
94
|
name: '@deepseek-ai/dsh-file-reference-local'
|
|
79
95
|
|
|
80
|
-
# The authorization seam (`ctx.authorization`): plugin-owned credential-
|
|
81
|
-
# obtaining flows, one attempt per key, transport-neutral notices and
|
|
82
|
-
# prompts. The dsh host does NOT mount it anywhere (the base layer ships
|
|
83
|
-
# only `credentials` + `llm-pi-ai`), so the TUI profile inserts the row
|
|
84
|
-
# itself — the TUI is the interactive surface that can answer its
|
|
85
|
-
# prompts. `AuthorizationService` injects `credentials`, so this row
|
|
86
|
-
# activates only after the base's credentials row; llm-pi-ai's
|
|
87
|
-
# provider login flows register once both services are up (it injects
|
|
88
|
-
# `authorization` optionally and degrades without it).
|
|
89
|
-
- id: authorization
|
|
90
|
-
name: '@deepseek-ai/dsh-authorization'
|
|
91
|
-
|
|
92
96
|
# The 0.1.7 declarative preset registry: preset identity, revisions and
|
|
93
97
|
# default/selection policy are registry-owned (deployment `default` here;
|
|
94
98
|
# the user's `selectedDefault` rides the profile form). The four shipped
|
|
@@ -102,39 +106,6 @@
|
|
|
102
106
|
config:
|
|
103
107
|
default: standard
|
|
104
108
|
|
|
105
|
-
# Production hardening for per-session preset composition. A live Agent
|
|
106
|
-
# whose standing preset generation disappears (the DSH registry owns that
|
|
107
|
-
# lifetime; the TUI must not remount/reparent/recreate an Agent) would
|
|
108
|
-
# otherwise keep addressing the model with only its Agent-own rows — the
|
|
109
|
-
# observed failure mode was a request whose tool list had collapsed to
|
|
110
|
-
# `subagent` alone, with no error anywhere. This official companion turns
|
|
111
|
-
# that into a loud, early failure at the next prompt assembly instead.
|
|
112
|
-
#
|
|
113
|
-
# The allowlist is deliberate and minimal: this bundle introduces exactly
|
|
114
|
-
# ONE production invariant, so a future layer shipping another invariant
|
|
115
|
-
# companion cannot silently enable itself here. The companion's own
|
|
116
|
-
# `/invariant` entry declares `inject = ['invariants']`; no second
|
|
117
|
-
# dependency management is written here.
|
|
118
|
-
#
|
|
119
|
-
# DEPENDENCY CONTRACT: `@deepseek-ai/dsh-invariants` is a COMPOSITION row
|
|
120
|
-
# resolved by the dsh Host (the package ships inside the dsh installation),
|
|
121
|
-
# not a module-graph peer — exactly like `@deepseek-ai/dsh-agent-preset`,
|
|
122
|
-
# which the same rule keeps in devDependencies. It therefore carries an
|
|
123
|
-
# exact devDependency pin for the real-mount tests and deliberately NO
|
|
124
|
-
# peerDependency: `scripts/naming-gate.mjs` rejects a `@deepseek-ai/*` peer
|
|
125
|
-
# that `src/` never imports as a dead peer, and a phantom peer would invite
|
|
126
|
-
# duplicate in-box copies in the profile. The companion subpath below is
|
|
127
|
-
# covered by the registry's own runtime peer.
|
|
128
|
-
- id: invariants
|
|
129
|
-
name: '@deepseek-ai/dsh-invariants'
|
|
130
|
-
config:
|
|
131
|
-
enabled: true
|
|
132
|
-
package_allowlist:
|
|
133
|
-
- '^@deepseek-ai/dsh-agent-preset-registry$'
|
|
134
|
-
|
|
135
|
-
- id: agent-preset-registry-invariant
|
|
136
|
-
name: '@deepseek-ai/dsh-agent-preset-registry/invariant'
|
|
137
|
-
|
|
138
109
|
# The official standard preset composes its `subagent` tool with
|
|
139
110
|
# `modelSelectionSettings: true`, which injects this Host-owned setting
|
|
140
111
|
# service — the row is required for the standard composition to mount.
|
|
@@ -233,9 +204,6 @@
|
|
|
233
204
|
- id: tool-workflow
|
|
234
205
|
disabled: true
|
|
235
206
|
|
|
236
|
-
- id: tool-ralph
|
|
237
|
-
disabled: true
|
|
238
|
-
|
|
239
207
|
- id: agent-instructions
|
|
240
208
|
disabled: true
|
|
241
209
|
|
package/dist/builtins.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TUI_STARTUP_SERVICE } from "./startup-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
+
import { n as TUI_STARTUP_SERVICE } from "./startup-D5Xu8diR.mjs";
|
|
3
3
|
import { n as dshVersion, t as bundleVersion } from "./version-a-eF-QER.mjs";
|
|
4
|
+
import { a as PI_TUI_EXTENSIONS_SERVICE } from "./extensions-a-rxanjw.mjs";
|
|
4
5
|
//#region src/builtins.ts
|
|
5
6
|
var builtins_exports = /* @__PURE__ */ __exportAll({
|
|
6
7
|
apply: () => apply,
|