"use strict";
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2024-2026 Gracker (Chris)
// This file is part of SmartPerfetto. See LICENSE for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.PROMPTS = void 0;
/**
 * Prompt Engineering Templates
 * Optimized prompts for different analysis scenarios
 */
exports.PROMPTS = {
    // SQL Generation Prompts
    SQL_GENERATION: {
        basic: `Generate a Perfetto SQL query for: {question}

Rules:
- Use ONLY existing Perfetto tables
- Output ONLY one SQL query wrapped in \`\`\`sql ... \`\`\` (no explanation)
- Convert timestamps: ts / 1e6 for milliseconds`,
        withContext: `Generate a Perfetto SQL query for: {question}

Context:
- Package: {package}
- Time Range: {timeRange}

Rules:
- Use ONLY existing Perfetto tables
- Output ONLY one SQL query wrapped in \`\`\`sql ... \`\`\` (no explanation)`,
        withSchema: `Generate a Perfetto SQL query for: {question}

Available Schema:
{schema}

Rules:
- Use ONLY the tables listed above
- Output ONLY one SQL query wrapped in \`\`\`sql ... \`\`\` (no explanation)`,
    },
    // Analysis Prompts
    ANALYSIS_SUMMARY: {
        basic: `Summarize the analysis results:
{results}

Include:
1. Key findings
2. Performance impact
3. Recommendations`,
        detailed: `Provide a detailed performance analysis:
{results}

Include:
1. Executive Summary
2. Detailed Findings
3. Root Cause Analysis
4. Recommendations
5. SQL queries for further investigation
6. Missing Data and Uncertainty

Quality constraints:
- Every finding MUST include evidence in this format: table[field]=value
- If data is insufficient, explicitly say "unable_to_determine"
- Action items must include owner, priority, and verification steps`,
    },
    // Error Recovery Prompts
    ERROR_FIX: {
        syntax: `Fix this SQL syntax error:
{sql}
Error: {error}`,
        noResults: `This query returned no results:
{sql}

Suggest an alternative approach.`,
    },
};
//# sourceMappingURL=prompts.js.map