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:
1 file changed
+10
-1
+10
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user