@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
31 lines • 1.28 kB
TypeScript
export interface SessionHolder {
readonly pid: number;
readonly cwd: string | undefined;
readonly host_socket?: string;
readonly host_instance?: string;
/** The record is held, but its owner's start time could not be read, so its identity is unverified. */
readonly unproven?: true;
}
/** Public RPC identity, supplied by the host rather than the client's opaque context. */
export interface SessionHolderEndpoint {
readonly host_socket?: string;
readonly host_instance: string;
/** The daemon directory of that generation; kept in the holder record only, never reported. */
readonly host_daemon_dir?: string;
}
export declare class SessionHeldError extends Error {
readonly code: "ESESSIONHELD";
readonly sessionFile: string;
readonly holders: readonly SessionHolder[];
constructor(sessionFile: string, holders: readonly SessionHolder[]);
}
export declare class SessionMovingError extends Error {
readonly code: "ESESSIONMOVING";
readonly moverPid: number | undefined;
constructor(sessionFile: string, moverPid: number | undefined);
}
export declare class SessionMovedError extends Error {
readonly code: "ESESSIONMOVED";
constructor(sessionFile: string);
}
//# sourceMappingURL=session-hold-errors.d.ts.map