UNPKG

@code-yeongyu/senpi

Version:

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

18 lines • 944 B
import type { ActiveFallbackState, FallbackReason } from "./controller-types.ts"; import type { UsageLimitScope } from "./usage-limit.ts"; type PinProvenance = Pick<ActiveFallbackState, "originalSelector" | "pinnedByRefusal" | "pinnedByBilling" | "pinned">; /** * Pin provenance after one fallback switch away from `from`. A refusal pins (the same * context refuses again). Billing pins only when the ORIGINAL cannot recover: the * failure hit that model, or the whole account the original lives on. Billing on a * fallback target from another account says nothing about the original, which failed * for a different reason, so it must not hold the session there (senpi#2376). */ export declare function pinAfterSwitch(prior: PinProvenance | undefined, switch_: { from: string; fromProvider: string; reason: FallbackReason; limit: UsageLimitScope | undefined; }): PinProvenance; export {}; //# sourceMappingURL=pin.d.ts.map