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

Function envelopeOf

packages/server/test/question.e2e.test.ts:102–116  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

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

Callers 2

createSessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected