@aiwayds/dsh-opentui 0.15.0 → 0.16.1
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 +19 -0
- package/README.md +4 -2
- package/dist/client/index.js +853 -752
- package/dist/locales/en.json +908 -0
- package/dist/locales/zh-CN.json +908 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ 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.16.1] - 2026-11-15
|
|
9
|
+
|
|
10
|
+
### Internal
|
|
11
|
+
|
|
12
|
+
- **Screenshot text-leak gate for the `ui` test tier.** Boots the real client in both languages across eleven surfaces and fails on any painted run resolving exactly against a locale key (the `overlay.widgets.frameTitle` class of leaks); a packed-artifact pass repeats the scan on the installed `npm pack` tarball in red and green states, and a unit canary pins the scanner itself. The UI matrix's busy-ladder scenes now follow the double-Esc stop contract, and the harness pins its scratch language to `en`. No shipped code changed in this release.
|
|
13
|
+
|
|
14
|
+
## [0.16.0] - 2026-11-15
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **Live language switching.** `/language` now applies the chosen language immediately — the locale registry rides a solid signal, so every tracked `t()` read point repaints in place; the "restart to apply" copy is gone. Persisting to the unified `lang` config key is unchanged.
|
|
19
|
+
- **Double-esc stop confirmation (U6, tui-pi parity).** With a turn running the first Esc only arms a `Press Esc again to stop` hint (500 ms window); the second Esc opens a `Stop everything?` confirm dialog naming the blast radius (Keep Running / Stop, Esc cancels). Confirming stops the running turn and every live subagent through the existing client-side fallback chain; single-Esc semantics outside a busy turn are untouched.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- **The published bundle ships its locale files.** The npm package never contained `en.json`/`zh-CN.json` and the build did not copy them, so on any installed (non-source) run the locale registry came up empty, `t()` fell open to raw key names (`overlay.widgets.frameTitle` painted as a frame title), and `/language` degraded to English regardless of the persisted `lang`. The build now copies `packages/i18n/locales` to `dist/locales`, the `files` whitelist ships it, and a prepack gate verifies the packed archive byte-for-byte.
|
|
24
|
+
- **`/language` picker starts on the current row.** `pickOne` hard-coded the dialog selection to row 0, so arrow+Enter committed the wrong language and bare Enter silently switched to the first entry; the picker now opts into focusing the current language, with a real-renderer ft pinning open/Up/commit.
|
|
25
|
+
- **`setLanguage` refuses table-less ids** instead of parking the signal on a language with no table; the composer placeholder is keyed (`composer.placeholder`) so the zh UI no longer mixes an English prompt line.
|
|
26
|
+
|
|
8
27
|
## [0.15.0] - 2026-11-15
|
|
9
28
|
|
|
10
29
|
### Added
|
package/README.md
CHANGED
|
@@ -140,13 +140,15 @@ environment (`DSH_OPENTUI_THEME` / `DSH_OPENTUI_MODEL`) wins over the file.
|
|
|
140
140
|
**In the TUI**: type a question, Enter to send. `F6` (or a click) moves focus
|
|
141
141
|
between the transcript and the composer; while the transcript is focused, ↑/↓
|
|
142
142
|
scroll a line, PgUp/PgDn a page, Home/End jump to the top/bottom, and Tab or
|
|
143
|
-
Esc returns to the composer (Esc
|
|
143
|
+
Esc returns to the composer (Esc ×2 stops a running turn: the first press
|
|
144
|
+
prompts "press Esc again to stop", the second opens a confirmation dialog
|
|
145
|
+
that stops the turn AND every live subagent). The focused pane
|
|
144
146
|
carries a heavy accent frame; the unfocused one dims. Mouse reporting is on, so
|
|
145
147
|
hold **Shift** while dragging for the terminal's native selection (then
|
|
146
148
|
Cmd/Ctrl+C copies it); a plain drag is copied on release per `terminal.copy`.
|
|
147
149
|
The model's thinking streams
|
|
148
150
|
dim; tool calls (bash / read_file / write_file) pop an approval card — `y`
|
|
149
|
-
allow, `n` decline; `esc`
|
|
151
|
+
allow, `n` decline; `esc` ×2 + confirm stops a running turn. Ctrl+C twice quits. Commands:
|
|
150
152
|
`/help` `/model [provider/id]` `/usage` `/clear` `/login` `/logout` `/resume`
|
|
151
153
|
`/search` `/new` `/quit` and more — see `/help` inside the TUI.
|
|
152
154
|
|