(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 466 | } |
| 467 | |
| 468 | async 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 | |
| 486 | async function handleDiff( |
| 487 | ix: IInstantiationService, |
no test coverage detected