(value: number, min: number, max: number)
| 203 | * Used to enforce sane limits on MCP tool inputs. |
| 204 | */ |
| 205 | export function clamp(value: number, min: number, max: number): number { |
| 206 | return Math.max(min, Math.min(max, value)); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Normalize a file path to use forward slashes. |
no outgoing calls
no test coverage detected