// App state -- single source of truth for the renderer process. // Loaded collections (memories, sessions, projects) start empty and are // populated from the DB at boot. export const state = { memories: [], sessions: [], projects: [], route: 'memory', view: 'active', // 'active' | 'archived' mode: 'list', // 'list' | 'detail' detailId: null, subagentId: null, subagentDescription: null, pendingFocusUuid: null, query: '', projectFilter: 'all', projectSearch: '', sortDesc: true, includeMessageBodies: false, cursorId: null, selection: new Set(), showSource: false, lastArchiveSnapshot: null, undoTimer: null, undoExpires: 0 }; // Platform detection export const IS_MAC = /Mac|iPhone|iPad/.test(navigator.platform); // SVG icon constants export const FOLDER_SVG = ``; export const FILE_SVG = ``;