ui: Stores architecture improvements (#26910)

* refactor: Stores barrel imports + SSR gates

* refactor: Drop agenticStore wrapper exports

* refactor: Drop chatStore wrapper exports

* refactor: Drop modelsStore wrapper exports

* refactor: Drop serverStore wrapper exports

* refactor: Drop unused mcpStore wrapper exports

* refactor: Drop mcpResourceStore wrapper exports

* refactor: Drop conversationsStore wrapper exports + move buildConversationTree to utils

* refactor: Drop settingsStore wrapper exports

* refactor: Drop unused toolsStore wrapper exports

* refactor: Fix lint errors from store wrapper removal

* fix: Missing change

* refactor: Cleanup

* refactor: Context Stats store
This commit is contained in:
Aleksander Grygier
2026-08-13 08:11:30 +02:00
committed by GitHub
parent a6040c925c
commit 094e53db1c
116 changed files with 937 additions and 945 deletions
+20 -5
View File
@@ -9,7 +9,7 @@
// API utilities
export { getAuthHeaders, getJsonHeaders, sanitizeHeaders } from './api-headers';
export { apiFetch, apiFetchWithParams, apiPost, type ApiFetchOptions } from './api-fetch';
export { ApiError, apiFetch, apiFetchWithParams, apiPost } from './api-fetch';
export { validateApiKey } from './api-key-validation';
// Attachment utilities
@@ -51,7 +51,12 @@ export { extractRootDomain, sanitizeExternalUrl, canonicalizeServerUrl } from '.
export { modelLoadFraction, modelLoadProgressText } from './progress';
// Conversation utilities
export { createMessageCountMap, getMessageCount } from './conversation-utils';
export {
createMessageCountMap,
getMessageCount,
buildConversationTree,
type ConversationTreeItem
} from './conversation-utils';
// Clipboard utilities
export {
@@ -124,7 +129,10 @@ export { getImageErrorFallbackHtml } from './image-error-fallback';
// SSE-with-JSON stream iterator (used by built-in tool streaming, decoupled
// from chat.service.ts which embeds its own SSE parser for resume support)
export { parseSseJsonStream, type SseJsonEvent } from './sse';
export { parseSseJsonStream } from './sse';
// Stream session identity (conversation-id based)
export { streamIdentity } from './stream-identity';
// MCP utilities
export {
@@ -236,6 +244,12 @@ export {
buildMentionInsertion
} from './mention-badge';
// Chat template utilities
export {
detectThinkingSupport,
detectThinkingSupportWithReason
} from './chat-template-thinking-detector';
// Agentic content utilities (structured section derivation)
export {
deriveAgenticSections,
@@ -243,7 +257,8 @@ export {
parseToolResultWithMedia,
splitSearchSummaryList,
hasAgenticContent,
classifyToolResult
classifyToolResult,
classifyContinueIntent
} from './agentic';
// Line-level unified diff for tool result rendering (`edit_file` block)
@@ -270,7 +285,7 @@ export {
} from './search-results';
// Cache utilities
export { TTLCache, ReactiveTTLMap, type TTLCacheOptions } from './cache-ttl';
export { TTLCache, ReactiveTTLMap } from './cache-ttl';
// Redaction utilities
export { redactValue } from './redact';