Skip to Content

SDK_SCHEMA_VERSION

const SDK_SCHEMA_VERSION: 27 = 27

Defined in: src/lib/db/schema.ts:52 

Current combined schema version for all SDK storage modules.

Version history:

  • v2: Baseline (chat + memory tables) - minimum supported version for migrations
  • v3: Added was_stopped column to history table
  • v4: Added modelPreferences table for settings storage
  • v5: Added error column to history table for error persistence
  • v6: Added thought_process column to history table for activity tracking
  • v7: Added userPreferences table for unified user settings storage
  • v8: BREAKING - Clear all data (switching embedding model from OpenAI to Fireworks)
  • v9: Added thinking column to history table for reasoning/thinking content
  • v10: Added projects table and project_id column to conversations table
  • v11: Added media table for library feature, added file_ids column to history table
  • v12: Added chunks column to history table for sub-message semantic search
  • v13: Added parent_message_id column to history table for message branching (edit/regenerate)
  • v14: Added feedback column to history table for like/dislike on responses
  • v15: Replaced memories table with memory_vault table for persistent memory vault
  • v16: Added scope column to memory_vault table for memory partitioning
  • v17: Added image_model column to history table for AI-generated image model tracking
  • v18: Added vault_folders table and folder_id column to memory_vault for folder organization
  • v19: Added user_id column to memory_vault for multi-user server-side scoping
  • v20: Added index on updated_at column of memory_vault for efficient since-based filtering
  • v21: Added embedding column to memory_vault for persisted embedding vectors
  • v22: Added is_system column to vault_folders for default system folders
  • v23: Added conversation_summaries table for progressive history summarization
  • v24: Added context column to vault_folders for LLM-generated folder summaries
  • v25: Added saved_tools table for user-saved display apps exposed as LLM tools
  • v26: Added app_files table for LLM-generated app source files (HTML/CSS/JS)
  • v27: Added tool_call_events column to history for reconstructing tool call history
Last updated on