(groups: readonly GroupEntry[])
| 26 | |
| 27 | // Helper to get all tools for a mode |
| 28 | export function getToolsForMode(groups: readonly GroupEntry[]): string[] { |
| 29 | const tools = new Set<string>() |
| 30 | |
| 31 | // Add tools from each group (excluding customTools which are opt-in only) |
| 32 | groups.forEach((group) => { |
| 33 | const groupName = getGroupName(group) |
| 34 | const groupConfig = TOOL_GROUPS[groupName] |
| 35 | groupConfig.tools.forEach((tool: string) => tools.add(tool)) |
| 36 | }) |
| 37 | |
| 38 | // Always add required tools |
| 39 | ALWAYS_AVAILABLE_TOOLS.forEach((tool) => tools.add(tool)) |
| 40 | |
| 41 | return Array.from(tools) |
| 42 | } |
| 43 | |
| 44 | // Main modes configuration as an ordered array |
| 45 | export const modes = DEFAULT_MODES |
no test coverage detected