feat: 添加全局环境变量加载功能并更新配置说明

This commit is contained in:
catlog22
2026-01-03 15:14:45 +08:00
parent f674b90a62
commit bab5625123
6 changed files with 422 additions and 21 deletions

View File

@@ -1,10 +1,15 @@
# CodexLens Environment Configuration
# Copy this file to .codexlens/.env and fill in your values
#
# Priority order:
# 1. Environment variables (already set in shell)
# 2. .codexlens/.env (workspace-local, this file)
#
# Configuration locations (copy to one of these):
# - ~/.codexlens/.env (global, applies to all projects)
# - project/.codexlens/.env (workspace-local)
# - project/.env (project root)
#
# Priority order (later overrides earlier):
# 1. Environment variables (already set in shell) - highest
# 2. .codexlens/.env (workspace-local)
# 3. .env (project root)
# 4. ~/.codexlens/.env (global) - lowest
# ============================================
# RERANKER Configuration