43215d6e0a35f8b8594e2dec78e9535731444e6a
Threads an optional machine= kwarg through herdr_json/ herdr_diwan_workspace_id (default None, fully backward compatible), reusing the exact focus-then-attach pattern cmd_bare already uses locally, just against --machine <label> for the scripted focus call and --remote <machine> for the actual interactive attach. Verified: argparse wiring, the no-herdr-on-PATH dry-run path, and that a bogus --machine label fails fast and cleanly (not a hang) rather than attempting a real network connection -- confirms the warning-then-exec fallback in cmd_remote is safe. Did not test an actual real remote attach (no SSH path to any herdr server from this sandbox).
Languages
Nix
100%