@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 794 B
TypeScript
import { type RpcKeyOptions } from "../../../../modes/rpc/rpc-auth-client.ts";
export type RpcRecord = Readonly<Record<string, unknown>>;
export interface RpcObserverHandlers {
/** Every record after the subscribe answer, in arrival order. */
record(record: RpcRecord): void;
/** The connection ended (host gone, refused, closed by `close()`). */
closed(reason: string): void;
}
export interface RpcObserver {
/** The subscribe answer: `snapshot`, `seq`, `hostGeneration`, `hostInstanceId`. */
readonly subscribed: Promise<RpcRecord>;
close(): void;
}
export declare function openRpcObserver(socketPath: string, subscription: RpcRecord, handlers: RpcObserverHandlers, options?: RpcKeyOptions): Promise<RpcObserver>;
//# sourceMappingURL=rpc-monitor-observer.d.ts.map