ClaudeCode.Adapter.Port (ClaudeCode v0.29.0)

View Source

Local CLI adapter that manages a persistent Port connection to the Claude CLI.

This adapter:

  • Spawns the CLI subprocess with --input-format stream-json
  • Receives async messages from the Port
  • Forwards raw decoded JSON maps to Session for parsing
  • Handles Port lifecycle (connect, reconnect, cleanup)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.