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

Function envelopeOf

packages/server/test/guiStore.e2e.test.ts:65–77  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

63}
64
65function envelopeOf<T>(body: unknown): {
66 code: number;
67 msg: string;
68 data: T | null;
69 request_id: string;
70} {
71 return body as {
72 code: number;
73 msg: string;
74 data: T | null;
75 request_id: string;
76 };
77}
78
79function getItem(api: ReturnType<typeof appOf>, key: string) {
80 return api.inject({ method: 'GET', url: `/api/v1/gui/store/getItem?key=${key}` });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected