Bounded Erlang-term, JSON, and NDJSON transport over Insider.Protocol.
This module deliberately does not implement runtime operations. Hosts inject
an Insider.Adapter.CLI.Dispatcher; the standalone executable uses a closed
dispatcher that returns unsupported.
Summary
Functions
Invokes one already-decoded request or one string-keyed request map.
Types
@type dispatcher() :: module() | (Insider.Protocol.Request.t() -> Insider.Protocol.Result.t())
Functions
@spec capabilities() :: map()
@spec discovery() :: map()
@spec invoke(Insider.Protocol.Request.t() | map(), dispatcher()) :: Insider.Protocol.Result.t() | {:error, Insider.Protocol.Error.t()}
Invokes one already-decoded request or one string-keyed request map.
@spec invoke_json(binary(), dispatcher()) :: {binary(), non_neg_integer()}
@spec invoke_ndjson(binary(), dispatcher()) :: {binary(), non_neg_integer()}