husteno-o feat: code review system, type safety, error handling, AI provider fallback · 9/9/2026
5ccaeae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# ==============================================================================
# DevPulse (RavenDev) Environment Variables Template
# ==============================================================================
NODE_ENV=development
LOG_LEVEL=info
# Optional HTTP API server (Disabled by default: pure Discord bot mode with zero open ports)
# Set to 'true' only if deploying to hosting platforms (Render/Fly.io) requiring an HTTP health check port
ENABLE_HTTP_API=false
PORT=3000
HOST=0.0.0.0
# ------------------------------------------------------------------------------
# 1. Discord Bot Configuration
# ------------------------------------------------------------------------------
# Obtain from https://discord.com/developers/applications
DISCORD_TOKEN=your_discord_bot_token_here
DISCORD_CLIENT_ID=your_discord_application_id_here
DISCORD_PUBLIC_KEY=your_discord_public_key_here
# ------------------------------------------------------------------------------
# 2. Turso (libSQL) Database Configuration
# ------------------------------------------------------------------------------
# Local development default: file:devpulse.db
# Production Turso: libsql://your-db-org.turso.io
TURSO_DATABASE_URL=file:devpulse.db
TURSO_AUTH_TOKEN=your_turso_auth_token_here
# ------------------------------------------------------------------------------
# 3. Upstash Redis Cache & Distributed Locks
# ------------------------------------------------------------------------------
# Obtain from https://console.upstash.com/
# If omitted, DevPulse automatically defaults to high-performance in-memory cache
UPSTASH_REDIS_REST_URL=https://your-upstash-instance.upstash.io
UPSTASH_REDIS_REST_TOKEN=your_upstash_rest_token_here
# ------------------------------------------------------------------------------
# 4. GitHub Integration
# ------------------------------------------------------------------------------
# Optional Personal Access Token to increase GitHub API rate limits (from 60 to 5,000 req/hr)
GITHUB_TOKEN=ghp_your_github_personal_access_token_here
GITHUB_CLIENT_ID=your_github_oauth_client_id_here
GITHUB_CLIENT_SECRET=your_github_oauth_client_secret_here
# ------------------------------------------------------------------------------
# 5. Optional AI Layer (Defaults to free spark-1.3 + longcat-2.0:free fallback)
# ------------------------------------------------------------------------------
# Provider options:
# spark = OpenCode Zen (spark-1.3) → Command Code (longcat-2.0:free) fallback
# opencode = OpenCode Zen only (spark-1.3, free, no API key needed)
# commandcode = Command Code API only (longcat-2.0:free, requires API key)
# openai = OpenAI (requires AI_API_KEY)
# anthropic = Anthropic (requires AI_API_KEY)
# gemini = Google Gemini (requires AI_API_KEY)
# none = AI disabled (deterministic heuristics only)
AI_PROVIDER=spark
# API key for Command Code (required for spark/commandcode providers)
# Get your key at: https://commandcode.ai/studio
AI_API_KEY=your_command_code_api_key_here
# ------------------------------------------------------------------------------
# 7. Encryption & Security
# ------------------------------------------------------------------------------
# ENCRYPTION_KEY must be a strong, random string used to derive the AES-256-GCM key
# Generate with: openssl rand -hex 32
ENCRYPTION_KEY=your_strong_encryption_key_here
ENCRYPTION_SALT=your_salt_here
# ------------------------------------------------------------------------------
# 6. Security & Rate Limiting
# ------------------------------------------------------------------------------
ENABLE_SECRET_SCANNING=true
RATE_LIMIT_USER_MAX=10
RATE_LIMIT_USER_WINDOW_SEC=10