| 7 | import type { MatchResult } from './botgeria'; |
| 8 | import { aggregateMetrics, isSignificantlyBetter, formatMetrics, QualityMetrics } from './stats'; |
| 9 | export interface Variant { |
| 10 | /** Human-readable label, also used in suggestions output. */ |
| 11 | label: string; |
| 12 | /** Apply the patch — returns a cleanup function that restores originals. */ |
| 13 | patch(game: Record<string, unknown>): () => void; |
| 14 | /** Code snippet to emit when this variant is better than baseline. */ |
| 15 | suggestion: string; |
| 16 | } |
| 17 | |
| 18 | export const variants: Variant[] = [ |
| 19 | // stalePendingActionMs — higher (more patient) |