fix: use readonly tuple for z.enum loggingLevel in src/config.ts to satisfy TypeScript and Zod
Co-authored-by: mihaiplesa <907672+mihaiplesa@users.noreply.github.com>
This commit is contained in:
1 parent
d6d76b306b
commit
fc2d7144f0
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