/**
 * load-preflight-scoring — read the W0198 preflight scoring config
 * (`config/preflight-scoring.ts`) authored via `definePreflightScoring()`.
 *
 * Returns `undefined` when the file is absent so callers fall back to
 * `DEFAULT_PREFLIGHT_CODE_CORRECTNESS_WEIGHT`. The eval package itself
 * ships a config so the live pipeline always finds one; the optional
 * return path exists for downstream / external callers that may not
 * have authored one yet.
 */
import { tryLoadConfigFile } from "../compiler/config-loader.js";
export async function loadPreflightScoring(rootDir) {
    const result = tryLoadConfigFile("preflight-scoring", rootDir);
    if (!result)
        return undefined;
    return result.data;
}
