UNPKG

context-forge

Version:

AI orchestration platform with autonomous teams, enhancement planning, migration tools, 25+ slash commands, checkpoints & hooks. Multi-IDE: Claude, Cursor, Windsurf, Cline, Copilot

67 lines 3.73 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.runPrompts = runPrompts; const projectInfo_1 = require("./projectInfo"); const ideSelection_1 = require("./ideSelection"); const prdInput_1 = require("./prdInput"); const techStack_1 = require("./techStack"); const features_1 = require("./features"); const projectConfig_1 = require("./projectConfig"); const checkpointConfig_1 = require("./checkpointConfig"); const chalk_1 = __importDefault(require("chalk")); async function runPrompts(aiSuggestions) { console.log(chalk_1.default.blue.bold('\n🧞\u200d♂️ Interactive Setup Wizard')); console.log(chalk_1.default.gray("Let's configure your project step by step. This will take about 2-3 minutes.\n")); // Show AI suggestions overview if available if (aiSuggestions && aiSuggestions.suggestions.length > 0) { console.log(chalk_1.default.yellow('📊 AI Analysis Complete')); console.log(chalk_1.default.gray(`Found ${aiSuggestions.suggestions.length} optimization suggestions (confidence: ${aiSuggestions.confidence}%)`)); console.log(chalk_1.default.gray('These will be integrated into the setup process.\n')); } // Progress indicator console.log(chalk_1.default.cyan('Progress: ') + chalk_1.default.gray('■□□□□□□') + chalk_1.default.gray(' (1/7)\n')); // Step 1: Basic project information const basicInfo = await (0, projectInfo_1.projectInfo)(aiSuggestions); // Progress indicator console.log(chalk_1.default.cyan('Progress: ') + chalk_1.default.gray('■■□□□□□') + chalk_1.default.gray(' (2/7)\n')); // Step 2: IDE selection const targetIDEs = await (0, ideSelection_1.ideSelection)(); // Progress indicator console.log(chalk_1.default.cyan('Progress: ') + chalk_1.default.gray('■■■□□□□') + chalk_1.default.gray(' (3/7)\n')); // Step 3: PRD input const prd = await (0, prdInput_1.prdInput)(); // Progress indicator console.log(chalk_1.default.cyan('Progress: ') + chalk_1.default.gray('■■■■□□□') + chalk_1.default.gray(' (4/7)\n')); // Step 4: Tech stack selection const stack = await (0, techStack_1.techStack)(basicInfo.projectType); // Progress indicator console.log(chalk_1.default.cyan('Progress: ') + chalk_1.default.gray('■■■■■□□') + chalk_1.default.gray(' (5/7)\n')); // Step 5: Feature selection const selectedFeatures = await (0, features_1.features)(basicInfo.projectType); // Progress indicator console.log(chalk_1.default.cyan('Progress: ') + chalk_1.default.gray('■■■■■■□') + chalk_1.default.gray(' (6/7)\n')); // Step 6: Project configuration const config = await (0, projectConfig_1.projectConfig)(); // Progress indicator console.log(chalk_1.default.cyan('Progress: ') + chalk_1.default.gray('■■■■■■■') + chalk_1.default.gray(' (7/7)\n')); // Step 7: Checkpoint configuration (if enabled) let checkpoints = undefined; if (config.extras.checkpoints) { checkpoints = await (0, checkpointConfig_1.checkpointConfig)(basicInfo.projectType); } console.log(chalk_1.default.green.bold('\n✨ Setup wizard completed successfully!')); console.log(chalk_1.default.gray('All configuration collected. Generating your project files...\n')); return { ...basicInfo, targetIDEs, prd, techStack: stack, features: selectedFeatures, ...config, checkpointConfig: checkpoints, }; } //# sourceMappingURL=index.js.map