# ========== 服务配置 ==========
ENV=development
LOG_LEVEL=debug

# ========== 数据库 ==========
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=cyrene
POSTGRES_PASSWORD=cyrene_pass
POSTGRES_DB=cyrene_ai
POSTGRES_SSLMODE=disable

# ========== LLM API ==========
LLM_API_URL=https://api.openai.com/v1
LLM_API_KEY=sk-xxxxx
LLM_MODEL=gpt-4o
LLM_FALLBACK_MODEL=gpt-4o-mini

# ========== LLM 模型路由配置 (可选，优先于 LLM_* 环境变量) ==========
# MODELS_CONFIG_PATH=./models.json

# ========== 后台思考 ==========
ENABLE_BACKGROUND_THINKING=true
# --- 深度思考（复杂） ---
THINK_INTERVAL_SEC=300
THINK_MIN_GAP_SEC=30
THINK_OFFLINE_GAP_SEC=600
THINK_SILENCE_TIMEOUT_SEC=120
THINK_POST_CHAT_DELAY_SEC=5
# --- 轻量思考（简单） ---
LIGHT_THINK_ENABLED=true
LIGHT_THINK_INTERVAL_SEC=60
# --- 主动消息 ---
PROACTIVE_MSG_MIN_GAP_SEC=1800
# --- 思考调度 (可选) ---
# THINKING_SCHEDULE_PATH=./thinking_schedule.json

# ========== 平台接入 ==========
# --- 平台观察 ---
PLATFORM_CHANNELS=obv11:group:群号
PLATFORM_THINK_INTERVAL_SEC=600
# --- 平台桥接 ---
PLATFORM_BRIDGE_URL=http://localhost:8095

# ========== 后端微服务地址 ==========
GATEWAY_URL=http://localhost:8080
MEMORY_SERVICE_URL=http://localhost:8091
IOT_SERVICE_URL=http://localhost:8083
# IOT_DEBUG_SERVICE_URL=http://localhost:8083
AI_CORE_PORT=8081

# ========== 知识库 & 人格 ==========
PERSONA_DIR=./internal/persona
KNOWLEDGE_DIR=./data/knowledge

# ========== 工作目录 ==========
DATA_DIR=./data

# ========== 搜索 (SearXNG) ==========
# SEARXNG_URL=http://localhost:8888

# ========== DashScope STT (语音识别) ==========
DASHSCOPE_API_KEY=sk-xxxxx
DASHSCOPE_STT_MODEL=qwen3-asr-flash-2026-02-10
DASHSCOPE_STT_REALTIME_MODEL=qwen3-asr-flash-realtime

# ========== TTS/ASR (本地回退) ==========
TTS_PROVIDER=edge-tts
TTS_VOICE=zh-CN-XiaoxiaoNeural
ASR_PROVIDER=faster-whisper
ASR_MODEL=medium

# ========== 管理员账户 ==========
ADMIN_USERNAME=admin
ADMIN_PASSWORD=your-admin-password
ADMIN_NICKNAME=管理员

# ========== 注册开关 ==========
REGISTRATION_ENABLED=true

# ========== JWT ==========
JWT_SECRET=your-secret-key-change-in-production
JWT_EXPIRY_HOURS=720

# ========== 内部服务认证 ==========
INTERNAL_SERVICE_TOKEN=your-internal-token-change-in-production

# ========== 完整 OS 环境 (供 os_exec/os_file/os_system 工具) ==========
HOST_EXEC_BACKEND=wsl
WSL_DISTRO=Ubuntu-22.04
WSL_USER=cyrene
WSL_USER_PASSWORD=cyrene
SANDBOX_CONTAINER=cyrene-sandbox
SANDBOX_IMAGE=ubuntu:22.04
HOST_EXEC_MAX_TIMEOUT=300

# ========== CORS 跨域白名单 (逗号分隔) ==========
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:5199,http://localhost:3000

# ========== Webhook (第三方平台接入) ==========
WEBHOOK_API_KEY=your-webhook-api-key

# ========== 时区 ==========
TZ=Asia/Shanghai

# ========== Docker 反向代理 ==========
CADDY_HTTP_PORT=80
CADDY_HTTPS_PORT=443
DOMAIN=
ACME_EMAIL=admin@example.com

# ========== 管理控制台 (ethend) ==========
ETHEND_PORT=9090

# ========== WebSocket ==========
WS_MAX_CONNECTIONS=1000
SESSION_IDLE_TIMEOUT_MIN=30
