# NOTE: git does NOT support trailing inline comments on pattern lines —
# every comment here is on its own line.

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

# ── Build / packaging artifacts ──────────────────────────────────────────────
build/
dist/
wheels/
*.whl
*.tar.gz
pip-wheel-metadata/

# ── Virtual environments ─────────────────────────────────────────────────────
.venv/
venv/
env/
ENV/
.audit_f_venv/
*.venv/

# ── Test / coverage / lint / type caches ─────────────────────────────────────
.pytest_cache/
.ruff_cache/
.mypy_cache/
.tox/
.nox/
.cache/
htmlcov/
.coverage
.coverage.*
coverage.xml

# ── TokenSight runtime data & CLI output (never source) ──────────────────────
# The trace DB lives at ~/.tokensight/runs.db by default; ignore any stray copies.
*.db
*.db-wal
*.db-shm
*.sqlite
*.sqlite3
tokensight_export_*.json

# ── Agent / workflow / asset-generation scratch (from the multi-agent build) ─
.playwright-mcp/
.wf_*.js
_cand/
_cand*/
_alt_*/
_fonts.css
# One-off scratch scripts agents drop at the repo root while building/verifying.
# Narrow stems so they NEVER match package files like __init__.py.
_seed*.py
_verify*.py
_smoke*.py
_bench*.py
_audit*.py
_attr*.py
_timing*.py
_scratch*.py
_rename*.py
# Scratch screenshots generated while building/QA-ing the dashboard.
# (The shipped README image lives in assets/ and stays tracked.)
/cand-*.png
/ref-*.png
/dash-*.png
/about-*.png
/page-*.png
# Stray, non-project screenshot (installer dialog) shared during development.
/image.png
# Leftover husk from the agentrace -> tokensight rename (OneDrive-locked empty dir).
/agentrace/

# ── Editor / OS noise ────────────────────────────────────────────────────────
.idea/
.vscode/
*.swp
*.swo
*~
.DS_Store
Thumbs.db
desktop.ini

# ── Environment & secrets ────────────────────────────────────────────────────
.env
.env.*
!.env.example

# ── Claude Code local config (tooling, not part of the package) ──────────────
.claude/

# ── AI build-process & prompt files (not part of the shipped product) ────────
# The prompt that drove the build, Claude's instructions, and the agent build
# log/plan — kept local, never tracked or committed.
/CLAUDE.md
/CLAUDE_CODE_MASTER_PROMPT.md
/PROGRESS.md
/IMPLEMENTATION_PLAN.md

# ── Design / spec / process docs (kept local, not committed per request) ─────
/PRD.md
/TRD.md
/ARCHITECTURE.md
/APP_FLOW.md
/API.md
/RULES.md
/TESTING.md
/AUDIT.md
/PLANNING.md
/REFACTOR_NOTES.md
/schema.sql
