UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

22 lines • 1.48 kB
import type { RpcCommand, RpcResponse } from "./rpc-types.ts"; import type { RpcSessionEntry } from "./session-registry-types.ts"; import { type SessionStatusStream } from "./session-status-stream.ts"; import type { SessionStatusRecord } from "./session-status.ts"; type Command<T extends RpcCommand["type"]> = Extract<RpcCommand, { type: T; }>; export declare function refusal(id: string | undefined, command: string, code: string, detail: { readonly reason: string; readonly action: string; }): RpcResponse; type SubscribeAnswer = { readonly answer: RpcResponse; /** Minted subscription id to activate once the answer is on the connection's actor; absent on a refusal. */ readonly activate?: string; }; export declare function answerSubscribeSessions(command: Command<"subscribe_sessions">, connectionId: string | undefined, stream: SessionStatusStream, snapshotSink?: (rows: () => Iterable<SessionStatusRecord>, subscriptionId: string) => void): SubscribeAnswer; export declare function answerUnsubscribeSessions(command: Command<"unsubscribe_sessions">, connectionId: string | undefined, stream: SessionStatusStream): RpcResponse; export declare function notAttachedRefusal(command: Command<"set_session_context">): RpcResponse; export declare function answerSetSessionContext(command: Command<"set_session_context">, entry: RpcSessionEntry, stream: SessionStatusStream): RpcResponse; export {}; //# sourceMappingURL=session-status-commands.d.ts.map