Buckets:
| /** | |
| * Storage-related constants (localStorage, IndexedDB). | |
| * | |
| * Centralized to ensure consistency across the app and simplify future | |
| * name changes. | |
| */ | |
| /** Name prefix for all localStorage keys */ | |
| export const STORAGE_APP_NAME = 'LlamaUi'; | |
| /** Deprecated localStorage key prefix (old app name) */ | |
| export const STORAGE_APP_NAME_DEPRECATED = 'LlamaCppWebui'; | |
| /** @deprecated Deprecated IndexedDB name — will be removed after all users have migrated */ | |
| export const DB_APP_NAME_DEPRECATED = 'LlamacppWebui'; | |
| export const ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.alwaysAllowedTools`; | |
| export const CONFIG_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.config`; | |
| export const DISABLED_TOOLS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.disabledTools`; | |
| /** Disabled tools keyed by stable selection identity, no migration from the name based key */ | |
| export const DISABLED_TOOL_KEYS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.disabledToolKeys`; | |
| /** Default disabled tool categories, seeded into newly created conversations */ | |
| export const DISABLED_TOOL_CATEGORIES_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.disabledToolCategories`; | |
| export const FAVORITE_MODELS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.favoriteModels`; | |
| /** Open state the user set for a model list section or one of its families, by id. */ | |
| export const MODEL_GROUP_OPEN_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.modelGroupOpen`; | |
| /** Recently used model ids, most recent first, backend-qualified. */ | |
| export const RECENT_MODELS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.recentModels`; | |
| /** Model ids kept out of the selector, backend-qualified. */ | |
| export const HIDDEN_MODELS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.hiddenModels`; | |
| export const REASONING_EFFORT_DEFAULT_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.reasoningEffortDefault`; | |
| export const CONVERSATION_TABS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.conversationTabs`; | |
| export const SIDEBAR_EXPANDED_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.sidebarExpanded`; | |
| export const SIDEBAR_WIDTH_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.sidebarWidth`; | |
| export const USER_OVERRIDES_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.userOverrides`; | |
| export const DISMISSED_RECOMMENDED_MCP_SERVERS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.dismissedRecommendedMcpServers`; | |
| /** Key prefix for per-conversation resumable stream state, conversationId is appended */ | |
| export const STREAM_RESUME_LOCALSTORAGE_KEY_PREFIX = `${STORAGE_APP_NAME}.streamResume.`; | |
| // Deprecated old key names (kept for backward compat while users migrate) | |
| /** @deprecated Use {@link ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY} instead */ | |
| export const DEPRECATED_ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME_DEPRECATED}.alwaysAllowedTools`; | |
| /** @deprecated Use {@link CONFIG_LOCALSTORAGE_KEY} instead */ | |
| export const DEPRECATED_CONFIG_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME_DEPRECATED}.config`; | |
| /** @deprecated Use {@link DISABLED_TOOLS_LOCALSTORAGE_KEY} instead */ | |
| export const DEPRECATED_DISABLED_TOOLS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME_DEPRECATED}.disabledTools`; | |
| /** @deprecated Use {@link FAVORITE_MODELS_LOCALSTORAGE_KEY} instead */ | |
| export const DEPRECATED_FAVORITE_MODELS_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME_DEPRECATED}.favoriteModels`; | |
| /** @deprecated Use {@link USER_OVERRIDES_LOCALSTORAGE_KEY} instead */ | |
| export const DEPRECATED_USER_OVERRIDES_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME_DEPRECATED}.userOverrides`; | |
| /** Build version stored in localStorage for non-PWA update detection */ | |
| export const BUILD_VERSION_LOCALSTORAGE_KEY = `${STORAGE_APP_NAME}.buildVersion`; | |
| /** Maps new keys to their deprecated fallback keys */ | |
| export const NEW_TO_DEPRECATED_MAP: Record<string, string> = { | |
| [ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY]: DEPRECATED_ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY, | |
| [CONFIG_LOCALSTORAGE_KEY]: DEPRECATED_CONFIG_LOCALSTORAGE_KEY, | |
| [DISABLED_TOOLS_LOCALSTORAGE_KEY]: DEPRECATED_DISABLED_TOOLS_LOCALSTORAGE_KEY, | |
| [FAVORITE_MODELS_LOCALSTORAGE_KEY]: DEPRECATED_FAVORITE_MODELS_LOCALSTORAGE_KEY, | |
| [USER_OVERRIDES_LOCALSTORAGE_KEY]: DEPRECATED_USER_OVERRIDES_LOCALSTORAGE_KEY | |
| }; | |
Xet Storage Details
- Size:
- 4.08 kB
- Xet hash:
- 4d68dc77145ca00bba454bfdc847671b2dc714a020c177f05b4e8695032f34a9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.