Lines 647-687javascript
648 console.log(bold(cyan(' Multi-Agent Monorepo Template')));
649 console.log(dim(` Task Launcher - ${config.projectName}\n`));
652 // ── Entry guards ──────────────────────────────────────────────────────────────
654 guards.validateConfig(config, ROOT);
655 const tracking = guards.loadTracking(ROOT, config);
657 // ── Claude Code CLI gate ───────────────────────────────────────────────────
659 const checkClaudeAuth = () => {
660 try { execSync('claude --version', { stdio: 'pipe' }); return true; } catch { return false; }
663 const installClaudeCode = () => {
664 const frames = ['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];
666 const spin = setInterval(() => process.stdout.write(`\r ${frames[i++ % frames.length]} Installing Claude Code CLI...`), 60);
668 execSync('npm install -g @anthropic-ai/claude-code', { stdio: 'pipe' });
669 clearInterval(spin);
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
core/workflow/agent.jsView on unpkg · L667 670 process.stdout.write('\r' + ' '.repeat(40) + '\r');
671 console.log(` ${green('✓')} Claude Code CLI installed\n`);
675 process.stdout.write('\r' + ' '.repeat(40) + '\r');
676 console.log(` ${red('✖')} Installation failed - try manually: ${cyan('npm install -g @anthropic-ai/claude-code')}\n`);
681 const runClaudeLogin = () => {
682 const { spawnSync } = require('child_process');
683 console.log(`\n ${dim('Running claude login...')}\n`);
684 const result = spawnSync('claude', ['login'], { stdio: 'inherit' });
685 return result.status === 0;