UNPKG

@code-yeongyu/senpi

Version:

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

20 lines • 901 B
import { type CursorCliAccountSlot } from "./accounts.ts"; export type CursorAccountHomeLogger = (line: string) => void; export type CursorAccountHomeRunContext = { home: string; authPath: string; }; export type CursorAccountHomeRunResult<T> = { result: T; slot: CursorCliAccountSlot; home: string; }; /** * Runs one Cursor CLI invocation inside a durable per-account HOME. * * The credential is deliberately rewritten immediately before `run` because * cursor-agent may modify other files under `.cursor` during an invocation. * Nothing in the HOME is removed after the run, preserving CLI chat history. */ export declare function runInCursorAccountHome<T>(agentDir: string, slot: CursorCliAccountSlot, run: (context: CursorAccountHomeRunContext) => Promise<T>, log?: CursorAccountHomeLogger): Promise<CursorAccountHomeRunResult<T>>; //# sourceMappingURL=home-store.d.ts.map