* Get the factory for a specific tool target. * This is a static version of the internal getFactory for external use. * @param target - The tool target. Must be a valid RulesProcessorToolTarget. * @returns The factory for the target, or undefined if not found.
(target: ToolTarget)
| 1563 | * @returns The factory for the target, or undefined if not found. |
| 1564 | */ |
| 1565 | static getFactory(target: ToolTarget): ToolRuleFactory | undefined { |
| 1566 | // Validate that target is supported |
| 1567 | const result = RulesProcessorToolTargetSchema.safeParse(target); |
| 1568 | if (!result.success) { |
| 1569 | return undefined; |
| 1570 | } |
| 1571 | return toolRuleFactories.get(result.data); |
| 1572 | } |
| 1573 | |
| 1574 | private generateToonReferencesSection(toolRules: ToolRule[]): string { |
| 1575 | const toolRulesWithoutRoot = toolRules.filter((rule) => !rule.isRoot()); |
no outgoing calls
no test coverage detected