export class HeartbeatDecisionPolicy {
    static infer(summary, outcome) {
        const match = summary.match(/HEARTBEAT_DECISION:\s*(continue|pause|complete|escalate)\b/i);
        if (match) {
            return match[1].toLowerCase();
        }
        if (outcome === 'done') {
            return 'pause';
        }
        return 'escalate';
    }
    static suggestNextDelayMs(decision) {
        switch (decision) {
            case 'continue':
                return 60_000;
            case 'pause':
                return 15 * 60_000;
            case 'complete':
            case 'escalate':
                return undefined;
        }
    }
}
//# sourceMappingURL=decision.js.map