UNPKG

@code-yeongyu/senpi

Version:

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

12 lines • 789 B
import type { RpcCommand, RpcResponse } from "./rpc-types.ts"; /** * Answer `detach_connection` only after the asking connection's attachments are released (senpi#3238). * A plain socket close releases them too, but asynchronously, so another connection could still see the * attachment right after a short-lived client returned. `deferred` names the sessions still counting it: * one whose running turn this release would end (it releases when the turn settles), or every session * while the host drains. */ export declare function detachConnection(command: Extract<RpcCommand, { type: "detach_connection"; }>, connectionId: string | undefined, release: (connectionId: string) => Promise<readonly string[]>): Promise<RpcResponse>; //# sourceMappingURL=connection-detach.d.ts.map