# ExportFlow — .gitignore
#
# This is the first commit in the repository, deliberately. Everything after it
# is safe by construction; doing it second would mean the first commit is the
# one that has to be audited.
#
# Banned from version control by standing rule (Foundation 1.6):
#   secrets, databases, build artifacts, virtualenvs.

# --- Secrets -----------------------------------------------------------------
# .env.example is the one exception: the README's clean-machine bootstrap
# depends on it, so it must be committed.
.env
.env.*
!.env.example
.envrc
*.pem
*.key
*.p12
*.pfx
id_rsa*
credentials.json
service-account*.json

# --- Databases ---------------------------------------------------------------
*.db
*.sqlite
*.sqlite3
*.sqlite3-journal
*.dump
*.sql.gz
pgdata/

# --- Python ------------------------------------------------------------------
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
eggs/
.eggs/
sdist/
wheels/
share/python-wheels/
*.egg-info/
*.egg
MANIFEST

# --- Virtualenvs -------------------------------------------------------------
.venv/
venv/
ENV/
env/
.python-version.local

.ocr-check/

# --- Tooling caches ----------------------------------------------------------
.pytest_cache/
.mypy_cache/
.ruff_cache/
.hypothesis/
.import_linter_cache/
.coverage
.coverage.*
coverage.xml
htmlcov/
.tox/
.nox/

# --- Editors and OS ----------------------------------------------------------
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Thumbs.db
.idea/
.vscode/
*.swp
*.swo
*~

# --- Real customer documents -------------------------------------------------
# UNREDACTED ORIGINALS. These are real commercial documents: consignee names,
# bank references, cargo values. They must never be committed.
#
# The brief described this directory as outside the repository. It is not — it
# sits at the repository root, and the root-anchored /*.pdf rule below does not
# reach into it, so one `git add -A` would have committed the lot.
#
# The redacted corpus lives at api/tests/fixtures/documents/ and is built from
# these; the originals stay here and stay ignored.
/sample_docs/

# --- Source and rendered documents -------------------------------------------
# docs/reference/ holds the binaries the written documentation was produced
# from or rendered to: the source workbooks, and the PDF/zip renderings of
# docs/*.md. They are inputs and artefacts, not sources, and they are large.
#
# NOT a blanket `*.pdf`: the Phase 3 golden corpus at
# api/tests/fixtures/documents/ is PDFs of real Bills of Lading, and a
# repository-wide rule would make the first one invisible to `git status`.
# Foundation 10.3 rates that corpus above any coverage number.
/docs/reference/
/*.pdf
/*.zip

# --- Node (web/ and mobile/, from Phase 4) -----------------------------------
node_modules/
.next/
.expo/
*.tsbuildinfo

# Manually acquired source documents. Real regulatory PDFs with real provenance,
# kept out of git deliberately: they are large, they are republished by their
# authorities, and their hashes are recorded in regulatory_document instead.
ops/sources/

# The pitch deck and its screenshots. 188 MB of .pptx, .pdf and full-page PNGs,
# regenerated from the running product rather than authored here, and git keeps
# every version of a binary for ever. They live on disk beside the docs that
# describe them; nothing in the build reads them.
/docs/pitch/
.vercel
.env*

# App Store Connect API keys
*.p8

# Local agent worktrees and session state
.claude/

# Generated by `make ai-golden` (synthetic, never committed)
ops/eval/ai_golden/cases/
ops/eval/ai_golden/manifest.json
ops/eval/ai-eval-report.json

# SDK build output
sdks/python/dist/
sdks/typescript/dist/
sdks/typescript/node_modules/
