@aiwayds/dsh-opentui 0.18.1 → 0.18.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/CHANGELOG.md +33 -0
- package/bin/lib/launcher.mjs +1 -1
- package/dist/client/index.js +1892 -622
- package/dist/locales/en.json +14 -16
- package/dist/locales/zh-CN.json +14 -16
- package/package.json +6 -1
- package/scripts/lib/upgrade-plan.mjs +120 -37
- package/scripts/upgrade.mjs +234 -32
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,39 @@ 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.18.3] - 2026-11-16
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **The ask-user panel is rebuilt as a bottom-docked, full-width surface** (`docs/ask-user-panel-spec.md` §2). The batch now occupies the composer seat in the page's normal layout flow instead of a centered overlay: option rows are numbered and carry their per-option descriptions, the trailing `(Recommended)` token is stripped from the label and promoted to a `Recommended` badge (recommended rows are pre-selected but never auto-submit), digits `1`–`9` quick-pick a row, the free-text row is a resident inline input that replaces the sentinel row rather than a screen swap, multi-question batches get a `[1 ✓] · 2 · 3` tab strip, and the review page lists each question with its current answer and jumps back to it for editing on Enter.
|
|
13
|
+
- **One input-ownership stack routes the keyboard** (`docs/adr/0008-input-ownership-for-keyboard-routing.md`, ADR-0008). Frames are pushed as surfaces open and the top frame wins: page-level `mode:"global"` layers gate on `top() === "page"`, and every overlay layer gates on its own frame. Overlays now take the keyboard, so Esc, PgUp and the arrow keys no longer reach the page underneath `/settings`, `/agents`, `/history` or `/subagents-viewer`; the dialog provider and panel-kit push one frame per open entry/layer, and the ask dock participates with its own frame.
|
|
14
|
+
- **The transcript replays a settled ask as a structured block.** Each question paints `✓ <question>` with `→ <answer>` in accent, one pair per question; a `header` becomes a muted eyebrow, a `detail` a muted continuation line, and a declined question `→ declined`. The offered options are carried but not repeated.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **Ask no longer renders on the dialog stack.** A new in-flow dock host at the composer seat hosts the batch; the composer stays mounted but hidden while the dock is open, so its draft and history survive, and admission waits for page ownership and re-evaluates reactively, so a queued ask admits when the overlay in front of it closes instead of pushing its ownership frame above an absolutely-positioned surface.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **A question left unanswered submits as declined, not as an empty selection.** The review page is reachable with questions still blank, so the submit path now sends the missing-pick shape (`selected: []` plus `custom: "declined"`) instead of a one-element `[""]` selection that the host would read as a chosen empty string. The answer envelope is otherwise unchanged.
|
|
23
|
+
|
|
24
|
+
### Removed
|
|
25
|
+
|
|
26
|
+
- **The dead legacy `Question` tool renderer** and its private `parseQuestions` / `parseQuestionAnswers` helpers are removed (spec §11); no live path imported them.
|
|
27
|
+
|
|
28
|
+
## [0.18.2] - 2026-11-16
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **The self-upgrade no longer forces a registry onto `npm i -g`.** `--registry` is passed only when the registry came from `DSH_UPGRADE_REGISTRY`; a registry read from an `.npmrc` is left to npm's own configuration, which resolves the same place without overriding the user's per-scope or per-package settings.
|
|
33
|
+
- **Two upgrades can no longer run over one profile at once.** The write phase (backup, install, override write) holds `<profile>/.upgrade.lock`; a second run reports the holder and exits 2 without writing anything: `upgrade: another upgrade is running (pid <pid>, started <iso>)`. A lock older than 30 minutes is treated as stale and reclaimed, and `--dry-run` never creates one.
|
|
34
|
+
- **Unknown or malformed entries in `upgrade-overrides.json` survive a rewrite.** The parser keeps entries it cannot interpret (no version string) and the serializer writes them back unchanged, so a hand-written entry is no longer silently deleted when the upgrade command records a new pin. They still never affect the effective pin.
|
|
35
|
+
- **The tail of `dsh plugin add` stderr is shown after a successful batch install.** Up to five lines are printed with a `dsh plugin add: ` prefix, so pnpm warnings from an install that exited 0 are no longer lost. The failure path is unchanged.
|
|
36
|
+
|
|
37
|
+
### Internal
|
|
38
|
+
|
|
39
|
+
- **`repository` field added to `packages/shell/package.json`** so `npm publish --provenance` can generate provenance.
|
|
40
|
+
|
|
8
41
|
## [0.18.1] - 2026-11-16
|
|
9
42
|
|
|
10
43
|
### Fixed
|
package/bin/lib/launcher.mjs
CHANGED
|
@@ -405,7 +405,7 @@ export function formatUpgradeUsage() {
|
|
|
405
405
|
'Exit codes:',
|
|
406
406
|
' 0 already up to date, nothing to do, --dry-run, or --help',
|
|
407
407
|
' 1 hard failure (e.g. self-upgrade did not verify); profile untouched/rolled back',
|
|
408
|
-
' 2 usage error',
|
|
408
|
+
' 2 usage error, or another upgrade is already running (profile lock held)',
|
|
409
409
|
' 3 partial: a package did not reach the target version, or overrides could not be recorded',
|
|
410
410
|
].join('\n')
|
|
411
411
|
}
|