(fileCount: number)
| 143 | * but smaller ones should use fewer to avoid unnecessary overhead. |
| 144 | */ |
| 145 | export function getExploreBudget(fileCount: number): number { |
| 146 | if (fileCount < 500) return 1; |
| 147 | if (fileCount < 5000) return 2; |
| 148 | if (fileCount < 15000) return 3; |
| 149 | if (fileCount < 25000) return 4; |
| 150 | return 5; |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Adaptive output budget for `codegraph_explore`, scaled to project size. |
no outgoing calls
no test coverage detected