feat: add gateway update check on start

This commit is contained in:
Peter Steinberger
2026-01-17 12:07:14 +00:00
parent f9f4a953fc
commit 25d8043b9d
7 changed files with 222 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ const GROUP_ORDER: Record<string, number> = {
const FIELD_LABELS: Record<string, string> = {
"update.channel": "Update Channel",
"update.checkOnStart": "Update Check on Start",
"gateway.remote.url": "Remote Gateway URL",
"gateway.remote.sshTarget": "Remote Gateway SSH Target",
"gateway.remote.sshIdentity": "Remote Gateway SSH Identity",
@@ -277,6 +278,7 @@ const FIELD_LABELS: Record<string, string> = {
const FIELD_HELP: Record<string, string> = {
"update.channel": 'Update channel for npm installs ("stable" or "beta").',
"update.checkOnStart": "Check for npm updates when the gateway starts (default: true).",
"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.",

View File

@@ -52,6 +52,8 @@ export type ClawdbotConfig = {
update?: {
/** Update channel for npm installs ("stable" or "beta"). */
channel?: "stable" | "beta";
/** Check for updates on gateway start (npm installs only). */
checkOnStart?: boolean;
};
browser?: BrowserConfig;
ui?: {

View File

@@ -64,6 +64,7 @@ export const ClawdbotSchema = z
update: z
.object({
channel: z.union([z.literal("stable"), z.literal("beta")]).optional(),
checkOnStart: z.boolean().optional(),
})
.optional(),
browser: z