const prompt = {
    name: 'spec-status',
    title: 'Specification Status Overview',
    description: 'Get comprehensive status overview of specification documents, tasks, and approval workflows. Useful for project tracking and progress reporting.',
    arguments: [
        {
            name: 'specName',
            description: 'Feature name in kebab-case to get status for (optional - if not provided, shows all specs)',
            required: false
        },
        {
            name: 'detailed',
            description: 'Show detailed status including task breakdown and approval history',
            required: false
        }
    ]
};
async function handler(args, context) {
    const { specName, detailed } = args;
    const scope = specName ? `the "${specName}" feature` : 'all specifications in the project';
    const detailLevel = detailed ? 'detailed' : 'summary';
    const messages = [
        {
            role: 'user',
            content: {
                type: 'text',
                text: `Get ${detailLevel} status overview for ${scope}.

**Context:**
- Project: ${context.projectPath}
${specName ? `- Feature: ${specName}` : '- Scope: All specifications'}
- Detail level: ${detailLevel}
${context.dashboardUrl ? `- Dashboard: ${context.dashboardUrl}` : ''}

**Instructions:**
${specName ?
                    `1. Run \`/spec-status ${specName}\` to check phase completion and task progress
2. If you need detailed task information, read the tasks.md file directly at .spec-workflow/specs/${specName}/tasks.md
3. To check pending approvals, use the dashboard or VS Code extension (the approvals tool requires a specific approvalId)` :
                    `1. List directory .spec-workflow/specs/ to see all specifications
2. For each specification, invoke the \`/spec-status\` skill with the spec name to check phase completion and task progress
3. Provide a consolidated overview of project progress`}

**Status Information Includes:**
- **Document Status**: Which documents exist (request-spec, requirements, design, test-design, tasks)
- **Task Progress**: Completion status and remaining work
- **Workflow Stage**: Current phase in the spec-driven development process

**Workflow Stages:**
0. **Request Spec**: Use cases, tech stack, and execution environment defined and approved
1. **Planning**: Requirements document created and approved
2. **Design**: Design document created and approved
3. **Test Design**: Test design document (UT/IT/E2E specifications) created and approved
4. **Task Breakdown**: Tasks defined based on design and test design
5. **Implementation**: Tasks implementation in progress
6. **Review**: Implementation complete, awaiting final approval
7. **Complete**: All tasks complete and approved

${detailed ? `**Detailed Information Includes:**
- Individual task breakdown with completion status
- Approval request history and reviewer comments
- File modification timestamps
- Steering document references
- Dependency tracking between specs` : ''}

Please provide a comprehensive status report that helps understand the current state and next steps.`
            }
        }
    ];
    return messages;
}
export const specStatusPrompt = {
    prompt,
    handler
};
//# sourceMappingURL=spec-status.js.map