# ── 环境与密钥（务必保持在最前，误提交 .env 会泄漏 API Key）──────────────────
.env
.env.*
!.env.example

# ── Python ────────────────────────────────────────────────────────────────────
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
/parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# ── 虚拟环境 ──────────────────────────────────────────────────────────────────
.venv/
.wheel-test/
venv/
env/
ENV/

# ── 测试与工具缓存 ────────────────────────────────────────────────────────────
.pytest_cache/
.ruff_cache/
.mypy_cache/
.tox/
.nox/
.coverage
.coverage.*
htmlcov/
coverage.xml
*.cover

# ── 运行时数据（SQLite 库、日志、agent 工作区）────────────────────────────────
db/*.db
db/*.sqlite
db/*.sqlite3
!db/init/
logs/
*.log
agent_workspace/

# ── 本地配置 ──────────────────────────────────────────────────────────────────
mcp.json
nacos-data/
.gca/
.gca-runtime/
*.sqlite-wal
*.sqlite-shm
*.db-wal
*.db-shm

# ── 编辑器 / 操作系统 ─────────────────────────────────────────────────────────
.idea/
.vscode/
*.swp
*.swo
.DS_Store
Thumbs.db
