(fileCount: number)
| 132 | * but smaller ones should use fewer to avoid unnecessary overhead. |
| 133 | */ |
| 134 | export function getExploreBudget(fileCount: number): number { |
| 135 | if (fileCount < 500) return 1; |
| 136 | if (fileCount < 5000) return 2; |
| 137 | if (fileCount < 15000) return 3; |
| 138 | if (fileCount < 25000) return 4; |
| 139 | return 5; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Adaptive output budget for `codegraph_explore`, scaled to project size. |
no outgoing calls
no test coverage detected