@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 1 kB
JavaScript
/**
* Lazy boundary for the Claude CLI sign-out a provider logout runs first (senpi#4436). `credential-accounts.ts` loads
* the credential-pool state store and zod, which installs zod's globals; `ModelRuntime` needs it only on an Anthropic
* Subscription logout, so it is imported here on that first use instead of on every `ModelRuntime` import
* (`test/model-runtime-text-toolcall-recovery.test.ts` fails if a static edge reappears). Follows the repository's
* documented lazy-boundary pattern (`packages/ai/src/api/*.lazy.ts`).
*/
import { normalizeProviderId } from "@earendil-works/pi-ai";
export async function signOutClaudeCliSlotsForLogout(storage, provider, env, signal, slotName) {
if (normalizeProviderId(provider) !== "anthropic-subscription")
return [];
const accounts = await import("./credential-accounts.js");
return accounts.signOutClaudeCliSlotsForLogout(storage, provider, env, signal, slotName);
}
//# sourceMappingURL=credential-accounts-logout.lazy.js.map