feat: add gateway update check on start
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -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?: {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user