@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 461 B
JavaScript
export function createInitialState() {
return {
consecutiveFailures: 0,
trippedAt: null,
acceptedThisTurn: 0,
ineffectiveAttemptsThisTurn: 0,
acceptedAbsolute: 0,
lastYield: null,
turnId: null,
restoration: null,
};
}
export function resetTurnCounter(state, turnId) {
return { ...state, acceptedThisTurn: 0, ineffectiveAttemptsThisTurn: 0, turnId };
}
//# sourceMappingURL=state.js.map