(
ix: IInstantiationService,
sessionId: string,
req: { id: string; body: unknown },
reply: { send(payload: unknown): unknown },
)
| 430 | } |
| 431 | |
| 432 | async function handleSearch( |
| 433 | ix: IInstantiationService, |
| 434 | sessionId: string, |
| 435 | req: { id: string; body: unknown }, |
| 436 | reply: { send(payload: unknown): unknown }, |
| 437 | ): Promise<void> { |
| 438 | const parsed = fsSearchRequestSchema.safeParse(req.body ?? {}); |
| 439 | if (!parsed.success) { |
| 440 | reply.send(buildValidationEnvelope(parsed.error.issues, req.id)); |
| 441 | return; |
| 442 | } |
| 443 | const body: FsSearchRequest = parsed.data; |
| 444 | const data = await ix.invokeFunction((a) => |
| 445 | a.get(IFsSearchService).search(sessionId, body), |
| 446 | ); |
| 447 | reply.send(okEnvelope(data, req.id)); |
| 448 | } |
| 449 | |
| 450 | async function handleGrep( |
| 451 | ix: IInstantiationService, |
no test coverage detected