@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 695 B
JavaScript
export function incrementAccepted(state) {
return {
...state,
acceptedThisTurn: state.acceptedThisTurn + 1,
acceptedAbsolute: state.acceptedAbsolute + 1,
};
}
export function incrementIneffective(state) {
return {
...state,
ineffectiveAttemptsThisTurn: state.ineffectiveAttemptsThisTurn + 1,
};
}
/**
* Successful compactions never consume an admission budget. The absolute
* counter remains telemetry for long-lived sessions, while the circuit breaker
* independently halts repeated failed or ineffective attempts.
*/
export function shouldRejectByCap(_state) {
return { cancel: false };
}
//# sourceMappingURL=per-turn-cap.js.map