Fleet: node hostname/IP on register + node terminal in the infra computer
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]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
cfa16751c5
commit
cf6c331b02
@@ -30,6 +30,8 @@ fn node_json(n: &nodes::NodeRow) -> Value {
|
||||
json!({
|
||||
"id": n.id,
|
||||
"name": n.name,
|
||||
"hostname": n.hostname,
|
||||
"localIp": n.local_ip,
|
||||
"status": n.status,
|
||||
"agentVersion": n.agent_version,
|
||||
"tailscaleIp": n.tailscale_ip,
|
||||
|
||||
Reference in New Issue
Block a user