(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 328 | } |
| 329 | |
| 330 | async function handleList( |
| 331 | ix: IInstantiationService, |
| 332 | sessionId: string, |
| 333 | req: { id: string; body: unknown }, |
| 334 | reply: { send(payload: unknown): unknown }, |
| 335 | ): Promise<void> { |
| 336 | const parsed = fsListRequestSchema.safeParse(req.body ?? {}); |
| 337 | if (!parsed.success) { |
| 338 | reply.send(buildValidationEnvelope(parsed.error.issues, req.id)); |
| 339 | return; |
| 340 | } |
| 341 | const body: FsListRequest = parsed.data; |
| 342 | const data = await ix.invokeFunction((a) => a.get(IFsService).list(sessionId, body)); |
| 343 | reply.send(okEnvelope(data, req.id)); |
| 344 | } |
| 345 | |
| 346 | async function handleRead( |
| 347 | ix: IInstantiationService, |
no test coverage detected