// tools/generate-tests/generators/microservices/index.ts — SPEC-058b Section E
// Public API for the microservices test generator. Re-exports all public symbols.
import { detectBroker, detectServiceMesh } from './detectors.js';
import { buildTsMicroservicesTest } from './ts-scaffold.js';
import { buildPythonMicroservicesTest } from './python-scaffold.js';
export { detectBroker, detectServiceMesh, isMicroservicesTestProject } from './detectors.js';
export { generateMicroservicesTestDefs } from './test-defs.js';
export function generateMicroservicesTestFiles(spec, testDir, framework, language, testExt, autoGenerate, knowledge) {
    const broker = detectBroker(knowledge);
    const mesh = detectServiceMesh(knowledge);
    const isPython = language === 'python';
    const ext = isPython ? 'py' : testExt;
    const fw = isPython ? 'pytest' : framework;
    const content = isPython
        ? buildPythonMicroservicesTest(spec.title, broker, mesh)
        : buildTsMicroservicesTest(spec.title, broker, mesh);
    return [
        {
            path: `${testDir}/microservices/${spec.slug}.microservices.test.${ext}`,
            framework: fw,
            content,
            ready: autoGenerate,
        },
    ];
}
//# sourceMappingURL=index.js.map