# Dependencies
/vendor/
/node_modules/

# Package builds (managed by sync scripts, published separately)
/packages/

# Environment files
.env
.env.*
!.env.example

# IDE and editor files
.idea/
.vscode/
*.sublime-project
*.sublime-workspace

# OS files
.DS_Store
**/.DS_Store
Thumbs.db

# Logs
*.log
# Legacy /logs/ and /app/logs/ are deprecated - all logs go to storage/logs/
/logs/
/app/logs/
/public/logs/

# Cache and temporary files
/cache/
/tmp/
*.cache

# Build output
/dist/
/build/

# Backup files
*.bak
*.backup
*~ .cursor/
.cursorrules

# New additions
backups/
*.sql.gz
*.sql
!sql/migrations/*.sql
!app/database/migrations/*.sql
!app/database/*.sql
runtime/openai_api_state.json

# Runtime data
/data/
*.dat

login_cookies.txt

# Pre-migration cleanup additions
/temp/
*.err
*.old


# Additional editor files
*.swp
*.swo
*.swn

# Composer binary (should be installed globally)
composer.phar

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

# Test outputs
/test_results/
/coverage/

# Future production structure (post-migration)
# Uncomment these after migration:
# Storage directory (runtime files, logs, cache, sessions)
/storage/*
!/storage/.gitkeep

# Legacy directories (cleaned up 2025-11-12)
# These have been removed:
# - /app/logs/ → moved to storage/logs
# - /app/runtime/ → moved to storage/runtime  
# - /logs/ → moved to storage/logs
# - /temp/ → removed
# - /public/temp/ → needs manual sudo removal

# Guard: this is a Python repo. Block accidental re-introduction of the
# removed PHP codebase and its build artifacts.
*.php
composer.json
composer.lock
/vendor/

# Legacy local artifacts
/backups/
/temp/
/packages/
/samples/

# POC scraper output — raw HTML dumps of third-party sites, never meant to be
# committed (historical copies already in git history tripped generic-api-key
# false positives in gitleaks; this blocks re-introduction going forward).
/faq_discovery_poc/data/

# Runtime / secrets
.env
.env.*
!.env.example
.env.docker

# Python build artifacts
__pycache__/
*.py[cod]
*.so
*.pyc
*.pyo
.pytest_cache/
.mypy_cache/
.ruff_cache/
dist/
*.egg-info/
.venv/

# Cursor dev artefacts
/canvases/
