@aiwayds/dsh-opentui 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +29 -4
- package/dist/client/index.js +8316 -7774
- 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,31 @@ 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.4] - 2026-11-10
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **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.
|
|
13
|
+
- **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.
|
|
14
|
+
- **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.
|
|
15
|
+
- **Session restore on launch** — a fresh client 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. `--new` starts fresh, `--session <id>` pins a session, `autoResume: "off"` disables the restore, and `autoResumeDays` changes the window.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **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.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- **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.
|
|
24
|
+
|
|
25
|
+
### Known Issues
|
|
26
|
+
|
|
27
|
+
- Engine paint defects remain: streaming diff-paint row loss, and wide-glyph loss under translucent overlays (upstream).
|
|
28
|
+
- Skills are a boot-time snapshot of local directories; plugin-provided skills are not listed.
|
|
29
|
+
- `permission.defaultPreset` has no options in the current host schema.
|
|
30
|
+
- Input history is in-memory only.
|
|
31
|
+
- CI cannot run the real-client tmux gate (no tmux/dsh on hosted runners).
|
|
32
|
+
|
|
8
33
|
## [0.9.3] - 2026-11-10
|
|
9
34
|
|
|
10
35
|
### 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,13 @@ 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**: the client reopens the newest non-empty session
|
|
154
|
+
from the launch workspace that was active within the last 7 days, with a
|
|
155
|
+
`resumed <title> · <time ago>` notice. Disable it with `"autoResume": "off"` in
|
|
156
|
+
`$DSH_HOME/profiles/opentui/config.json` (change the window with
|
|
157
|
+
`"autoResumeDays": N`), or skip it for one launch with `--new`; `--session <id>`
|
|
158
|
+
pins a specific session.
|
|
159
|
+
|
|
138
160
|
## Develop
|
|
139
161
|
|
|
140
162
|
```bash
|
|
@@ -186,7 +208,7 @@ PATH; otherwise the scripts self-skip (exit 0) so CI runs green.
|
|
|
186
208
|
|
|
187
209
|
## Status
|
|
188
210
|
|
|
189
|
-
v0.9.
|
|
211
|
+
v0.9.4: published as `@aiwayds/dsh-opentui` — client-only distribution
|
|
190
212
|
(npm bin → client chain; the in-process plugin mode was retired). New
|
|
191
213
|
default theme dsh-blue (dark/light, auto-selected from terminal background,
|
|
192
214
|
`/theme` to pin) with focus visuals, framed composer/messages/code blocks,
|
|
@@ -197,5 +219,8 @@ lines), adds shell-style input history recall, and fixes palette/dialog
|
|
|
197
219
|
contrast and footer refresh. 0.9.3 adds slash-palette Tab completion with
|
|
198
220
|
a 10-row window and skills, the `/agents` and `/settings` panels, F6 /
|
|
199
221
|
click pane focus with a scrollable transcript, the dock fade, and default
|
|
200
|
-
plugin provisioning with keyless `web_search`.
|
|
201
|
-
|
|
222
|
+
plugin provisioning with keyless `web_search`. 0.9.4 ships MCP by default
|
|
223
|
+
(`dsh-mcp-adapter` plus a keyless context7 server), a steer-or-queue choice
|
|
224
|
+
on a busy submit, the cwd · git branch composer row, session restore on
|
|
225
|
+
launch, a compact footer context percent, and a fix for transcript loss on
|
|
226
|
+
`/resume`. Roadmap: platform + Kit polish.
|