import { join } from 'node:path';
import { generateDocsSite } from '../engine/docs-site-generator/index.js';
export async function handleGenerateDocsSite(params) {
    const config = {
        projectPath: params.projectPath,
        outputDir: params.outputDir ?? join(params.projectPath, 'planu', 'docs-site'),
        title: params.title,
    };
    const result = await generateDocsSite(config);
    return {
        content: [
            {
                type: 'text',
                text: JSON.stringify({
                    success: true,
                    pagesGenerated: result.pagesGenerated,
                    outputDir: result.outputDir,
                    pages: result.pages,
                    message: `Documentation site generated with ${String(result.pagesGenerated)} pages at ${result.outputDir}`,
                }, null, 2),
            },
        ],
    };
}
//# sourceMappingURL=generate-docs-site.js.map