Commit Graph

19 Commits

Author SHA1 Message Date
f38ee499ae feat(bot): unified topic processor replacing router+interpreter stack
Replace 3-layer architecture (gpt-5-nano router + gpt-4o-mini interpreter) with
single unified topic processor (gpt-4o-mini) for simplified message handling.

New components:
- HouseholdContextCache: TTL-based caching (5 min) for household config data
- TopicProcessor: Unified classification + parsing with structured JSON output

Key changes:
- Renamed ASSISTANT_ROUTER_MODEL → TOPIC_PROCESSOR_MODEL
- Added TOPIC_PROCESSOR_TIMEOUT_MS (default 10s)
- Refactored save() → saveWithInterpretation() for pre-parsed interpretations
- Removed deprecated createOpenAiTopicMessageRouter and ~300 lines legacy code
- Fixed typing indicator to only start when needed (purchase routes)
- Fixed amount formatting: convert minor units to major for rawText

Routes: silent, chat_reply, purchase, purchase_clarification, payment,
payment_clarification, topic_helper, dismiss_workflow

All 212 bot tests pass. Typecheck, lint, format, build clean.
2026-03-14 13:33:57 +04:00
8374d18189 feat(bot): add shared topic router 2026-03-12 17:12:26 +04:00
60a5cd332e chore(config): align default ai model settings 2026-03-11 04:51:51 +04:00
4dd469a0fe chore(bot): log assistant stage timings 2026-03-11 03:41:03 +04:00
714d2a985d feat(bot): add conversational DM assistant flow 2026-03-11 01:41:58 +04:00
a63c702037 feat(bot): add confirmed purchase proposals in topic ingestion 2026-03-11 01:32:47 +04:00
be4d388e2f refactor(config): remove single-household deploy legacy 2026-03-10 18:50:44 +04:00
16f9981fee feat(bot): add multi-household reminder delivery 2026-03-09 16:50:57 +04:00
7c602900ee feat(bot): cut over multi-household member flows 2026-03-09 06:14:57 +04:00
8109163067 feat(onboarding): add mini app household join flow 2026-03-09 04:16:34 +04:00
8645a0a096 feat(observability): add structured pino logging 2026-03-09 01:03:08 +04:00
7ffd81bda9 feat(bot): add anonymous feedback flow 2026-03-08 22:50:55 +04:00
f8478b717b feat(miniapp): add telegram-authenticated shell 2026-03-08 22:30:59 +04:00
fd0680c8ef feat(infra): add reminder scheduler jobs 2026-03-08 22:23:19 +04:00
6c0dbfc48e feat(bot): add secure reminder job runtime 2026-03-08 22:15:01 +04:00
Stas
fad17b690f feat(bot): add finance cycle and statement commands (#12) 2026-03-05 03:52:10 +03:00
ebb6ce4ce6 feat(WHE-23): add hybrid purchase parser with persisted parse metadata 2026-03-05 04:43:57 +04:00
67e9e2dee2 feat(WHE-22): ingest configured topic messages with idempotent persistence 2026-03-05 04:32:58 +04:00
f8c3e4ccf5 feat(WHE-21): scaffold grammy webhook bot server 2026-03-05 04:17:04 +04:00