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

Function handleListMany

packages/server/src/routes/fs.ts:362–378  ·  view source on GitHub ↗
(
  ix: IInstantiationService,
  sessionId: string,
  req: { id: string; body: unknown },
  reply: { send(payload: unknown): unknown },
)

Source from the content-addressed store, hash-verified

360}
361
362async function handleListMany(
363 ix: IInstantiationService,
364 sessionId: string,
365 req: { id: string; body: unknown },
366 reply: { send(payload: unknown): unknown },
367): Promise<void> {
368 const parsed = fsListManyRequestSchema.safeParse(req.body ?? {});
369 if (!parsed.success) {
370 reply.send(buildValidationEnvelope(parsed.error.issues, req.id));
371 return;
372 }
373 const body: FsListManyRequest = parsed.data;
374 const data = await ix.invokeFunction((a) =>
375 a.get(IFsService).listMany(sessionId, body),
376 );
377 reply.send(okEnvelope(data, req.id));
378}
379
380async function handleStat(
381 ix: IInstantiationService,

Callers 1

registerFsRoutesFunction · 0.85

Calls 6

okEnvelopeFunction · 0.90
buildValidationEnvelopeFunction · 0.70
sendMethod · 0.65
invokeFunctionMethod · 0.65
listManyMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected