# =============================================================================
# Section 1: Global rules (IDE, OS, logs, env/secrets)
# =============================================================================

# IDE
.idea/
*.iml
*.ipr
*.iws
.vscode/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Logs
*.log
logs/

# Environment files / secrets / licenses
.env
.env.local
*.env
.ecr_token
*.token
*.platformtoken
*.accesstoken
test-workspace.id
test-isolation-workspace.id
test-shared-*-workspace.id
test-client-secret
*.lic
*.license

# =============================================================================
# Section 2: Go services (api-server, workload-manager)
# =============================================================================

# Go binaries
*.exe
*.exe~
*.dll
*.so
*.dylib
*.test
*.out

# Go dependency directories
api-server/vendor/
workload-manager/vendor/

# Generated proto stubs and service binaries
proto/gen/*
api-server/gen/*
api-server/bin/*
api-server/server
workload-manager/bin/*
workload-manager/manager
workers/worker-blob/bin/
workers/worker-snowflake/bin/
workers/worker-http/bin/
workers/worker-postgresql/bin/
workers/worker-confluence/bin/
workers/worker-sharepoint/bin/
workers/worker-gitlab/bin/
workers/worker-jira/bin/
workers/worker-databricks/bin/
workers/worker-nango/bin/
workers/worker-gbq/bin/
processors/processor-csv/bin/
processors/processor-parquet/bin/
web/server/bin/

# Python cache (used in api-server scripting/tooling)
__pycache__/
*.pyc
*.pyo

# =============================================================================
# Section 3: Java / Gradle
# =============================================================================

# Gradle build output (global — no committed build/ dirs)
.gradle/
build/
!**/gradle/wrapper/gradle-wrapper.jar

# Generated proto sources (populated at build time, never committed)
workers/worker-postgresql/src/main/proto/*.proto
workers/worker-postgresql/src/main/proto/google/
workers/worker-postgresql/local.properties
worker-sdks/worker-sdk-spark/src/main/proto/
worker-sdks/worker-sdk-jdbc/src/main/proto/

# Legacy (kept for safety)
src/main/java/com/example/backend/proto/

# =============================================================================
# Section 4: Rust
# =============================================================================

worker-sdks/worker-sdk-rust/target/
worker-sdks/worker-sdk-rust/src/gen/
workers/worker-delta/target/
prototypes/delta-table-rs/target/
prototypes/delta-table-rs/**/*.rs.bk

# =============================================================================
# Section 5: Python
# =============================================================================

python-client/connector-service/src/h2o_connector_service/gen/

# Python build artifacts
*.py[cod]
*.egg-info/
dist/

# Coverage artifacts (pytest-cov gate — see test-python in Makefile)
.coverage
htmlcov/

# Virtual environments
.venv/
venv/

# =============================================================================
# Section 6: Helm
# =============================================================================

# Umbrella chart — cloned from h2oai/umbrella-chart at UMBRELLA_CHART_BRANCH via `make helm-deps`
helm/h2oai-chart/

# Platform charts — cloned from h2oai/platform-charts at PLATFORM_CHARTS_BRANCH via `make platform-chart-deps`
helm/platform-charts/

# Token written by `make kind-h2ogpte-token`
h2ogpte-crawl.token
h2ogpte-crawl.token.*

# =============================================================================
# Section 7: Data / misc
# =============================================================================

datasources/**/*.zip
prototypes/*/bin/
ccdb/
test-run.log

# Claude Code local state (sessions, worktrees, settings.local.json) is per-developer.
# Project-shared skills under .claude/skills/ are tracked so every agent gets them.
# Git cannot re-include a path whose parent directory is excluded, so ignore the
# *contents* of .claude/ and re-include each skill we ship. Add a line per skill.
.claude/*
!.claude/skills/
.claude/skills/*
!.claude/skills/release/
!.claude/skills/gh-issues/
.antigravitycli/

# Lefthook per-developer overrides (see lefthook.yml)
.lefthook-local.yml


# benchmark tool build output (built fresh each run)
tools/benchmark/bin/

# Transient token files written by the podman docker-shim for BuildKit --secret
# (see the docker-build-web target). They contain a live token.
podman-build-secret-*

#build output 
**/bin/

# App Store bundle artifacts. app.toml is rendered from web/app/app.toml.in with
# the version from web/version.txt (see the app-bundle Makefile target); the
# .wave archive is the zip built from it.
web/app/app.toml
*.wave

# Evidence collected by `make debug-dump` (tests/scripts/debug-dump.py). Pod env
# values are redacted before writing, but logs are not scrubbed — these dumps are
# for local triage and must never be committed.
tests/debug-dumps/

# Output of the scheduled cloud-dev suites (make cloud-seed, make test-cloud-kit).
cloud-results/
