/** * Impure scorers — the runtime half of the scoring-gate seam. * * `code-compiles` spawns a real compiler and therefore cannot live in the * pure scorers.ts module (mirrors the contract.ts ↔ runtime.ts split). The * runtime dispatches here for impure scorer types; everything else goes to * `evaluatePureScorer`. * * Fail semantics: an unavailable compiler, a spawn error, or a timeout is a * FAILED scorer (passed:false with a detail) — never a throw. The gate's * fail-open path (judge / task fallback) then decides what a failed check * means; a missing toolchain must not crash the run. */ import { type Scorer, type ScorerResult } from "./scorers.ts"; /** Wall-clock cap for one compiler invocation. */ export declare const CODE_COMPILES_TIMEOUT_MS = 30000; /** * Check that the target parses/compiles for the scorer's `language`. * - javascript: `node --check ` (syntax check; no execution, no deps) * - typescript: `npx --no-install tsc --noEmit ` (types + syntax; * requires a resolvable `tsc` — its absence FAILS the scorer with detail) * * If the target contains a single fenced code block, its body is compiled * (model outputs usually wrap code in fences); otherwise the raw target is. * * The compiler runs inside an isolated temp dir (not the phase's cwd) so it * cannot resolve a repo-planted `node_modules/.bin/tsc` — hence no `cwd` arg. */ export declare function runCodeCompilesScorer(scorer: Scorer, index: number, target: string): Promise; //# sourceMappingURL=scorer-runtime.d.ts.map