@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 994 B
TypeScript
import type { ExtensionAPI } from "../../types.ts";
import type { AccountSlot } from "./accounts.ts";
/**
* One allowance per account on an admitted person's turn (senpi#6727). Its identity follows the actual message,
* not a predicted end event: a fresh run drops it even when the previous retry was cancelled or blocked.
*/
export declare function registerLimitRecheck(pi: ExtensionAPI): {
readonly accounts: () => Set<string> | undefined;
readonly reset: () => void;
};
/** A rate-limit block with no successful usage reading newer than the block. Errors are not usage evidence. */
export declare function unverifiedLimitBlock(account: AccountSlot, now: number): boolean;
/** The selection view alone is opened. Persistent state and model-specific blocks remain authoritative. */
export declare function recheckSelection(accounts: readonly AccountSlot[], attempted: ReadonlySet<string> | undefined, now: number): readonly AccountSlot[];
//# sourceMappingURL=limit-recheck.d.ts.map