jason.woltjeandClaude Opus 4.6 366bb35956 fix: auth handler + circular imports — Phase 1 verification (P1-009)
Refactor BetterAuth integration from NestJS controller to Fastify
onRequest hook to avoid body parser conflicts. Extract injection
tokens to separate files to break circular import cycles.

- Auth handler: use onRequest hook to intercept /api/auth/* before
  Fastify body parser runs, passing raw IncomingMessage to BetterAuth
- Extract AUTH and BRAIN injection tokens to *.tokens.ts files
- Update all controllers to import from tokens files
- Verified: signup, signin, session, CRUD for projects/missions/tasks/
  conversations/messages all functional

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-12 22:01:11 -05:00
S
Description
Self-hosted multi-user AI agent platform — web dashboard, TUI, remote control, shared memory, mission orchestration
MIT
30 MiB
2026-06-11 20:14:20 +00:00
Languages
TypeScript 63.3%
Shell 25.6%
Python 8.7%
JavaScript 1.2%
PowerShell 0.8%
Other 0.2%