const prompt = {
    name: 'create-steering-doc',
    title: 'Create Steering Document',
    description: 'Guide for creating project steering documents (product, tech, structure) directly in the file system. These provide high-level project guidance.',
    arguments: [
        {
            name: 'docType',
            description: 'Type of steering document: product, tech, or structure',
            required: true
        },
        {
            name: 'scope',
            description: 'Scope of the steering document (e.g., frontend, backend, full-stack)',
            required: false
        }
    ]
};
async function handler(args, context) {
    const { docType, scope } = args;
    if (!docType) {
        throw new Error('docType is a required argument');
    }
    const validDocTypes = ['product', 'tech', 'structure'];
    // ダッシュボードのプレビュー用サンプルコンテキストではバリデーションをスキップ
    const isPreviewContext = context.projectPath === '{{projectPath}}';
    if (!isPreviewContext && !validDocTypes.includes(docType)) {
        throw new Error(`docType must be one of: ${validDocTypes.join(', ')}`);
    }
    const messages = [
        {
            role: 'user',
            content: {
                type: 'text',
                text: `Create a ${docType} steering document for the project.

**Context:**
- Project: ${context.projectPath}
- Steering document type: ${docType}
${scope ? `- Scope: ${scope}` : ''}
${context.dashboardUrl ? `- Dashboard: ${context.dashboardUrl}` : ''}

**Instructions:**
1. First, read the template at: .spec-workflow/templates/${docType}-template.md
2. Check if steering docs exist at: .spec-workflow/steering/
3. Create comprehensive content following the template structure
4. Create the document at: .spec-workflow/steering/${docType}.md
5. After creating, use approvals tool with action:'request' to get user approval

**File Paths:**
- Template location: .spec-workflow/templates/${docType}-template.md
- Document destination: .spec-workflow/steering/${docType}.md

**Steering Document Types:**
- **product**: Defines project vision, goals, and user outcomes
- **tech**: Documents project-level technology stack and architecture. Selection rationale and decision history go to .spec-workflow/steering/logs/tech-decisions.md
- **structure**: Maps codebase organization and conventions

**Key Principles:**
- Be specific and actionable
- Include examples where helpful
- Consider both technical and business requirements
- Provide clear guidance for future development
- Templates are automatically updated on server start

Please read the ${docType} template and create a comprehensive steering document at the specified path.`
            }
        }
    ];
    return messages;
}
export const createSteeringDocPrompt = {
    prompt,
    handler
};
//# sourceMappingURL=create-steering-doc.js.map