import { renderTextTemplateFileAction } from '@baseplate-dev/core-generators';
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
import { DEV_AGENTS_CORE_DEV_AGENTS_CONFIG_PATHS } from './template-paths.js';
import { DEV_AGENTS_CORE_DEV_AGENTS_CONFIG_TEMPLATES } from './typed-templates.js';
const devAgentsCoreDevAgentsConfigRenderers = createProviderType('dev-agents-core-dev-agents-config-renderers');
const devAgentsCoreDevAgentsConfigRenderersTask = createGeneratorTask({
    dependencies: { paths: DEV_AGENTS_CORE_DEV_AGENTS_CONFIG_PATHS.provider },
    exports: {
        devAgentsCoreDevAgentsConfigRenderers: devAgentsCoreDevAgentsConfigRenderers.export(),
    },
    run({ paths }) {
        return {
            providers: {
                devAgentsCoreDevAgentsConfigRenderers: {
                    agentsMd: {
                        render: (options) => renderTextTemplateFileAction({
                            template: DEV_AGENTS_CORE_DEV_AGENTS_CONFIG_TEMPLATES.agentsMd,
                            destination: paths.agentsMd,
                            ...options,
                        }),
                    },
                    baseplateMd: {
                        render: (options) => renderTextTemplateFileAction({
                            template: DEV_AGENTS_CORE_DEV_AGENTS_CONFIG_TEMPLATES.baseplateMd,
                            destination: paths.baseplateMd,
                            ...options,
                        }),
                    },
                    claudeMd: {
                        render: (options) => renderTextTemplateFileAction({
                            template: DEV_AGENTS_CORE_DEV_AGENTS_CONFIG_TEMPLATES.claudeMd,
                            destination: paths.claudeMd,
                            ...options,
                        }),
                    },
                },
            },
        };
    },
});
export const DEV_AGENTS_CORE_DEV_AGENTS_CONFIG_RENDERERS = {
    provider: devAgentsCoreDevAgentsConfigRenderers,
    task: devAgentsCoreDevAgentsConfigRenderersTask,
};
//# sourceMappingURL=template-renderers.js.map