| 4529 | { ranges: ExploreLineRange[]; bytes: number; fingerprint?: string } |
| 4530 | >(); |
| 4531 | const noteEmitted = ( |
| 4532 | fp: string, |
| 4533 | ranges: ExploreLineRange[], |
| 4534 | bytes: number, |
| 4535 | fingerprint?: string, |
| 4536 | ): void => { |
| 4537 | const existing = emittedByFile.get(fp); |
| 4538 | if (existing) { |
| 4539 | existing.ranges.push(...ranges); |
| 4540 | existing.bytes += bytes; |
| 4541 | if (fingerprint) existing.fingerprint = fingerprint; |
| 4542 | } else { |
| 4543 | emittedByFile.set(fp, { ranges: [...ranges], bytes, fingerprint }); |
| 4544 | } |
| 4545 | }; |
| 4546 | |
| 4547 | // Step 1: Find relevant context with generous parameters. |
| 4548 | // Use a large maxNodes budget — explore has its own 35k char output limit |