# Dependencies
node_modules/
**/node_modules
.pnp
.pnp.js

# Build outputs
dist/
build/
*.tsbuildinfo
**/*.js
**/*.d.ts
!apifn/docsfn/src/svelte/ApifnApiReference.svelte.d.ts
!superconsole/src/app.d.ts
!uifn/catalog/generated/primitive-contracts.d.ts
**/*.d.ts.map
**/*.js.map

# But allow config files
!*.config.js
!**/vitest.config.js
!**/tsup.config.js

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

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

# Security
*.pem
!uifn/registry/trust/registry-ed25519-public.pem
*.p12
*.key
*-key.pem

# Testing
coverage/
.vite-vitest/
.nyc_output
test-results/
.pytest_cache/
__pycache__/
*.py[cod]
.venv/
.venv*/

# OCR integration tests download language models into their working directory
/filefn/server/*.traineddata
/filefn/processing/*.traineddata

# Editors
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store

# Turbo
.turbo/

# Vite writes these next to a config while bundling it
**/vite.config.ts.timestamp-*
**/vite.config.js.timestamp-*

# Misc
*.tgz
.cache/
*.bundled_*.mjs

.agent
.venv

__pycache__
venv

# AI tool configs
.claude/
.entire/*
!.entire/.gitignore
!.entire/settings.json
.cursor/
.gemini/

# Python build artifacts
*.egg-info/

# Sub-package lock files (keep root only)
**/package-lock.json
!/package-lock.json
!.github/apifn-cli-install/package-lock.json
.vercel

.next/
.source/
.svelte-kit/
.docsfn/
docsfn/.tmp/
.tmp/browsefn-*/
.tmp/jscpd/langfn/
.reviewfn/artifacts/
.reviewfn/output/

# Apple / Xcode user artifacts
DerivedData/
**/xcuserdata/
**/*.xcuserstate
**/.swiftpm/
**/.build/

# Codex hooks are global (~/.codex/hooks.json); never commit repo-level ones
.codex/hooks.json
