UNPKG

@code-yeongyu/senpi

Version:

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

20 lines • 973 B
/** * Classifies how a failed `/login` or API-key dialog ends so interactive mode * renders a cancellation as a neutral status line and only a genuine * provider/network/OAuth failure as an error. */ export type LoginMethod = "oauth" | "api_key"; export type LoginFailureNotice = { level: "status" | "error"; message: string; }; export declare const LOGIN_CANCELLED_NOTICE = "Login cancelled"; /** * A login ends by cancellation when its abort reason is an abort: the dialog's * `AbortController.abort()` with no reason (a DOMException named `AbortError` * whose message is "This operation was aborted"), the `AbortError` fabricated by * `raceWithAbortSignal`, an explicit `"Login cancelled"`, or no reason at all. */ export declare function isLoginCancellation(error: unknown): boolean; export declare function describeLoginFailure(error: unknown, providerName: string, method: LoginMethod): LoginFailureNotice; //# sourceMappingURL=login-outcome.d.ts.map