(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 378 | } |
| 379 | |
| 380 | async function handleStat( |
| 381 | ix: IInstantiationService, |
| 382 | sessionId: string, |
| 383 | req: { id: string; body: unknown }, |
| 384 | reply: { send(payload: unknown): unknown }, |
| 385 | ): Promise<void> { |
| 386 | const parsed = fsStatRequestSchema.safeParse(req.body ?? {}); |
| 387 | if (!parsed.success) { |
| 388 | reply.send(buildValidationEnvelope(parsed.error.issues, req.id)); |
| 389 | return; |
| 390 | } |
| 391 | const body: FsStatRequest = parsed.data; |
| 392 | const data = await ix.invokeFunction((a) => a.get(IFsService).stat(sessionId, body)); |
| 393 | reply.send(okEnvelope(data, req.id)); |
| 394 | } |
| 395 | |
| 396 | async function handleStatMany( |
| 397 | ix: IInstantiationService, |
no test coverage detected