(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 412 | } |
| 413 | |
| 414 | async function handleMkdir( |
| 415 | ix: IInstantiationService, |
| 416 | sessionId: string, |
| 417 | req: { id: string; body: unknown }, |
| 418 | reply: { send(payload: unknown): unknown }, |
| 419 | ): Promise<void> { |
| 420 | const parsed = fsMkdirRequestSchema.safeParse(req.body ?? {}); |
| 421 | if (!parsed.success) { |
| 422 | reply.send(buildValidationEnvelope(parsed.error.issues, req.id)); |
| 423 | return; |
| 424 | } |
| 425 | const body: FsMkdirRequest = parsed.data; |
| 426 | const data = await ix.invokeFunction((a) => |
| 427 | a.get(IFsService).mkdir(sessionId, body), |
| 428 | ); |
| 429 | reply.send(okEnvelope(data, req.id)); |
| 430 | } |
| 431 | |
| 432 | async function handleSearch( |
| 433 | ix: IInstantiationService, |
no test coverage detected