# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
/node_modules
mcp-servers/node_modules
packages/*/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# Testing
/coverage
/.nyc_output
.jest-cache/
*.lcov
test-results/
test-screenshots/
browser-screenshots/
playwright-report/
playwright/.cache/
.playwright-mcp/
tests/.auth/

# Code analysis reports
report/
jscpd-report.json

# Manual verify-run screenshots (Playwright / browser MCP exports).
#
# The prefix list below grew one entry per incident, which means the next
# screenshot under a NEW name lands in a commit anyway — 469KB of them reached
# main on 2026-09-15 inside an unrelated one-line fix. Ignore the DIRECTORIES a
# verification run writes to instead, and put keepers outside the repo.
shots/
screenshots/
verify-*.jpeg
verify-*.png
tab-*.png
final-*.png
audit-*.png
brandmark-*.png
rebrand-*.png
landing-*.png
prod-*.png

# Next.js
/.next/
/out/
/.next
next-env.d.ts

# Production
/build
/dist

# Misc
.DS_Store
*.pem
*.log
*.tmp
*.cache

# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Local env files
.env
.env*.local
.env.development
.env.test
.env.production
.env.local
.env.build
.env.preview
.env.local.backup*
.env-backups/*.backup*

# TypeScript
*.tsbuildinfo
*.tsbuildinfo.next

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

# Claude Code - Keep structure, ignore local settings
.claude/settings.local.json
.claude/cache/

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

# Logs — nothing under here belongs in a public repo.
# This rule (2025-10-18) postdates an audit log already committed inside logs/
# (2025-10-13), so it never applied to it: the file stayed in main, carrying 14
# absolute paths from a developer's machine, until it was untracked in
# 2026-09. Ignoring a directory does not untrack what is already in it.
logs/
*.log
deployment.log
mcp-puppeteer-*.log

# Temporary files
*.tmp
*.temp
*.bak
*.backup
*.old
*.pid
.cache/
backup/
backups/
.playwright-mcp/**
demo-screenshots/**
screenshots/**
test-results/**

# Work-in-progress files (personal notes, prompts)
@fix_plan.md
PROMPT.md
RALPH.md
ralph.sh

# Sensitive config and credentials
.cursor/mcp.json
docs/operations/MCP_CREDENTIALS.md

# Build artifacts
tsconfig.tsbuildinfo
tsconfig.build.tsbuildinfo

# Python
__pycache__/
*.py[cod]
*$py.class

# Database
*.db
*.sqlite
*.sqlite3

# Certificates
*.key
*.crt
*.p12
*.pfx
.claude/worktrees/

# Local debug screenshots
post-*.png
.env.selfhost.local

# Env backups (contain secrets — never commit)
.env-backups/

# Data dumps under .claude/ — never commit.
#
# .claude/ is a TRACKED directory (CLAUDE.md, rules/, commands/ all live there),
# so anything dropped inside it is one `git add -A` away from a commit — and
# this repository is public. Two account backups from the 2026-08 identity
# migration sat here untracked-and-unignored for two weeks:
#   .claude/econ-backup-catomean-2026-08-29.json
#   .claude/nudges-backup-catomean-2026-08-29.json
# The existing `*.backup` rule does not match `*-backup-*.json`.
.claude/*backup*.json
.claude/*dump*.json

# pdf.js runtime files, copied from @bitbaum/chatkit on dev/build (chatkit-copy-pdf-assets)
/public/pdfjs/
