# =============================================================================
# Watchlight-Beacon Enterprise .gitignore
# =============================================================================
# This file prevents secrets, credentials, and build artifacts from being
# committed to the repository.
# =============================================================================

# =============================================================================
# SECRETS & CREDENTIALS (CRITICAL - Never commit these)
# =============================================================================

# Environment files (may contain API keys, database credentials, etc.)
.env
.env.local
.env.development
.env.development.local
.env.test
.env.test.local
.env.production
.env.production.local
.env.staging
.env.*.local
!.env.example
!.env.sample
!.env.template

# Private keys and certificates
*.pem
*.key
*.p12
*.pfx
*.crt
*.cer
*.der
!**/cacert.pem
id_rsa
id_rsa.*
id_dsa
id_dsa.*
id_ed25519
id_ed25519.*
*.pub
!*.pub.example

# AWS
.aws/
aws-credentials
.aws-credentials
credentials.csv

# GCP / Google Cloud
*.json.enc
service-account*.json
gcp-credentials*.json
google-credentials*.json
*-service-account.json
application_default_credentials.json

# Azure
.azure/
azure-credentials

# Kubernetes secrets and configs
*.kubeconfig
kubeconfig
kubeconfig.*
!kubeconfig.example
secrets.yaml
!**/templates/secret.yaml

# Terraform state (may contain secrets)
*.tfstate
*.tfstate.*
.terraform/
*.tfvars
!*.tfvars.example

# Ansible vault
*.vault
vault-password
.vault_pass
ansible-vault-password

# API keys and tokens
api_key*
api-key*
apikey*
*_token
*_TOKEN
*.token
auth.json
tokens.json

# Docker secrets
docker-compose.override.yml
docker-compose.*.yml
!docker-compose.yml
!docker-compose.example.yml
!docker-compose.dev.yml
!docker-compose.prod.yml
!docker-compose.test.yml

# SSH
.ssh/
known_hosts

# GPG
.gnupg/
*.gpg
secring.*

# Hashicorp Vault
.vault-token

# =============================================================================
# RUST (wl-apdp, discovery, registry)
# =============================================================================

# Build artifacts
**/target/
**/*.rs.bk

# Cargo lock - keeping for applications (binaries), would exclude for libraries
# Cargo.lock

# Profiling
*.profraw
*.profdata

# =============================================================================
# NODE.JS / JAVASCRIPT / TYPESCRIPT (Frontend projects)
# =============================================================================

# Dependencies
**/node_modules/
.pnp
.pnp.js
.pnp.cjs
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz

# Build outputs
**/dist/
**/build/
**/.next/
**/.nuxt/
**/.output/
**/out/
*.tsbuildinfo

# Package manager files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.npm/
.yarn-integrity

# Cache
.eslintcache
.stylelintcache
*.tsbuildinfo
.turbo/
.parcel-cache/
.cache/

# Storybook
storybook-static/

# Vite
*.local

# =============================================================================
# PYTHON (examples, SDK, scripts)
# =============================================================================

# Virtual environments
.venv/
venv/
ENV/
env/
.env.bak/
env.bak/
.python-version
Pipfile.lock

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
develop-eggs/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
pytest_cache/
nosetests.xml

# Translations
*.mo
*.pot

# Jupyter Notebook
.ipynb_checkpoints
*.ipynb_checkpoints/

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# Celery
celerybeat-schedule
celerybeat.pid

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Ruff
.ruff_cache/

# =============================================================================
# IDE & EDITORS
# =============================================================================

# VS Code
.vscode/*
!.vscode/settings.json.example
!.vscode/tasks.json.example
!.vscode/launch.json.example
!.vscode/extensions.json
!.vscode/*.code-snippets

# JetBrains IDEs (IntelliJ, PyCharm, WebStorm, etc.)
.idea/
*.iml
*.ipr
*.iws
out/
.idea_modules/

# Sublime Text
*.sublime-project
*.sublime-workspace

# Vim / Neovim
*.swp
*.swo
*~
*.vim
.netrwhist
tags

# Emacs
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# TextMate
*.tmproj
*.tmproject
tmtags

# Zed
.zed/

# =============================================================================
# OPERATING SYSTEMS
# =============================================================================

# macOS
.DS_Store
.DS_Store?
.AppleDouble
.LSOverride
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
Icon?

# Windows
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk

# Linux
*~
.directory
.Trash-*

# =============================================================================
# DOCKER & CONTAINERS
# =============================================================================

# Docker
.docker/
docker-compose.override.yml

# =============================================================================
# DATABASES
# =============================================================================

# SQLite
*.db
*.db-journal
*.sqlite
*.sqlite3
*.sqlite3-journal

# PostgreSQL
*.dump
*.sql.gz

# Redis
dump.rdb
*.rdb

# =============================================================================
# LOGS & TEMPORARY FILES
# =============================================================================

# Logs
*.log
logs/
log/
*.log.*
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Temporary files
*.tmp
*.temp
*.bak
*.backup
*.orig
*.rej
tmp/
temp/
.temp/
.tmp/

# =============================================================================
# TESTING & COVERAGE
# =============================================================================

# Coverage reports
coverage/
*.lcov
.nyc_output/
*.gcov
*.gcda
*.gcno

# Test results
test-results/
test-reports/
junit.xml
test-output/

# =============================================================================
# BUILD & PACKAGING
# =============================================================================

# Archives
*.tar
*.tar.gz
*.tgz
*.zip
*.rar
*.7z
*.gz
*.bz2

# Helm charts
charts/*.tgz

# Binary files
*.exe
*.dll
*.dylib
*.bin

# =============================================================================
# DOCUMENTATION
# =============================================================================

# Generated docs
docs/_build/
site/
.docusaurus/
.cache-loader/

# =============================================================================
# MISCELLANEOUS
# =============================================================================

# Backup files
*.bak
*~
*.old

# Local configuration overrides
*.local
local.*
!*.local.example

# Sentry
.sentryclirc

# Vercel
.vercel

# Netlify
.netlify

# =============================================================================
# AI CODING ASSISTANTS (Do not commit AI co-authorship files)
# =============================================================================

# Claude Code / Anthropic
.claude/
CLAUDE.md
**/CLAUDE.md

# Cursor AI
.cursor/
.cursorignore
.cursorrc
cursor.json

# Aider
.aider*
.aider.chat.history.md
.aider.input.history
.aider.tags.cache.v3/

# Continue
.continue/
.continuerc.json

# GitHub Copilot
.copilot/
.github/copilot/

# Codeium
.codeium/
codeium.json

# Tabnine
.tabnine/
tabnine.json
tabnine_config.json

# Amazon Q / CodeWhisperer
.amazonq/
.aws/amazonq/
.codewhisperer/

# Sourcegraph Cody
.cody/
cody.json

# Windsurf
.windsurf/

# Supermaven
.supermaven/

# Other AI assistants
.ai/
.llm/
.assistant/
ai-chat-history*
llm-context*

# =============================================================================
# MISCELLANEOUS (continued)
# =============================================================================

# MCP Discover local cache
wl-discover-cache.json

# Watchlight-specific
wl-apdp-data/
registry-data/

# Lock files for libraries (keep Cargo.lock for binaries)
# package-lock.json  # Uncomment if you prefer yarn.lock
# yarn.lock          # Uncomment if you prefer package-lock.json

# Core dumps
core
core.*
*.core

# Heap dumps
*.hprof
heapdump-*

# JVM crash logs
hs_err_pid*
replay_pid*

# =============================================================================
# END OF FILE
# =============================================================================
