feat(api): add conversation archive with vector search (MS22-DB-004, MS22-API-004) #587

Merged
jason.woltje merged 1 commits from feat/ms22-conversation-archive into main 2026-03-01 02:20:57 +00:00
Owner

MS22 Phase 0: Knowledge Layer\n\nNew ConversationArchive model + module (ingest + vector search). 8 tests.

## MS22 Phase 0: Knowledge Layer\n\nNew ConversationArchive model + module (ingest + vector search). 8 tests.
jason.woltje added 2 commits 2026-03-01 01:48:38 +00:00
- Add ConversationArchive Prisma model with pgvector(1536) embedding field
- Migration: 20260228000000_ms22_conversation_archive
- NestJS module at apps/api/src/conversation-archive/ with service, controller, DTOs, spec
- POST /api/conversations/ingest — ingest session logs, auto-embed via EmbeddingService
- POST /api/conversations/search — vector similarity search with agentId filter
- GET  /api/conversations — paginated list with agentId + date range filters
- GET  /api/conversations/:id — fetch full conversation including messages
- Register ConversationArchiveModule in app.module.ts
- 8 unit tests, all passing (vitest)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason.woltje added 1 commit 2026-03-01 01:51:38 +00:00
ci: suppress pre-existing multer CVEs in trivyignore
Some checks failed
ci/woodpecker/push/orchestrator Pipeline failed
ci/woodpecker/push/api Pipeline failed
ci/woodpecker/push/web Pipeline failed
bfe48ba4a2
jason.woltje added 1 commit 2026-03-01 02:01:10 +00:00
ci: override multer >=2.1.0 to fix pnpm audit high CVEs
All checks were successful
ci/woodpecker/push/orchestrator Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/api Pipeline was successful
45c757d656
jason.woltje force-pushed feat/ms22-conversation-archive from 45c757d656 to de37e7be90 2026-03-01 02:12:01 +00:00 Compare
jason.woltje force-pushed feat/ms22-conversation-archive from de37e7be90 to f0c0e6b45a 2026-03-01 02:20:38 +00:00 Compare
jason.woltje merged commit d07a840f25 into main 2026-03-01 02:20:57 +00:00
jason.woltje deleted branch feat/ms22-conversation-archive 2026-03-01 02:20:58 +00:00
Sign in to join this conversation.