(preset: string)
| 180 | export type ToolPreset = (typeof TOOL_PRESETS)[number] |
| 181 | |
| 182 | export function parseToolPreset(preset: string): ToolPreset | null { |
| 183 | const presetString = preset.toLowerCase() |
| 184 | if (!TOOL_PRESETS.includes(presetString as ToolPreset)) { |
| 185 | return null |
| 186 | } |
| 187 | return presetString as ToolPreset |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Get the list of tool names for a given preset |
no outgoing calls
no test coverage detected