@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
24 lines • 811 B
TypeScript
import type { LoopGuardDetection } from "./detectors.ts";
import type { ToolCallRecord } from "./tracker.ts";
export type IdenticalEscalationDecision = {
readonly kind: "allow";
} | {
readonly kind: "block";
readonly toolName: string;
readonly blockedCallCount: number;
} | {
readonly kind: "hardStop";
readonly toolName: string;
readonly blockedCallCount: number;
readonly announce: boolean;
};
export declare class IdenticalLoopEscalation {
private episode;
private readonly attempts;
observeAttempt(toolCallId: string, record: ToolCallRecord): boolean;
observeNotice(detection: LoopGuardDetection): void;
finishTurn(): void;
consumeToolCall(toolCallId: string): IdenticalEscalationDecision;
reset(): void;
}
//# sourceMappingURL=escalation.d.ts.map