Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8d57f46
docs: Auto-update and format models.md
github-actions[bot] May 28, 2025
1200f83
Merge PRs 13-17: Comprehensive AI-Driven CI/CD Development Flow System
codegen-sh[bot] May 28, 2025
e832198
Add comprehensive system analysis and testing suite
codegen-sh[bot] May 28, 2025
9bbb59d
Update src/ai_cicd_system/core/codegen_integrator.js
Zeeeepa May 28, 2025
f4b95e0
Update src/ai_cicd_system/core/task_storage_manager.js
Zeeeepa May 28, 2025
7befcff
Update tests/codegen_integration_test.js
Zeeeepa May 28, 2025
9acbae7
Merge pull request #19 from Zeeeepa/codegen/merge-comprehensive-ai-ci…
Zeeeepa May 28, 2025
b2a473c
feat: Implement real Codegen SDK integration with production-grade fe…
codegen-sh[bot] May 28, 2025
2e904ea
feat: Implement production PostgreSQL database for TaskStorageManager
codegen-sh[bot] May 28, 2025
493726f
feat: Add unified AI CI/CD system scaffolding structure
codegen-sh[bot] May 28, 2025
c928368
feat: Implement comprehensive Component Integration Framework
codegen-sh[bot] May 28, 2025
ab3b6ce
feat: Implement comprehensive Claude Code integration
codegen-sh[bot] May 28, 2025
4319a56
feat: implement AgentAPI middleware for System Orchestrator and Claud…
codegen-sh[bot] May 28, 2025
728c118
🚨 CRITICAL FIX: Remove duplicate TaskStorageManager class definitions
codegen-sh[bot] May 28, 2025
b3a92a7
fix: Update package-lock.json for new dependencies
codegen-sh[bot] May 28, 2025
dc4dfe8
Merge PR #31: Claude Code Integration Implementation
codegen-sh[bot] May 28, 2025
e31df76
fix: restore critical dependencies to prevent system failure
codegen-sh[bot] May 28, 2025
07c8158
Merge PR #29: Component Integration Framework Implementation
codegen-sh[bot] May 28, 2025
f9cb0ae
Merge PR #38: CRITICAL FIX - Remove duplicate TaskStorageManager clas…
codegen-sh[bot] May 28, 2025
e135892
fix: remove non-existent @perplexity-ai/sdk package
codegen-sh[bot] May 28, 2025
9e2843d
Merge PR #28: Production PostgreSQL Database Implementation
codegen-sh[bot] May 28, 2025
64fa8a9
fix: remove non-existent @xai-sdk/sdk package
codegen-sh[bot] May 28, 2025
6c521ca
Merge PR #34: AgentAPI Middleware Implementation
codegen-sh[bot] May 28, 2025
9ee16d0
fix: Remove duplicate TaskStorageManager class definition
codegen-sh[bot] May 28, 2025
dc717a6
resolve: merge conflict in package.json
codegen-sh[bot] May 28, 2025
f54a44e
Merge: Real Codegen SDK Integration Implementation
codegen-sh[bot] May 28, 2025
37abe12
🎯 Phase 1: Database Architecture Consolidation - Zero Redundancy Impl…
codegen-sh[bot] May 29, 2025
c3db1e5
Merge pull request #113 from Zeeeepa/codegen/phase1-database-architec…
Zeeeepa May 29, 2025
88983e8
🎯 PHASE 3 COMPLETE: Final Architectural Analysis & Implementation
codegen-sh[bot] May 29, 2025
34f720a
Merge pull request #114 from Zeeeepa/codegen-bot/phase3-final-archite…
Zeeeepa May 29, 2025
3b64a9f
feat: Consolidated Codegen SDK Integration - PRs #52,54,55,82,86,87
codegen-sh[bot] May 29, 2025
fecd7aa
Merge pull request #117 from Zeeeepa/codegen/phase2-codegen-sdk-conso…
Zeeeepa May 29, 2025
485bad4
Delete scripts/phase3_consolidation_implementation.js
Zeeeepa May 29, 2025
d6ac3cf
feat: Comprehensive PR Analysis & CI/CD Automation System for Claude …
codegen-sh[bot] May 29, 2025
03d02e7
Merge pull request #121 from Zeeeepa/codegen/comprehensive-pr-analysi…
Zeeeepa May 29, 2025
1f954ff
πŸ“Š Complete PR Analysis & Implementation Patterns Research
codegen-sh[bot] May 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
309 changes: 300 additions & 9 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,300 @@
# API Keys (Required for using in any role i.e. main/research/fallback -- see `task-master models`)
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_KEY_HERE
PERPLEXITY_API_KEY=YOUR_PERPLEXITY_KEY_HERE
OPENAI_API_KEY=YOUR_OPENAI_KEY_HERE
GOOGLE_API_KEY=YOUR_GOOGLE_KEY_HERE
MISTRAL_API_KEY=YOUR_MISTRAL_KEY_HERE
OPENROUTER_API_KEY=YOUR_OPENROUTER_KEY_HERE
XAI_API_KEY=YOUR_XAI_KEY_HERE
AZURE_OPENAI_API_KEY=YOUR_AZURE_KEY_HERE
# =============================================================================
# CONSOLIDATED DATABASE ARCHITECTURE CONFIGURATION
# =============================================================================
# Consolidates environment settings from PRs #41,42,53,59,62,64,65,69,70,74,79,81
# Version: 2.0.0 - Zero Redundancy Implementation
# =============================================================================

# =============================================================================
# AI PROVIDER CONFIGURATION
# =============================================================================
ANTHROPIC_API_KEY=your_anthropic_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
XAI_API_KEY=your_xai_api_key_here
PERPLEXITY_API_KEY=your_perplexity_api_key_here
OPENROUTER_API_KEY=your_openrouter_api_key_here
MISTRAL_API_KEY=your_mistral_api_key_here
AZURE_OPENAI_API_KEY=your_azure_openai_api_key_here

# =============================================================================
# CORE DATABASE CONFIGURATION
# =============================================================================
# Primary PostgreSQL connection settings
DB_HOST=localhost
DB_PORT=5432
DB_NAME=codegen-taskmaster-db
DB_USER=software_developer
DB_PASSWORD=password
DB_SSL_MODE=require

# SSL Certificate Configuration (production)
DB_SSL_CA=/path/to/ca-certificate.crt
DB_SSL_CERT=/path/to/client-certificate.crt
DB_SSL_KEY=/path/to/client-key.key

# Test Database Configuration
DB_TEST_NAME=codegen-taskmaster-test-db

# Read Replica Configuration (optional)
DB_READ_HOST=localhost
DB_READ_PORT=5432
DB_READ_USER=software_developer
DB_READ_PASSWORD=password

# =============================================================================
# ADVANCED CONNECTION POOL CONFIGURATION
# =============================================================================
# Basic Pool Settings
DB_POOL_MIN=2
DB_POOL_MAX=20
DB_POOL_IDLE_TIMEOUT=30000
DB_POOL_CONNECTION_TIMEOUT=2000
DB_POOL_ACQUIRE_TIMEOUT=30000
DB_POOL_CREATE_TIMEOUT=30000
DB_POOL_DESTROY_TIMEOUT=5000
DB_POOL_REAP_INTERVAL=1000
DB_POOL_CREATE_RETRY_INTERVAL=200

# Enhanced Pool Settings
DB_POOL_MAX_USES=7500
DB_POOL_MAX_LIFETIME=3600
DB_POOL_TEST_ON_BORROW=true
DB_POOL_TEST_ON_RETURN=true
DB_POOL_TEST_WHILE_IDLE=true

# Load Balancing & Failover
DB_POOL_LOAD_BALANCING=round_robin
DB_POOL_ENABLE_FAILOVER=true
DB_POOL_FAILOVER_TIMEOUT=5000
DB_POOL_MAX_FAILOVER_ATTEMPTS=3

# Workload Profile (oltp|analytics|mixed)
DB_WORKLOAD_PROFILE=mixed

# =============================================================================
# QUERY & PERFORMANCE CONFIGURATION
# =============================================================================
DB_QUERY_TIMEOUT=30000
DB_SLOW_QUERY_THRESHOLD=1000
DB_STATEMENT_TIMEOUT=60000
DB_IDLE_IN_TRANSACTION_TIMEOUT=30000

# Query Cache Settings
DB_ENABLE_QUERY_CACHE=true
DB_QUERY_CACHE_SIZE=100
DB_QUERY_CACHE_TTL=300000
DB_ENABLE_PREPARED_STATEMENTS=true
DB_MAX_PREPARED_STATEMENTS=100

# =============================================================================
# HEALTH CHECK & MONITORING CONFIGURATION
# =============================================================================
DB_HEALTH_CHECK_ENABLED=true
DB_HEALTH_CHECK_INTERVAL=30000
DB_HEALTH_CHECK_TIMEOUT=5000
DB_HEALTH_CHECK_RETRY_ATTEMPTS=3
DB_HEALTH_CHECK_RETRY_DELAY=1000

# Monitoring Settings
DB_MONITORING_ENABLED=true
DB_METRICS_INTERVAL=60000
DB_ALERT_CONNECTION_USAGE=80
DB_ALERT_QUERY_TIME=5000
DB_ALERT_ERROR_RATE=5

# Logging Configuration
DB_LOGGING_ENABLED=true
DB_LOGGING_LEVEL=info
DB_LOG_QUERIES=false
DB_LOG_SLOW_QUERIES=true
DB_LOG_CONNECTIONS=false
DB_LOG_DISCONNECTIONS=false

# =============================================================================
# SECURITY & ENCRYPTION CONFIGURATION
# =============================================================================
# Database Encryption
DB_ENCRYPTION_ENABLED=false
DB_ENCRYPTION_KEY=your_32_character_encryption_key_here
DB_ENCRYPTION_ALGORITHM=aes-256-gcm

# Access Control
ACCESS_CONTROL_ENABLED=true
AUDIT_LOG_CONNECTIONS=false
AUDIT_LOG_QUERIES=false
AUDIT_MASK_SENSITIVE=true

# =============================================================================
# CLOUDFLARE TUNNEL CONFIGURATION
# =============================================================================
# Tunnel Settings
CLOUDFLARE_TUNNEL_ENABLED=false
CLOUDFLARE_TUNNEL_URL=db.codegen-taskmaster.your-domain.com
CLOUDFLARE_TUNNEL_TOKEN=your_cloudflare_tunnel_token
CLOUDFLARE_API_URL=api.codegen-taskmaster.your-domain.com
CLOUDFLARE_HEALTH_URL=health.codegen-taskmaster.your-domain.com

# Cloudflare Metrics
CLOUDFLARE_METRICS_ENABLED=false
CLOUDFLARE_METRICS_ENDPOINT=https://api.cloudflare.com/client/v4/accounts/your-account-id/analytics
CLOUDFLARE_METRICS_TOKEN=your_cloudflare_analytics_token

# Tunnel Connection Settings
TUNNEL_CONNECT_TIMEOUT=30000
TUNNEL_READ_TIMEOUT=60000
TUNNEL_WRITE_TIMEOUT=60000

# Cloudflare Security
CLOUDFLARE_WAF_ENABLED=true
CLOUDFLARE_DDOS_PROTECTION=true
CLOUDFLARE_BOT_MANAGEMENT=false

# =============================================================================
# EXTERNAL SERVICE ACCESS CONFIGURATION
# =============================================================================
EXTERNAL_ACCESS_ENABLED=false
ALLOWED_ORIGINS=https://codegen.sh,https://api.codegen.sh
CODEGEN_API_KEY=your_codegen_api_key
CLAUDE_CODE_API_KEY=your_claude_code_api_key
WEBHOOK_API_KEY=your_webhook_api_key

# Rate Limiting
RATE_LIMITING_ENABLED=true
RATE_LIMIT_RPM=100
RATE_LIMIT_BURST=20

# =============================================================================
# BACKUP & RECOVERY CONFIGURATION
# =============================================================================
# Backup Settings
DB_BACKUP_ENABLED=true
DB_BACKUP_SCHEDULE=0 2 * * *
DB_BACKUP_RETENTION=30
BACKUP_STORAGE_TYPE=local
BACKUP_STORAGE_PATH=./backups

# S3 Backup Configuration
BACKUP_S3_BUCKET=your-backup-bucket
BACKUP_S3_REGION=us-east-1
BACKUP_S3_ACCESS_KEY=your_s3_access_key
BACKUP_S3_SECRET_KEY=your_s3_secret_key

# Backup Encryption
BACKUP_ENCRYPTION_ENABLED=true
BACKUP_ENCRYPTION_KEY=your_backup_encryption_key

# =============================================================================
# MIGRATION CONFIGURATION
# =============================================================================
DB_MIGRATIONS_DIR=./src/database/migrations
DB_MIGRATIONS_TABLE=schema_migrations
DB_MIGRATIONS_SCHEMA=public
DB_AUTO_MIGRATE=false

# =============================================================================
# AGENTAPI CONFIGURATION
# =============================================================================
AGENTAPI_URL=http://localhost:3002
AGENTAPI_WS_URL=ws://localhost:3002/ws
AGENTAPI_TIMEOUT=30000
AGENTAPI_TOKEN=your_agentapi_token

# =============================================================================
# WSL2 & DEVELOPMENT CONFIGURATION
# =============================================================================
WSL2_MAX_INSTANCES=5
WSL2_INSTANCE_TIMEOUT=300000
WSL2_MEMORY_LIMIT=4GB
WSL2_CPU_LIMIT=2 cores
WSL2_DISTRIBUTION=Ubuntu
WSL2_USER=ubuntu
WSL2_WORKING_DIR=/home/ubuntu/workspace

# Claude Code Configuration
CLAUDE_CODE_VERSION=latest
CLAUDE_CODE_TIMEOUT=600000
CLAUDE_CODE_RETRY_ATTEMPTS=3
CLAUDE_CODE_MAX_CONCURRENT=3

# =============================================================================
# TASK MANAGER CONFIGURATION
# =============================================================================
TASK_MANAGER_MAX_CONCURRENT=10
TASK_MANAGER_TIMEOUT=600000
TASK_MANAGER_RETRY_ATTEMPTS=3

# Load Balancer Configuration
LOAD_BALANCER_ALGORITHM=weighted_round_robin
LOAD_BALANCER_HEALTH_CHECK=true
LOAD_BALANCER_MAX_CPU=80
LOAD_BALANCER_MAX_MEMORY=85

# =============================================================================
# WEBHOOK CONFIGURATION
# =============================================================================
GITHUB_WEBHOOK_SECRET=your_github_webhook_secret
LINEAR_WEBHOOK_SECRET=your_linear_webhook_secret

# =============================================================================
# DEVELOPMENT & DEBUGGING CONFIGURATION
# =============================================================================
NODE_ENV=development
DEBUG=false
LOG_LEVEL=info

# Circuit Breaker Configuration
CIRCUIT_BREAKER_THRESHOLD=5
CIRCUIT_BREAKER_TIMEOUT=60000

# External Monitoring
EXTERNAL_MONITORING_ENABLED=false

# =============================================================================
# PERFORMANCE TUNING CONFIGURATION
# =============================================================================
# Memory and CPU limits
MEMORY_LIMIT_MB=4096
UV_THREADPOOL_SIZE=4

# Database-specific performance settings
DB_SHARED_BUFFERS=256MB
DB_EFFECTIVE_CACHE_SIZE=1GB
DB_WORK_MEM=4MB
DB_MAINTENANCE_WORK_MEM=64MB

# =============================================================================
# ALERTING & NOTIFICATION CONFIGURATION
# =============================================================================
ALERT_EMAIL=admin@company.com
ALERT_SLACK_WEBHOOK=your_slack_webhook_url
ALERT_DISCORD_WEBHOOK=your_discord_webhook_url

# Alert Thresholds
ALERT_CPU_THRESHOLD=80
ALERT_MEMORY_THRESHOLD=85
ALERT_DISK_THRESHOLD=90
ALERT_CONNECTION_THRESHOLD=80

# =============================================================================
# FEATURE FLAGS
# =============================================================================
FEATURE_ADVANCED_MONITORING=true
FEATURE_AUTO_SCALING=false
FEATURE_MULTI_TENANT=false
FEATURE_REAL_TIME_SYNC=true
FEATURE_ADVANCED_SECURITY=true

# =============================================================================
# COMPLIANCE & AUDIT CONFIGURATION
# =============================================================================
COMPLIANCE_MODE=standard
AUDIT_RETENTION_DAYS=365
PII_ENCRYPTION_ENABLED=false
GDPR_COMPLIANCE_ENABLED=false
SOC2_COMPLIANCE_ENABLED=false

# =============================================================================
# END OF CONFIGURATION
# =============================================================================

Loading
Loading