import path from "node:path";
import { readText, renderTemplate } from "../utils/fs.js";
export async function renderClaudeBody(repoRoot, config, context) {
    const templatePath = path.join(repoRoot, config.routing.surfaces.claude.template);
    const template = await readText(templatePath);
    return renderTemplate(template, {
        projectName: context.projectName,
        generatedAt: context.generatedAt,
        taskDirectory: context.taskDirectory,
        contextDirectory: context.contextDirectory,
        targetRoot: context.targetRoot,
        profileName: context.profileName,
        executionMode: context.executionMode,
        projectType: context.projectType,
        profileSource: context.profileSource,
        starterSpecialists: context.starterSpecialists,
        starterValidations: context.starterValidations,
        starterMcpHints: context.starterMcpHints
    });
}
