fix(config): allow gateway.remote ssh fields
This commit is contained in:
@@ -83,6 +83,7 @@
|
|||||||
- Commands/Tools: disable /restart and gateway restart tool by default (enable with commands.restart=true).
|
- Commands/Tools: disable /restart and gateway restart tool by default (enable with commands.restart=true).
|
||||||
- Gateway/CLI: add `clawdbot gateway discover` (Bonjour scan on `local.` + `clawdbot.internal.`) with `--timeout` and `--json`. — thanks @steipete
|
- Gateway/CLI: add `clawdbot gateway discover` (Bonjour scan on `local.` + `clawdbot.internal.`) with `--timeout` and `--json`. — thanks @steipete
|
||||||
- Gateway/CLI: make `clawdbot gateway status` human-readable by default, add `--json`, and probe localhost + configured remote (warn on multiple gateways). — thanks @steipete
|
- Gateway/CLI: make `clawdbot gateway status` human-readable by default, add `--json`, and probe localhost + configured remote (warn on multiple gateways). — thanks @steipete
|
||||||
|
- Gateway/CLI: support remote loopback gateways via SSH tunnel in `clawdbot gateway status` (`--ssh` / `--ssh-auto`). — thanks @steipete
|
||||||
- CLI: add global `--no-color` (and respect `NO_COLOR=1`) to disable ANSI output. — thanks @steipete
|
- CLI: add global `--no-color` (and respect `NO_COLOR=1`) to disable ANSI output. — thanks @steipete
|
||||||
- CLI: centralize lobster palette + apply it to onboarding/config prompts. — thanks @steipete
|
- CLI: centralize lobster palette + apply it to onboarding/config prompts. — thanks @steipete
|
||||||
- Gateway/CLI: add `clawdbot gateway --dev/--reset` to auto-create a dev config/workspace with a robot identity (no BOOTSTRAP.md). — thanks @steipete
|
- Gateway/CLI: add `clawdbot gateway --dev/--reset` to auto-create a dev config/workspace with a robot identity (no BOOTSTRAP.md). — thanks @steipete
|
||||||
|
|||||||
@@ -81,6 +81,8 @@ const GROUP_ORDER: Record<string, number> = {
|
|||||||
|
|
||||||
const FIELD_LABELS: Record<string, string> = {
|
const FIELD_LABELS: Record<string, string> = {
|
||||||
"gateway.remote.url": "Remote Gateway URL",
|
"gateway.remote.url": "Remote Gateway URL",
|
||||||
|
"gateway.remote.sshTarget": "Remote Gateway SSH Target",
|
||||||
|
"gateway.remote.sshIdentity": "Remote Gateway SSH Identity",
|
||||||
"gateway.remote.token": "Remote Gateway Token",
|
"gateway.remote.token": "Remote Gateway Token",
|
||||||
"gateway.remote.password": "Remote Gateway Password",
|
"gateway.remote.password": "Remote Gateway Password",
|
||||||
"gateway.auth.token": "Gateway Token",
|
"gateway.auth.token": "Gateway Token",
|
||||||
@@ -134,6 +136,10 @@ const FIELD_LABELS: Record<string, string> = {
|
|||||||
|
|
||||||
const FIELD_HELP: Record<string, string> = {
|
const FIELD_HELP: Record<string, string> = {
|
||||||
"gateway.remote.url": "Remote Gateway WebSocket URL (ws:// or wss://).",
|
"gateway.remote.url": "Remote Gateway WebSocket URL (ws:// or wss://).",
|
||||||
|
"gateway.remote.sshTarget":
|
||||||
|
"Remote gateway over SSH (tunnels the gateway port to localhost). Format: user@host or user@host:port.",
|
||||||
|
"gateway.remote.sshIdentity":
|
||||||
|
"Optional SSH identity file path (passed to ssh -i).",
|
||||||
"gateway.auth.token":
|
"gateway.auth.token":
|
||||||
"Required for multi-machine access or non-loopback binds.",
|
"Required for multi-machine access or non-loopback binds.",
|
||||||
"gateway.auth.password": "Required for Tailscale funnel.",
|
"gateway.auth.password": "Required for Tailscale funnel.",
|
||||||
@@ -208,6 +214,7 @@ const FIELD_HELP: Record<string, string> = {
|
|||||||
|
|
||||||
const FIELD_PLACEHOLDERS: Record<string, string> = {
|
const FIELD_PLACEHOLDERS: Record<string, string> = {
|
||||||
"gateway.remote.url": "ws://host:18789",
|
"gateway.remote.url": "ws://host:18789",
|
||||||
|
"gateway.remote.sshTarget": "user@host",
|
||||||
"gateway.controlUi.basePath": "/clawdbot",
|
"gateway.controlUi.basePath": "/clawdbot",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1283,6 +1283,8 @@ export const ClawdbotSchema = z.object({
|
|||||||
remote: z
|
remote: z
|
||||||
.object({
|
.object({
|
||||||
url: z.string().optional(),
|
url: z.string().optional(),
|
||||||
|
sshTarget: z.string().optional(),
|
||||||
|
sshIdentity: z.string().optional(),
|
||||||
token: z.string().optional(),
|
token: z.string().optional(),
|
||||||
password: z.string().optional(),
|
password: z.string().optional(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user