MCPcopy
hub / github.com/Doorman11991/smallcode / finalize

Function finalize

src/compiled/cognition/validate.js:175–183  ·  view source on GitHub ↗
(issues, kind)

Source from the content-addressed store, hash-verified

173 }
174}
175function 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,

Callers 1

validateSchemaOnlyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected