feat: add node browser proxy routing
This commit is contained in:
@@ -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(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user