@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 1.19 kB
TypeScript
import { type RepositoryIdentity } from "./repository-identity.ts";
import { type SessionInfo } from "./session-manager.ts";
export interface MovedSessionOptions {
readonly sessionDir?: string;
readonly readIdentity?: (dir: string) => Promise<RepositoryIdentity | undefined>;
}
export declare function listMovedSessions(cwd: string, options?: MovedSessionOptions): Promise<SessionInfo[]>;
/**
* `--continue` in the default per-folder layout (senpi#2990): the newest session the OmO desktop moved to `cwd` when it
* is newer than the folder's own newest, else undefined. It lists only the dirs whose recorded path moved here and
* reads no git identity, so a folder with its own session pays one header read per project dir.
*/
export declare function movedHereSessionToContinue(cwd: string): Promise<string | undefined>;
export declare function markMovedSessions(sessions: readonly SessionInfo[], cwd: string, options?: Pick<MovedSessionOptions, "readIdentity">): Promise<SessionInfo[]>;
export declare function withMovedSessions(local: Promise<SessionInfo[]>, cwd: string, options?: MovedSessionOptions): Promise<SessionInfo[]>;
//# sourceMappingURL=moved-sessions.d.ts.map