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

Function envelopeOf

packages/server/test/ws-terminal.e2e.test.ts:78–92  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

76}
77
78function envelopeOf<T>(body: unknown): {
79 code: number;
80 msg: string;
81 data: T | null;
82 request_id: string;
83 details?: unknown;
84} {
85 return body as {
86 code: number;
87 msg: string;
88 data: T | null;
89 request_id: string;
90 details?: unknown;
91 };
92}
93
94async function createSession(r: RunningServer): Promise<string> {
95 const cwd = join(tmpDir, 'workspace');

Callers 2

createSessionFunction · 0.70
createTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected