backups/archive

# Rollback system (keep structure, ignore contents)
.deployments/snapshots/*
.deployments/backups/*
!.deployments/.gitkeep
.rollback-logs/*
!.rollback-logs/.gitkeep

# Dependencies
node_modules/
bun.lockb
package-lock.json
yarn.lock
pnpm-lock.yaml

# Bun install cache directory (should never be in-repo)
frontend/disable/

# Build outputs
dist/
build/
.next/
.vinxi/
.turbo/
.turbo/daemon
coverage/

# Test results
test-results/
playwright-report/

# ==============================================================================
# Environment Files (Secrets Protection)
# ==============================================================================

# Active environment files with secrets (NEVER commit these)
.env
.env.local
.env.*.local
backend/.env
backend/.env.local
frontend/apps/web/.env.local

# Environment backups
.env.backup
.env-backup-*/
*.env.backup

# Production environment files
.env.production
.env.*.production
backend/.env.production

# Credentials files
*.creds
*credentials*.json

# Keep example/template files (safe to commit)
!.env.example
!backend/.env.example
!frontend/.env.example
!frontend/apps/web/.env.example

# Python
__pycache__/
*.py[cod]
*$py.class
.venv/
.venv*/
*.egg-info/

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

# OS
.DS_Store
Thumbs.db

# TraceRTM local-only project metadata
.trace/.meta/sync.yaml
.trace/.meta/cache/
.trace/.meta/cache/**

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Backend sources are tracked.
# Local caches, binaries, and dev artifacts remain ignored.
backend/.env
backend/.env.local
backend/.gocache/
backend/.golangci-cache/
backend/.minio-data/
backend/.minio.pid
backend/tmp/
backend/logs/
backend/build
backend/package
backend/coverage.out
backend/tracertm-backend
backend/.trace/

# Repo governance: keep markdown documentation under top-level docs/.
backend/**/*.md
backend/artifacts/
backend/docs/
cli/

# Local MinIO (Homebrew)
backend/.minio-data/
backend/.minio.pid

# Temporal data
.temporal/

# Air build artifacts
backend/tmp/
backend/build-errors.log

# Overmind socket
.overmind.sock

# Process Compose
.process-compose/
!.process-compose/.gitkeep

# Quality (parallel run logs + report)
.quality/

# Native service data
.prometheus/
.grafana/
.loki/
.promtail/

# Brewfile lock
Brewfile.lock.json
.aider*

# Python
__pycache__/
*.pyc
*.pyo
.pytest_cache/
