/** local-server project root directory */ export declare const PROJECT_ROOT: string; /** * Data directory for DB, archives, conversations. * Stored in ~/.brainbotbeta/data/ (not inside local-server/) so that package * updates or reinstalls cannot accidentally delete user data. */ export declare const DATA_DIR: string; /** * Directory for persisted image attachments. * Images are stored in monthly subdirectories: images/{YYYY-MM}/{uuid}.{ext} */ export declare const IMAGES_DIR: string; /** * Global directory for files shared across all conversations. * Contains global CLAUDE.md (memory) and system-prompt.md. * Separated from WORKSPACE_ROOT so that agents cannot see other conversations' workspaces. */ export declare const GLOBAL_DIR: string; /** * Root of per-conversation workspaces. * Each conversation gets its own subdirectory with CLAUDE.md and conversations/. * Override with BRAIN_WORKSPACE_ROOT env var for testing. */ export declare const WORKSPACE_ROOT: string; /** * Sanitize a string for use as a filesystem directory name. * Replaces characters invalid on Windows/Linux: <>:"/\|?* * * If the resulting path would exceed Windows MAX_PATH (260), the directory * name is truncated and a short hash suffix is appended for uniqueness. * This prevents ENOTCONN spawn failures caused by overly long cwd paths * (1:1 chat conversationIds are ~200 chars, which exceeds MAX_PATH when * combined with the workspace root prefix). */ export declare function sanitizeConversationKey(key: string): string; /** * Absolute path to a conversation's workspace directory. */ export declare function workspaceDir(conversationKey: string): string; /** * Absolute path to a conversation's archive directory (inside its workspace). */ export declare function conversationArchiveDir(conversationKey: string): string;