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

Function extractQuestionId

packages/server/test/services.test.ts:635–643  ·  view source on GitHub ↗
(sentFrames: unknown[])

Source from the content-addressed store, hash-verified

633 }
634
635 function extractQuestionId(sentFrames: unknown[]): string | undefined {
636 for (const frame of sentFrames) {
637 const env = frame as { type: string; payload: { question_id?: string } };
638 if (env.type === 'event.question.requested' && env.payload.question_id) {
639 return env.payload.question_id;
640 }
641 }
642 return undefined;
643 }
644
645 it('broadcasts event.question.requested AND settles via resolve(question_id, answers)', async () => {
646 const { broker, bus, broadcast, conn } = makeQuestionBroker();

Callers 1

services.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected