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:
sheeek
2026-01-07 11:57:57 +01:00
committed by Peter Steinberger
parent c115918c97
commit 90cdccee1e

View File

@@ -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(),
)