.gitignore 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # deps
  2. node_modules/
  3. .pnpm-store/
  4. # build output
  5. dist/
  6. dist-pack/
  7. build/
  8. .next/
  9. out/
  10. .turbo/
  11. .tsup/
  12. # env
  13. .env
  14. .env.local
  15. .env.*.local
  16. .env.development
  17. .env.production
  18. # logs
  19. *.log
  20. npm-debug.log*
  21. yarn-debug.log*
  22. yarn-error.log*
  23. pnpm-debug.log*
  24. # test
  25. coverage/
  26. .nyc_output/
  27. playwright-report/
  28. test-results/
  29. # editors
  30. .vscode/*
  31. !.vscode/extensions.json
  32. !.vscode/settings.json.example
  33. .idea/
  34. *.swp
  35. *.swo
  36. # os
  37. .DS_Store
  38. Thumbs.db
  39. # macOS Finder / Spotlight occasionally drops "<name> 2.<ext>" duplicates
  40. # alongside the originals. Always accidental, never source.
  41. * 2.ts
  42. * 2.tsx
  43. * 2.js
  44. * 2.json
  45. * 2.yml
  46. * 2.md
  47. # misc
  48. *.tsbuildinfo
  49. .cache/
  50. # runtime bundles (populated per-env, never checked in)
  51. apps/*/data/
  52. apps/**/data/
  53. # claude code local overrides (shared settings.json is fine to commit)
  54. .claude/settings.local.json
  55. .claude/launch.json
  56. # internal reference docs — never pushed to remote
  57. # covers /docs/ at repo root and every file + subfolder inside it
  58. # EXCEPTIONS:
  59. # - MIGRATION.md is tracked — user-facing playbook for migrating onto briven.tech
  60. # - AI.md is tracked — operator setup guide for the ollama backend the AI features hit
  61. /docs/**
  62. !/docs/MIGRATION.md
  63. !/docs/AI.md
  64. !/docs/LICENSE-COMMERCIAL.md
  65. !/docs/launch/
  66. !/docs/launch/**
  67. !/docs/runbooks/
  68. !/docs/runbooks/discord-setup.md
  69. !/docs/runbooks/polar-metering-setup.md
  70. !/docs/runbooks/status-domain-cutover.md
  71. !/docs/runbooks/host-firewall-v6.md
  72. # Local git worktrees for parallel branch work — never commit their contents
  73. .worktrees/
  74. # Stray tsc emit into client-* src/ — the build script (`pnpm build`) was
  75. # emitting next to sources because no outDir was set in the per-package
  76. # tsconfig. Fixed by setting outDir: "./dist" in each client tsconfig;
  77. # this rule prevents drift if someone re-runs an older build script.
  78. packages/client-*/src/*.js
  79. packages/client-*/src/*.js.map
  80. packages/client-*/src/*.d.ts
  81. packages/client-*/src/*.d.ts.map
  82. # Briven Build Protocol R4 — read-only third-party reference repos. Populate
  83. # with `git clone --depth=1` (per machine); never committed, never built
  84. # against, never imported from. Used as shape spec only.
  85. _reference/
  86. # Internal planning / spec / instruction docs — NOT for the public repo.
  87. # The Codeberg repo is public open-core; these contain internal plans, specs,
  88. # AI instructions, and a security-sensitive bug report. Kept local-only.
  89. ARCHITECTURE.md
  90. BUILD_PLAN.md
  91. CONTRIBUTING.md
  92. SPEC.md
  93. SPRINT-PLAN.md
  94. AUTH-BLANK-STATE.md
  95. # Root-only internal docs (leading /). Do NOT use bare `docs/` — that also
  96. # hid new pages under apps/docs/ (public site) from git.
  97. /docs/
  98. /docs/**
  99. specs/
  100. # Local operator secrets — never commit
  101. memory.md
  102. .local/
  103. # Keep markdown private locally; only README.md files stay public on the remote
  104. *.md
  105. !README.md
  106. !**/README.md
  107. # Agent hard rules + SuperTokens library index (must be visible to every agent)
  108. !CLAUDE.md
  109. !AGENTS.md
  110. # Un-ignore parent dir first, then the file (gitignore parent-dir rule)
  111. !/docs/
  112. !/docs/knowledge-base.md