| 4607 | { ranges: ExploreLineRange[]; bytes: number; fingerprint?: string } |
| 4608 | >(); |
| 4609 | const noteEmitted = ( |
| 4610 | fp: string, |
| 4611 | ranges: ExploreLineRange[], |
| 4612 | bytes: number, |
| 4613 | fingerprint?: string, |
| 4614 | ): void => { |
| 4615 | const existing = emittedByFile.get(fp); |
| 4616 | if (existing) { |
| 4617 | existing.ranges.push(...ranges); |
| 4618 | existing.bytes += bytes; |
| 4619 | if (fingerprint) existing.fingerprint = fingerprint; |
| 4620 | } else { |
| 4621 | emittedByFile.set(fp, { ranges: [...ranges], bytes, fingerprint }); |
| 4622 | } |
| 4623 | }; |
| 4624 | |
| 4625 | // Step 1: Find relevant context with generous parameters. |
| 4626 | // Use a large maxNodes budget — explore has its own 35k char output limit |