managarten/apps
Till JS e2f144962c feat: add unified @manacore/shared-llm package and migrate all backends
Create a shared LLM client package that provides a unified interface
to the mana-llm service, replacing 9 individual fetch-based integrations
with consistent error handling, retry logic, and JSON extraction.

Package (@manacore/shared-llm):
- LlmModule with forRoot/forRootAsync (NestJS dynamic module)
- LlmClientService: chat, json, vision, visionJson, embed, stream
- LlmClient standalone class for non-NestJS consumers
- extractJson utility (consolidates 3 markdown-stripping implementations)
- retryFetch with exponential backoff (429, 5xx, network errors)
- 44 unit tests (json-extractor, retry, llm-client)

Migrated backends:
- mana-core-auth: raw fetch → llm.json()
- planta: raw fetch + vision → llm.visionJson()
- nutriphi: raw fetch + regex → llm.visionJson() + llm.json()
- chat: custom OllamaService (175 LOC) → llm.chatMessages()
- context: raw fetch → llm.chat() (keeps token tracking)
- traces: 2x raw fetch → llm.chat()
- manadeck: @google/genai SDK → llm.json() + llm.visionJson()
- bot-services: raw Ollama API → LlmClient standalone
- matrix-ollama-bot: raw fetch → llm.chatMessages() + llm.vision()

New credit operations:
- AI_PLANT_ANALYSIS (2 credits, planta)
- AI_GUIDE_GENERATION (5 credits, traces)
- AI_CONTEXT_GENERATION (2 credits, context)
- AI_BOT_CHAT (0.1 credits, matrix)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 22:06:30 +01:00
..
calendar feat(calendar-web): add right-click context menu to events in week view 2026-03-23 22:02:46 +01:00
chat feat: add unified @manacore/shared-llm package and migrate all backends 2026-03-23 22:06:30 +01:00
citycorners feat: unify QuickInputBar across all apps with locale + deferSearch 2026-03-23 21:06:58 +01:00
clock feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
contacts feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
context feat: add unified @manacore/shared-llm package and migrate all backends 2026-03-23 22:06:30 +01:00
docs fix: replace all manacore.app URLs with mana.how 2026-03-22 18:40:37 +01:00
manacore fix(manacore): update todo service test mock to match new Task type 2026-03-23 21:57:52 +01:00
manadeck feat: add unified @manacore/shared-llm package and migrate all backends 2026-03-23 22:06:30 +01:00
matrix feat: add QuickInputBar to 6 more apps (mukke, matrix, manadeck, planta, photos, presi) 2026-03-23 21:25:51 +01:00
mukke feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
nutriphi feat: add unified @manacore/shared-llm package and migrate all backends 2026-03-23 22:06:30 +01:00
photos feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
picture feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
planta feat: add unified @manacore/shared-llm package and migrate all backends 2026-03-23 22:06:30 +01:00
playground refactor(auth): standardize URL resolution and token handling across all web auth stores 2026-03-23 12:11:52 +01:00
presi feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
questions feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
skilltree feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
storage feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
todo feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00
traces feat: add unified @manacore/shared-llm package and migrate all backends 2026-03-23 22:06:30 +01:00
zitare feat: add onboarding to 6 new apps and feature intro step to all 16 apps 2026-03-23 21:58:14 +01:00