(issues: string[], kind: string)
| 155 | } |
| 156 | |
| 157 | function finalize(issues: string[], kind: string): ValidationReport { |
| 158 | if (issues.length > 0) { |
| 159 | counter("cognition.validate.failed", { mode: "schema_only", kind }); |
| 160 | } else { |
| 161 | counter("cognition.validate.passed", { mode: "schema_only", kind }); |
| 162 | } |
| 163 | return { ok: issues.length === 0, issues }; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Best-effort syntactic + semantic validation of TypeScript code returned |
no test coverage detected