@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 1.15 kB
TypeScript
import type { EventLeases } from "./compact-event-leases.ts";
import type { RecoveryPageRequests } from "./compact-recovery-requests.ts";
import type { RpcCommand, RpcResponse } from "./rpc-types.ts";
import type { SessionEventWriter } from "./session-event-writer.ts";
type RecoveryPageCommand = Extract<RpcCommand, {
type: "get_recovery_page";
}>;
type ReleaseRecoveryCommand = Extract<RpcCommand, {
type: "release_recovery";
}>;
/** `get_recovery_page` on a socket host (S11b, R4.B3), under a checkpoint token or an event lease (S13). */
export declare function answerRecoveryPage(pages: RecoveryPageRequests, writer: SessionEventWriter, command: RecoveryPageCommand): Promise<RpcResponse>;
/**
* `release_recovery` for an event lease (S13, RULING-65 S13-Q2): the consumer's receipt, sent only after it committed
* the leased content; a retried receipt answers `duplicate` and another peer's or session's lease is `unknown_token`.
*/
export declare function answerReleaseRecovery(events: EventLeases, writer: SessionEventWriter, command: ReleaseRecoveryCommand): RpcResponse;
export {};
//# sourceMappingURL=recovery-page-command.d.ts.map