# Build output
/e2e/c/ffi/
target/
build/
dist/
wheelhouse/
.gradle/

# Git worktrees checked out inside the repo. Untracked-but-not-ignored, poly
# walks them and reports the worktree's own copies of files as failures, so a
# single worktree turns `poly fmt --check .` red for reasons unrelated to the
# tree being checked. ~keep
.worktrees/

# Astro docs-site
docs-site/dist/
docs-site/.astro/
docs-site/node_modules/

# Language-specific build artifacts
*.so
*.dylib
*.dll
*.node
*.bundle
*.class
*.egg-info/
*$py.class
*.py[cod]
*.rs.bk
*.gem
*.whl
*.tar.gz
*.tsbuildinfo
*.jar
*.profraw
*.o
*.a
__pycache__/
_build/
.zig-cache/

# Python
.venv/
.coverage
.coverage*
coverage.xml
coverage.json
coverage.lcov
coverage.out
coverage/
htmlcov/
.pytest_cache/
.ruff_cache/
.hypothesis/
.python-version

# Node.js
node_modules/
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*

# Rust
rust-coverage.lcov
rust_out

# C#/.NET
**/bin/
**/obj/
*.pdb
*.Cache
*.cscfg
*.suo
*.user
TestResults/
packages/csharp/**/runtimes/

# Go
# packages/go/include/liter_llm.h and packages/go/.lib/<platform>/ are tracked:
# they ship in the Go module git tag so `go get + build` is self-contained.
# publish-go-module CI job populates .lib/ before creating the packages/go/{tag}.
# The legacy packages/go/lib/ path (no leading dot) remains ignored.
packages/go/lib/
# Unignore the prebuilt shared libs under packages/go/.lib/<platform>/ that the
# publish workflow bundles into the Go module tag (root *.so/*.dylib/*.dll
# rules above otherwise hide them from `git add`).
!packages/go/.lib/**/*.so
!packages/go/.lib/**/*.dylib
!packages/go/.lib/**/*.dll
# Local cargo-build copies the C header into .lib/<platform>/include/ for the Go
# binding; the canonical tracked header is packages/go/include/liter_llm.h.
packages/go/.lib/**/include/
coverage.out

# Elixir
packages/elixir/deps/
packages/elixir/_build/
erl_crash.dump

# Ruby
packages/ruby/.bundle/
packages/ruby/vendor/
packages/ruby/tmp/
.yardoc/

# PHP
vendor/
# Orphaned lockfile — the canonical composer.json/lock live at the repo root.
packages/php/composer.lock

# Java
.mvn/

# R
.Rhistory
.RData

# WASM
.wrangler/
libpdfium.a

# E2E build artifacts (generated test projects have their own builds)
e2e/rust/target/
e2e/c/test_*
!e2e/c/test_*.c
!e2e/c/test_*.h
e2e/c/*.o
e2e/c/*.dSYM/
e2e/python/.venv/
e2e/python/__pycache__/
e2e/dart/.dart_tool/
e2e/go/go.sum
e2e/ruby/.bundle/
e2e/ruby/vendor/
e2e/typescript/node_modules/
e2e/wasm/node_modules/
e2e/java/target/
e2e/csharp/bin/
e2e/csharp/obj/
e2e/elixir/deps/
e2e/elixir/_build/
e2e/php/vendor/
e2e/php/php-liter-llm.ini

# Swift Package Manager
**/.build/
**/.swiftpm/
**/*.xcodeproj/xcuserdata/

# Dart pub (test_apps)
test_apps/dart/.dart_tool/
test_apps/dart/.packages
test_apps/dart/pubspec.lock

# Install state for test_apps trees — alef regenerates the source manifests,
# but lockfiles and downloaded deps belong to the running install, not the
# checked-in tree. Each `verify-install` run pulls fresh from registries.
test_apps/*/node_modules/
test_apps/*/pnpm-lock.yaml
test_apps/*/vendor/
test_apps/*/composer.lock
test_apps/*/Gemfile.lock
test_apps/*/.bundle/
test_apps/*/.venv/
test_apps/*/deps/
test_apps/*/mix.lock
test_apps/*/.gradle/
test_apps/*/build/
test_apps/*/.dart_tool/
test_apps/*/.pub-cache/
test_apps/*/target/
test_apps/*/bin/
test_apps/*/obj/
test_apps/*/.swiftpm/
test_apps/*/.build/

# C FFI test binaries
crates/liter-llm-ffi/tests/c/test_*
!crates/liter-llm-ffi/tests/c/test_*.c
crates/liter-llm-ffi/tests/c/*.o
crates/liter-llm-ffi/tests/c/*.dSYM/

# NAPI-RS generated files (both index.js and index.d.ts are committed for npm packaging)

# Transient lockfiles produced when alef runs package managers inside crate
# source dirs during `mise run update`/`mise run upgrade`. Canonical lockfiles live
# under packages/<lang>/.
crates/liter-llm-py/src/uv.lock
crates/liter-llm-php/src/composer.lock

# Generated pkg-config files
*.pc

# IDE / OS
.DS_store
.idea/
.vscode/
.run/
*.bak
*.log
*.temp
*.tmp

# Environment
.env
requirements.txt

# AI assistant config (generated by ai-rulez)
CLAUDE.md
.claude/
.cursor/
.cursorrules
.gemini/
.windsurf/
.windsurfrules
.codex/
.mcp.json
# plugin/.mcp.json is an ai-rulez-generated plugin bundle (provenance in
# plugin/.ai-rulez-generated.json) that CI's `ai-rulez verify --plugin` reads;
# it must be committed like its sibling bundles. ~keep
!plugin/.mcp.json
AGENTS.md
GEMINI.md

# Lychee link checker cache
.lycheecache

# Misc
.cache/
.benchmarks/
site/
todo.md
[Tt][Oo][Dd][Oo]*
.tmp/
*temp/
.artifacts/
.remote-cache/
.pnpm-store/
.env*
.alef/
.polylint/
*.pyd
.gems/
vendor/bundle/
*.h.bak
*.test
bin/
# cli-proxy ships a hand-written launcher under bin/ — keep it tracked despite the broad bin/ rule.
!cli-proxy/npm/bin/
# alef generates packages/dart/bin/download_libs.dart; the broad bin/ rule above would
# discard it after every regen, so the freshness gate can never go green without this.
!packages/dart/bin/
obj/
*.nupkg
pkg/
packages/php/var/

test_apps/zig/zig-pkg/

# Swift artifact bundle downloaded by test_apps/swift_e2e/download_swift_artifact.sh
test_apps/swift_e2e/*.artifactbundle.zip

# Kotlin compiler daemon sessions
**/.kotlin/
.kotlin/

.playwright-mcp/


# basemind local index cache
.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

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.*
.ai-rulez/.generated-manifest.json
.opencode/agents/
.opencode/commands/
/opencode.json
# END ai-rulez

# ~keep Alef verifies these generated wrapper artifacts in fresh checkouts.
!packages/kotlin-android/gradle/wrapper/gradle-wrapper.jar
!test_apps/kotlin_android/gradle/wrapper/gradle-wrapper.jar
!e2e/java/.mvn/
e2e/java/.mvn/*
!e2e/java/.mvn/wrapper/
e2e/java/.mvn/wrapper/*
!e2e/java/.mvn/wrapper/maven-wrapper.properties
!test_apps/java/.mvn/
test_apps/java/.mvn/*
!test_apps/java/.mvn/wrapper/
test_apps/java/.mvn/wrapper/*
!test_apps/java/.mvn/wrapper/maven-wrapper.properties

!test_apps/node/pnpm-lock.yaml
!test_apps/wasm/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
.github/commands/
