(issues, kind)
| 173 | } |
| 174 | } |
| 175 | function finalize(issues, kind) { |
| 176 | if (issues.length > 0) { |
| 177 | (0, metrics_1.counter)("cognition.validate.failed", { mode: "schema_only", kind }); |
| 178 | } |
| 179 | else { |
| 180 | (0, metrics_1.counter)("cognition.validate.passed", { mode: "schema_only", kind }); |
| 181 | } |
| 182 | return { ok: issues.length === 0, issues }; |
| 183 | } |
| 184 | /** |
| 185 | * Best-effort syntactic + semantic validation of TypeScript code returned |
| 186 | * by the model. Loads the user's installed `typescript` module on demand, |
no outgoing calls
no test coverage detected