UNPKG

a-teams

Version:

a-teams by Worksona - worksona agents and agentic teams in claude.ai. Enterprise-grade multi-agent workflow system with 60+ specialized agents, comprehensive template system, and advanced orchestration capabilities for business, technical, and research ta

72 lines (59 loc) 2.41 kB
#!/usr/bin/env node import { existsSync, mkdirSync, writeFileSync } from 'fs'; import { join, dirname } from 'path'; import { fileURLToPath } from 'url'; import chalk from 'chalk'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); console.log(chalk.cyan(` ╔═══════════════════════════════════════════╗ ║ a-teams Installation Setup ║ ║ by Worksona ║ ╚═══════════════════════════════════════════╝ `)); // Create global config directory if it doesn't exist const homeDir = process.env.HOME || process.env.USERPROFILE; const configDir = join(homeDir, '.a-teams'); if (!existsSync(configDir)) { mkdirSync(configDir, { recursive: true }); console.log(chalk.green('✓ Created a-teams config directory')); } // Create default config file const configFile = join(configDir, 'config.json'); if (!existsSync(configFile)) { const defaultConfig = { version: "2.1.0", installation_date: new Date().toISOString(), default_workflow_path: join(configDir, 'workflows'), agent_cache_path: join(configDir, 'agents'), settings: { auto_update_check: true, verbose_logging: false, default_output_format: "markdown" } }; writeFileSync(configFile, JSON.stringify(defaultConfig, null, 2)); console.log(chalk.green('✓ Created default configuration')); } // Create workflows directory const workflowsDir = join(configDir, 'workflows'); if (!existsSync(workflowsDir)) { mkdirSync(workflowsDir, { recursive: true }); console.log(chalk.green('✓ Created workflows directory')); } // Create agents cache directory const agentsDir = join(configDir, 'agents'); if (!existsSync(agentsDir)) { mkdirSync(agentsDir, { recursive: true }); console.log(chalk.green('✓ Created agents cache directory')); } console.log(chalk.blue(` 🎉 a-teams installation complete! 📚 Getting Started: a-teams --help # Show all commands a-teams init # Initialize project a-teams workflow --list # List available workflows a-teams list # List available agents 📖 Documentation: Check the docs/ folder for guides 🌐 Repository: https://github.com/worksona/a-teams `));