Merge pull request #187 from brave/copilot/fix-logging-level-schema

fix: use readonly tuple for z.enum loggingLevel in src/config.ts
This commit is contained in:
Mihai PLESA authored and GitHub committed 2025-12-03 17:53:31 +00:00
commit 73c718d260
1 file changed
+10 -1
+10 -1
View File
@@ -18,7 +18,16 @@ export const configSchema = z.object({
.describe('Enforces a tool blacklist (cannot be used with enabledTools)')
.optional(),
loggingLevel: z
.enum(LoggingLevelSchema.options)
.enum([
'debug',
'error',
'info',
'notice',
'warning',
'critical',
'alert',
'emergency',
] as const)
.default('info')
.describe('Desired logging level')
.optional(),