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

# Virtual environments
venv/
env/
ENV/
.venv/
.env/

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Logs
logs/
*.log
*.log.*

# Database - 重要！
*.db
*.sqlite
*.sqlite3
database/*.db

# WeChat ClawBot (OpenClaw) — 状态与密钥不入库
services/wechat-clawbot/state/
services/wechat-clawbot/config/gateway.env

# Config files with sensitive data
.env
config.local.*
*.key
*.pem
log_config.json

# Node.js - 重要！
node_modules/
frontend/node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Build outputs
build/
dist/
*.tgz
*.tar.gz

# Temporary files
tmp/
temp/
*.tmp
*.temp

# PID files
pids/
*.pid

# Cache files
cache/
*.cache
.cache/
frontend/node_modules/.cache/

# Generated reports (PDFs, docx) — but keep the shared Python modules
reports/*
!reports/__init__.py
!reports/pdf_template.py
!reports/view.html
!reports/*.py
backend/reports/

# Third-party libraries
ta-lib/

# Backup files
*.bak
*.backup
*_backup_*
*_archived_*

# Test output files (not test source code)
*.test.log
test_output/

# Agent framework generated files
agent_development/agent_run.log
agent_development/agent.pid
agent_development/parallel_run.log
agent_development/parallel.pid
agent_development/worker-*.log
agent_development/worker-*.pid
agent_development/worktrees/
agent_development/tasks.lock
agent_development/merge.lock
agent_development/.merge_ok_*
agent_development/.merge_conflict_*

# Service runtime data
services/sagax-agent/data/
services/openclaw/bots/*/data/chat_sessions.json
services/openclaw/bots/*/data/audit.jsonl

# Claude Code local config
.claude/*
# ... but commit the shared hook config + slash commands (team-wide)
!.claude/settings.json
!.claude/commands
!.claude/commands/**

# OpenClaw local workspace/runtime
.openclaw/

# Python caches / test caches across subprojects
.pytest_cache/
**/.pytest_cache/
.mypy_cache/
**/.mypy_cache/
.ruff_cache/
**/.ruff_cache/
.coverage
.coverage.*
htmlcov/

# Frontend / Node build caches
frontend/build/
services/worldmonitor/app/.next/
services/worldmonitor/app/dist/
services/worldmonitor/app/.vercel/

# SDK / packaging artifacts
sdk/build/
sdk/dist/

# Local runtime / scratch artifacts
*.local.json
*.local.yaml
*.local.yml
