# ═══════════════════════════════════════════════════════════════
# BACH .gitignore - Schützt User-Daten und Laufzeit-Dateien
# ═══════════════════════════════════════════════════════════════

# === USER DATA (NIEMALS COMMITTEN!) ===
/user/
/system/user/

# === CLAUDE BRIDGE LAUFZEIT (User-spezifisch, niemals committen!) ===
/system/hub/_services/claude_bridge/config.json
/system/hub/_services/claude_bridge/state.json
/system/hub/_services/claude_bridge/bridge_memory.md
/system/hub/_services/claude_bridge/last_start*.txt

# === BACH CHAT RUNTIME (User-spezifisch) ===
/system/data/system_prompt_buddha.txt
/system/data/ollama_config.json
/system/partners/partner_config.json

# === MAIL CREDENTIALS (NIEMALS COMMITTEN!) ===
/system/hub/_services/mail/credentials/
/system/hub/_services/mail/credentials/*.json
/system/hub/_services/mail/credentials/*.token

# === BACKUPS & LAUFZEIT-DATEN (Nicht committen!) ===
/backups/*.bachdb
/backups/*.db
/backups/heartbeat.json
/system/_backups/*.zip
/system/storage/
/system/storage/**

# === SYSTEM LAUFZEIT-DATEN ===
/system/data/.clock_state
/system/data/.injector_cooldowns
/system/data/.prompt_manager.lock
/system/data/*.clock_state
/system/data/*.injector_cooldowns
/system/data/build_db_log.json
/system/data/config/db_sync_enabled
/bach.db
/system/data/bach.db
/system/bach.db
/system/tools/data/*.db
/system/data/bach-*.db
/system/data/bach-*.db-journal
/system/data/bach-*.db-wal
/system/data/bach-*.db-shm
/system/data/bach.db-journal
/system/data/bach.db-wal
/system/data/bach.db-shm
/system/data/archive.db
/system/data/directory_truth.json
/system/data/config/directory_truth.json
/system/data/config/directory_truth-*.json
/system/data/healing_report.json
/system/data/sync_state.json
/system/data/sync_state-*.json
/system/data/user_config.json
/system/data/skills_hierarchy.json
/system/data/skills_hierarchy.backup.json
/system/data/_archive/
/system/data/_backups/
/system/data/_trash/
/system/data/logs/
/system/data/messages/
/system/data/ati/
/system/data/backups/
/system/data/cache/
/system/data/mail_attachments/
/system/data/migrations/
/system/data/temp/
/system/data/trash/

# === EXPORTS & GENERATED ARTIFACTS ===
/exports/**/*.zip
/exports/**/_archive/
/system/tools/analysis_results.json

# === ONEDRIVE CONFLICT COPIES (Nie committen!) ===
*-Mac Studio.py
*-LAPTOP-*.py
*-DESKTOP-*.py
*-ASUS-GEI*.py

# === ORPHANED CONFIG FLAGS ===
/system/config/

# === ONEDRIVE LOCK FILES (Sync-Artefakte, nie committen!) ===
*.lock.user

# === CACHE & TEMP ===
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
.cache/
*.log
nul
.DS_Store
Thumbs.db

# === IDE & EDITOR ===
.vscode/
.idea/
*.swp
*.swo
*~

# === EXTENSIONS (Dependencies) ===
**/node_modules/
**/venv/
**/.venv/
**/dist/
**/build/
**/*.egg-info/

# === BENUTZERSPEZIFISCHE DOKUMENTATION (niemals committen!) ===
# Werden beim ersten Start aus Templates generiert / von BACH ueberschrieben
/MEMORY.md
/USER.md
/SKILL.md

# === DB-GENERIERTE DOKUMENTATION (user-spezifisch) ===
# Diese Dateien werden aus bach.db generiert und enthalten user-spezifische Daten.
# Fuer Repo-Besucher liegen *.template.md Versionen bei.
/CLAUDE.md
/OLLAMA.md
/GEMINI.md
/SKILLS.md
/CHAINS.md
/PARTNERS.md
/AGENTS.md
/WORKFLOWS.md
/USECASES.md
/BACH_HELP_REFERENCE.md
/*-ASUS-GEI*.md

# === SESSION-LOGS (Enthalten private Daten) ===
logs/daily/
/system/logs/help_forensic/
/system/logs/Doc_Update_Report_*.md
/system/logs/registry_health_*.txt
/system/logs/registry_health_*.json

# === PLAN-DATEIEN (Interne Planung, nicht veröffentlichen) ===
PLAN.txt
**/PLAN.txt

# === AGENT WORKFLOWS (Lokal) ===
.agent/
.claude/

# === LOKALE DEV-TOOLS (nicht committen) ===
/system/_dev/
/_dev/
/.dev/

# === TEMPORÄRE SKRIPTE (Übersetzungsarbeit, Debugging) ===
/auto_translator.py
/check_db.py
/check_lang*.py
/check_translations.py
/merge_db.py
/quality_check.py
/scratch_dump.json
/wait_and_finalize.py

# === USER-DATEN MIT ECHTEN NAMEN ===
/system/data/anonymizer_whitelist.json

# === USER-SPEZIFISCHE EXPERTEN (dist_type 0) ===
# Portiert aus Vanilla, nicht im Release enthalten
/system/agents/_experts/decision-briefing/
/system/agents/_experts/aboservice/
/system/agents/_experts/data-analysis/
/system/agents/_experts/financial_mail/
/system/agents/_experts/gesundheitsverwalter/
/system/agents/_experts/haushaltsmanagement/
/system/agents/_experts/health_import/
/system/agents/_experts/literaturverwalter/
/system/agents/_experts/mediaproduction/
/system/agents/_experts/mr_tiktak/
/system/agents/_experts/psycho-berater/
/system/agents/_experts/press/
/system/agents/_experts/report_generator/
/system/agents/_experts/textproduction/
/system/agents/_experts/transkriptions-service/
/system/agents/_experts/wikiquizzer/
/system/agents/_experts/worksheet_generator/
/system/agents/_experts/steuer/
/system/agents/_experts/foerderplaner/
/system/agents/_experts/test-tool-demo/

# === USER-SPEZIFISCHE SKILLS (dist_type 0) ===
/system/skills/_os/
# /system/skills/therapie/  # SQ046: Therapie-Skills sind ab v3.5.0 Teil des Repos
/system/skills/steuererklaerung/
/system/skills/_services/notizblock.md
/system/skills/_services/user-decide.md
/system/skills/_templates/bericht_template_geiger_universal.docx
/system/skills/workflows/_archive/
/system/skills/workflows/analysis/
/system/skills/workflows/dev/
/system/skills/workflows/integration/
/system/skills/workflows/system/
/system/skills/workflows/epstein_wissensindexierung.md
/system/skills/workflows/schwarm-entscheidungsbaum.md
/system/skills/workflows/schwarm-operationen.md
/system/skills/workflows/translate_haiku.md

# === LOKALE LLMAUTO RUNS UND USER-PIPELINES ===
/system/tools/agents/cache/
/system/tools/llmauto/state/**
!/system/tools/llmauto/state/
!/system/tools/llmauto/state/.gitkeep
/system/tools/llmauto/chains/foerderbericht.json
/system/tools/llmauto/chains/research_review_cycle.json
/system/tools/llmauto/chains/research_review_v2.json
/system/tools/llmauto/chains/software_aufgaben_marathon.json
/system/tools/llmauto/prompts/corrector_research.txt
/system/tools/llmauto/prompts/corrector_research_v2.txt
/system/tools/llmauto/prompts/foerderbericht.txt
/system/tools/llmauto/prompts/reviewer_strict_research.txt
/system/tools/llmauto/prompts/reviewer_strict_research_v2.txt
/system/tools/llmauto/prompts/worker_opus_software.txt
/system/tools/llmauto/prompts/worker_sonnet_software.txt

# === DISTRIBUTION SNAPSHOTS (Optional behalten) ===
# Auskommentieren wenn Snapshots versioniert werden sollen:
# /system/dist/snapshots/

# === LOKALE USER-LAUNCHER (User-spezifisch) ===
/prompt_bach.txt
/run_bach.bat
