Default transport implementation that uses Erlang Ports to communicate with the Claude CLI.
The transport boots the CLI executable, relays JSON frames, and broadcasts inbound messages to all registered subscribers.
Summary
Functions
Returns a specification to start this module under a supervisor.
Signals end of input (EOF) to the CLI subprocess.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Signals end of input (EOF) to the CLI subprocess.
This is used to indicate that no more input will be sent, which is required for the first result event pattern when SDK MCP servers or hooks are present.
Note: For Erlang ports, there's no direct way to close stdin while keeping the port open. This implementation closes the port entirely, which signals EOF to the CLI and allows it to finish processing.