UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

20 lines • 1.31 kB
import type { CredentialSlotState, StoredSlotRevisions } from "../credential-pool/state-store.ts"; /** * The credential-pool health that rotation reads and writes (senpi#5835): cooldowns, half-open probe leases and * the revisions they are keyed by. On one machine it is the file-backed `CredentialSlotRepository`; a hosted brain * supplies its own durable state behind the same calls. */ export interface PoolState { listSlots(providerId: string, laneId: string): Promise<Record<string, CredentialSlotState>>; /** Atomic read-modify-write of one slot; `stateVersion` increments on every write, undefined removes the slot. */ mutateSlotState(providerId: string, laneId: string, slotId: string, fn: (current: CredentialSlotState | undefined) => Omit<CredentialSlotState, "stateVersion"> | undefined): Promise<CredentialSlotState | undefined>; storedSlotRevisions(providerId: string, slotName: string, material: { key?: string; access?: string; refresh?: string; }): Promise<StoredSlotRevisions>; envCredentialRevision(envVarName: string, envValue: string): Promise<string>; /** Where this machine's block log goes (senpi#3216); a state without a local file keeps no block log. */ blockLogPath?(): string; } //# sourceMappingURL=pool-state.d.ts.map