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

Function responseForReport

packages/server-e2e/src/report.ts:646–652  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

644}
645
646function responseForReport(text: string): { envelope?: unknown; raw?: string } {
647 try {
648 return { envelope: JSON.parse(text) as unknown };
649 } catch {
650 return { raw: text.slice(0, 2_000) };
651 }
652}
653
654function errorForReport(error: unknown): unknown {
655 if (error instanceof Error) {

Callers 1

fetchWithReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected