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

Function envelopeOf

packages/server/test/sessions.e2e.test.ts:117–119  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

115}
116
117function envelopeOf<T>(body: unknown): { code: number; msg: string; data: T | null; request_id: string; details?: unknown } {
118 return body as { code: number; msg: string; data: T | null; request_id: string; details?: unknown };
119}
120
121function wsDataToString(data: unknown): string {
122 if (typeof data === 'string') return data;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected