Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637/** Active tool-list queries for Advisor session toggling. @module */
/** Check whether active tool names contain target tool. @param toolNames - active tool names @param targetName - target tool name @returns whether target tool is active @example ```typescript containsToolName({ toolNames: ['advisor'], targetName: 'advisor' }); ``` */export function containsToolName( { toolNames, targetName, }: { readonly toolNames: readonly string[]; readonly targetName: string; },): boolean { for (const toolName of toolNames) { if (toolName === targetName) return true; } return false;}