UNPKG

@code-yeongyu/senpi

Version:

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

16 lines • 1.13 kB
import type { AuthStorage } from "./auth-storage.ts"; import { type CredentialAccountSummary } from "./credential-accounts.ts"; import type { CredentialSlotRepository } from "./credential-pool/state-store.ts"; /** A provider's accounts in effective order, and whether a user order shapes that order. */ export type CredentialAccountListing = { readonly accounts: CredentialAccountSummary[]; readonly ordered: boolean; }; export declare function listCredentialAccounts(storage: AuthStorage, provider: string, env?: NodeJS.ProcessEnv, repository?: CredentialSlotRepository, activeName?: string): Promise<CredentialAccountListing>; /** * Sets the provider's account order, or clears it when `names` is null (senpi#3591). * The order lives beside the pin in the stored credential, so it has the pin's scope: * a provider with nothing stored has no order to keep. */ export declare function orderCredentialAccounts(storage: AuthStorage, provider: string, names: readonly string[] | null, env?: NodeJS.ProcessEnv, repository?: CredentialSlotRepository): Promise<void>; //# sourceMappingURL=credential-account-order.d.ts.map