(value: number, min: number, max: number)
| 416 | * Used to enforce sane limits on MCP tool inputs. |
| 417 | */ |
| 418 | export function clamp(value: number, min: number, max: number): number { |
| 419 | return Math.max(min, Math.min(max, value)); |
| 420 | } |
| 421 | |
| 422 | /** |
| 423 | * Normalize a file path to use forward slashes. |
no outgoing calls
no test coverage detected