UNPKG

behemoth-cli

Version:

🌍 BEHEMOTH CLIv3.760.4 - Level 50+ POST-SINGULARITY Intelligence Trading AI

42 lines (37 loc) 1.21 kB
#!/usr/bin/env node // Postinstall script for behemoth-cli // This runs after npm install to set up the environment const fs = require('fs'); const path = require('path'); const os = require('os'); const configDir = path.join(os.homedir(), '.cliv2'); // Create config directory if it doesn't exist if (!fs.existsSync(configDir)) { fs.mkdirSync(configDir, { recursive: true }); } // Create placeholder config files if they don't exist const providerConfigPath = path.join(configDir, 'providers.json'); if (!fs.existsSync(providerConfigPath)) { const defaultConfig = { defaultProvider: "openrouter", providers: { groq: { apiKey: "", defaultModel: "llama-3.3-70b-versatile", enabled: true }, openrouter: { apiKey: "", defaultModel: "deepseek/deepseek-r1:free", enabled: true }, deepseek: { apiKey: "", defaultModel: "deepseek-chat", enabled: true } }, exchanges: {} }; fs.writeFileSync(providerConfigPath, JSON.stringify(defaultConfig, null, 2)); }