UNPKG

@every-env/cli

Version:

Multi-agent orchestrator for AI-powered development workflows

134 lines (113 loc) 4.98 kB
export const defaultConfig = { "$schema": "https://every-env.com/schemas/every-env.json", "version": "1.0", "docs": { "defaultCommand": `${process.env.HOME}/.claude/local/claude`, "patterns": [ { "name": "architecture", "description": "System architecture documentation", "agents": [{ "id": "overview", "promptFile": ".every-env/prompts/architecture.md", "output": "docs/ARCHITECTURE.md" }] }, { "name": "models", "description": "Data model documentation", "match": { "files": ["app/models/**/*.rb", "db/schema.rb"], "exclude": ["app/models/concerns/**", "**/*_test.rb", "**/*_spec.rb"] }, "agents": [{ "id": "model-docs", "promptFile": ".every-env/prompts/models.md", "output": "docs/models/README.md" }] }, { "name": "api", "description": "API endpoint documentation", "match": { "files": ["app/controllers/**/*.rb", "config/routes.rb"], "exclude": ["app/controllers/concerns/**", "**/*_test.rb"] }, "agents": [{ "id": "api-docs", "promptFile": ".every-env/prompts/api.md", "output": "docs/api/README.md" }] }, { "name": "dependencies", "description": "Dependency documentation", "match": { "files": ["Gemfile", "package.json", "requirements.txt"], "content": { "regex": "gem ['\"]([^'\"]+)['\"]", "captureGroup": 1, "exclude": ["rails", "bundler", "rake", "puma", "bootsnap"] } }, "agents": [{ "id": "dependency-analysis", "promptFile": ".every-env/prompts/dependencies.md", "outputPattern": "docs/dependencies/{name}.md", "forEach": "match" }] } ] } }; export const defaultPrompts = { "prompts/architecture.md": `# Document System Architecture Analyze this codebase and create comprehensive architecture documentation. ## Instructions 1. **Overview**: Describe the system's purpose and high-level architecture 2. **Core Components**: Identify and document major components and their responsibilities 3. **Data Flow**: Explain how data flows through the system 4. **Key Patterns**: Document architectural patterns and design decisions 5. **Technology Stack**: List and explain technology choices ## Output Create a well-structured markdown document that serves as the primary architectural reference. Save to: {{ output }}`, "prompts/models.md": `# Document Data Models Analyze the data models and database schema to create comprehensive documentation. ## Instructions 1. **Model Overview**: List all models and their primary purpose 2. **Relationships**: Document associations between models 3. **Key Attributes**: Highlight important fields and their validation rules 4. **Business Logic**: Explain key methods and scopes 5. **Database Schema**: Include relevant schema information ## Output Create clear documentation that helps developers understand the data structure. Save to: {{ output }}`, "prompts/api.md": `# Document API Endpoints Analyze controllers and routes to create API documentation. ## Instructions 1. **Endpoint List**: Document all API endpoints with HTTP methods 2. **Request/Response**: Show example requests and responses 3. **Authentication**: Explain authentication requirements 4. **Parameters**: Document required and optional parameters 5. **Error Handling**: List possible error responses ## Output Create API documentation that can be used by frontend developers and API consumers. Save to: {{ output }}`, "prompts/dependencies.md": `# Analyze {{ name }} Dependency Research and document the {{ name }} dependency in this project. ## Context - Project: {{ projectName }} - Current Branch: {{ gitBranch }} - Date: {{ date }} ## Instructions 1. **Purpose**: What problem does {{ name }} solve in this project? 2. **Configuration**: Where and how is it configured? 3. **Usage**: Find examples of how it's used in the codebase 4. **Best Practices**: Document patterns specific to this project 5. **Troubleshooting**: Common issues and solutions ## Output Create a focused guide for working with {{ name }} in this codebase. Save to: {{ output }}` }; //# sourceMappingURL=config.js.map