NetVM: CDP on by default (deterministic port), --headless mode, netvm-cdp.sh helper

This commit is contained in:
Antigravity Agent
2026-10-03 00:53:04 -04:00
parent 65f0c57ba4
commit fa48228ef4
3 changed files with 45 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# netvm-cdp.sh <profile> — show how to reach a profile's CDP endpoint.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
. "$SCRIPT_DIR/netvm-names.sh"
netvm_names "${1:?usage: netvm-cdp.sh <profile>}"
TAIL_IP=$(tailscale ip -4 2>/dev/null | head -1)
echo "profile: $NODE"
echo "cdp: http://$PEER_IP:$CDP_PORT/json/list (from this host)"
echo "remote: ssh -L $CDP_PORT:$PEER_IP:$CDP_PORT super@${TAIL_IP:-<tail-ip-of-this-host>}"
echo "launch: netvm-chrome.sh $NODE [--headless] (CDP on by default)"