diff --git a/.env.example b/.env.example index 3458064..9324b2c 100644 --- a/.env.example +++ b/.env.example @@ -272,8 +272,14 @@ MOMO_AI_AUTOMATION_SMOKE_HISTORY_LIMIT=200 # [選填] OpenClaw Telegram bot OPENCLAW_BOT_TOKEN=your_openclaw_bot_token_here +OPENCLAW_BOT_USERNAME=@OpenClawAwoooI_Bot OPENCLAW_GROUP_ID=-1003940688311 OPENCLAW_ALLOWED_USERS= +# [預設 1] 舊行為:空白名單仍允許私訊;正式環境建議設 0 並填 OPENCLAW_ALLOWED_USERS +OPENCLAW_ALLOW_PRIVATE_WITHOUT_WHITELIST=1 +# [預設 OFF] ADR-019 agent dispatch;啟用後只讓白名單 cmd 轉 NL agent 處理 +OPENCLAW_AGENT_DISPATCH=0 +OPENCLAW_AGENT_DISPATCH_CMDS=sales,top,vendor # [選填] AI provider 選擇與外部資料源;Gemini 不可設為預設,只能當 Ollama 備援 AI_PROVIDER=ollama @@ -286,6 +292,10 @@ COST_THROTTLE_ENABLED=false RAG_ENABLED=false PPT_VISION_ENABLED=false DEEPSEEK_DIRECT_ENABLED=false +DEEPSEEK_API_KEY= +DEEPSEEK_BASE_URL=https://api.deepseek.com/v1 +DEEPSEEK_MODEL=deepseek-chat +DEEPSEEK_TIMEOUT=60 # ────────────────────────────────────────────────────────────────────────── # Ollama / MCP / 密碼政策 diff --git a/tests/test_phase3f_cleanup_contracts.py b/tests/test_phase3f_cleanup_contracts.py index 13dc862..1457c40 100644 --- a/tests/test_phase3f_cleanup_contracts.py +++ b/tests/test_phase3f_cleanup_contracts.py @@ -47,7 +47,11 @@ def test_env_example_documents_runtime_and_ai_automation_variables(): "AUTO_FIX_ENABLED", "CODE_REVIEW_AUTO_FIX_ENABLED", "COST_THROTTLE_ENABLED", + "DEEPSEEK_API_KEY", + "DEEPSEEK_BASE_URL", "DEEPSEEK_DIRECT_ENABLED", + "DEEPSEEK_MODEL", + "DEEPSEEK_TIMEOUT", "ELEPHANT_ALPHA_ALLOWED_SSH_HOSTS", "ELEPHANT_ALPHA_URL", "EMBEDDING_HOST", @@ -76,6 +80,9 @@ def test_env_example_documents_runtime_and_ai_automation_variables(): "N8N_WEBHOOK_BASE_URL", "NEMOTRON_OLLAMA_TIMEOUT", "OLLAMA_EMBED_TIMEOUT", + "OPENCLAW_AGENT_DISPATCH", + "OPENCLAW_AGENT_DISPATCH_CMDS", + "OPENCLAW_ALLOW_PRIVATE_WITHOUT_WHITELIST", "OPENCLAW_QA_OLLAMA_FIRST", "OPENCLAW_QA_OLLAMA_HOST", "OPENCLAW_QA_OLLAMA_MODEL",