Commit History
-
refactor(worker): Sprint 2 — dead code removal and queue consolidation
CognxSafeTrack +1: Claude Sonnet 4.6H1: Delete credit-guard.ts (worker) and credit-cache.ts (api) — both fully superseded by wallet.ts/requireCredits.ts since the wallet migration. H6: Introduce lib/queues.ts with shared whatsappQueue and notificationQueue instances. Replace all 10 inline `new Queue(...)` calls across wallet.ts, usage-tracker.ts, whatsapp-logic.ts, scheduler.ts, and 4 handlers. Removes 10 redundant Redis connections; drops `q.close()` calls on ephemeral instances that were killing the shared connection. Shutdown handler now explicitly closes both shared queues. Scratch: Move apps/api/scratch/ one-shot DB scripts to scripts/db-ops/ so they don't ship in the production API bundle. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>37fb9ce
-
feat(sprint19-20): production-ready video integration & STT hardening
CognxSafeTrack## Sprint 19 — STT Pipeline Fix - fix(worker): remove variable shadowing in transcribedText (index.ts) Transcribed text now correctly reaches the pedagogical handler ## Sprint 20 — Production-Ready Video Integration - feat(schema): add videoCaption field to TrackDay model (Prisma) - feat(seed): propagate videoCaption in all upsert paths - feat(pedagogy): video-first delivery with [VIDEO]/[VIDEO_OK]/[VIDEO_FALLBACK] logs - feat(pedagogy): automatic fallback — image + link when WhatsApp rejects video - feat(whatsapp): add TEST_VIDEO <TrackId> <Day> admin command ## Content — Canonical Video Mapping (T1–T5 FR+WO) - content(T1): inject videos v1_1→v1_2 on days 1,2,3,4,5,6,7,8,9,10,11 - content(T2): inject videos v4_4, v7_1, v5_1 on days 1,2,4 - content(T3): inject videos v7_4, v4_6, v9_1 on days 1,4,5 - content(T4): inject videos v5_3, v9_3 (Wave Business), v10_1 on days 5,6,7 - content(T5): inject videos v8_1, v8_2 on days 1,3 - content(T1-FR/WO): fix 26 broken dummy-storage imageUrls…19d10a4
-
fix(arch): HF inbound-only + seedDatabase export + DISABLE_WORKER + DISABLE_WHATSAPP_SEND
CognxSafeTrackfe2f79f
-
feat: sync all recent changes (AI, whatsapp, redis passwords, script fixes)
CognxSafeTrack3c6fc2a -
fix: run prisma commands using @repo /database filter
CognxSafeTrackf68d61b
-
feat: add Dockerfile and script for Hugging Face Spaces
CognxSafeTracka59f28c