/** * Host mounting for this plugin's dedicated Connection-style RPC channel. * * Since dsh 0.1.5 the connection Host plugin provides its registry * carrier-neutrally (`inject = ['credentials']`) and only mounts physical * routes when `webServer` appears. Its `rpc.handle` reads `webServer` from the * service's own context, which no longer injects it — an external caller's * registration dies with `cannot get property "webServer" without inject`. * So the plugin mounts the identical prefix route itself: the same trust fence * (`connection.requestRejection`) and the same unary wire envelope the * Connection carrier serves, keeping the browser half's `rpc.call(channel, …)` * contract byte-for-byte unchanged. */ import type { Context } from '@deepseek-ai/cordis'; import type { ConnectionRpcHandler } from '@deepseek-ai/dsh-client-connection'; /** * Mount one plugin-owned RPC channel for the lifetime of the calling fiber. * @param ctx - Host plugin context. * @param channel - absolute channel prefix such as `/dsh-codex-provider`. * @param handler - decoded endpoint handler returning the RPC result shape. * @param label - effect label for diagnostics. */ export declare function mountRpcChannel(ctx: Context, channel: string, handler: ConnectionRpcHandler, label: string): void;