UNPKG

@code-yeongyu/senpi

Version:

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

23 lines • 967 B
import type { ToolChildChannel } from "./channel.ts"; import type { HostCallRefs } from "./host-calls-server.ts"; import type { HostCallKind, ToolChildMessage } from "./protocol.ts"; export interface HostCallTarget { readonly kind: HostCallKind; readonly name?: string; readonly args?: unknown; } export declare class ChildHostCalls { #private; constructor(channel: Pick<ToolChildChannel, "send">, refs?: HostCallRefs); /** Calls running and queued for one job (0 for a job with none). */ load(jobId: string): { active: number; waiting: number; }; call(jobId: string, target: HostCallTarget, signal: AbortSignal): Promise<unknown>; /** Routes `host_reply` / `host_call_refused`; returns false for every other frame. */ handle(frame: ToolChildMessage): boolean; /** The channel closed: every pending call fails, none is left waiting. */ close(): void; } //# sourceMappingURL=host-calls-child.d.ts.map