Fix btop
Release rolling / release (push) Successful in 9m35s

This commit is contained in:
Raven Scott
2026-08-12 23:32:36 -04:00
parent ddebf42f1c
commit bbfe873414
17 changed files with 4709 additions and 277 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
- **`dhttop` / `swarmmap` / `routeview` / `holepunch-view` / `swarmtop` / `chat` / `edit` / `nano`**: TTY mode prefers **`ctx.tui.run`** (TEA; **`edit`/`nano`** use **`buffer: 'cell'`** so help and prompts overlay). The pre-SDK key loop remains when **`BARE_OS_TUI=0`**.
- **`agent`**: interactive setup prefers **`ctx.tui.form`** (identity + backend). Line wizard remains when the SDK is off.
- **`baretop` / `btop`**: TTY session (suspend, raw, alt-screen, mouse) prefers **`ctx.tui.acquire` / `screen.enter`**. Custom draw/key loop is unchanged.
- **`baretop` / `btop`**: TTY dashboard is a **`ctx.tui.run`** TEA app (`buffer: 'cell'`). Title, tab strip, viewport/table body, and footer are a fixed-height frame (no terminal scroll). Help is an overlay. The pre-SDK draw loop remains when **`BARE_OS_TUI=0`**.
- **Coreutils hardening**: shared runtime helpers (strict ints, path identity, portable Base64/hex, env lookup). Closed data-loss paths (`mv`/`cp` self, `touch` on directories, `truncate` unread files, `rm -i` silently deleting, `install` onto a directory). Missing-file exits now fail (`head`/`tail`/`wc`/`ls`/`du`/`cmp`/`diff`). Bare-only decode no longer requires Node `Buffer`. `seq`/`dd`/`cut`/`nl` are bounded. `find -depth` no longer eats the next argument. `grep -m 0`, `expr` zero-result status, `hostname` set, `sleep` operands, `chmod` symbolic modes, `chown` owner-only, and dashed `unlink -- -name` operands are POSIX-shaped.