@aiwayds/dsh-opentui 0.19.0 → 0.20.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 +50 -0
- package/bin/dsh-opentui.mjs +30 -6
- package/dist/client/index.js +539 -199
- package/dist/client/index.js.map +12 -11
- package/dist/host-launch.mjs +8 -4
- package/dist/host-launch.mjs.map +5 -5
- package/dist/watchdog.mjs +15 -6
- package/dist/watchdog.mjs.map +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,56 @@ 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.20.0] - 2026-11-17
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- The activity frame now merges Todos and Subagents. Tool and think rows render
|
|
12
|
+
in an upper zone above the todo tree, and both zones are visible at once
|
|
13
|
+
instead of switching.
|
|
14
|
+
- Only `in_progress` todos render. Every running subagent hangs under the last
|
|
15
|
+
`in_progress` todo — a documented approximation, since the data model has no
|
|
16
|
+
todo/subagent association field.
|
|
17
|
+
- The merged frame has a 10-line visible cap shared with
|
|
18
|
+
`session.activity_panel_height` as `min(gear, 10)`. The lower zone scrolls via
|
|
19
|
+
mouse wheel with a `ctrl+alt+up/down` fallback (overflow and page-owner
|
|
20
|
+
guarded) and an `N/M` position suffix in the frame title.
|
|
21
|
+
- Per-line entrance and exit fades and think italics apply inside the merged
|
|
22
|
+
frame. Todo and agent rows survive turn end while in_progress content remains,
|
|
23
|
+
decoupled from the activity frame latch.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- The activity title tool glyph is `🔧` (U+1F527) instead of `🛠️`: the renderer
|
|
27
|
+
blanks VS16 graphemes in wcwidth mode. The footer provider lead is likewise
|
|
28
|
+
`🌐` (U+1F310) for the same reason.
|
|
29
|
+
|
|
30
|
+
### Removed
|
|
31
|
+
- Running-child rows were removed from the last-request footer dock; subagents
|
|
32
|
+
now render once, in the activity panel.
|
|
33
|
+
- The standalone Todos panel render was removed.
|
|
34
|
+
|
|
35
|
+
## [0.19.1] - 2026-11-17
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- The launcher spawns the client asynchronously. Host processes were previously
|
|
39
|
+
left as unreaped zombies for the whole client session, because the synchronous
|
|
40
|
+
spawn blocked the event loop that reaps them. A client killed by a signal now
|
|
41
|
+
also reports `128 + signal` instead of exiting 0.
|
|
42
|
+
- Stopping a host under a non-default profile works again: the
|
|
43
|
+
process-identification check compared the command line against the hardcoded
|
|
44
|
+
`opentui` profile instead of the profile the registry record was read for.
|
|
45
|
+
- The watchdog backs off when the host refuses to stop (capped at 30s) instead
|
|
46
|
+
of re-probing every tick forever.
|
|
47
|
+
- The `widgets-dock` fade-window test samples across a window derived from the
|
|
48
|
+
visibility constants instead of one fixed instant, so a slow CI runner no
|
|
49
|
+
longer fails it. The live remote smoke test builds its own scratch git
|
|
50
|
+
repository instead of relying on the checkout's branch.
|
|
51
|
+
|
|
52
|
+
### Changed
|
|
53
|
+
- ADR-0009 is Accepted. The phase-2 workspace-config extension is deferred:
|
|
54
|
+
skills, AGENTS.md and theme/model already resolve per session cwd; only
|
|
55
|
+
settings and tools are profile-scoped. Give each project its own `DSH_HOME`
|
|
56
|
+
if it needs a different tool set today.
|
|
57
|
+
|
|
8
58
|
## [0.19.0] - 2026-11-17
|
|
9
59
|
|
|
10
60
|
0.18.7 carried the same code but shipped these lifecycle changes as a patch;
|
package/bin/dsh-opentui.mjs
CHANGED
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
* package root (plus `dist/scripts/idle-reaper.mjs`, which the bundle
|
|
48
48
|
* spawns) alongside `bin/` and `scripts/`.
|
|
49
49
|
*/
|
|
50
|
-
import { spawnSync } from 'node:child_process'
|
|
50
|
+
import { spawn, spawnSync } from 'node:child_process'
|
|
51
51
|
import { existsSync, lstatSync, mkdirSync, readFileSync, realpathSync, renameSync, symlinkSync, unlinkSync, writeFileSync } from 'node:fs'
|
|
52
|
-
import { homedir } from 'node:os'
|
|
52
|
+
import { constants as osConstants, homedir } from 'node:os'
|
|
53
53
|
import { dirname, join } from 'node:path'
|
|
54
54
|
import { fileURLToPath, pathToFileURL } from 'node:url'
|
|
55
55
|
import { formatUpgradeUsage, formatUsage, LAUNCHER_TIMEOUT_FLAGS, parseLauncherArgs, parseLauncherOptions, parseUpgradeArgs, prelaunchFailurePolicy, readLauncherVersion, validateLauncherArgs } from './lib/launcher.mjs'
|
|
@@ -452,12 +452,36 @@ if (!clientArgs.includes('--dry-run')) {
|
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
|
|
455
|
+
// ADR-0009 follow-up (PR B): spawnSync blocked the launcher's event loop for
|
|
456
|
+
// the whole TUI session, so SIGCHLD could never be delivered — the detached,
|
|
457
|
+
// unref'd host child died but stayed a zombie until the client exited. An
|
|
458
|
+
// async spawn keeps libuv alive so the host is reaped as soon as it exits.
|
|
459
|
+
const child = spawn('bun', [clientEntry, ...clientArgs], {
|
|
456
460
|
stdio: 'inherit',
|
|
457
461
|
env: clientEnv,
|
|
462
|
+
// No `detached`: the client stays in the launcher's foreground process
|
|
463
|
+
// group, preserving TTY / Ctrl-C semantics.
|
|
458
464
|
})
|
|
459
|
-
|
|
460
|
-
console.error(`dsh-opentui: failed to launch the client: ${
|
|
465
|
+
child.on('error', (err) => {
|
|
466
|
+
console.error(`dsh-opentui: failed to launch the client: ${err.message}`)
|
|
461
467
|
process.exit(1)
|
|
468
|
+
})
|
|
469
|
+
|
|
470
|
+
// Forward terminal signals to the client; do NOT exit here. We rely on the
|
|
471
|
+
// client's handler being idempotent — boot-shared.ts `exitAfterShutdown` is an
|
|
472
|
+
// idempotent shutdown + 2.5s grace — so a transitive signal from the tty (the
|
|
473
|
+
// client shares our process group) plus this forward cannot strand it. The
|
|
474
|
+
// launcher waits for the client to exit, then derives its own exit code below.
|
|
475
|
+
for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
|
|
476
|
+
process.on(signal, () => {
|
|
477
|
+
child.kill(signal)
|
|
478
|
+
})
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
// `resolve` forwards only its first argument, so pack both exit-event args.
|
|
482
|
+
const [exitCode, signal] = await new Promise((resolve) => child.on('exit', (code, sig) => resolve([code, sig])))
|
|
483
|
+
if (signal) {
|
|
484
|
+
// Signal death used to be mis-reported as 0 by `result.status ?? 0`.
|
|
485
|
+
process.exit(128 + (osConstants.signals[signal] ?? 0))
|
|
462
486
|
}
|
|
463
|
-
process.exit(
|
|
487
|
+
process.exit(exitCode ?? 0)
|