--- import { promises as fs } from 'fs'; import { load } from 'js-yaml'; import path from 'path'; // Load tools data const yamlPath = path.join(process.cwd(), 'src/data/tools.yaml'); const yamlContent = await fs.readFile(yamlPath, 'utf8'); const data = load(yamlContent) as any; const domains = data.domains; const phases = data.phases; const tools = data.tools; // Separate collaboration tools from domain-specific tools const collaborationTools = tools.filter((tool: any) => tool.phases.includes('collaboration') ); const domainTools = tools.filter((tool: any) => !tool.phases.includes('collaboration') ); // Create matrix structure for domain-specific tools only const matrix: Record> = {}; domains.forEach((domain: any) => { matrix[domain.id] = {}; phases.filter((phase: any) => phase.id !== 'collaboration').forEach((phase: any) => { matrix[domain.id][phase.id] = domainTools.filter((tool: any) => tool.domains.includes(domain.id) && tool.phases.includes(phase.id) ); }); }); ---

Tool Name