# Dependencies and Package Management
server/node_modules/
.npm/
.yarn/
.pnp.*
yarn.lock

# Build Output and TypeScript
# server/dist/ is EXCLUDED - built fresh in CI/CD, distributed via GitHub Releases
server/dist/
build/
out/
*.tsbuildinfo
.tsbuildinfo

# Environment Variables
server/.env*
.env*

# Logs and Debug Files
#server/logs/
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Test Coverage and Reports
coverage/
nyc_output/
.coverage/
junit.xml
test-results/
*.lcov

# Editor and IDE Files
.vscode/
.cursor/
.history/
is/

# Operating System Files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
*:Zone.Identifier
*.Zone.Identifier

# Runtime Files
server/.npm-cache/
.npm-cache/
tmp/
temp/
pids/
*.pid
*.seed
*.pid.lock

# Gemini CLI runtime artifacts (if present in repo root)
.gemini/hook-cache.json
.gemini/hooks/debug.log
.gemini/tool-log.txt
.gemini/memory/session-*.jsonl

# MCP Server Specific
admin-ui/
server/cache/
# Track graph sources (.dot) but ignore generated assets
server/graphs/*
!server/graphs/*.dot

# Version history sidecar files (now stored in SQLite)
**/.history.json

# Runtime State Files
# server/config/framework-state.json
# .framework-state.json

# Runtime State (generated during server execution)
runtime-state/
server/runtime-state/

# Root-level resources (stale if MCP_WORKSPACE pointed to repo root)
/resources/

# Crash Dumps and Diagnostics
*.dmp
report.*.json
*.diagraw
heapdump-*

# Claude-Code setup
plans/archive/
CLAUDE.md
.codex/
.clinerules/

# Claude Code project config - track rules, ignore personal settings
.claude/settings.local.json
.claude/settings.json
server/.claude/
server/.opencode/
.claude/

.agent/
# Temporary test files
test_*.js
test_*.ts

# Backup files
*.backup
*.bak

# Temporary directories
opencodetmp/

# Python cache
__pycache__/
*.pyc
*.pyo
.cache/
.pytest_cache/
.ruff_cache/

# Future planning
plans/future/

# Test prompts
server/prompts/general/test_*.md
node_modules/
*.tgz
.osgrep

# Local backups (not committed)
plans/_backup-commands/

# Local dev scripts
scripts/dev-link.sh

# IDE workspace files
plans/claude-prompts.code-workspace

# Act event payloads (local CD testing)
.github/events/

# Claude Desktop Extension artifacts
*.mcpb
.mcpb-staging/
# Test environments
.test-gemini-home/
.history/

# Large assets (moodboards, design files)
assets/moodboard.png

# CLI config files (user-specific)
opencode.json
state.db

# User-local gates and scripts (not bundled with releases)
# path-verification: experimental gate paired with private implementation_plan prompt.
# Pattern preserved for future reference — if a bundled workflow emerges that
# uses this gate, move the files back out of the ignore list.
server/resources/gates/path-verification/
server/scripts/verify-path-claims.mjs
server/tests/integration/gates/path-verification.test.ts
