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

Function envelopeOf

packages/server/test/prompt.e2e.test.ts:100–114  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

98}
99
100function envelopeOf<T>(body: unknown): {
101 code: number;
102 msg: string;
103 data: T | null;
104 request_id: string;
105 details?: unknown;
106} {
107 return body as {
108 code: number;
109 msg: string;
110 data: T | null;
111 request_id: string;
112 details?: unknown;
113 };
114}
115
116function createPromptServiceOverride(
117 stub: Partial<IPromptService>,

Callers 2

createSessionFunction · 0.70
prompt.e2e.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected