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

Function envelopeOf

packages/server/test/fs-search.e2e.test.ts:93–107  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

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

Callers 2

createSessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected