Files
ggml-org-llama-cpp-mirror/tools/ui/src/lib/stores/index.ts
T
Aleksander Grygier 0852e4a7ed ui : route chat through the active provider
Chat goes through protocol adapters, so an OpenAI-compatible endpoint
speaks its own wire format: per-backend paths and headers, the model on
the request, tools kept on the local server, and token counts synthesized
for endpoints that do not stream their own timings. The server store keeps
the local server's props while another provider is active, a conversation
resolves the provider its model belongs to before sending, and the chat
screen never blocks on the local probe when the install has none.

Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
2026-10-09 11:09:40 +02:00

69 lines
1.8 KiB
TypeScript

/**
* STORES
*
* Reactive Svelte runes state layer. Stores own application state and
* expose it as plain Svelte 5 runes (`$state`, `$derived`, `$effect`),
* consumed by components, routes, hooks and services.
*
* Import from this barrel in leaf consumers:
*
* ```ts
* import { chatStore, modelsStore } from '$lib/stores';
* ```
*
* Store modules keep direct imports between each other (and from services/
* utils they depend on) to avoid circular dependency chains.
*
* Each store below documents its primary responsibility.
*/
// CHAT / MESSAGING
export { chatStore } from './chat/index.svelte';
export { draftMessagesStore } from './chat/drafts.svelte';
// CONVERSATION TABS
export { tabsStore } from './tabs.svelte';
// CONTEXT STATS (active conversation context window usage)
export { contextStatsStore } from './chat/context-stats.svelte';
// AGENTIC (multi-turn tool orchestration)
export { agenticStore } from './agentic/index.svelte';
// CONVERSATIONS
export { conversationsStore } from './conversations/index.svelte';
// MCP
export { mcpStore } from './mcp/index.svelte';
// BACKENDS
export { backendsStore } from './backends.svelte';
export { backendsModelsStore } from './backendsModels.svelte';
// MODELS
export { modelsStore } from './models/index.svelte';
// MODELS DISCOVER (HuggingFace browse state for the discover dialog)
export { modelsDiscoverStore } from './models-discover/index.svelte';
// SERVER
export { serverStore } from './server.svelte';
// UI / LAYOUT
export { uiStore } from './ui.svelte';
// SETTINGS / UI PREFERENCES
export { settingsStore } from './settings/index.svelte';
export { permissionsStore } from './permissions.svelte';
// TOOLS
export { toolsStore } from './tools.svelte';
// ENVIRONMENT / META
export { versionStore } from './version.svelte';
export { deviceStore } from './device.svelte';