Commit Graph

11 Commits

Author SHA1 Message Date
Ruslan Bakiev
fe4bd59248 refactor(whisper): use shared whisper service instead of local model
Replace @xenova/transformers in-process model with HTTP calls to shared
whisper-asr-webservice container (http://whisper:9000). Converts PCM16
samples to WAV and sends to /asr endpoint. Env: WHISPER_URL.
2026-03-07 10:51:40 +07:00
Ruslan Bakiev
6291797bb6 chore: upgrade Prisma 7, LangChain 1.x, Tailwind 4.2, Vue 3.5.29 and other deps
- Prisma 6 → 7: new prisma-client generator, prisma.config.ts, PrismaPg adapter, updated all imports
- LangChain 0.x → 1.x: @langchain/core, langgraph, openai
- Tailwind 4.1 → 4.2.1, daisyUI 5.5.19, Vue 3.5.29, ai 6.0.99, zod 4.3.6
- Fix MessageDirection bug in crm-updates.ts (OUTBOUND → OUT)
- Add server/generated to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 09:27:26 +07:00
Ruslan Bakiev
f4891e6932 fix: replace prisma.$use with $extends for Prisma 6 compatibility
prisma.$use middleware API was removed in Prisma 6. Switched to
$extends query hooks which is the supported approach.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 09:08:20 +07:00
Ruslan Bakiev
693a96cffd feat: auto-create ClientTimelineEntry via Prisma middleware
CalendarEvent and FeedCard now automatically get a ClientTimelineEntry
when created/updated with a contactId. This ensures events created by
the agent (or any other code path) appear in the contact timeline
without needing explicit upsertClientTimelineEntry calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 09:01:30 +07:00
Ruslan Bakiev
bf7f4ae933 feat: broadcast pilot agent traces via WebSocket for live status on reconnect
Agent trace logs are now stored in-memory (pilotRunStore) and broadcast
through the existing /ws/crm-updates WebSocket channel. When a client
reconnects, it receives a pilot.catchup with all accumulated logs so the
user sees agent progress even after page reload. Three new WS event
types: pilot.trace, pilot.finished, pilot.catchup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 08:45:32 +07:00
Ruslan Bakiev
43b487ccec refactor ai naming and make omni raw-json first 2026-02-23 09:32:59 +07:00
Ruslan Bakiev
5679f22f7f fix: switch telegram connect to short token and single-window redirect 2026-02-22 09:20:22 +07:00
Ruslan Bakiev
fa1231df37 feat: add scoped context payload and rollbackable document changes 2026-02-21 16:27:09 +07:00
Ruslan Bakiev
052f37d0ec feat: add telegram business connect onboarding and status sync 2026-02-21 16:27:04 +07:00
Ruslan Bakiev
129daa31d7 Add URL-based change review and selective change-set rollback 2026-02-20 19:04:49 +07:00
Ruslan Bakiev
46cca064df chore: rename service folders to lowercase 2026-02-20 12:10:25 +07:00