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

Function envelopeOf

packages/server/test/approval.e2e.test.ts:101–115  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

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

Callers 2

createSessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected