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:
copilot-swe-agent[bot]andmihaiplesa committed 2025-12-03 17:47:39 +00:00
1 parent d6d76b306b
commit fc2d7144f0
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)') .describe('Enforces a tool blacklist (cannot be used with enabledTools)')
.optional(), .optional(),
loggingLevel: z loggingLevel: z
.enum(LoggingLevelSchema.options) .enum([
'debug',
'error',
'info',
'notice',
'warning',
'critical',
'alert',
'emergency',
] as const)
.default('info') .default('info')
.describe('Desired logging level') .describe('Desired logging level')
.optional(), .optional(),