// Single source of truth for the settings shape and their defaults. // Defaults reproduce the extension's pre-1.1 behaviour exactly: both URL toggles off mean the only URL parameter sent is `q`. export const OPEN_IN_VALUES = ["new-tab", "background-tab", "new-window"]; // In UTF-16 units, as maxlength counts. Keeps the template far inside // storage.sync's 8192-byte item quota even when every character is a pasted // control character (six bytes once JSON-escaped), and far beyond any template // the 8,000-character URL budget could send. export const MAX_TEMPLATE_CHARS = 1000; export const DEFAULT_SETTINGS = { contextMenuMode: "simple", showTranslate: false, translationMode: "ask", translationLanguage: "", temporaryChat: false, webSearch: false, openIn: "new-tab", promptTemplate: "{query}", };