# ===========================
# OS Files
# ===========================
.DS_Store
.DS_Store?
._*
Thumbs.db
ehthumbs.db
Desktop.ini

# ===========================
# Security - Environment & Secrets
# ===========================
# All environment files centralized in .env-files directory
# Secret files ignored, example templates tracked
.env-files/*.env
.env-files/*.env.*
!.env-files/*.example
# Safety nets (root-anchored to avoid matching inside .env-files/)
/.env
/.env.*
/apps/backend/.env
/apps/frontend/.env
/apps/frontend/.env-files/.env
/.env.local
/.env.development
/.env.production
/.env.test
/config.json
*.pem
*.key
*.crt
*.p12
*.pfx
.secrets
secrets/
credentials/

# ===========================
# IDE & Editors
# ===========================
.idea/
.vscode/
*.swp
*.swo
*.sublime-workspace
*.sublime-project
.project
.classpath
.settings/

# ===========================
# Logs
# ===========================
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# ===========================
# Git Worktrees (parallel builds)
# ===========================
.worktrees/

# ===========================
# WorkPilot AI Generated
# ===========================
.workpilot/
.planning/
.planning-archive/
.auto-build-security.json
.workpilot-security.json
.workpilot-status
.claude_settings.json
.update-metadata.json

# ===========================
# Python (apps/backend)
# ===========================
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
eggs/
.eggs/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

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

# Testing
.pytest_cache/
.coverage
htmlcov/
.tox/
.nox/
coverage.xml
*.cover
*.py,cover
.hypothesis/

# Type checking
.mypy_cache/
.dmypy.json
dmypy.json
.pytype/
.pyre/

# ===========================
# Node.js (apps/frontend)
# ===========================
node_modules
apps/frontend/node_modules
.npm
.yarn/
.pnp.*

# Build output
dist/
out/
*.tsbuildinfo
apps/frontend/python-runtime/

# Cache
.cache/
.parcel-cache/
.turbo/
.eslintcache
.prettiercache

# ===========================
# Electron
# ===========================
apps/frontend/dist/
apps/frontend/out/
*.asar
*.blockmap
*.snap
*.deb
*.rpm
*.AppImage
*.dmg
*.exe
*.msi

# ===========================
# Testing
# ===========================
coverage/
.nyc_output/
test-results/
playwright-report/
playwright/.cache/

# ===========================
# Misc
# ===========================
*.local
*.bak
*.tmp
*.temp

# Development
/docs
dev/
_bmad/
_bmad-output/
.claude/
/.github/agents

# WorkPilot AI generated files
.security-key
logs/security/
Agents.md
nul