# ============================================================================
# COSMO 2.3 — Root .gitignore
# ============================================================================

# ---------------------------------------------------------------------------
# Dependencies
# ---------------------------------------------------------------------------
node_modules/

# ---------------------------------------------------------------------------
# Environment & Secrets (CRITICAL — never commit)
# ---------------------------------------------------------------------------
.env
.env.*
.env.local
.env.*.local
!.env.example

# ---------------------------------------------------------------------------
# OS & Editor
# ---------------------------------------------------------------------------
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Thumbs.db
ehthumbs.db
.vscode/
.idea/
.cursor/
*.swp
*.swo
*~

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

# ---------------------------------------------------------------------------
# Runtime & Process
# ---------------------------------------------------------------------------
*.pid
*.pid.lock
pids/

# ---------------------------------------------------------------------------
# COSMO Runs & Runtime (historical artifacts — never commit)
# ---------------------------------------------------------------------------
runs/*
!runs/.gitkeep
runtime

# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------
*.db
*.db-journal
*.sqlite
*.sqlite3
prisma/*.db
prisma/*.db-journal

# ---------------------------------------------------------------------------
# Build & Cache
# ---------------------------------------------------------------------------
dist/
build/
.cache/
.parcel-cache/

# ---------------------------------------------------------------------------
# Test & Coverage
# ---------------------------------------------------------------------------
coverage/
.nyc_output/
test-results/
junit.xml

# ---------------------------------------------------------------------------
# Temporary & Backup
# ---------------------------------------------------------------------------
*.tmp
*.temp
*.backup
*.orig
*.rej
*.bak
*~backup
.tmp/
temp/

# ---------------------------------------------------------------------------
# Local Development Artifacts
# ---------------------------------------------------------------------------
.claude/
.playwright-mcp/
.backups/

# ---------------------------------------------------------------------------
# Generated Prisma Client
# ---------------------------------------------------------------------------
prisma/generated/
.prisma/

# ---------------------------------------------------------------------------
# Archive & Large Data (historical query archives, test data)
# ---------------------------------------------------------------------------
engine/queries-archive/
engine/test-frontier/
pgs-engine/examples/data/

# Worktrees & Brainstorm
.worktrees/
.superpowers/
