(preset: string)
| 165 | export type ToolPreset = (typeof TOOL_PRESETS)[number] |
| 166 | |
| 167 | export function parseToolPreset(preset: string): ToolPreset | null { |
| 168 | const presetString = preset.toLowerCase() |
| 169 | if (!TOOL_PRESETS.includes(presetString as ToolPreset)) { |
| 170 | return null |
| 171 | } |
| 172 | return presetString as ToolPreset |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * Get the list of tool names for a given preset |
no outgoing calls
no test coverage detected