js/ai/acp/transport

js/ai/acp/transport.ts

internal:ai/acp/transport — ACP newline-delimited JSON over process stdio.

ACP's stdio framing is the same newline-delimited JSON-RPC as MCP's, so this module only binds streamTransport() to this process's stdin and stdout. JSON-RPC and ACP lifecycle policy remain in their respective layers.

Functions

function acpStdioTransport(): Transport

Create ACP newline-delimited JSON over process stdio.

Writes are serialized and flushed; close() stops reading stdin and leaves stdout open. Reserve stdout for ACP traffic — diagnostics go to stderr.