char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
fe235f434
char/aliceai-t5-moe
1/** 2* Storage-related constants (localStorage, IndexedDB). 3* 4* Centralized to ensure consistency across the app and simplify future 5* name changes. 6*/ 7 8/** Name prefix for all localStorage keys */ 9export const STORAGE_APP_NAME = 'LlamaUi' ; 10 11/** Deprecated localStorage key prefix (old app name) */ 12export const STORAGE_APP_NAME_DEPRECATED = 'LlamaCppWebui' ; 13 14/** @deprecated Deprecated IndexedDB name — will be removed after all users have migrated */ 15export const DB_APP_NAME_DEPRECATED = 'LlamacppWebui' ; 16 17export const ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .alwaysAllowedTools` ; 18export const CONFIG_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .config` ; 19export const DISABLED_TOOLS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .disabledTools` ; 20 21/** Disabled tools keyed by stable selection identity, no migration from the name based key */ 22export const DISABLED_TOOL_KEYS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .disabledToolKeys` ; 23 24/** Default disabled tool categories, seeded into newly created conversations */ 25export const DISABLED_TOOL_CATEGORIES_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .disabledToolCategories` ; 26export const FAVORITE_MODELS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .favoriteModels` ; 27export const REASONING_EFFORT_DEFAULT_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .reasoningEffortDefault` ; 28export const CONVERSATION_TABS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .conversationTabs` ; 29export const USER_OVERRIDES_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .userOverrides` ; 30export const DISMISSED_RECOMMENDED_MCP_SERVERS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .dismissedRecommendedMcpServers` ; 31 32/** Key prefix for per-conversation resumable stream state, conversationId is appended */ 33export const STREAM_RESUME_LOCALSTORAGE_KEY_PREFIX = ` ${ STORAGE_APP_NAME } .streamResume.` ; 34 35// Deprecated old key names (kept for backward compat while users migrate) 36/** @deprecated Use {@link ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY} instead */ 37export const DEPRECATED_ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME_DEPRECATED } .alwaysAllowedTools` ; 38/** @deprecated Use {@link CONFIG_LOCALSTORAGE_KEY} instead */ 39export const DEPRECATED_CONFIG_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME_DEPRECATED } .config` ; 40/** @deprecated Use {@link DISABLED_TOOLS_LOCALSTORAGE_KEY} instead */ 41export const DEPRECATED_DISABLED_TOOLS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME_DEPRECATED } .disabledTools` ; 42/** @deprecated Use {@link FAVORITE_MODELS_LOCALSTORAGE_KEY} instead */ 43export const DEPRECATED_FAVORITE_MODELS_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME_DEPRECATED } .favoriteModels` ; 44/** @deprecated Use {@link USER_OVERRIDES_LOCALSTORAGE_KEY} instead */ 45export const DEPRECATED_USER_OVERRIDES_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME_DEPRECATED } .userOverrides` ; 46 47/** Build version stored in localStorage for non-PWA update detection */ 48export const BUILD_VERSION_LOCALSTORAGE_KEY = ` ${ STORAGE_APP_NAME } .buildVersion` ; 49 50/** Maps new keys to their deprecated fallback keys */ 51export const NEW_TO_DEPRECATED_MAP :Record < string , string > = { 52[ ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY ] :DEPRECATED_ALWAYS_ALLOWED_TOOLS_LOCALSTORAGE_KEY , 53[ CONFIG_LOCALSTORAGE_KEY ] :DEPRECATED_CONFIG_LOCALSTORAGE_KEY , 54[ DISABLED_TOOLS_LOCALSTORAGE_KEY ] :DEPRECATED_DISABLED_TOOLS_LOCALSTORAGE_KEY , 55[ FAVORITE_MODELS_LOCALSTORAGE_KEY ] :DEPRECATED_FAVORITE_MODELS_LOCALSTORAGE_KEY , 56[ USER_OVERRIDES_LOCALSTORAGE_KEY ] :DEPRECATED_USER_OVERRIDES_LOCALSTORAGE_KEY 57};