* Validates if a string represents a valid generator function
(code: string)
| 298 | * Validates if a string represents a valid generator function |
| 299 | */ |
| 300 | function isValidGeneratorFunction(code: string): boolean { |
| 301 | const trimmed = code.trim() |
| 302 | // Check if it's a generator function (must start with function*) |
| 303 | return trimmed.startsWith('function*') |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * Convert JSON schema to Zod schema format using json-schema-to-zod. |
no outgoing calls
no test coverage detected