UNPKG

cortexweaver

Version:

CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate

173 lines (145 loc) 3.96 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.EnvTemplates = void 0; const fs = __importStar(require("fs")); const path = __importStar(require("path")); /** * EnvTemplates handles environment configuration files */ class EnvTemplates { static async createEnvTemplate(projectRoot) { const envTemplatePath = path.join(projectRoot, '.env.example'); const envTemplate = `# CortexWeaver Environment Configuration # AI Model API Keys CLAUDE_API_KEY=your_claude_api_key_here GEMINI_API_KEY=your_gemini_api_key_here # GitHub Integration (optional) GITHUB_TOKEN=your_github_personal_access_token_here # Neo4j Database Configuration (for MCP) NEO4J_URI=bolt://localhost:7687 NEO4J_USERNAME=neo4j NEO4J_PASSWORD=cortexweaver # Optional: Custom model endpoints # CLAUDE_API_URL=https://api.anthropic.com # GEMINI_API_URL=https://generativelanguage.googleapis.com # Debugging and Development DEBUG=false LOG_LEVEL=info `; fs.writeFileSync(envTemplatePath, envTemplate); } static async createGitIgnoreTemplate(projectRoot) { const gitIgnorePath = path.join(projectRoot, '.gitignore'); if (fs.existsSync(gitIgnorePath)) { return; // Don't overwrite existing .gitignore } const gitIgnoreContent = `# CortexWeaver Project .gitignore # Dependencies node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* # Environment variables .env .env.local .env.development.local .env.test.local .env.production.local # Build outputs dist/ build/ *.tsbuildinfo # IDE and editor files .vscode/ .idea/ *.swp *.swo *~ # OS generated files .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db # CortexWeaver specific .cortex-history/ .cortex-cache/ cognitive-canvas-data/ # Logs logs/ *.log # Coverage directory used by tools like istanbul coverage/ *.lcov # nyc test coverage .nyc_output # Dependency directories jspm_packages/ # Optional npm cache directory .npm # Optional REPL history .node_repl_history # Output of 'npm pack' *.tgz # Yarn Integrity file .yarn-integrity # parcel-bundler cache (https://parceljs.org/) .cache .parcel-cache # next.js build output .next # nuxt.js build output .nuxt # vuepress build output .vuepress/dist # Serverless directories .serverless # FuseBox cache .fusebox/ # DynamoDB Local files .dynamodb/ # TernJS port file .tern-port # Neo4j data (if running locally) neo4j-data/ `; fs.writeFileSync(gitIgnorePath, gitIgnoreContent); } } exports.EnvTemplates = EnvTemplates; //# sourceMappingURL=env-templates.js.map