MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / runAcpServerWithStream

Function runAcpServerWithStream

packages/acp-adapter/src/server.ts:933–945  ·  view source on GitHub ↗
(
  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 */
933export 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).

Callers 1

runAcpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected