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

Function okEnvelope

packages/protocol/src/envelope.ts:20–22  ·  view source on GitHub ↗
(data: T, requestId: string)

Source from the content-addressed store, hash-verified

18}
19
20export function okEnvelope<T>(data: T, requestId: string): Envelope<T> {
21 return { code: 0, msg: 'success', data, request_id: requestId };
22}
23
24export function errEnvelope(code: number, msg: string, requestId: string): Envelope<null> {
25 return { code, msg, data: null, request_id: requestId };

Callers 15

envelope.test.tsFile · 0.90
buildAppFunction · 0.90
registerSkillsRoutesFunction · 0.90
registerShutdownRoutesFunction · 0.90
registerHealthRouteFunction · 0.90
registerGuiStoreRoutesFunction · 0.90
registerOAuthRoutesFunction · 0.90
registerPromptsRoutesFunction · 0.90
registerTerminalsRoutesFunction · 0.90
registerTasksRoutesFunction · 0.90

Calls

no outgoing calls

Tested by 1

buildAppFunction · 0.72