# Build artifacts
target/
build/
dist/

# polylint cache
.polylint/
*.so
*.dylib
*.dll
*.pdb
*.node
*.whl
*.tar.gz
*.gem
*.jar
*.a
*.rlib
wheels/
# C test_app downloads the FFI artefacts via download_ffi.sh at build time
test_apps/c/ffi/include/
test_apps/c/ffi/lib/
# ~keep The e2e C leg stages the downloaded prebuilt library, header and version marker
# into e2e/c/ffi/ (ci-e2e.yaml, "Stage FFI artifacts") BEFORE the fixture-freshness check
# runs. That check reports untracked files (`git status --porcelain -uall`), so leaving these
# unignored made the C leg fail as fixture drift on its own build output. Scoped to this
# directory, not the basenames: test_apps/c/ffi/.alef-ffi-version is tracked.
e2e/c/ffi/
**/bin/
!**/src/bin/
**/obj/

# Rust
*.rs.bk
*.profraw
rust-coverage.lcov
rust_out

# Python
*.py[cod]
*$py.class
*.egg-info/
__pycache__/
.venv/
.ruff_cache/
.pytest_cache/
.hypothesis/
.coverage
.coverage*
htmlcov/
share/python-wheels/

# Node.js / WASM
node_modules/
.yardoc/
*.tsbuildinfo
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
# ~keep index.d.ts is NOT ignored: alef generates it from the IR (it carries an alef:hash
# marker) and `alef verify` fails the build when a generated file is missing AND gitignored
# -- `alef generate` would write it and git would discard it again, so the loop never closes.
# ~keep Track the loader after Alef decorates it; NAPI builds must preserve its error shim.
crates/crawlberg-node/index.native.d.ts
.wrangler/
.pnpm-store/

# Zig build cache (transient artefacts in e2e/zig and elsewhere)
.zig-cache/
zig-out/

# Dart pub / build cache
.dart_tool/

# Gradle / Kotlin build cache
.gradle/

# Swift / SwiftPM build cache
.build/
.swiftpm/
# `Packages/` removed: with `core.ignorecase=true` (the macOS default) it
# case-insensitively matches the language-binding `packages/` tree and silently
# ignores newly emitted files like `packages/dart/bin/download_libs.dart` —
# which is alef-generated output we must commit. SwiftPM's `Packages/`
# resolution dir is opt-in and rarely created in this repo; if it appears,
# scope-ignore it under `packages/swift/` specifically.
packages/swift/**/Packages/
Package.resolved
*.xcodeproj/
*.xcworkspace/
DerivedData/

# PHPStan / PHP runtime cache
packages/php/var/

# Ruby
packages/ruby/.bundle/
packages/ruby/vendor/
packages/ruby/tmp/
packages/ruby/ext/src_rb/
packages/ruby/lib/*.bundle
*.Cache

# PHP
php-crawlberg.ini
packages/php/php-crawlberg.ini
packages/php/tests.xml
.php-cs-fixer.cache

# Java / C# / .NET
*.suo
*.user
*.cscfg
*.cobertura.xml
*.nupkg
*.versionsBackup
TestResults/


# Elixir
packages/elixir/_build/
packages/elixir/deps/
e2e/elixir/_build/
e2e/elixir/deps/
.nox/

# C FFI
crates/crawlberg-ffi/tests/c/test_*
!crates/crawlberg-ffi/tests/c/test_*.c
!crates/crawlberg-ffi/tests/c/test_*.h
crates/crawlberg-ffi/tests/c/*.o
crates/crawlberg-ffi/tests/c/*.dSYM/
e2e/c/test_*
!e2e/c/test_*.c
!e2e/c/test_*.h
e2e/c/*.o
e2e/c/*.dSYM/
e2e/c/run_tests

# Generated pkg-config
*.pc

# Coverage
coverage/
coverage.info
coverage.json
coverage.lcov
coverage.out
coverage.xml
packages/*/.coverage
packages/*/coverage.json
packages/*/coverage.out
packages/*/htmlcov/
packages/*/test-results/
packages/*/TestResults/

# IDE / Editor
.idea/
.vscode/
.run/
.DS_Store
*.swp
*.swo
Thumbs.db

# CI / Tools
.cache/
.rumdl_cache/
.tmp/
*temp/
*.temp
*.tmp
*.log
.mvn/
.tox/
.artifacts/
.remote-cache/
docker-logs/

# Docs
docs/_build/
docs/build/
site/

# Tests
test_report.json
tests/e2e/logs/
tests/e2e/test_report.json
temp-test-*
**/test_output.log
**/logs/

# AI / MCP / Agent config
.alef/
.claude/
.codex/
.gemini/
.mcp.json
# ...but the coding-agent plugin bundle's .mcp.json is an ai-rulez-generated
# output that CI Plugin (`ai-rulez verify --plugin`) requires to be committed.
!plugin/.mcp.json
.playwright-mcp/
AGENTS.md
CLAUDE.md
GEMINI.md
.cursorrules
.windsurfrules
[Tt][Oo][Dd][Oo]*

# Git worktrees
.worktrees/

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

# Misc
output.txt
/tmp/crawlberg-docker-test-results.json
*.pyd
.gems/
vendor/bundle/
vendor/*
!vendor/crawlberg-chromiumoxide/
!vendor/crawlberg-chromiumoxide/**
*.h.bak
*.test
*.class
bin/
# Exempt the alef-emitted Dart entrypoint dir which is real source we must
# track (used by `dart run crawlberg:download_libs` consumers).
!packages/dart/bin/
obj/
# pkg/ removed — needed for WASM npm publish (wasm-pack outputs to pkg/)
erl_crash.dump
test_apps/elixir/_build/
test_apps/elixir/deps/
test_apps/elixir/mix.lock
test_apps/node/pnpm-lock.yaml
test_apps/zig/zig-pkg/
pkg/

.lycheecache
.benchmark_results/


# E2E mock-server runtime state
.mock-server.env
.mock-server.out
.mock-server.pid

# chromiumoxide leak watcher (scripts/chrome-memwatch.sh) — repo-relative
# log destination so CI can collect it as a build artifact via the
# predictable path. Already covered by `*.log` above; listed explicitly so
# the contract is obvious to anyone reading this file.
chrome-memwatch.log

# Per-language smoke workflows scaffolded by alef. crawlberg uses the unified
# ci-e2e.yaml matrix for all language coverage; these standalone workflows are
# kept emitted on disk for upstream parity but never committed.
.github/workflows/dart.yml
.github/workflows/kotlin.yml
.github/workflows/swift.yml
.github/workflows/zig.yml

e2e/ruby/.bundle/


# basemind local code-map index (machine-local, do not commit)
.basemind/


# Alef-generated skills are source-controlled; other agent-local state stays ignored.
!.codex/
.codex/*
!.codex/skills/
.codex/skills/*
!.codex/skills/api/
!.codex/skills/api/SKILL.md
!.codex/skills/cli/
!.codex/skills/cli/SKILL.md
!.codex/skills/mcp/
!.codex/skills/mcp/SKILL.md
!.agents/
.agents/*
!.agents/skills/
.agents/skills/*
!.agents/skills/api/
!.agents/skills/api/SKILL.md
!.agents/skills/cli/
!.agents/skills/cli/SKILL.md
!.agents/skills/mcp/
!.agents/skills/mcp/SKILL.md
!.agents/plugins/
!.agents/plugins/marketplace.json
!.claude/
.claude/*
!.claude/skills/
.claude/skills/*
!.claude/skills/api/
!.claude/skills/api/SKILL.md
!.claude/skills/cli/
!.claude/skills/cli/SKILL.md
!.claude/skills/mcp/
!.claude/skills/mcp/SKILL.md
!.github/skills/
.github/skills/*
!.github/skills/api/
!.github/skills/api/SKILL.md
!.github/skills/cli/
!.github/skills/cli/SKILL.md
!.github/skills/mcp/
!.github/skills/mcp/SKILL.md


# Astro Starlight docs site build artifacts
docs-site/dist/
docs-site/.astro/

poly.local.toml

# Alef snippet validator scratch workspaces and caches ~keep
**/.alef-snippet-*/
**/.alef-cache/
**/.alef/

# BEGIN ai-rulez (DO NOT EDIT - managed by ai-rulez)
.ai-rulez/.config.local.*
.opencode/agents/
.opencode/commands/
/opencode.json
# END ai-rulez

# Runtime log written and truncated by e2e/brew/run_tests.sh on every run.
mock_server.stdout
vendor/

!test_apps/node/pnpm-lock.yaml

# Agent harness output outside the ai-rulez managed block: the machine-local overlay,
# plugin-root manifests, and presets this repository does not enable.
.ai-rulez/config.local.*
.ai-rulez/local/
**/.ai-rulez/.generated-manifest.local.json
plugin/.ai-rulez/.generated-manifest.json
.agents/settings.json
.claude/settings.json
.claude/plugins.json
.codex/commands/
.codex/plugins.json
.cursor/
.github/commands/

!/vendor/
!/vendor/crawlberg-chromiumoxide-fetcher/
/vendor/crawlberg-chromiumoxide-fetcher/*
!/vendor/crawlberg-chromiumoxide-fetcher/Cargo.toml
!/vendor/crawlberg-chromiumoxide-fetcher/Cargo.lock
!/vendor/crawlberg-chromiumoxide-fetcher/LICENSE-MIT
!/vendor/crawlberg-chromiumoxide-fetcher/LICENSE-APACHE
!/vendor/crawlberg-chromiumoxide-fetcher/README.md
!/vendor/crawlberg-chromiumoxide-fetcher/UPSTREAM.md
!/vendor/crawlberg-chromiumoxide-fetcher/src/
!/vendor/crawlberg-chromiumoxide-fetcher/tests/
