import type { FailureFingerprint } from "../types.js"; export function repairModel(fingerprintOccurrences: number, maxLunaAttempts = 2): { model: "luna" | "sol"; thinking: "high" | "xhigh" } { if (fingerprintOccurrences > maxLunaAttempts) return { model: "sol", thinking: "high" }; return { model: "luna", thinking: fingerprintOccurrences <= 1 ? "high" : "xhigh" }; }