feat(config): add Zod validation for routing.agents sandbox and tools
Validate per-agent sandbox config: - mode: 'off' | 'non-main' | 'all' - scope: 'session' | 'agent' | 'shared' - perSession: boolean - workspaceRoot: string Validate per-agent tools config: - allow: string[] - deny: string[]
This commit is contained in:
committed by
Peter Steinberger
parent
c115918c97
commit
90cdccee1e
@@ -247,6 +247,12 @@ const RoutingSchema = z
|
||||
workspaceRoot: z.string().optional(),
|
||||
})
|
||||
.optional(),
|
||||
tools: z
|
||||
.object({
|
||||
allow: z.array(z.string()).optional(),
|
||||
deny: z.array(z.string()).optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
.optional(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user