UNPKG

@code-yeongyu/senpi

Version:

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

15 lines • 989 B
import type { AccountLimits } from "../subscription-limits/limit-store.ts"; export type AccountStrategy = "cache-affine" | "fill-first" | "round-robin"; export declare function parseAccountStrategy(value: unknown, field: string): AccountStrategy | undefined; /** All strategies share the user's stored order; only cache-affine uses HRW as its base. */ export declare function orderAccounts<T extends { readonly name: string; }>(accounts: readonly T[], ranked: readonly T[], accountOrder: readonly string[] | undefined, strategy?: AccountStrategy, offset?: number): T[]; /** * Reported usage is a preference, not a block. Preserve the normal order when * no account has headroom, and ignore windows that have already reset. */ export declare function preferHeadroom<T extends { readonly name: string; }>(ordered: readonly T[], provider: string, limits: readonly AccountLimits[], now: number, preferredAccount?: string): readonly T[]; //# sourceMappingURL=selection-order.d.ts.map