mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 02:21:10 +02:00
Bundles two unrelated changes that landed together due to a concurrent lint-staged race in a multi-session edit. Splitting after the fact would churn the parallel session's working tree, so the message is amended to honestly describe both pieces. ──── 1. feat(shared-llm): tiered LLM orchestrator (Phase 1) ──── Replaces the unused NestJS @mana/shared-llm package with a tiered LLM orchestrator that routes Mana tasks across four user-controlled privacy tiers: none — deterministic parsers / heuristics, no LLM browser — Gemma 4 E2B via @mana/local-llm (WebGPU, on-device) mana-server — services/mana-llm with Ollama (gemma3:4b on Mac Mini) cloud — services/mana-llm with google/* model (Gemini API) The user picks which tiers Mana is allowed to use. The orchestrator walks the user's tier list in order, picks the first one that's available + ready + permitted for the input's content class, and runs the task. If everything fails, it falls through to a per-task deterministic runRules() implementation when one is provided. Package shape moved from NestJS-style (Module/Service/__tests__/) to a flat browser-package layout (deps are @mana/local-llm + svelte peer). All NestJS legacy files deleted: __tests__/, interfaces/, types/, utils/, llm-client*.ts, llm.module.ts, standalone.ts, etc. Phase 2 (UI work — settings page section, onboarding step, source badge component, cloud-consent dialog) is a follow-up and does not block this commit. The orchestrator is fully functional from the Router tab right now. ──── 2. fix(mana/web): unwrap \$state proxy in workbench-scenes ──── Adding an app to a workbench scene threw DataCloneError. scenesState is a \$state array, so current.openApps was a Svelte 5 proxy and spreading it into a new array left proxy entries inside; IndexedDB's structured clone refuses to serialise those. Snapshot before handing the array to patchScene / createScene so Dexie sees plain objects. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| guides | ||
| inventar | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| nutriphi | ||
| photos | ||
| picture | ||
| planta | ||
| presi | ||
| questions | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||
| zitare/packages/content | ||