| 4585 | { ranges: ExploreLineRange[]; bytes: number; fingerprint?: string } |
| 4586 | >(); |
| 4587 | const noteEmitted = ( |
| 4588 | fp: string, |
| 4589 | ranges: ExploreLineRange[], |
| 4590 | bytes: number, |
| 4591 | fingerprint?: string, |
| 4592 | ): void => { |
| 4593 | const existing = emittedByFile.get(fp); |
| 4594 | if (existing) { |
| 4595 | existing.ranges.push(...ranges); |
| 4596 | existing.bytes += bytes; |
| 4597 | if (fingerprint) existing.fingerprint = fingerprint; |
| 4598 | } else { |
| 4599 | emittedByFile.set(fp, { ranges: [...ranges], bytes, fingerprint }); |
| 4600 | } |
| 4601 | }; |
| 4602 | |
| 4603 | // Step 1: Find relevant context with generous parameters. |
| 4604 | // Use a large maxNodes budget — explore has its own 35k char output limit |