Files
next-ai-draw-io/lib/storage.ts
T
Dayuan Jiang 2ba700e61c feat(chat): MCP card on the start screen, with the promo video until it is closed (#990)
* feat(chat): bring back the MCP server notice on the start screen

* feat(chat): the start screen's MCP card plays the promo video until it is closed
2026-10-12 16:28:55 +09:00

36 lines
1.2 KiB
TypeScript

// Centralized localStorage keys for settings.
// Chat data is stored in IndexedDB via session-storage.ts
export const STORAGE_KEYS = {
// Access code for password-protected deployments
accessCode: "next-ai-draw-io-access-code",
accessCodeRequired: "next-ai-draw-io-access-code-required",
// Multi-model configuration
modelConfigs: "next-ai-draw-io-model-configs",
// Appearance
darkMode: "next-ai-draw-io-dark-mode",
locale: "next-ai-draw-io-locale",
minimalStyle: "next-ai-draw-io-minimal-style",
panelWidth: "next-ai-draw-io-panel-width",
// Chat input preferences
sendShortcut: "next-ai-draw-io-send-shortcut",
// Diagram validation
vlmValidationEnabled: "next-ai-draw-io-vlm-validation-enabled",
// Custom system message
customSystemMessage: "next-ai-draw-io-custom-system-message",
// Output token budget per turn (empty = server default)
maxOutputTokens: "next-ai-draw-io-max-output-tokens",
// Langfuse session id
sessionId: "next-ai-draw-io-session-id",
// The start screen's MCP video was closed (it does not come back)
mcpVideoClosed: "next-ai-draw-io-mcp-video-closed",
} as const