(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 344 | } |
| 345 | |
| 346 | async function handleRead( |
| 347 | ix: IInstantiationService, |
| 348 | sessionId: string, |
| 349 | req: { id: string; body: unknown }, |
| 350 | reply: { send(payload: unknown): unknown }, |
| 351 | ): Promise<void> { |
| 352 | const parsed = fsReadRequestSchema.safeParse(req.body ?? {}); |
| 353 | if (!parsed.success) { |
| 354 | reply.send(buildValidationEnvelope(parsed.error.issues, req.id)); |
| 355 | return; |
| 356 | } |
| 357 | const body: FsReadRequest = parsed.data; |
| 358 | const data = await ix.invokeFunction((a) => a.get(IFsService).read(sessionId, body)); |
| 359 | reply.send(okEnvelope(data, req.id)); |
| 360 | } |
| 361 | |
| 362 | async function handleListMany( |
| 363 | ix: IInstantiationService, |
no test coverage detected