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

Function agentEvent

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

Source from the content-addressed store, hash-verified

9const mocks = vi.hoisted(() => {
10 const eventHandlers = new Set<(event: any) => void>();
11 const agentEvent = (agentId: string, event: Record<string, unknown>) => ({
12 sessionId: 'ses_prompt',
13 agentId,
14 ...event,
15 });
16 const mainEvent = (event: Record<string, unknown>) => agentEvent('main', event);
17 const session = {
18 id: 'ses_prompt',

Callers 1

mainEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected