# Dependencies
node_modules/

# Build outputs
dist/
build/
*.out
test-outputs/
test-log.txt
result_log.txt
lint_output.txt
lint_final.txt
tests/results/
evaluation/real-world-test/results/
evaluation/real-world-test/run_results/
evaluation/real-world-test/test-repos/
evaluation/results/
evaluation/local-artifacts/
benchmarks/results/

# Environment variables
.env
.env.local
.env.*.local
.env.production
.env.staging
.env.development
.env.test
*.env
*.env.local
*.env.*.local
!.env.example

# IDE and editor files
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json
!.vscode/launch.json
.vscode-test/
.idea/

# AI Editor Context & Rules
.cursor/*
!.cursor/rules/
!.cursor/commands/
!.cursor/mcp.json
.trae/*
!.trae/documents/
.gemini/*
!.gemini/settings.json
!.gemini/AGENTS.md
.windsurf/*
!.windsurf/rules/
.clinerules
# Allow clinerules since it's a shared rule file

# Swaps and temps
*.swp
*.swo
*~
.DS_Store

# Logs
logs/
*.log

# Runtime data
pids/
*.pid
*.seed
*.pid.lock

# Rust (Cargo) — per https://github.com/github/gitignore/blob/main/Rust.gitignore
target/
**/*.rs.bk
*.pdb
**/mutants.out*/

# Temporary files
*.tmp
*.temp
*.bak
/.DS_Store
/manual_review.md
/RESEARCH_FINDINGS.md
*.wasm
*.wasm.br
*.wasm.gz
crates/sruja-wasm/pkg/
crates/sruja-wasm/pkg-nodejs/
book/wasm/

# Architecture documentation build outputs
docs/architecture/*.json
docs/architecture/*.png
docs/architecture/*.svg

# mdbook: build output; Mermaid assets (run make book-deps to get mermaid.min.js)
book/book/
book/tmp_validate/
book/mermaid.min.js
book/mermaid-init.js

# Playwright MCP
.playwright-mcp/
playwright-report/
test-results/

# Agent and Shared folders
.agent/
.shared/
.codacy/
/internal-docs/

# Sruja runtime state (memory, cache, local context)
.sruja/
# Allow committed component knowledge (doc feature)
!.sruja/knowledge/
!.sruja/knowledge/*
# Allow config.toml template (no secrets)
!.sruja/config.toml.example
# Allow agent learning memory (shared across team)
!.sruja/agent_memory.json

# Demo generated outputs
demo/intent_report.md

# Demo and test results / output directories
out_*/
test_results*/
sruja_demo_*

# Generated outputs (when left in repo or demo)
**/real.graph.json
**/final_cto_report.txt
demo/sruja.graph.json
demo/traces.json
# Root-level architecture.sruja (tool-generated; intentional ones live in demo/, evaluation/, etc.)
/architecture.sruja

# Session / planning docs (local or one-off)
/docs/plans/
/AGENT_SKILL_TESTING_PLAN.md
/AI_CODING_EDITOR_WORKFLOW.md
/AUTOMATED_TESTING.md
/COMPARISON_TEST_RESULTS.md
/IMPROVEMENTS_COMPLETE.md
/NEXT_SESSION.md
/NEXT_TEST.md
/PROGRESS_CHECKLIST.md
/QUICKSTART_AGENT_TESTING.md
/READY_TO_USE.md
/SESSION_HANDOFF.md
/SRUJA_SKILLS_PROVEN.md
/START_HERE.md
/TEST_RESULTS_SUMMARY.md
/VALIDATION_SUMMARY.md
/test_agent_skills.sh
/validate_framework.sh

# Ad-hoc test/validation scripts (optional; required scripts are in book/, evaluation/, extension/, scripts/, architecture/, demo/)
/comprehensive_test.sh
/quick_test.sh
/run_real_demo.sh
/validate_improvements.sh
/validate_improvements_simple.sh
/validate_improvements_v2.sh
/test_complex_systems.sh
/test_complex_systems_improved.sh
/test_new_complex_systems.sh
/test_new_complex_systems_v2.sh
/test_new_projects.sh
/test_service_detection.sh

# Sruja Federation artifacts
system.index.json
repo.bundle.json
.fastembed_cache

# Coverage reports
/coverage_report.txt
/coverage_report_new.txt

# Temporary scan artifacts
/express_scan.json
/fastapi_scan.json

extension/coverage/
docs/improvements.md
graphify-out/
sruja.graph.json
headroom
codebase-memory-mcp