UNPKG

@code-yeongyu/senpi

Version:

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

20 lines • 1.19 kB
import type { Credential } from "@earendil-works/pi-ai"; type AuthStorageData = Record<string, Credential>; export type LegacySignOutResult = { data: AuthStorageData; migrated: boolean; /** Why an entry was left exactly as stored; the rest of the store is still signed out. */ skipped?: string; }; /** * Signs out every Claude subscription login from the retired senpi-owned sign-in (senpi#4436), once, at the auth.json * load seam. No token is copied or kept anywhere: * - an `anthropic-subscription` slot holding a token (`source` login or import) becomes a Claude CLI slot that must * sign in again, under the same name, display name and model blocks, so the pin and order still name it; * - the OAuth part of an `anthropic` entry is dropped; its API-key slots stay as an API-key credential; * - env slots and Claude CLI slots are untouched, and a store with nothing left to sign out is returned as is. * An entry it cannot parse is left exactly as stored and explained in `skipped`; it never throws. */ export declare function signOutLegacyClaudeLogins(data: AuthStorageData): LegacySignOutResult; export {}; //# sourceMappingURL=anthropic-legacy-sign-out.d.ts.map