@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
20 lines • 1.06 kB
TypeScript
import type { HandoverParkedEntry } from "./host-handover-parked.ts";
import type { RpcCommand } from "./rpc-types.ts";
import type { SessionContextOverlay } from "./session-context-patch.ts";
import type { RpcSessionLaunchProfile } from "./session-registry-types.ts";
type OpenSessionCommand = Extract<RpcCommand, {
type: "open_session";
}>;
/**
* The park record of a retained session. `hostContextKeys` are the context keys THIS host merged
* in on open: they describe this generation and are stripped, so the successor merges its own.
*/
export declare function parkedEntryFromProfile(session: {
readonly sessionPath: string;
readonly durableSessionId?: string;
readonly contextOverlay?: SessionContextOverlay;
}, profile: RpcSessionLaunchProfile | undefined, hostContextKeys: readonly string[]): HandoverParkedEntry;
/** The `open_session` a parked entry replays on the successor. */
export declare function parkedOpenCommand(entry: HandoverParkedEntry): OpenSessionCommand;
export {};
//# sourceMappingURL=host-handover-parked-open.d.ts.map