@aiwayds/dsh-opentui 0.14.0 → 0.16.0
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 +26 -0
- package/README.md +4 -2
- package/dist/client/index.js +2033 -1310
- 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,32 @@ 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.0] - 2026-11-15
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **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.
|
|
13
|
+
- **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.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **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.
|
|
18
|
+
- **`/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.
|
|
19
|
+
- **`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.
|
|
20
|
+
|
|
21
|
+
## [0.15.0] - 2026-11-15
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **Two-language UI: English and 简体中文.** A new `@dsh-opentui/i18n` leaf package carries a flat-JSON locale contract (tui-pi parity: `{param}` placeholders, whole-file strict validation, key-by-key user overrides under `$DSH_HOME/locales`), and every user-facing surface is migrated onto it — commands, panels, settings, dialogs, docks, hints, transcript. `zh-CN` is fully translated (technical terms and key caps stay in English); the language is fixed at boot from the unified `lang` config key (the legacy `hintsLocale` still resolves as a fallback), and an explicit `ja`/`ko` request degrades to `en` with a warning.
|
|
26
|
+
- **`/language` command.** The ask-style picker lists the installed languages with the current one marked and persists the choice behind a "restart to apply" notice (unchanged semantics on esc/no-answer/same-language, tui-pi parity); `/hints lang` and the settings language row write the same unified key.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- **User locale overrides actually load.** `loadLocales` left the user-override directory undefined unless the caller passed it, so the `$DSH_HOME/locales` merge contract never ran on the real boot path — user files (and their strict-validation warnings) were silently skipped. The default now resolves `$DSH_HOME`, pinned by a boot-contract regression test.
|
|
31
|
+
- **The 61-btw render gap was a mock-keying artifact, not lost rows.** A Q2 request body embeds the Q1 marker and the e2e mock's first-match lookup re-served the first answer. The mock now keys by last match, an optional `DSH_OPENTUI_TRACE_FILE` traces the wire, and a settled-but-empty answer paints an `(empty answer)` placeholder so the signature is visible instead of absent.
|
|
32
|
+
- **Test/verify harnesses follow the locale-keyed copy.** The ui-matrix and agents-mount assertions and the 71/72 dependency gates matched hard-coded copy that i18n moved into locale files; they now assert the active-language copy and grep `t()` key names, so gate-dark no longer misreads a fresh bundle as stale.
|
|
33
|
+
|
|
8
34
|
## [0.14.0] - 2026-11-14
|
|
9
35
|
|
|
10
36
|
### 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
|
|