feat: add node browser proxy routing

This commit is contained in:
Peter Steinberger
2026-01-24 04:19:43 +00:00
parent dd06028827
commit c3cb26f7ca
14 changed files with 834 additions and 39 deletions

View File

@@ -13,6 +13,19 @@ const BrowserSnapshotDefaultsSchema = z
.strict()
.optional();
const NodeHostSchema = z
.object({
browserProxy: z
.object({
enabled: z.boolean().optional(),
allowProfiles: z.array(z.string()).optional(),
})
.strict()
.optional(),
})
.strict()
.optional();
export const ClawdbotSchema = z
.object({
meta: z
@@ -193,6 +206,7 @@ export const ClawdbotSchema = z
.strict()
.optional(),
models: ModelsConfigSchema,
nodeHost: NodeHostSchema,
agents: AgentsSchema,
tools: ToolsSchema,
bindings: BindingsSchema,
@@ -403,6 +417,15 @@ export const ClawdbotSchema = z
.optional(),
nodes: z
.object({
browser: z
.object({
mode: z
.union([z.literal("auto"), z.literal("manual"), z.literal("off")])
.optional(),
node: z.string().optional(),
})
.strict()
.optional(),
allowCommands: z.array(z.string()).optional(),
denyCommands: z.array(z.string()).optional(),
})