UNPKG

@code-yeongyu/senpi

Version:

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

20 lines • 949 B
import { type RepositoryIdentity } from "./repository-identity.ts"; export interface ResumeTargetChoice { readonly sessionPath: string; readonly cwd: string; readonly sessionDir?: string; readonly confirm: (sessionCwd: string) => Promise<boolean>; readonly readIdentity?: (dir: string) => Promise<RepositoryIdentity | undefined>; } export interface ResumeTarget { readonly path: string; readonly rebound: boolean; } /** * Where a session picked for resuming should be opened from. A session of the current repository * recorded at another path is offered the in-place rebind; declining, another repository, or the * current directory's own session open the picked file unchanged. Rebind failures propagate * (`SessionHeldError` names the process still holding the session). */ export declare function resolveResumeTarget(choice: ResumeTargetChoice): Promise<ResumeTarget>; //# sourceMappingURL=resume-target.d.ts.map