gadget/gadget-code/src/models
Rob Colbert e0fd6ece54 fix: remove syncIndexes from models, mock DB in drone-session tests
- Removed auto-invoked syncIndexes() blocks from all 11 model files
  (api-client, api-client-log, csrf-token, drone-monitor,
  drone-registration, email-log, email-verification, ide-session,
  user, web-token, web-visit) — no longer needed
- Fixed drone-session.test.ts by mocking ChatSession.updateOne(),
  VectorStoreService.ingestTurn(), and MessageQueue to prevent
  real DB connections during tests
- Removed unused mongoose Types import from drone-session test
- All 129 tests now pass across all packages
2026-05-19 16:32:58 -04:00
..
ai-provider.ts feat: add numPredict, numCtx, maxCompletionTokens to model config pipeline 2026-05-11 13:50:19 -04:00
api-client-log.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
api-client.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
chat-session.ts feat: token economics — real API token extraction, stats propagation, and context window fuel gauge 2026-05-18 14:36:36 -04:00
chat-turn.ts add numCtx (Context Window) setting to SESSION panel 2026-05-15 16:02:22 -04:00
csrf-token.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
drone-monitor.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
drone-registration.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
email-log.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
email-verification.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
ide-session.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
project.ts type fix for references 2026-05-16 13:59:40 -04:00
user.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
web-token.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
web-visit.ts fix: remove syncIndexes from models, mock DB in drone-session tests 2026-05-19 16:32:58 -04:00
workspace.ts philosophy shifting for Workspaces and Projects 2026-05-10 16:10:04 -04:00