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

Function envelopeOf

packages/server/test/terminals.e2e.test.ts:76–90  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

74}
75
76function envelopeOf<T>(body: unknown): {
77 code: number;
78 msg: string;
79 data: T | null;
80 request_id: string;
81 details?: unknown;
82} {
83 return body as {
84 code: number;
85 msg: string;
86 data: T | null;
87 request_id: string;
88 details?: unknown;
89 };
90}
91
92async function createSession(r: RunningServer, cwd: string): Promise<string> {
93 mkdirSync(cwd, { recursive: true });

Callers 2

createSessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected