UNPKG

@code-yeongyu/senpi

Version:

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

14 lines • 557 B
const outcomes = new WeakMap(); /** Keyed by the login's own signal, so two concurrent logins never see each other's outcome. */ export function recordClaudeCliLoginOutcome(signal, outcome) { outcomes.set(signal, outcome); } /** The outcome of the CLI sign-in that ran under `signal`, taken once. */ export function takeClaudeCliLoginOutcome(signal) { if (signal === undefined) return undefined; const outcome = outcomes.get(signal); outcomes.delete(signal); return outcome; } //# sourceMappingURL=claude-cli-login-outcome.js.map