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

Function finish

packages/agent-core/test/tools/bash.test.ts:108–114  ·  view source on GitHub ↗
(exitCode = 0)

Source from the content-addressed store, hash-verified

106 resolveWait = resolve;
107 });
108 const finish = (exitCode = 0): void => {
109 if (currentExitCode !== null) return;
110 currentExitCode = exitCode;
111 stdout.end();
112 stderr.end();
113 resolveWait(exitCode);
114 };
115 return {
116 proc: {
117 stdin: { end: vi.fn(), write: vi.fn() } as unknown as Writable,

Callers 3

pendingProcessFunction · 0.70
bash.test.tsFile · 0.70

Calls 2

resolveWaitFunction · 0.70
endMethod · 0.45

Tested by

no test coverage detected