// tools/generate-tests/spec-dispatcher.ts — Orchestrator for spec-specific test generation
// Delegates to domain-grouped sub-dispatchers in ./dispatchers/
import { dispatchAiMl } from './dispatchers/ai-ml-dispatcher.js';
import { dispatchFrontend } from './dispatchers/frontend-dispatcher.js';
import { dispatchProtocols } from './dispatchers/protocols-dispatcher.js';
import { dispatchDistributed } from './dispatchers/distributed-dispatcher.js';
import { dispatchInfra } from './dispatchers/infra-dispatcher.js';
import { dispatchDatabaseSecurity } from './dispatchers/database-security-dispatcher.js';
/**
 * Runs all spec-specific test generation dispatchers.
 * Mutates unitTests, integrationTests, testFiles in-place.
 * Returns { isApiSpec } for use in output formatting.
 */
export function runSpecializedGenerators(args, unitTests, integrationTests, testFiles) {
    const { spec, knowledge, testDir, testFramework, slug, autoGenerate, testExt } = args;
    dispatchAiMl(spec, knowledge, testDir, testFramework, slug, autoGenerate, testExt, unitTests, integrationTests, testFiles);
    dispatchFrontend(spec, knowledge, testDir, testFramework, slug, autoGenerate, testExt, unitTests, integrationTests, testFiles);
    dispatchDistributed(spec, knowledge, testDir, testFramework, slug, autoGenerate, testExt, unitTests, integrationTests, testFiles);
    dispatchProtocols(spec, knowledge, testDir, testFramework, slug, autoGenerate, testExt, unitTests, integrationTests, testFiles);
    dispatchInfra(spec, knowledge, testDir, testFramework, slug, autoGenerate, testExt, unitTests, integrationTests, testFiles);
    return dispatchDatabaseSecurity(spec, knowledge, testDir, testFramework, slug, autoGenerate, testExt, unitTests, integrationTests, testFiles);
}
//# sourceMappingURL=spec-dispatcher.js.map