capsule-ai-cli
Version:
The AI Model Orchestrator - Intelligent multi-model workflows with device-locked licensing
48 lines • 1.55 kB
JavaScript
import chalk from 'chalk';
const WELCOME_TIPS = [
{
number: 1,
text: 'Ask questions, edit files, or run commands.',
command: 'capsule "explain this code"'
},
{
number: 2,
text: 'Use Model Fusion™ to combine AI power levels!',
command: 'capsule fusion "analyze and optimize this"'
},
{
number: 3,
text: 'Type /help to unlock your full potential.',
command: '/help'
}
];
export function displayWelcomeScreen() {
console.log(chalk.dim('Tips for getting started:'));
WELCOME_TIPS.forEach(tip => {
console.log(chalk.gray(`${tip.number}.`) +
' ' +
chalk.white(tip.text));
});
console.log();
displayExampleCommand();
}
function displayExampleCommand() {
console.log(chalk.dim('Example command:'));
console.log(chalk.gray('>') + ' ' +
chalk.cyan('capsule') + ' ' +
chalk.yellow('"write a function to calculate fibonacci numbers"'));
console.log();
}
export function displayInteractiveWelcome() {
const frames = ['◐', '◓', '◑', '◒'];
let currentFrame = 0;
const spinner = setInterval(() => {
process.stdout.write('\r' + chalk.cyan(frames[currentFrame]) + ' Loading Capsule CLI...');
currentFrame = (currentFrame + 1) % frames.length;
}, 100);
setTimeout(() => {
clearInterval(spinner);
process.stdout.write('\r' + chalk.green('✓') + ' Capsule CLI ready! \n\n');
}, 2000);
}
//# sourceMappingURL=welcome.js.map