/**
 * Replace {{PROVIDER_LABEL}}, {{INSTRUCTION_FILE}}, {{SKILLS_DIR}} placeholders with
 * provider-specific values. Unknown placeholders are left intact.
 */
export function composeContent(template, config) {
    return template
        .replaceAll('{{PROVIDER_LABEL}}', config.label)
        .replaceAll('{{INSTRUCTION_FILE}}', config.instructionFile)
        .replaceAll('{{SKILLS_DIR}}', config.skillsDir);
}
export function generateHeader(contextPath, providerName) {
    const now = new Date().toISOString().replace(/\.\d{3}Z$/, 'Z');
    return [
        '<!-- AUTO-GENERATED by `aurora ai setup` — DO NOT EDIT DIRECTLY -->',
        `<!-- Source of truth: ${contextPath} -->`,
        `<!-- Re-generate: aurora ai setup --provider ${providerName} -->`,
        `<!-- Generated: ${now} -->`,
        '',
    ].join('\n');
}
