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

Function emit

apps/kimi-code/test/cli/run-prompt.test.ts:475–479  ·  view source on GitHub ↗
(event: Record<string, unknown>)

Source from the content-addressed store, hash-verified

473 it('filters prompt output and completion to the main agent turn', async () => {
474 mocks.session.prompt.mockImplementationOnce(async () => {
475 const emit = (event: Record<string, unknown>) => {
476 for (const handler of Array.from(mocks.eventHandlers)) {
477 handler(event);
478 }
479 };
480
481 emit(mocks.mainEvent({ type: 'turn.started', turnId: 1, origin: { kind: 'user' } }));
482 emit(

Callers 1

run-prompt.test.tsFile · 0.70

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected