Review of the move:
- `isTerminalConnectFailure` becomes `terminalConnectFailure`, which returns the line to report.
The shared client no longer parses Ink's `gateway unavailable:` format; Ink's subclass does, and
logs the same line as before.
- apps/shared/src/node/gateway-client.test.ts runs the client with only `connect` (no Ink
options): it dials the grant with its subprotocols, reads runtime.describe before readiness,
creates a `source: tui` session, rejects a pending request with the English close text, and
redials through `connect(false, true)`.
- Docs say sessions are created with `source: "tui"` and that `hermes gateway attach` comes with
#142159; option and file comments are corrected (connection fields, `text`, prompt-history's
HERMES_HOME, the i18n and helper comments that named the old files).
- Duplicate `@hermes/shared/gateway-types` imports are merged, and apps/shared/tsconfig.json keeps
its original formatting.