Hostname/IP: - Daemon reports the machine's hostname (sysinfo) + primary outbound IPv4 on each heartbeat. migrations/0021 adds nodes.hostname/local_ip; cm-db heartbeat stores them; node JSON exposes them. Cards now title on the real hostname (falling back to name) + show the IP, instead of the "New node" placeholder. `name` stays user-overridable (rename). Terminal moved into the pull-out computer (no more per-card modal): - New infra computer app NodeTerminalApp (computer/apps/infra) — xterm bridged to a node's host shell over the node control channel, filling the app window (mirrors the agent Terminal's layout + ResizeObserver). Added "terminal" to the INFRA_CATALOG grid; a ?node= panel param targets a specific node (picker when unset). Clicking Terminal on a node card now opens the infra computer to that node's shell instead of a separate full-screen window. Deleted NodeTerminal.tsx. Rebuilt + re-hosted both daemon binaries (hostname change). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
6 lines
318 B
SQL
6 lines
318 B
SQL
-- The daemon reports the machine's real hostname + primary IP on heartbeat, so
|
|
-- the fleet shows the actual host (e.g. "ada-server / 10.0.0.5") instead of the
|
|
-- placeholder "New node". `name` remains user-overridable (rename).
|
|
ALTER TABLE nodes ADD COLUMN hostname TEXT;
|
|
ALTER TABLE nodes ADD COLUMN local_ip TEXT;
|