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

Function envelopeOf

packages/server/test/snapshot.e2e.test.ts:88–95  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

86}
87
88function envelopeOf<T>(body: unknown): {
89 code: number;
90 msg: string;
91 data: T | null;
92 request_id: string;
93} {
94 return body as { code: number; msg: string; data: T | null; request_id: string };
95}
96
97async function createSession(r: RunningServer): Promise<string> {
98 const res = await appOf(r).inject({

Callers 2

createSessionFunction · 0.70
getSnapshotFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected