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

Function handleGitStatus

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

466}
467
468async function handleGitStatus(
469 ix: IInstantiationService,
470 sessionId: string,
471 req: { id: string; body: unknown },
472 reply: { send(payload: unknown): unknown },
473): Promise<void> {
474 const parsed = fsGitStatusRequestSchema.safeParse(req.body ?? {});
475 if (!parsed.success) {
476 reply.send(buildValidationEnvelope(parsed.error.issues, req.id));
477 return;
478 }
479 const body: FsGitStatusRequest = parsed.data;
480 const data = await ix.invokeFunction((a) =>
481 a.get(IFsGitService).status(sessionId, body),
482 );
483 reply.send(okEnvelope(data, req.id));
484}
485
486async function handleDiff(
487 ix: IInstantiationService,

Callers 1

registerFsRoutesFunction · 0.85

Calls 6

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

Tested by

no test coverage detected