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

Function envelopeOf

packages/server/test/workspaces.e2e.test.ts:88–96  ·  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 details?: unknown;
94} {
95 return body as { code: number; msg: string; data: T | null; request_id: string; details?: unknown };
96}
97
98/** Lay down a minimal git fixture: `.git/HEAD` referring to a branch. */
99function makeGitRepo(root: string, branch: string): void {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected