managarten/packages/shared-llm/src
Till JS 1cfd05939e fix(llm): user-friendly messages + settings link for all LLM errors
Move getUserMessage() to the base LlmError class so every error type
gets a German explanation with a clickable settings deep-link:

- TierTooLowError: "Kein KI-Modell aktiviert. Mindestens X benötigt."
- ProviderBlockedError: "… hat die Anfrage blockiert (Inhaltsfilter)."
- BackendUnreachableError: "… ist nicht erreichbar."
- EdgeLoadFailedError: "Browser-Modell konnte nicht geladen werden."
- Generic fallback: also includes the settings link now

The companion engine now catches LlmError (base class) instead of
only NoTierAvailableError, covering all failure modes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-17 15:13:48 +02:00
..
backends feat(ai): SSE streaming for foreground Mission Runner 2026-04-16 12:32:43 +02:00
errors.ts fix(llm): user-friendly messages + settings link for all LLM errors 2026-04-17 15:13:48 +02:00
index.ts feat(llm): add BYOK tier + 4 provider adapters (OpenAI, Anthropic, Gemini, Mistral) 2026-04-14 15:06:48 +02:00
orchestrator.ts fix(llm): user-friendly error messages when no LLM tier available 2026-04-17 14:46:39 +02:00
pricing.test.ts test(byok): add 35 unit tests + update docs to as-built status 2026-04-14 15:23:03 +02:00
pricing.ts feat(llm): add BYOK tier + 4 provider adapters (OpenAI, Anthropic, Gemini, Mistral) 2026-04-14 15:06:48 +02:00
queue.ts feat(shared-llm): Phase 4 — persistent LLM task queue 2026-04-09 01:51:20 +02:00
sse-parser.ts feat(ai): SSE streaming for foreground Mission Runner 2026-04-16 12:32:43 +02:00
store.svelte.ts fix: dev startup — Redis eviction policy, mana-media port crash, Svelte warnings 2026-04-10 18:33:41 +02:00
task.ts fix(mana/web): unwrap $state proxy in workbench-scenes Dexie writes 2026-04-09 00:44:00 +02:00
tiers.ts feat(llm): add BYOK tier + 4 provider adapters (OpenAI, Anthropic, Gemini, Mistral) 2026-04-14 15:06:48 +02:00
types.ts fix(mana/web): unwrap $state proxy in workbench-scenes Dexie writes 2026-04-09 00:44:00 +02:00