import { getSpecWorkflowGuide } from '../core/guides.js';
const prompt = {
    name: 'inject-spec-workflow-guide',
    title: 'Inject Spec Workflow Guide into Context',
    description: 'Injects the complete spec-driven development workflow guide into the conversation context. This provides immediate access to all workflow phases, tools, and best practices without requiring separate tool calls.'
};
async function handler(args, context) {
    const guide = getSpecWorkflowGuide();
    const dashboardUrl = context.dashboardUrl;
    const dashboardMessage = dashboardUrl ?
        `Monitor progress on dashboard: ${dashboardUrl}` :
        'Please start the dashboard with: spec-workflow-mcp --dashboard';
    const nextSteps = [
        'Follow sequence: /spec-request-spec → /spec-requirements → /spec-design → /spec-test-design → /spec-tasks → /spec-implement',
        'Read templates from .spec-workflow/templates/ (or user-templates/ for overrides)',
        'Request approval after each document using the approvals MCP tool',
        'Use plugin skills (slash commands) for workflow phases, approvals MCP tool for approval management',
        dashboardMessage
    ];
    const messages = [
        {
            role: 'user',
            content: {
                type: 'text',
                text: `Please review and follow this comprehensive spec-driven development workflow guide:

${guide}

**Current Context:**
- Project: ${context.projectPath}
${dashboardUrl ? `- Dashboard: ${dashboardUrl}` : '- Dashboard: Please start the dashboard or use VS Code extension "Spec Workflow MCP"'}

**Next Steps:**
${nextSteps.map(step => `- ${step}`).join('\n')}

**Important Instructions:**
1. This guide has been injected into your context for immediate reference
2. Follow the workflow sequence exactly: Request Spec → Requirements → Design → Test Design → Tasks → Implementation
3. Use plugin skills (slash commands like /spec-request-spec, /spec-requirements, etc.) to execute each phase
4. Always request approval between phases using the approvals MCP tool
5. Never proceed to the next phase without successful approval cleanup

Please acknowledge that you've reviewed this workflow guide and are ready to help with spec-driven development.`
            }
        }
    ];
    return messages;
}
export const injectSpecWorkflowGuidePrompt = {
    prompt,
    handler
};
//# sourceMappingURL=inject-spec-workflow-guide.js.map