# Ignore everything by default, selectively add things to context
*

# Documentation (for embeddings/search)
!docs/

# Platform - Libs
!autogpt_platform/autogpt_libs/

# Platform - Backend
!autogpt_platform/backend/

# Platform - Frontend
!autogpt_platform/frontend/

# Classic - AutoGPT
!classic/original_autogpt/autogpt/
!classic/original_autogpt/pyproject.toml
!classic/original_autogpt/poetry.lock
!classic/original_autogpt/README.md
!classic/original_autogpt/tests/

# Classic - Benchmark
!classic/benchmark/agbenchmark/
!classic/benchmark/pyproject.toml
!classic/benchmark/poetry.lock
!classic/benchmark/README.md

# Classic - Forge
!classic/forge/
!classic/forge/pyproject.toml
!classic/forge/poetry.lock
!classic/forge/README.md

# Classic - Frontend
!classic/frontend/build/web/

# Explicitly re-ignore unwanted files from whitelisted directories
# Note: These patterns MUST come after the whitelist rules to take effect

# Hidden files and directories (but keep frontend .env files needed for build)
**/.*
!autogpt_platform/frontend/.env
!autogpt_platform/frontend/.env.default
!autogpt_platform/frontend/.env.production

# Python artifacts
**/__pycache__/
**/*.pyc
**/*.pyo
**/.venv/
**/.ruff_cache/
**/.pytest_cache/
**/.coverage
**/htmlcov/

# Node artifacts
**/node_modules/
**/.next/
**/storybook-static/
**/playwright-report/
**/test-results/

# Build artifacts
**/dist/
**/build/
!autogpt_platform/frontend/src/**/build/
**/target/

# Logs and temp files
**/*.log
**/*.tmp

# Frontend tests, stories and their configs. No image builds or runs them (CI
# runs Playwright and Vitest from the checkout), and while they were in the
# context every test-only change rebuilt Next.js from scratch. Keep in sync
# with autogpt_platform/single-container/Dockerfile.dockerignore;
# .github/scripts/test_frontend_build_context.py checks both.
autogpt_platform/frontend/**/__tests__/
autogpt_platform/frontend/**/*.test.*
autogpt_platform/frontend/**/*.spec.*
autogpt_platform/frontend/**/*.stories.*
autogpt_platform/frontend/src/playwright/
autogpt_platform/frontend/src/tests/
autogpt_platform/frontend/src/mocks/
autogpt_platform/frontend/coverage/
autogpt_platform/frontend/playwright*.config.ts
autogpt_platform/frontend/vitest.config.mts
autogpt_platform/frontend/test-runner-jest.config.js
# The perf scripts import the Playwright page objects left out above, and
# `next build` type-checks every .ts file it gets, so they stay out too.
autogpt_platform/frontend/scripts/perf/
