Function
runAcpServerWithStream
(
harness: KimiHarness,
stream: Stream,
opts?: {
agentInfo?: Implementation;
terminalAuthEnv?: Readonly<Record<string, string>>;
terminalAuthLegacyCommand?: string;
slashCommands?: SlashCommandsResolver;
},
)
Source from the content-addressed store, hash-verified
| 931 | * in-memory pair instead of process stdio. |
| 932 | */ |
| 933 | export async function runAcpServerWithStream( |
| 934 | harness: KimiHarness, |
| 935 | stream: Stream, |
| 936 | opts?: { |
| 937 | agentInfo?: Implementation; |
| 938 | terminalAuthEnv?: Readonly<Record<string, string>>; |
| 939 | terminalAuthLegacyCommand?: string; |
| 940 | slashCommands?: SlashCommandsResolver; |
| 941 | }, |
| 942 | ): Promise<void> { |
| 943 | const conn = new AgentSideConnection((c) => new AcpServer(harness, c, opts), stream); |
| 944 | await conn.closed; |
| 945 | } |
| 946 | |
| 947 | /** |
| 948 | * Drive an {@link AcpServer} over Node stdio (or the supplied streams). |
Tested by
no test coverage detected