]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: Constants refactor (#26908)
authorAleksander Grygier <redacted>
Thu, 13 Aug 2026 04:53:56 +0000 (06:53 +0200)
committerGitHub <redacted>
Thu, 13 Aug 2026 04:53:56 +0000 (06:53 +0200)
commite21152dc9636c6d2db6edc9b4531dfc5b2d1cba3
treeba045685a0583b03b54e90d127c2ec91a072e973
parent8e7f22b67ef4667b4ddd50230771287f328cfb3f
ui: Constants refactor (#26908)

* refactor: Constants

* refactor: Constants/Enums cleanup

* refactor: Constant objects instead of multiple single value constants

* refactor: Cleanup constants
256 files changed:
tools/ui/pwa-assets-dark.config.ts
tools/ui/pwa-assets.config.ts
tools/ui/scripts/vite-plugin-build-info.ts
tools/ui/scripts/vite-plugin-relativize-base.ts
tools/ui/scripts/vite-plugin-splash-screen.ts
tools/ui/src/lib/components/app/actions/ActionIconCopyToClipboard.svelte
tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsList/ChatAttachmentsListItem/ChatAttachmentsListItemThumbnailFile.svelte
tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsPreview/ChatAttachmentsPreviewCurrentItem/ChatAttachmentsPreviewCurrentItemPdf.svelte
tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsPreview/ChatAttachmentsPreviewThumbnailStrip.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddButton.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddMcpServersSubmenu.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddReasoningSubmenu.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddSheet.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddToolsSubmenu.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionRecord.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormContenteditable.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormPickers/ChatFormMentionPicker.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormWorkingDirectory.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessage.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/ChatMessageToolCallBlockDefault.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/ChatMessageToolCallBlockExecShellCommand.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/ChatMessageToolCallBlockReadFile.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/ChatMessageToolCallBlockReadMedia.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/ChatMessageToolCallBlockSearchResults.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/ToolCallBlock.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/parsers/read-file.ts
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/parsers/read-media.ts
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageToolCall/parsers/write-file.ts
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageActions/ChatMessageActionCard/ChatMessageActionCard.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageReasoningBlock.svelte
tools/ui/src/lib/components/app/chat/ChatScreen/ChatScreenActionScrollDown.svelte
tools/ui/src/lib/components/app/chat/ChatScreen/ChatScreenServerError.svelte
tools/ui/src/lib/components/app/content/CollapsibleContentBlock.svelte
tools/ui/src/lib/components/app/content/MarkdownContent/MarkdownContent.svelte
tools/ui/src/lib/components/app/content/MarkdownContent/plugins/rehype/code-block-utils.ts
tools/ui/src/lib/components/app/content/MarkdownContent/plugins/rehype/enhance-code-blocks.ts
tools/ui/src/lib/components/app/content/MarkdownContent/plugins/rehype/enhance-svg-blocks.ts
tools/ui/src/lib/components/app/content/MarkdownContent/plugins/rehype/file-badge.ts
tools/ui/src/lib/components/app/content/MarkdownContent/plugins/rehype/svg-pre.ts
tools/ui/src/lib/components/app/content/MermaidPreview.svelte
tools/ui/src/lib/components/app/content/MermaidPreviewControls.svelte
tools/ui/src/lib/components/app/content/SyntaxHighlightedCode.svelte
tools/ui/src/lib/components/app/dialogs/DialogMcpResourcePreview.svelte
tools/ui/src/lib/components/app/dialogs/DialogMcpResourcesBrowser.svelte
tools/ui/src/lib/components/app/dialogs/DialogMcpServerAddNew.svelte
tools/ui/src/lib/components/app/dialogs/DialogModelNotAvailable.svelte
tools/ui/src/lib/components/app/forms/SearchInput.svelte
tools/ui/src/lib/components/app/mcp/McpActiveServersAvatars.svelte
tools/ui/src/lib/components/app/mcp/McpResourcePreview.svelte
tools/ui/src/lib/components/app/mcp/McpResourcesBrowser/McpResourcesBrowserHeader.svelte
tools/ui/src/lib/components/app/mcp/McpResourcesBrowser/McpResourcesBrowserServerItem.svelte
tools/ui/src/lib/components/app/mcp/McpServerCard/McpServerCard.svelte
tools/ui/src/lib/components/app/mcp/McpServerForm.svelte
tools/ui/src/lib/components/app/misc/HorizontalScrollCarousel.svelte
tools/ui/src/lib/components/app/models/ModelsSelectorOption.svelte
tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte
tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationConversationItem.svelte
tools/ui/src/lib/components/app/server/ServerErrorSplash.svelte
tools/ui/src/lib/components/app/server/ServerStatus.svelte
tools/ui/src/lib/components/app/settings/SettingsChat/SettingsChatFields.svelte
tools/ui/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportSection.svelte
tools/ui/src/lib/components/app/settings/SettingsChat/SettingsChatToolsTab.svelte
tools/ui/src/lib/components/app/settings/SettingsChatDesktopSidebar.svelte
tools/ui/src/lib/components/app/settings/SettingsChatMobileHeader.svelte
tools/ui/src/lib/components/pwa/PwaMetaTags.svelte
tools/ui/src/lib/constants/agentic.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/agentic.ts [deleted file]
tools/ui/src/lib/constants/api-endpoints.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/api-endpoints.ts [deleted file]
tools/ui/src/lib/constants/app.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/app.ts [deleted file]
tools/ui/src/lib/constants/attachment-labels.ts [deleted file]
tools/ui/src/lib/constants/attachment-menu.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/attachment-menu.ts [deleted file]
tools/ui/src/lib/constants/auto-scroll.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/auto-scroll.ts [deleted file]
tools/ui/src/lib/constants/binary-detection.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/binary-detection.ts [deleted file]
tools/ui/src/lib/constants/built-in-tools.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/built-in-tools.ts [deleted file]
tools/ui/src/lib/constants/cache.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/cache.ts [deleted file]
tools/ui/src/lib/constants/chat-commands.ts [deleted file]
tools/ui/src/lib/constants/chat-form.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/chat-form.ts [deleted file]
tools/ui/src/lib/constants/cli-flags.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/cli-flags.ts [deleted file]
tools/ui/src/lib/constants/code-block.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/code-blocks.ts [deleted file]
tools/ui/src/lib/constants/code.ts [deleted file]
tools/ui/src/lib/constants/content-detection.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/context-gauge-popup.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/context-gauge-popup.ts [deleted file]
tools/ui/src/lib/constants/context-keys.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/context-keys.ts [deleted file]
tools/ui/src/lib/constants/control-actions.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/control-actions.ts [deleted file]
tools/ui/src/lib/constants/conversation-import.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/conversation-import.ts [deleted file]
tools/ui/src/lib/constants/css-classes.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/css-classes.ts [deleted file]
tools/ui/src/lib/constants/database.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/database.ts [deleted file]
tools/ui/src/lib/constants/diagram-blocks.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/diagram-blocks.ts [deleted file]
tools/ui/src/lib/constants/error.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/error.ts [deleted file]
tools/ui/src/lib/constants/floating-ui-constraints.ts [deleted file]
tools/ui/src/lib/constants/formatters.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/formatters.ts [deleted file]
tools/ui/src/lib/constants/headers.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/icons.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/icons.ts [deleted file]
tools/ui/src/lib/constants/image-size.ts [deleted file]
tools/ui/src/lib/constants/image.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/index.ts
tools/ui/src/lib/constants/jpeg-exif.ts [deleted file]
tools/ui/src/lib/constants/key-value-pairs.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/key-value-pairs.ts [deleted file]
tools/ui/src/lib/constants/latex-protection.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/latex-protection.ts [deleted file]
tools/ui/src/lib/constants/literal-html.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/literal-html.ts [deleted file]
tools/ui/src/lib/constants/markdown.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/markdown.ts [deleted file]
tools/ui/src/lib/constants/max-bundle-size.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/max-bundle-size.ts [deleted file]
tools/ui/src/lib/constants/mcp-form.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/mcp-form.ts [deleted file]
tools/ui/src/lib/constants/mcp-resource.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/mcp-resource.ts [deleted file]
tools/ui/src/lib/constants/mcp.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/mcp.ts [deleted file]
tools/ui/src/lib/constants/mention-badge.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/mention-badge.ts [deleted file]
tools/ui/src/lib/constants/mermaid-blocks.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/mermaid-blocks.ts [deleted file]
tools/ui/src/lib/constants/message-export.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/message-export.ts [deleted file]
tools/ui/src/lib/constants/model-id.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/model-id.ts [deleted file]
tools/ui/src/lib/constants/model-loading.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/model-loading.ts [deleted file]
tools/ui/src/lib/constants/path-display.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/path-display.ts [deleted file]
tools/ui/src/lib/constants/precision.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/precision.ts [deleted file]
tools/ui/src/lib/constants/processing-info.ts [deleted file]
tools/ui/src/lib/constants/pwa.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/pwa.ts [deleted file]
tools/ui/src/lib/constants/reasoning-effort-tokens.ts [deleted file]
tools/ui/src/lib/constants/reasoning-effort.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/reasoning-effort.ts [deleted file]
tools/ui/src/lib/constants/recommended-mcp-servers.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/recommended-mcp-servers.ts [deleted file]
tools/ui/src/lib/constants/routes.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/routes.ts [deleted file]
tools/ui/src/lib/constants/sandbox.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/sandbox.ts [deleted file]
tools/ui/src/lib/constants/settings-keys.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/settings-keys.ts [deleted file]
tools/ui/src/lib/constants/settings-registry.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/settings-registry.ts [deleted file]
tools/ui/src/lib/constants/special-characters.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/sse.ts [deleted file]
tools/ui/src/lib/constants/storage.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/storage.ts [deleted file]
tools/ui/src/lib/constants/stream.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/stream.ts [deleted file]
tools/ui/src/lib/constants/supported-file-types.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/supported-file-types.ts [deleted file]
tools/ui/src/lib/constants/svg-blocks.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/svg-blocks.ts [deleted file]
tools/ui/src/lib/constants/table-html-restorer.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/table-html-restorer.ts [deleted file]
tools/ui/src/lib/constants/title-generation.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/title-generation.ts [deleted file]
tools/ui/src/lib/constants/tools.ts [deleted file]
tools/ui/src/lib/constants/tooltip-config.ts [deleted file]
tools/ui/src/lib/constants/ui.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/ui.ts [deleted file]
tools/ui/src/lib/constants/uri-template.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/uri-template.ts [deleted file]
tools/ui/src/lib/constants/url.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/url.ts [deleted file]
tools/ui/src/lib/constants/viewport.ts [deleted file]
tools/ui/src/lib/constants/working-directory.constants.ts [new file with mode: 0644]
tools/ui/src/lib/constants/working-directory.ts [deleted file]
tools/ui/src/lib/enums/attachment.enums.ts
tools/ui/src/lib/enums/index.ts
tools/ui/src/lib/hooks/use-chat-form-pickers.svelte.ts
tools/ui/src/lib/hooks/use-keyboard-shortcuts.svelte.ts
tools/ui/src/lib/hooks/use-pwa.svelte.ts
tools/ui/src/lib/hooks/use-reasoning-menu.svelte.ts
tools/ui/src/lib/hooks/use-settings-navigation.svelte.ts
tools/ui/src/lib/services/chat.service.ts
tools/ui/src/lib/services/index.ts
tools/ui/src/lib/services/mcp.service.ts
tools/ui/src/lib/services/migration.service.ts
tools/ui/src/lib/services/models.service.ts
tools/ui/src/lib/services/router.service.ts
tools/ui/src/lib/services/tools.service.ts
tools/ui/src/lib/stores/agentic.svelte.ts
tools/ui/src/lib/stores/chat.svelte.ts
tools/ui/src/lib/stores/conversations.svelte.ts
tools/ui/src/lib/stores/mcp-resources.svelte.ts
tools/ui/src/lib/stores/mcp.svelte.ts
tools/ui/src/lib/stores/models.svelte.ts
tools/ui/src/lib/stores/tools.svelte.ts
tools/ui/src/lib/stores/viewport.svelte.ts
tools/ui/src/lib/types/chat.d.ts
tools/ui/src/lib/types/index.ts
tools/ui/src/lib/types/navigation.d.ts [new file with mode: 0644]
tools/ui/src/lib/types/tools.d.ts
tools/ui/src/lib/utils/agentic.ts
tools/ui/src/lib/utils/api-fetch.ts
tools/ui/src/lib/utils/api-headers.ts
tools/ui/src/lib/utils/api-key-validation.ts
tools/ui/src/lib/utils/built-in-tools.ts [new file with mode: 0644]
tools/ui/src/lib/utils/cache-ttl.ts
tools/ui/src/lib/utils/cap-img-size.ts
tools/ui/src/lib/utils/chat-commands.ts [new file with mode: 0644]
tools/ui/src/lib/utils/code.ts
tools/ui/src/lib/utils/contenteditable-tokenizer.ts
tools/ui/src/lib/utils/cors-proxy.ts
tools/ui/src/lib/utils/glob-search.ts
tools/ui/src/lib/utils/heic-to-jpeg.ts
tools/ui/src/lib/utils/index.ts
tools/ui/src/lib/utils/jpeg-orientation.ts
tools/ui/src/lib/utils/mcp.ts
tools/ui/src/lib/utils/mention-badge.ts
tools/ui/src/lib/utils/path-display.ts
tools/ui/src/lib/utils/sandbox-tool.ts [new file with mode: 0644]
tools/ui/src/lib/utils/sanitize-svg.ts
tools/ui/src/lib/utils/stream-identity.ts
tools/ui/src/lib/utils/uri-template.ts
tools/ui/src/lib/utils/working-directory.ts
tools/ui/src/routes/+error.svelte
tools/ui/src/routes/+layout.svelte
tools/ui/src/routes/search/+page.svelte
tools/ui/tests/client/apikey-splash.svelte.test.ts
tools/ui/tests/client/chat-form-enter-code-block.svelte.test.ts
tools/ui/tests/client/settings-registry-invariants.svelte.test.ts
tools/ui/tests/client/settings-render-keys-migration.svelte.test.ts
tools/ui/tests/client/ui-settings-sync.svelte.test.ts
tools/ui/tests/unit/agentic-strip.test.ts
tools/ui/tests/unit/mcp-override-fallback.test.ts
tools/ui/tests/unit/mcp-servers-default.test.ts
tools/ui/tests/unit/mcp-service.test.ts
tools/ui/tests/unit/parse-mcp-server-settings.test.ts
tools/ui/tests/unit/sanitize-headers.test.ts
tools/ui/tests/unit/uri-template.test.ts
tools/ui/tests/unit/working-directory.test.ts
tools/ui/vite.config.ts