From d6d76b306bcd357ac113a66af6b427ff87f7903c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 17:45:37 +0000 Subject: [PATCH 1/2] Initial plan From fc2d7144f0e8cf925353ea5380c536f9fe9b8680 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 17:47:39 +0000 Subject: [PATCH 2/2] 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> --- src/config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 4cd627b..e36d9f2 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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(),