Spaces:
Configuration error
Configuration error
| /** | |
| * Central export file for all OpenPrompt tools | |
| * Combines tools from main tools.ts and all extended modular files | |
| */ | |
| import { getAllTools as getMainTools, getToolCategories } from '../tools' | |
| import { MARKETING_TOOLS_EXTENDED } from './marketing-extended' | |
| import { BRANDING_TOOLS_EXTENDED } from './branding-extended' | |
| import { PRODUCT_DEVELOPMENT_TOOLS } from './product-development' | |
| import { MARKET_RESEARCH_TOOLS } from './market-research' | |
| import { | |
| EMAIL_TOOLS_EXTENDED, | |
| COPYWRITING_TOOLS_EXTENDED, | |
| PERSONAL_BRANDING_TOOLS_EXTENDED, | |
| OPERATIONS_TOOLS_EXTENDED, | |
| MISCELLANEOUS_TOOLS, | |
| } from './remaining-tools' | |
| import { SEO_TOOLS_EXTENDED, SALES_TOOLS_EXTENDED } from '../tools-extended' | |
| /** | |
| * Get all tools from main file + all extended files | |
| * Total: 177 tools | |
| */ | |
| export function getAllToolsComplete() { | |
| return [ | |
| ...getMainTools(), // 81 tools from main tools.ts | |
| ...MARKETING_TOOLS_EXTENDED, // 16 tools | |
| ...BRANDING_TOOLS_EXTENDED, // 19 tools | |
| ...PRODUCT_DEVELOPMENT_TOOLS, // 9 tools | |
| ...MARKET_RESEARCH_TOOLS, // 10 tools | |
| ...EMAIL_TOOLS_EXTENDED, // 4 tools | |
| ...COPYWRITING_TOOLS_EXTENDED, // 5 tools | |
| ...PERSONAL_BRANDING_TOOLS_EXTENDED, // 11 tools | |
| ...OPERATIONS_TOOLS_EXTENDED, // 3 tools | |
| ...MISCELLANEOUS_TOOLS, // 6 tools | |
| ...SEO_TOOLS_EXTENDED, // 7 SEO tools | |
| ...SALES_TOOLS_EXTENDED, // 6 Sales tools | |
| ] | |
| } | |
| // Re-export types from main tools.ts | |
| export { getToolCategories } from '../tools' | |
| export type { ToolDefinition, ToolInput } from '../tools' | |
| // Import ToolDefinition for typing | |
| import type { ToolDefinition } from '../tools' | |
| /** | |
| * Get a tool by its slug - searches ALL tools including extended | |
| */ | |
| export function getToolBySlug(slug: string): ToolDefinition | undefined { | |
| return getAllToolsComplete().find(tool => tool.slug === slug) | |
| } | |
| /** | |
| * Get tools by category - searches ALL tools including extended | |
| */ | |
| export function getToolsByCategory(category: string): ToolDefinition[] { | |
| return getAllToolsComplete().filter(tool => tool.category === category) | |
| } | |
| // Export individual arrays for flexibility | |
| export { | |
| MARKETING_TOOLS_EXTENDED, | |
| BRANDING_TOOLS_EXTENDED, | |
| PRODUCT_DEVELOPMENT_TOOLS, | |
| MARKET_RESEARCH_TOOLS, | |
| EMAIL_TOOLS_EXTENDED, | |
| COPYWRITING_TOOLS_EXTENDED, | |
| PERSONAL_BRANDING_TOOLS_EXTENDED, | |
| OPERATIONS_TOOLS_EXTENDED, | |
| MISCELLANEOUS_TOOLS, | |
| SEO_TOOLS_EXTENDED, | |
| SALES_TOOLS_EXTENDED, | |
| } | |
| /** | |
| * Tool count summary | |
| */ | |
| export const TOOL_COUNTS = { | |
| main: 81, | |
| marketing_extended: 16, | |
| branding_extended: 19, | |
| product_development: 9, | |
| market_research: 10, | |
| email_extended: 4, | |
| copywriting_extended: 5, | |
| personal_branding_extended: 11, | |
| operations_extended: 3, | |
| miscellaneous: 6, | |
| seo_extended: 7, | |
| sales_extended: 6, | |
| total: 177, | |
| } | |