@aiwayds/dsh-opentui 0.9.3 → 0.9.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/CHANGELOG.md +49 -0
- package/README.md +34 -4
- package/dist/client/index.js +8466 -7787
- package/package.json +1 -1
- package/scripts/lib/provision-plan.mjs +62 -0
- package/scripts/provision-opentui-profile.mjs +18 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,55 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.9.5] - 2026-11-11
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`/flush`** — delivers a paused delivery queue now. A failed or aborted turn keeps the client-side queue and pauses the pump; `/flush` starts the head prompt immediately and the rest follow one per turn end, in submission order. Every outcome is reported (an empty queue is never silent).
|
|
13
|
+
- **Settings catalogs** — `permission.defaultPreset` reads the host `permissionPresets/catalog` RPC and offers its `defaultOptions` as real choices (the settings value, else the catalog default); without a catalog the row is read-only and shows the effective value plus why, never an empty picker. The slash skill registry keeps the boot disk snapshot and refreshes once after the first user message when `skills/list` becomes readable, so plugin-provided skills appear without a restart.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **A launch starts a fresh session; restore is opt-in** — a plain launch no longer reopens the last workspace session. Set `"autoResume": "last"` or pass `--resume-last` for a single launch (it overrides the config) to restore the newest non-empty session from the launch workspace that was active within the last 7 days (`autoResumeDays`); `--new` wins over both, and `--session <id>` still pins a session.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **Skill rows survived a session switch** — the palette kept the previous session's plugin skill rows after `/new` or `/resume`; the session-scoped `skills/list` rows now reset to the boot snapshot.
|
|
22
|
+
- **`/flush` during a running turn** — the notice no longer promises delivery; it says the queued prompts wait for that turn to finish, matching the pause-on-failure behavior.
|
|
23
|
+
|
|
24
|
+
### Known Issues
|
|
25
|
+
|
|
26
|
+
- Engine paint defects remain: streaming diff-paint row loss, and wide-glyph loss under translucent overlays (upstream).
|
|
27
|
+
- Skills before the first message are the boot-time disk snapshot; plugin-provided skills appear only after the refresh.
|
|
28
|
+
- `permission.defaultPreset` choices depend on the host catalog schema; without one the row is read-only.
|
|
29
|
+
- The delivery queue is in-memory only and is lost on exit.
|
|
30
|
+
- CI cannot run the real-client tmux gate (no tmux/dsh on hosted runners).
|
|
31
|
+
|
|
32
|
+
## [0.9.4] - 2026-11-10
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- **MCP by default** — the core plugin set now installs `@aiwayds/dsh-mcp-adapter`, and provisioning inserts a `mcp-context7` client row (streamable HTTP, no API key) so `mcp_list` / `mcp_call` have a server to catalog on a fresh profile. An existing row is never rewritten or duplicated; `--plugins=none` writes neither.
|
|
37
|
+
- **Steer or queue on a busy submit** — Enter on a busy turn opens a two-row choice (Steer is the default highlight; `esc` keeps the typed text). Queueing is client-side: one prompt per turn end in submission order. Failed or aborted turns pause the queue and notify; the next successful turn end resumes it. The transcript shows muted `⏸ 排队等待 #N` queue rows and `⤵ 已注入当前回合` steer receipts that flip to `✓ 已投递` at turn end.
|
|
38
|
+
- **cwd · git branch row** — one muted row directly above the composer with the workspace directory (`~/…` abbreviation, left-clipped tail) and the git branch (short SHA on a detached HEAD). Probed on mount and on each session switch; non-repos and probe failures degrade silently to the directory only.
|
|
39
|
+
- **Session restore on launch (opt-in)** — a plain launch starts a new, empty session. Setting `"autoResume": "last"` reopens the newest non-empty session from the launch workspace that was active within the last 7 days and prints one `resumed <title> · <time ago>` notice; `--resume-last` enables it for a single launch (overrides the config). `--new` always starts fresh and wins over both, `--session <id>` pins a session, and `autoResumeDays` changes the window.
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- **Footer context percent is compact** — the value uses its own digit width, so `(5.9%)` replaces `( 5.9%)` and the rolling leaf agrees with the static text at rest.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- **Transcript loss on `/resume` and after a host reconnect** — the reload carried the live session id instead of the picked one, so the read failed and the empty result was hydrated as history; and `storedTranscript` answered `[]` for any failed journal read, making "no history" indistinguishable from a transient host/RPC error. Reload now passes the picked id, errors propagate (callers keep their rows), and `/new` clears explicitly. Disk data was never affected.
|
|
48
|
+
|
|
49
|
+
### Known Issues
|
|
50
|
+
|
|
51
|
+
- Engine paint defects remain: streaming diff-paint row loss, and wide-glyph loss under translucent overlays (upstream).
|
|
52
|
+
- Skills are a boot-time snapshot of local directories; plugin-provided skills are not listed.
|
|
53
|
+
- `permission.defaultPreset` has no options in the current host schema.
|
|
54
|
+
- Input history is in-memory only.
|
|
55
|
+
- CI cannot run the real-client tmux gate (no tmux/dsh on hosted runners).
|
|
56
|
+
|
|
8
57
|
## [0.9.3] - 2026-11-10
|
|
9
58
|
|
|
10
59
|
### Added
|
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ Every launch converges the `opentui` profile to this set (pinned versions):
|
|
|
72
72
|
| core | `@aiwayds/dsh-subagent-registry` | subagent discovery and registration |
|
|
73
73
|
| core | `@aiwayds/dsh-llm-net-retry` | retries transient provider/network failures |
|
|
74
74
|
| core | `@aiwayds/dsh-web-search-anysearch` | web search without a per-provider key |
|
|
75
|
+
| core | `@aiwayds/dsh-mcp-adapter` | MCP catalog/dispatch meta-tools (`mcp_list` / `mcp_call`) |
|
|
75
76
|
| core | `@aiwayds/dsh-approval-policy` | tool-approval policy |
|
|
76
77
|
| core | `@aiwayds/dsh-model-sync` | keeps the model list in sync with the provider catalog |
|
|
77
78
|
| recommended | `@aiwayds/dsh-llm-stats` | token/cost accounting behind `/usage` |
|
|
@@ -93,6 +94,19 @@ on a fresh profile. Both rows are written for every tier — including
|
|
|
93
94
|
`--plugins=none`, because the tools must be visible regardless of whether the
|
|
94
95
|
anysearch bundle is installed.
|
|
95
96
|
|
|
97
|
+
MCP ships as a pair: the adapter above only catalogs tools that the official
|
|
98
|
+
`@deepseek-ai/dsh-mcp-client` registered, so provisioning also inserts one
|
|
99
|
+
client row (`mcp-context7`, transport `streamable-http`, endpoint
|
|
100
|
+
`https://mcp.context7.com/mcp`). `context7` is read-only documentation lookup,
|
|
101
|
+
needs no API key, and starts fast over HTTP. `mcp_list` / `mcp_call` then
|
|
102
|
+
appear in the model tool catalog, and `/mcp` shows the same catalog. A failed
|
|
103
|
+
or offline connection is non-fatal: `mcp-client` logs the error, the host
|
|
104
|
+
still boots, and the server's tools are simply absent until it reconnects.
|
|
105
|
+
An existing `mcp-context7` row (for example one the user edited) is never
|
|
106
|
+
rewritten or duplicated. Under `--plugins=none` neither the adapter nor this
|
|
107
|
+
row is written — the client alone would expose unfolded `mcp__*` schemas,
|
|
108
|
+
which is not the promised setup.
|
|
109
|
+
|
|
96
110
|
A plugin counts as installed only when all three agree: it is in the profile
|
|
97
111
|
`dependencies`, the installed `node_modules` version satisfies the pin, and its
|
|
98
112
|
name is in `dsh.profile.bundles`. Missing pieces are repaired with one
|
|
@@ -113,7 +127,8 @@ DSH_OPENTUI_PLUGINS=none dsh-opentui
|
|
|
113
127
|
|
|
114
128
|
The profile is still created/kept, the model route still written (including the
|
|
115
129
|
`tool-web` / `web` rows), and the retired-entry cleanup still runs; only plugin
|
|
116
|
-
installation
|
|
130
|
+
installation, managed-bundle appends and the default MCP server row are
|
|
131
|
+
skipped (an existing `mcp-context7` row is left untouched). You can always manage
|
|
117
132
|
plugins yourself afterwards with `dsh plugin --profile opentui add <pkg>`.
|
|
118
133
|
`--dry-run` prints every command provisioning would run without executing it.
|
|
119
134
|
|
|
@@ -135,6 +150,15 @@ allow, `n` decline; `esc` aborts a running turn. Ctrl+C twice quits. Commands:
|
|
|
135
150
|
`/help` `/model [provider/id]` `/usage` `/clear` `/login` `/logout` `/resume`
|
|
136
151
|
`/search` `/new` `/quit` and more — see `/help` inside the TUI.
|
|
137
152
|
|
|
153
|
+
**Session restore on launch (opt-in)**: a plain launch starts a new, empty
|
|
154
|
+
session. To reopen the newest non-empty session from the launch workspace that
|
|
155
|
+
was active within the last 7 days — with a `resumed <title> · <time ago>`
|
|
156
|
+
notice — set `"autoResume": "last"` in
|
|
157
|
+
`$DSH_HOME/profiles/opentui/config.json` (change the window with
|
|
158
|
+
`"autoResumeDays": N`), or pass `--resume-last` for one launch (it overrides
|
|
159
|
+
the config). `--new` always starts fresh and wins over both; `--session <id>`
|
|
160
|
+
pins a specific session.
|
|
161
|
+
|
|
138
162
|
## Develop
|
|
139
163
|
|
|
140
164
|
```bash
|
|
@@ -186,7 +210,7 @@ PATH; otherwise the scripts self-skip (exit 0) so CI runs green.
|
|
|
186
210
|
|
|
187
211
|
## Status
|
|
188
212
|
|
|
189
|
-
v0.9.
|
|
213
|
+
v0.9.5: published as `@aiwayds/dsh-opentui` — client-only distribution
|
|
190
214
|
(npm bin → client chain; the in-process plugin mode was retired). New
|
|
191
215
|
default theme dsh-blue (dark/light, auto-selected from terminal background,
|
|
192
216
|
`/theme` to pin) with focus visuals, framed composer/messages/code blocks,
|
|
@@ -197,5 +221,11 @@ lines), adds shell-style input history recall, and fixes palette/dialog
|
|
|
197
221
|
contrast and footer refresh. 0.9.3 adds slash-palette Tab completion with
|
|
198
222
|
a 10-row window and skills, the `/agents` and `/settings` panels, F6 /
|
|
199
223
|
click pane focus with a scrollable transcript, the dock fade, and default
|
|
200
|
-
plugin provisioning with keyless `web_search`.
|
|
201
|
-
|
|
224
|
+
plugin provisioning with keyless `web_search`. 0.9.4 ships MCP by default
|
|
225
|
+
(`dsh-mcp-adapter` plus a keyless context7 server), a steer-or-queue choice
|
|
226
|
+
on a busy submit, the cwd · git branch composer row, session restore on
|
|
227
|
+
launch, a compact footer context percent, and a fix for transcript loss on
|
|
228
|
+
`/resume`. 0.9.5 adds `/flush` for a paused delivery queue, closes the
|
|
229
|
+
settings permission-preset and skill-catalog gaps, and makes session restore
|
|
230
|
+
opt-in (`--resume-last` or `autoResume: "last"`) so a plain launch starts
|
|
231
|
+
fresh. Roadmap: platform + Kit polish.
|