# Tessera Capital monorepo .gitignore
#
# Contains: Tessera AI landing (web/), Tessera trading platform (trading-platform/),
# automation scripts, RAG stack orchestration.
#
# Principle: include source + docs + decisions + migrations.
# Exclude machine-specific, secret, generated, or vendored third-party code.

# ── dependencies ──────────────────────────────────────────────────────────
node_modules/
**/node_modules/
.pnp
.pnp.*

# ── Python venvs + caches ────────────────────────────────────────────────
venv/
**/venv/
.venv/
**/.venv/
__pycache__/
**/__pycache__/
*.pyc
*.pyo
*.pyd
.pytest_cache/
.mypy_cache/
.ruff_cache/
*.egg-info/
.ipynb_checkpoints/

# ── RAG stack vendor (shallow clones of external libs) ───────────────────
# Reinstall via rag-stack/README.md or RUN.md scripts.
rag-stack/vendor/
rag-stack/py/venv/

# ── Environment secrets (NEVER commit) ───────────────────────────────────
# .env.example and .env.template ARE committed (no secrets).
.env
.env.local
.env.development.local
.env.production.local
.env.test.local
.env.production
.env.development
.env.tmp.local
.env*.local
!.env.example
!.env.template

# ── Next.js build output ─────────────────────────────────────────────────
.next/
out/
next-env.d.ts

# ── TypeScript incremental build cache ───────────────────────────────────
*.tsbuildinfo

# ── test + coverage ──────────────────────────────────────────────────────
coverage/
.nyc_output/
test-results/
playwright-report/
playwright/.cache/

# ── Vercel ───────────────────────────────────────────────────────────────
.vercel/

# ── Cloudflare Wrangler ──────────────────────────────────────────────────
.wrangler/
.dev.vars

# ── build / dist artifacts ───────────────────────────────────────────────
build/
dist/
*.egg-info/

# ── editor / OS ──────────────────────────────────────────────────────────
.DS_Store
Thumbs.db
*.swp
*.swo
.idea/
.vscode/
!.vscode/settings.json
!.vscode/extensions.json

# ── trading-platform specific ────────────────────────────────────────────
# Local caches — OHLCV parquet, SEC filings, agent logs
trading-platform/.cache/
trading-platform/**/.cache/
trading-platform/logs/

# Lori video pipeline — raw + processed artifacts are local-only
trading-platform/lori-videos/inbox/*
trading-platform/lori-videos/archive/*
trading-platform/lori-videos/processed/*/video.*
trading-platform/lori-videos/.tmp_downloads/
trading-platform/lori-videos/process.log
!trading-platform/lori-videos/inbox/.gitkeep
!trading-platform/lori-videos/archive/.gitkeep
!trading-platform/lori-videos/processed/.gitkeep
!trading-platform/lori-videos/errors/.gitkeep

# Local parquet/feather caches
*.parquet
*.feather
*.pkl
*.pickle

# ── automation scripts specific ──────────────────────────────────────────
automation/logs/
automation/tmp/

# ── web (Next.js landing) specific ───────────────────────────────────────
web/.turbo/
web/tsconfig.tsbuildinfo

# ── misc generated data ──────────────────────────────────────────────────
tmp/
temp/
*.log
!CHANGELOG.md

# ── screenshots / images generated at runtime ────────────────────────────
*.png.tmp
screenshots-tmp/

.vercel
