@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
14 lines • 735 B
TypeScript
import type { Credential, CredentialStore } from "@earendil-works/pi-ai";
export type CursorCliNativeBootstrapDeps = {
store: CredentialStore;
readNativeCredential: () => Credential | undefined | Promise<Credential | undefined>;
canBootstrap?: () => boolean | Promise<boolean>;
};
/**
* Read the managed credential afresh and bootstrap it once from the native
* Cursor OAuth credential when empty. Concurrent reads share only the
* in-flight operation; later turns re-read storage so login/import changes are
* immediately visible.
*/
export declare function createCursorCliOauthCredentialReader(deps: CursorCliNativeBootstrapDeps): () => Promise<Credential | undefined>;
//# sourceMappingURL=native-bootstrap.d.ts.map