/**
 * Basic SpecVerse AI API Usage
 * Demonstrates the prompt-template actions (`getTemplate` + `fillTemplate`).
 *
 * (The v3.1-era `suggestLibraries`/`enhancePrompt` library-recommendation
 * actions were retired — they read a static `libs/catalog.yaml` that no longer
 * ships. The replacement is a fresh live-registry suggestion feature; see
 * TODO #87 + docs/proposals/in-progress/2026-05-27-AI-LIBRARY-SUGGESTION-FROM-REGISTRY.md.)
 */
import { getTemplate, fillTemplate, } from '../index.js';
async function demonstrateBasicUsage() {
    console.log('🚀 SpecVerse AI API - Basic Usage Examples\n');
    const requirements = {
        requirements: 'blog platform with user accounts and content management',
        scale: 'business',
        framework: 'react',
        technology_preferences: ['postgresql', 'oauth'],
    };
    // Action 1: Get Raw Template
    console.log('📄 Action 1: Raw Template');
    console.log('='.repeat(40));
    const template = await getTemplate('create');
    console.log(`Name: ${template.name}`);
    console.log(`Variables: ${template.variables?.join(', ') || 'none'}`);
    console.log('✅ Template retrieved\n');
    // Action 2: Fill Template
    console.log('📝 Action 2: Parameter-Filled Template');
    console.log('='.repeat(40));
    const filled = await fillTemplate('create', requirements);
    console.log(`System prompt length: ${filled.systemPrompt.length} chars`);
    console.log(`User prompt length: ${filled.userPrompt.length} chars`);
    console.log('✅ Template filled with parameters\n');
    console.log('🎯 Copy the filled prompt to any AI interface for free execution.');
}
// Run examples
async function runExamples() {
    try {
        await demonstrateBasicUsage();
        console.log('\n🎉 All examples completed successfully!');
    }
    catch (error) {
        console.error('❌ Example failed:', error);
        process.exit(1);
    }
}
// Export for use as module
export { demonstrateBasicUsage, runExamples };
// Run if executed directly
if (import.meta.url === `file://${process.argv[1]}`) {
    runExamples();
}
//# sourceMappingURL=basic-usage.js.map