Lines 637-677javascript
638 console.log(bold(cyan(' Multi-Agent Monorepo Template')));
639 console.log(dim(` Task Launcher - ${config.projectName}\n`));
642 // ── Entry guards ──────────────────────────────────────────────────────────────
644 guards.validateConfig(config, ROOT);
645 const tracking = guards.loadTracking(ROOT, config);
647 // ── Claude Code CLI gate ───────────────────────────────────────────────────
649 const checkClaudeAuth = () => {
650 try { execSync('claude --version', { stdio: 'pipe' }); return true; } catch { return false; }
653 const installClaudeCode = () => {
654 const frames = ['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];
656 const spin = setInterval(() => process.stdout.write(`\r ${frames[i++ % frames.length]} Installing Claude Code CLI...`), 60);
658 execSync('npm install -g @anthropic-ai/claude-code', { stdio: 'pipe' });
659 clearInterval(spin);
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
core/workflow/agent.jsView on unpkg · L657 660 process.stdout.write('\r' + ' '.repeat(40) + '\r');
661 console.log(` ${green('✓')} Claude Code CLI installed\n`);
665 process.stdout.write('\r' + ' '.repeat(40) + '\r');
666 console.log(` ${red('✖')} Installation failed - try manually: ${cyan('npm install -g @anthropic-ai/claude-code')}\n`);
671 const runClaudeLogin = () => {
672 const { spawnSync } = require('child_process');
673 console.log(`\n ${dim('Running claude login...')}\n`);
674 const result = spawnSync('claude', ['login'], { stdio: 'inherit' });
675 return result.status === 0;