@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
28 lines • 1.51 kB
TypeScript
import type { Credential, CredentialStore } from "@earendil-works/pi-ai";
import type { ExtensionAPI } from "../../types.ts";
import type { CursorCliModelProbe } from "./models-probe.ts";
import { type CursorCliOauthProviderSettings } from "./settings.ts";
export { CURSOR_CLI_OAUTH_PROVIDER_ID } from "./oauth-login.ts";
export type { CursorCliStreamDeps } from "./stream.ts";
/** Injectable seams; every default resolves real on-disk state. */
export type CursorCliOauthExtensionDeps = {
readonly cwd?: string;
readonly agentDir?: string;
readonly store?: CredentialStore;
readonly readCurrent?: () => Promise<Credential | undefined>;
readonly readNativeCredential?: () => Credential | undefined | Promise<Credential | undefined>;
readonly loadSettings?: (cwd: string) => CursorCliOauthProviderSettings;
readonly resolveExecutable?: (settings: {
executablePath?: string;
}) => string;
readonly runModelsProbe?: CursorCliModelProbe;
};
/**
* Registers the cursor-cli-oauth provider lane. Registration is unconditional:
* the provider ships with the offline model fallback and reports availability
* through the oauth `check`, so a missing cursor-agent binary never hides the
* lane - it only makes `check` name the install guidance.
*/
export declare function registerCursorCliOauthExtension(pi: ExtensionAPI, deps?: CursorCliOauthExtensionDeps): void;
export default function cursorCliOauthExtension(pi: ExtensionAPI): void;
//# sourceMappingURL=index.d.ts.map