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

Function recordEvent

packages/agent-core/src/loop/events.ts:173–179  ·  view source on GitHub ↗
(
  input: CreateLoopEventDispatcherInput,
  event: LoopRecordedEvent,
)

Source from the content-addressed store, hash-verified

171}
172
173async function recordEvent(
174 input: CreateLoopEventDispatcherInput,
175 event: LoopRecordedEvent,
176): Promise<void> {
177 await input.appendTranscriptRecord(event);
178 safeEmitLive(input.emitLiveEvent, event);
179}
180
181function safeEmitLive(emit: LoopLiveEventEmitter | undefined, event: LoopEvent): void {
182 if (emit === undefined) return;

Callers 1

dispatchEventFunction · 0.85

Calls 1

safeEmitLiveFunction · 0.85

Tested by

no test coverage detected