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

Function handleStatMany

packages/server/src/routes/fs.ts:396–412  ·  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

394}
395
396async function handleStatMany(
397 ix: IInstantiationService,
398 sessionId: string,
399 req: { id: string; body: unknown },
400 reply: { send(payload: unknown): unknown },
401): Promise<void> {
402 const parsed = fsStatManyRequestSchema.safeParse(req.body ?? {});
403 if (!parsed.success) {
404 reply.send(buildValidationEnvelope(parsed.error.issues, req.id));
405 return;
406 }
407 const body: FsStatManyRequest = parsed.data;
408 const data = await ix.invokeFunction((a) =>
409 a.get(IFsService).statMany(sessionId, body),
410 );
411 reply.send(okEnvelope(data, req.id));
412}
413
414async function handleMkdir(
415 ix: IInstantiationService,

Callers 1

registerFsRoutesFunction · 0.85

Calls 6

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

Tested by

no test coverage detected