UNPKG

@code-yeongyu/senpi

Version:

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

19 lines • 1.71 kB
import type { AccountSlot, AnthropicSubscriptionCredential, ClaudeCliAccountCheck, ClaudeCliAccountSlot } from "./accounts.ts"; import type { ClaudeCliProfile } from "./claude-cli-auth-status.ts"; /** * Reconnect keeps name, display name, model blocks and (on the credential) pin and order; blocks and sign-in-required * clear. `previous` is the slot as read under the same lock as the write, so nothing written to it meanwhile is lost. */ export declare function signedInSlot(previous: AccountSlot | undefined, name: string, dirId: string, profile: ClaudeCliProfile, at: number): ClaudeCliAccountSlot; export declare function withSlot(credential: AnthropicSubscriptionCredential, slot: AccountSlot): AnthropicSubscriptionCredential; export declare function withCheck(credential: AnthropicSubscriptionCredential, name: string, check: ClaudeCliAccountCheck, dirId: string): AnthropicSubscriptionCredential; /** * The accounts with this login taken back. Only a slot that still points at this login's dir is touched: a new * account's slot is removed. For a re-login the login-bound fields always return to their previous values; every * other field this login wrote returns to its previous value unless another writer changed it meanwhile, so a * rename, a block or model blocks stored during the login survive (a block is time-bounded, and dropping it could * erase a real one). */ export declare function withoutThisLogin(accounts: readonly AccountSlot[], written: ClaudeCliAccountSlot, previous: AccountSlot | undefined): AccountSlot[]; export declare function storedSubscription(value: unknown): AnthropicSubscriptionCredential | undefined; //# sourceMappingURL=claude-cli-login-slots.d.ts.map