mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 16:41:45 -06:00
917fd92686
* feat(cli): openclaw resume attaches the TUI to a recent session Implements docs/plan/runners.md milestone 2. * fix(cli): resume covers global sessions and preflights TTY * fix(cli): require a terminal before resume * fix(cli): adapt resume gateway disconnect state * fix(cli): preserve global resume ownership * test(cli): prove qualified global resume crosses the gateway boundary
12 lines
594 B
TypeScript
12 lines
594 B
TypeScript
// Shared Gateway connection options for terminal attach commands.
|
|
import type { Command } from "commander";
|
|
|
|
/** Add the shared Gateway connection flags used by terminal attach commands. */
|
|
export function addTuiOptions(command: Command): Command {
|
|
return command
|
|
.option("--url <url>", "Gateway WebSocket URL (defaults to gateway.remote.url when configured)")
|
|
.option("--token <token>", "Gateway token (if required)")
|
|
.option("--password <password>", "Gateway password (if required)")
|
|
.option("--tls-fingerprint <sha256>", "Expected Gateway TLS certificate fingerprint");
|
|
}
|