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

Function hasTurnId

apps/kimi-code/src/cli/run-prompt.ts:858–860  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

856}
857
858function hasTurnId(event: Event): event is Event & { readonly turnId: number } {
859 return 'turnId' in event;
860}
861
862function formatTurnEndedFailure(event: Extract<Event, { type: 'turn.ended' }>): string {
863 if (event.error !== undefined) return `${event.error.code}: ${event.error.message}`;

Callers 1

runPromptTurnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected