(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 360 | } |
| 361 | |
| 362 | async 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 | |
| 380 | async function handleStat( |
| 381 | ix: IInstantiationService, |
no test coverage detected