/** * dispatch-host-rpc-handler — the HOST side of the ADR-0054 host-RPC upcall * channel (increment M4-C). * * The supervisor (`dispatch-external-tool-command.ts`) receives a worker-streamed * {@link HostRpcRequest} (on the transport's `progress` arm) and calls * {@link handleHostRpc}. This module performs the requested privileged effect * through the REAL host {@link ToolCliContext} — the SAME context the in-process * path uses (datastore via the host scope, cloud egress, FS, BaselineRepo, * ToolStateRepo, host planes) — and returns an {@link RpcReply} the supervisor * posts back to the worker via `child.send`. * * The host remains the ONLY process that performs the privileged effect. A * host-side fault is CAUGHT and crosses back as a structured `{ ok: false }` * reply (the worker shim re-throws it into the handler) — never an unhandled * host crash, never a silent no-op. */ import type { RpcReply } from './tool-command-dispatch-types.js'; import type { ToolCliContext } from '@opensip-cli/core'; /** * Handle one worker-streamed {@link HostRpcRequest} against the real host * {@link ToolCliContext} and produce the {@link RpcReply} to send back. A * host-side fault is caught and returned as a structured `{ ok: false }` reply * (the supervisor sends it; the worker shim re-throws it into the handler). */ export declare function handleHostRpc(request: unknown, ctx: ToolCliContext): Promise; //# sourceMappingURL=dispatch-host-rpc-handler.d.ts.map