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

Function envelopeOf

packages/server/test/fs-mkdir.e2e.test.ts:90–104  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

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

Callers 2

createSessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected