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

Function makeDriver

apps/kimi-code/test/tui/message-replay.test.ts:239–248  ·  view source on GitHub ↗
(initialSession: Session)

Source from the content-addressed store, hash-verified

237}
238
239async function makeDriver(initialSession: Session): Promise<ReplayDriver> {
240 const driver = new KimiTUI(
241 makeHarness(initialSession) as never,
242 makeStartupInput(),
243 ) as unknown as ReplayDriver;
244 vi.spyOn(driver.state.ui, 'requestRender').mockImplementation(() => {});
245 vi.spyOn(driver.state.terminal, 'setProgress').mockImplementation(() => {});
246 await driver.init();
247 return driver;
248}
249
250async function replayIntoDriver(
251 replay: readonly AgentReplayRecord[],

Callers 1

replayIntoDriverFunction · 0.70

Calls 3

makeHarnessFunction · 0.70
makeStartupInputFunction · 0.70
initMethod · 0.65

Tested by

no test coverage detected