feat: add remote gateway client config

This commit is contained in:
Peter Steinberger
2026-01-01 20:10:50 +01:00
parent a72fdf7c26
commit bd7cd33b02
18 changed files with 516 additions and 45 deletions

View File

@@ -295,6 +295,13 @@ export type GatewayTailscaleConfig = {
resetOnExit?: boolean;
};
export type GatewayRemoteConfig = {
/** Remote Gateway WebSocket URL (ws:// or wss://). */
url?: string;
/** Token for remote auth (when the gateway requires token auth). */
token?: string;
};
export type GatewayConfig = {
/**
* Explicit gateway mode. When set to "remote", local gateway start is disabled.
@@ -309,6 +316,7 @@ export type GatewayConfig = {
controlUi?: GatewayControlUiConfig;
auth?: GatewayAuthConfig;
tailscale?: GatewayTailscaleConfig;
remote?: GatewayRemoteConfig;
};
export type SkillConfig = {
@@ -949,6 +957,12 @@ const ClawdisSchema = z.object({
resetOnExit: z.boolean().optional(),
})
.optional(),
remote: z
.object({
url: z.string().optional(),
token: z.string().optional(),
})
.optional(),
})
.optional(),
skills: z