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

Function envelopeOf

packages/server/test/ws-abort.e2e.test.ts:96–110  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

94}
95
96function envelopeOf<T>(body: unknown): {
97 code: number;
98 msg: string;
99 data: T | null;
100 request_id: string;
101 details?: unknown;
102} {
103 return body as {
104 code: number;
105 msg: string;
106 data: T | null;
107 request_id: string;
108 details?: unknown;
109 };
110}
111
112async function createSession(r: RunningServer): Promise<string> {
113 const res = await appOf(r).inject({

Callers 2

createSessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected