Skip to content

Commit d20c5f9

Browse files
Copilotdata-douser
andauthored
fix: handle ZodEnum in cloneStringType and add type safety checks
- cloneStringType now accepts both ZodString and ZodEnum (for prompts that use raw schema.shape without toPermissiveShape) - Add runtime type checks that throw clear errors for unexpected types - Add 2 unit tests for ZodEnum handling in addCompletions Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/e316ece4-06c5-45d7-8020-062e6ec67e39 Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent 63541e6 commit d20c5f9

4 files changed

Lines changed: 280 additions & 67 deletions

File tree

0 commit comments

Comments
 (0)