Files
Profa 0a7a1c8b09 feat(release): v2.6.2 - Phase 2 LLM Independence & Cost Optimization
## Added
- ML-Based Complexity Classification with 4-level task analysis
- Model Capability Registry with 25+ December 2025 models
  - Claude Opus 4.5, DeepSeek R1/V3, GPT-5, Gemini 2.5 Pro
- Cost Optimization Strategies (PromptCompressor, Caching, Batching)
- HybridRouter integration with complexity-based model selection

## Changed
- README.md Quick Start section (user-focused, no version numbers)
- .env.example rewritten for Phase 2 features
- CONTRIBUTORS.md updated with @fndlalit's n8n contribution (#151)

## Fixed
- HybridRouter RuVector test isolation
- Compression benchmarks with honest expectations (2-8% vs false 50%)

## New Tests
- ComplexityClassifier, ModelCapabilityRegistry, CompressionBenchmark
- HybridRouter integration, model selection, and cost tracking tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 15:24:41 +00:00

167 lines
4.1 KiB
Bash

# Agentic QE Fleet Environment Configuration
# Copy this file to .env and fill in your values
# ============================================
# LLM PROVIDER CONFIGURATION (Phase 2)
# ============================================
# Primary LLM Provider API Keys
ANTHROPIC_API_KEY=sk-ant-api03-your-key-here
OPENROUTER_API_KEY=sk-or-v1-your-key-here
# Optional: Additional LLM Providers
# GROQ_API_KEY=gsk_your-key-here
# OPENAI_API_KEY=sk-proj-your-key-here
# GOOGLE_API_KEY=AIzaSy-your-key-here
# LLM Provider Selection
# LLM_PROVIDER: auto, anthropic, openrouter, groq, ruvllm
# LLM_MODE: hybrid (uses HybridRouter), cloud-only, local-only
LLM_PROVIDER=auto
LLM_MODE=hybrid
# ============================================
# RUVECTOR SELF-LEARNING
# Enables intelligent caching and pattern learning
# ============================================
# Enable RuVector integration (true/false)
AQE_RUVECTOR_ENABLED=true
# RuVector service URL (for HTTP API)
AQE_RUVECTOR_URL=http://localhost:8080
# RuVector PostgreSQL connection (for vector storage)
RUVECTOR_HOST=localhost
RUVECTOR_PORT=5432
RUVECTOR_DATABASE=ruvector_db
RUVECTOR_USER=ruvector
RUVECTOR_PASSWORD=ruvector
# ============================================
# PATTERN STORE (Self-Learning Patterns)
# Stores and retrieves QE patterns for learning
# ============================================
AQE_PATTERN_STORE_ENABLED=true
AQE_PATTERN_DUAL_WRITE=true
AQE_PATTERN_STORE_PATH=./data/qe-patterns.ruvector
AQE_PATTERN_AUTO_SYNC=true
# ============================================
# CODE INTELLIGENCE
# Knowledge graph and semantic code search
# ============================================
# Ollama for local embeddings
OLLAMA_URL=http://localhost:11434
# PostgreSQL for knowledge graph (can share with RuVector)
PGHOST=localhost
PGPORT=5432
PGDATABASE=ruvector_db
PGUSER=ruvector
PGPASSWORD=ruvector
# ============================================
# N8N WORKFLOW INTEGRATION
# For n8n workflow testing agents
# ============================================
# N8N_API_KEY=your-n8n-api-key
# N8N_BASE_URL=https://your-instance.app.n8n.cloud/
# ============================================
# AQE FLEET CONFIGURATION
# ============================================
# Fleet identification
FLEET_ID=agentic-qe-fleet
FLEET_NAME="Autonomous Quality Engineering Fleet"
# Agent limits
AQE_MAX_AGENTS=10
MAX_AGENTS=20
# Provider preference for agents
AQE_DEFAULT_PROVIDER=claude
# Timing configuration
HEARTBEAT_INTERVAL=30000
TASK_TIMEOUT=600000
# Agent pool sizing
TEST_EXECUTOR_COUNT=3
QUALITY_ANALYZER_COUNT=2
PERFORMANCE_TESTER_COUNT=1
# ============================================
# STORAGE CONFIGURATION
# ============================================
# AQE data paths
AQE_MEMORY_PATH=.aqe/memory
AQE_LOG_PATH=.aqe/logs
# Fleet database (SQLite for simple setup)
DB_TYPE=sqlite
DB_FILENAME=./data/fleet.db
# For PostgreSQL (production recommended):
# DB_TYPE=postgres
# DB_HOST=localhost
# DB_PORT=5432
# DB_NAME=agentic_qe
# DB_USER=username
# DB_PASSWORD=password
# ============================================
# LOGGING CONFIGURATION
# ============================================
# Log level: error, warn, info, debug
LOG_LEVEL=info
AQE_LOG_LEVEL=info
# Log format: json, text
LOG_FORMAT=json
# Log outputs: console, file (comma-separated)
LOG_OUTPUTS=console,file
# ============================================
# API SERVER CONFIGURATION
# ============================================
API_PORT=3000
API_HOST=0.0.0.0
API_CORS=true
# Rate limiting
RATE_LIMIT_WINDOW=900000
RATE_LIMIT_MAX=100
# ============================================
# SECURITY CONFIGURATION
# ============================================
# Generate secure values for production!
# API_KEY=your-secure-api-key
# JWT_SECRET=your-secure-jwt-secret
ENCRYPTION_ALGORITHM=aes-256-gcm
ENCRYPTION_KEY_LENGTH=32
# ============================================
# DEVELOPMENT & DEBUGGING
# ============================================
# Set to development for verbose output
NODE_ENV=development
# Enable debug mode (true/false)
# DEBUG=true
# Configuration file override (optional)
# CONFIG_FILE=./config/fleet.yaml