export const HOME_CHAT_PROJECT_ID = "home-chat"
export const EMPTY_SESSION_ID = ""
export const SUCCESS_NOTICE_TIMEOUT_MS = 2400
export const TYPEWRITER_CHARS_PER_FRAME = 3
export const MESSAGE_LIST_AUTO_SCROLL_THRESHOLD_PX = 80
export const MAX_TRACE_ITEMS = 60

export const HOME_EXPERT_SUGGESTION_PROJECT_IDS = new Set(["xhs", "douyin"])

export const IMAGE_ATTACHMENT_EXTENSIONS = new Set([".png", ".jpg", ".jpeg", ".webp", ".gif", ".bmp"])
export const DOCUMENT_ATTACHMENT_EXTENSIONS = new Set([".pdf", ".ppt", ".pptx", ".xls", ".xlsx", ".csv", ".tsv", ".doc", ".docx", ".txt", ".md", ".json", ".mp3"])
export const SUPPORTED_ATTACHMENT_EXTENSIONS = new Set([...IMAGE_ATTACHMENT_EXTENSIONS, ...DOCUMENT_ATTACHMENT_EXTENSIONS])
export const COMPOSER_ATTACHMENT_ACCEPT = [...SUPPORTED_ATTACHMENT_EXTENSIONS].join(",")

export const COMPOSER_TEXTAREA_DEFAULT_MIN_HEIGHT = 38
export const COMPOSER_TEXTAREA_SAFE_MIN_HEIGHT = 30
export const COMPOSER_TEXTAREA_MAX_HEIGHT = 150
export const COMPOSER_TEXTAREA_DEFAULT_RATIO = 0.116
export const COMPOSER_TEXTAREA_MIN_RATIO = 0.096
export const COMPOSER_TEXTAREA_MAX_RATIO = 0.256
