Repository navigation
A terminal client, named provider accounts, and a roadmap.
Important
To update: Menu → Update HADAL in the app, or npm install in a git checkout, then restart if the update did not. Nothing in the stored data needs a step by hand.
Highlights
- A terminal client.
hadal clijoins a session from this machine's terminal, draws the run as it arrives, and answers approvals with ayorn.hadal run -p "text"sends one message and exits 0, or 1 after a failed run. - One session, both clients. A session the terminal made shows a
terminalchip in the browser's list, and opens at/s/<id>. The run lives on the server: Ctrl+C detaches, a restart reconnects, and nothing that happened meanwhile is lost. - Named provider accounts. A provider can keep several sign-ins beside its default, switched from the Providers sheet.
- A roadmap. docs/ROADMAP.md says where HADAL goes, with the metric each change must move, and the research leads it draws on.
New
hadal cli. Joins the last session, asks with a numbered list, or takes--session 12;--new,--list,--data,--thinkingand--verbosecover the rest. With no server on the port it starts one, and stops it on exit unless you pass--leave.hadal run -p "text". Sends one message, waits for the run, and prints its lines: exit 0 for a clean answer, 1 for a failed run or an unreachable server, 2 for an option it does not know, 130 when interrupted.- Provider accounts. Add a named sign-in from the Providers sheet, switch the active one there, and remove it; the default stays in use when the active one is removed.
- A user guide for the terminal. docs/cli.md: commands, flags, what it draws, and its exit codes.
Improved
- The model chip on a phone says
noneinstead of clippingno mo…. hadal --helplistscli,runandserve, so the terminal client can be found from the command line.
Fixed
hadal runwaited forever when a run failed before writing an answer. It now exits 1 at the run's end, after any retry or limit wait.- A server started with
--leavedied when its terminal closed. It now runs detached, logs tocli-server.login the data folder, and outlives the terminal. - A failed send left
runwaiting on an idle session; it now exits 1 with a line that says so. - The status line's seconds stood still between view events; they now count once a second, and the line is cut to the terminal's width.
- Another program on the port was taken for HADAL; the answer must now name
hadal.
For theme and extension authors
clienton a session. A row ofGET /api/sessionscan carryclient: "terminal"when the terminal made it; earlier rows and browser sessions leave it out, so treat a missing value as a browser session. The field is additive; nothing else in the route changed.
Updating
- In the app: Menu → Update HADAL.
- In a git checkout:
npm install, then restart HADAL. - Every open terminal client reconnects by itself after the restart, and shows the whole session again.
How this release was checked
npm run check,npm run lint,npm run format:check, and the docs site build with every link checked.- The full test suite on this machine: 1993 tests, 1982 passed. The 2 failures were browser-guest timeouts under load; the file passed 3 of 3 when run alone, and CI skips browser tests.
- The terminal client by hand: a first run on a fresh data folder, attached launch with and without
--leave,--list,--session, the failure exit code, and a stream reconnect across a server restart. - The phone layout at 390 and 320 wide, with the
terminalchip. - Not tested: approvals that need typed fields in the terminal (it says to answer in the browser); a memory figure for a CLI process.
Full changes: https://github.com/T-Crypt/hadal/commits/v0.29.0