@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
12 lines • 990 B
TypeScript
import { type SessionInfo, type SessionListProgress, SessionManager } from "../../core/session-manager.ts";
type SessionScopeSource = Pick<SessionManager, "getCwd" | "getHomeSessionDir" | "usesDefaultSessionDir">;
export interface ResumeRebindUi {
readonly confirm: (title: string, message: string) => Promise<boolean>;
readonly showError: (message: string) => void;
}
export declare function currentScopeSessions(source: SessionScopeSource, onProgress?: SessionListProgress, signal?: AbortSignal): Promise<SessionInfo[]>;
export declare function allScopeSessions(source: SessionScopeSource, onProgress?: SessionListProgress, signal?: AbortSignal): Promise<SessionInfo[]>;
/** The path `/resume` should open for a picked session, or undefined when moving it failed (already reported). */
export declare function chooseResumePath(sessionPath: string, source: SessionScopeSource, ui: ResumeRebindUi): Promise<string | undefined>;
export {};
//# sourceMappingURL=resume-rebind.d.ts.map