Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
feat(providers): add voluntary share queries for research toggle and outbox
Emre Sokullub59c6c116a66
diff --git a/src/chrome/src/agent/agent.js b/src/chrome/src/agent/agent.jsindex 623a240ac..aa10ce4c4 100644--- a/src/chrome/src/agent/agent.js+++ b/src/chrome/src/agent/agent.js@@ -77,6 +77,7 @@ import { isPdfHandlerTabUrl, pdfUrlFromTabUrl } from './pdf-extraction.js';import { normalizePdfOcrResult, PDF_OCR_SYSTEM_PROMPT } from './pdf-ocr.js';import * as trace from '../trace/recorder.js';import { buildTerminalRuntimeEvent, enqueueCloudRuntimeEvent, flushCloudRuntimeOutbox } from '../trace/cloud-runtime-outbox.js';+import { buildShareGenerationItem, enqueueShareGeneration, flushShareOutbox } from '../trace/webbrain-share-outbox.js';import { normalizeRuntimeTraceConfig } from '../trace/runtime-config.js';import { tracesToMarkdown } from './trace-export.js';import { solveCaptcha, detectCaptcha, injectToken, captchaParamError, captchaTypesMatch, captchaWebsiteUrl } from './captcha-solver.js';@@ -18739,6 +18740,34 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dvoid flushCloudRuntimeOutbox(provider);} catch {}}+ // Voluntary per-provider research sharing. The WebBrain Compass provider+ // acts as transport (its API hosts the endpoint); which provider produced+ // the run only decides whether capture is gated on (the per-provider+ // toggle) and what attribution to record. Compass itself never goes+ // through this path.+ const shareTransport = this.providerManager?.getProvider?.('webbrain_cloud');+ if (shareTransport+ && provider?.config?.shareQueriesForResearch === true+ && String(provider?.config?.providerName || '').toLowerCase() !== 'webbrain-cloud') {+ try {+ const shareSessionId = this._shareSessionId(this.conversationIds.get(tabId) || null);+ if (shareSessionId) {+ const shareItem = buildShareGenerationItem({+ runId,+ finalContent,+ messages,+ model: provider?.model,+ mode,+ provider: String(provider?.config?.providerName || '').toLowerCase(),+ provider_name: String(provider?.config?.label || provider?.name || '').slice(0, 128),+ });+ if (shareItem) await enqueueShareGeneration({ session_id: shareSessionId, ...shareItem });+ }+ } catch {}+ }+ // Retry delivery of previously queued voluntary shares on every run end,+ // mirroring the Compass runtime outbox pattern.+ void flushShareOutbox(shareTransport);if (runId) {await this._flushAdapterMatchTraceRun(runId);try {@@ -18759,6 +18788,16 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dthis._taskTokens.delete(tabId);}+ /**+ * Namespace a conversation id into a backend-valid `share_` session id.+ * Keeps only the charset the improvement endpoint accepts and stays well+ * under the 200-char session id cap.+ */+ _shareSessionId(conversationId) {+ const safe = String(conversationId || '').replace(/[^A-Za-z0-9._:-]/g, '').slice(0, 190);+ return safe ? `share_${safe}` : '';+ }+/*** Build a compact, single-line-per-turn digest of recent conversation so the* planner can resolve follow-up references ("continue", "open the first@@ -40435,6 +40474,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d// to upload; the current run is enqueued at finalization and may complete// in the background or on the next Compass run.void flushCloudRuntimeOutbox(provider);+ void flushShareOutbox(this.providerManager?.getProvider?.('webbrain_cloud'));if (typeof runOptions?.isDetachedStartCancelled === 'function'&& runOptions.isDetachedStartCancelled()) {@@ -41744,6 +41784,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dconst provider = this._activeProvider(tabId);void flushCloudRuntimeOutbox(provider);+ void flushShareOutbox(this.providerManager?.getProvider?.('webbrain_cloud'));// The run claim owns cancellation reset. Stop during setup must survive.this._throwIfAborted(this._runAbortSignal(tabId));diff --git a/src/chrome/src/providers/manager.js b/src/chrome/src/providers/manager.jsindex 0e3760685..88519a641 100644--- a/src/chrome/src/providers/manager.js+++ b/src/chrome/src/providers/manager.js@@ -361,6 +361,14 @@ export class ProviderManager {...this._storedDefaultOverride(config, storedConfig),configured,};+ // Voluntary research sharing is opt-in per provider and default-off+ // (never on for WebBrain Compass itself, which already shares via its+ // own outbox). Applied in the field-level merge so existing stored+ // configs without the key inherit the off state without polluting the+ // default catalog snapshots.+ if (id !== WEBBRAIN_CLOUD_PROVIDER_ID && !Object.hasOwn(configs[id], 'shareQueriesForResearch')) {+ configs[id].shareQueriesForResearch = false;+ }if (Object.hasOwn(configs[id], 'duplicateOf')) {delete configs[id].duplicateOf;providerStateMigrated = true;@@ -461,7 +469,7 @@ export class ProviderManager {}_defaultConfigs() {- return {+ const defaults = {webbrain_cloud: {type: 'openai',category: 'cloud',@@ -929,6 +937,7 @@ export class ProviderManager {},...ADDITIONAL_PROVIDER_DEFAULTS,};+ return defaults;}_migrateStoredProviderConfigs(stored) {diff --git a/src/chrome/src/providers/openai.js b/src/chrome/src/providers/openai.jsindex 81df2e29c..85a0cdb64 100644--- a/src/chrome/src/providers/openai.js+++ b/src/chrome/src/providers/openai.js@@ -149,7 +149,7 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {return options.signal ? { signal: options.signal } : {};}- _headers() {+ _headers(options = {}) {const headers = { 'Content-Type': 'application/json' };const providerName = (this.config.providerName || '').toLowerCase();if (this.config.requiresApiKey && !String(this.config.apiKey || '').trim()) {@@ -167,7 +167,8 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {if (providerName === 'webbrain-cloud') {if (this.config.deviceGuid) headers['X-WebBrain-Device-Id'] = this.config.deviceGuid;headers['X-WebBrain-Client'] = 'extension';- headers['X-WebBrain-Help-Improve'] = this.config.helpImproveWebBrain === false ? '0' : '1';+ const helpImprove = options.helpImprove ?? (this.config.helpImproveWebBrain === false ? '0' : '1');+ headers['X-WebBrain-Help-Improve'] = helpImprove;}// OpenRouter-specific headersif (providerName === 'openrouter') {@@ -210,6 +211,41 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {}}+ /**+ * Transport for the voluntary per-provider "share queries for research"+ * outbox. Only ever called on the WebBrain Compass provider instance (the+ * share outbox routes through it because the backend lives on the WebBrain+ * API). Consent is forced on for this call: the share_ session is what the+ * user opted into by enabling the per-provider toggle, independent of the+ * global Help Improve WebBrain switch.+ */+ async sendShareGeneration(sessionId, payload, { timeoutMs = 4000 } = {}) {+ if (String(this.config.providerName || '').toLowerCase() !== 'webbrain-cloud') {+ return { ok: false, retryable: false, status: 0 };+ }+ const controller = typeof AbortController === 'function' ? new AbortController() : null;+ const timer = controller ? setTimeout(() => controller.abort(), Math.max(250, timeoutMs)) : null;+ try {+ const response = await fetchWithFallback(`${this.baseUrl}/improvement/generations`, {+ method: 'POST',+ headers: this._headers({ helpImprove: '1' }),+ body: JSON.stringify({ session_id: String(sessionId || ''), ...payload }),+ ...(controller ? { signal: controller.signal } : {}),+ });+ if (response.ok) return { ok: true, retryable: false, status: response.status };+ try { await response.text(); } catch {}+ return {+ ok: false,+ retryable: response.status === 408 || response.status === 429 || response.status >= 500,+ status: response.status,+ };+ } catch {+ return { ok: false, retryable: true, status: 0 };+ } finally {+ if (timer != null) clearTimeout(timer);+ }+ }+/*** Newer OpenAI models (gpt-5 and the o-series) reject `max_tokens` and any* non-default `temperature`, requiring `max_completion_tokens`. Detected bydiff --git a/src/chrome/src/trace/webbrain-share-outbox.js b/src/chrome/src/trace/webbrain-share-outbox.jsnew file mode 100644index 000000000..791c0a786--- /dev/null+++ b/src/chrome/src/trace/webbrain-share-outbox.js@@ -0,0 +1,168 @@+// Voluntary per-provider "share queries for research" outbox. Mirrors the+// Compass cloud-runtime outbox: writes are durable and awaited, network+// delivery is detached and retried by the next run. Unlike runtime events,+// each entry is a complete generation (request + response + attribution) and+// ships to POST /improvement/generations through the WebBrain Compass+// provider instance (its base URL hosts the backend), independent of which+// provider produced the run.++const STORAGE_KEY = 'webbrainShareOutboxV1';+const MAX_OUTBOX_ITEMS = 100;+const MAX_MESSAGE_CHARS = 10_000;+const MAX_REQUEST_BUDGET = 150_000;+const MAX_RESPONSE_CHARS = 40_000;+let storageQueue = Promise.resolve();+let fallbackRunCounter = 0;++function bounded(value, limit) {+ const serialized = typeof value === 'string' ? value : JSON.stringify(value ?? null);+ const text = typeof serialized === 'string' ? serialized : String(value ?? '');+ if (text.length <= limit) return text;+ return `${text.slice(0, limit)}\n[… ${text.length - limit} characters omitted]`;+}++function clampText(value, limit = MAX_MESSAGE_CHARS) {+ if (typeof value !== 'string') return value;+ return bounded(value, limit);+}++function scrubMessage(message) {+ if (!message || typeof message !== 'object') return null;+ const copy = { ...message };+ delete copy.image_url;+ if (Array.isArray(message.content)) {+ const items = [];+ for (const item of message.content) {+ if (!item || typeof item !== 'object') {+ items.push(item);+ continue;+ }+ // Drop images entirely so raw screenshot/data-URI bytes never leave the+ // browser; text blocks are clamped individually.+ if (item.type === 'image_url' || item.type === 'image') continue;+ if (item.type === 'text' && typeof item.text === 'string') {+ items.push({ ...item, text: clampText(item.text) });+ continue;+ }+ items.push(item);+ }+ if (!items.length) return { role: message.role, content: '[image content omitted]' };+ copy.content = items;+ } else if (typeof message.content === 'string') {+ if (!message.content.length) return null;+ copy.content = clampText(message.content);+ }+ return copy;+}++function scrubMessages(messages) {+ if (!Array.isArray(messages)) return null;+ const scrubbed = [];+ let budget = MAX_REQUEST_BUDGET;+ for (const message of messages) {+ if (budget <= 0 || scrubbed.length >= 200) break;+ const copy = scrubMessage(message);+ if (copy == null) continue;+ let serialized;+ try { serialized = JSON.stringify(copy); } catch { continue; }+ if (serialized == null || serialized.length > budget) {+ scrubbed.push({ role: 'system', content: '[remaining shared message omitted]' });+ break;+ }+ scrubbed.push(copy);+ budget -= serialized.length;+ }+ return scrubbed;+}++export function buildShareGenerationItem({+ runId,+ finalContent,+ messages,+ model,+ mode,+ provider,+ provider_name,+}) {+ const request = scrubMessages(messages);+ if (!request?.length) return null;+ const responseContent = String(finalContent ?? '');+ if (!responseContent.trim()) return null;+ const generatedId = globalThis.crypto?.randomUUID?.()+ || `${Date.now().toString(36)}_${(++fallbackRunCounter).toString(36)}`;+ return {+ id: String(runId || `share_${generatedId}`),+ provider: String(provider || '').slice(0, 64),+ provider_name: String(provider_name || '').slice(0, 128),+ model: String(model || '').slice(0, 255),+ mode: String(mode || '').slice(0, 32),+ request,+ response: { role: 'assistant', content: clampText(responseContent, MAX_RESPONSE_CHARS) },+ };+}++function localStorageArea() {+ const api = (typeof browser !== 'undefined' && browser?.storage)+ ? browser+ : ((typeof chrome !== 'undefined' && chrome?.storage) ? chrome : null);+ if (!api?.storage?.local?.get || !api.storage.local.set) {+ throw new Error('Extension local storage is unavailable');+ }+ return api.storage.local;+}++async function readOutbox() {+ const stored = await localStorageArea().get([STORAGE_KEY]);+ return Array.isArray(stored?.[STORAGE_KEY]) ? stored[STORAGE_KEY] : [];+}++function updateOutbox(update) {+ const next = storageQueue.catch(() => {}).then(async () => {+ const current = await readOutbox();+ const value = await update(current);+ await localStorageArea().set({ [STORAGE_KEY]: value.slice(-MAX_OUTBOX_ITEMS) });+ return value;+ });+ storageQueue = next;+ return next;+}++export async function enqueueShareGeneration(item) {+ if (!item?.id || item.request === undefined || item.response === undefined) return false;+ await updateOutbox(current => {+ if (current.some(entry => entry?.id === item.id)) return current;+ return [...current, { ...item, queued_at: Date.now() }];+ });+ return true;+}++export async function flushShareOutbox(transportProvider) {+ if (typeof transportProvider?.sendShareGeneration !== 'function') return 0;+ await storageQueue.catch(() => {});+ let snapshot;+ try { snapshot = await readOutbox(); } catch { return 0; }+ if (!snapshot.length) return 0;+ const removeIds = new Set();+ for (const entry of snapshot) {+ let result;+ try {+ result = await transportProvider.sendShareGeneration(entry.session_id, {+ provider: entry.provider,+ provider_name: entry.provider_name,+ model: entry.model,+ mode: entry.mode,+ request: entry.request,+ response: entry.response,+ });+ } catch {+ result = { ok: false, retryable: true };+ }+ if (result?.ok === true || result?.retryable === false) removeIds.add(entry.id);+ }+ if (removeIds.size) {+ await updateOutbox(current => current.filter(entry => !removeIds.has(entry?.id)));+ }+ return removeIds.size;+}++export const SHARE_OUTBOX_STORAGE_KEY = STORAGE_KEY;\ No newline at end of filediff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.jsindex 473c7beb7..c99e550c6 100644--- a/src/chrome/src/ui/locales/ar.js+++ b/src/chrome/src/ui/locales/ar.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "المساعدة في تحسين WebBrain","st.display.help_improve.desc_html": "السماح بالاحتفاظ بتفاعلات محددة مع WebBrain Compass واستخدامها للتقييم والتحسين والضبط الدقيق والتدريب. مفعّل افتراضيًا. عطّله لمنع استخدام تفاعلات Compass المستقبلية لهذه الأغراض. <u>لا يجمع WebBrain أبدًا طلبات النماذج المحلية أو الطلبات المرسلة مباشرة باستخدام بيانات اعتماد API الخاصة بك.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">سياسة الخصوصية →</a>","st.providers.webbrain_data_use.body": "يتضمن WebBrain Compass استخدامًا يوميًا مجانيًا. عندما تكون «المساعدة في تحسين WebBrain» مفعّلة افتراضيًا، قد يتم الاحتفاظ بمحادثات Compass محددة واستخدامها للتقييم والتحسين والضبط الدقيق والتدريب. عطّلها من عام ← متقدم لاستبعاد تفاعلات Compass المستقبلية من هذه الاستخدامات. <u>لا يجمع WebBrain أبدًا طلبات النماذج المحلية أو الطلبات المرسلة مباشرة باستخدام بيانات اعتماد API الخاصة بك.</u> {privacyLink}. لمزيد من الاستخدام، اشترك عبر {subscribeLink}. أدِر الفوترة عبر {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'توافق متقدم للنموذج','st.providers.compat.blurb': 'اترك هذه الخيارات على «تلقائي» ما لم يوثّق النموذج أو نقطة النهاية عقد طلب مختلفًا.','st.providers.compat.preset': 'إعداد مسبق للتوافق',diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.jsindex b3fa4bc94..0d8304237 100644--- a/src/chrome/src/ui/locales/bn.js+++ b/src/chrome/src/ui/locales/bn.js@@ -727,6 +727,9 @@ export default {'st.providers.compat.value.system': "সিস্টেম",'st.providers.compat.value.developer': "বিকাশকারী",'st.providers.webbrain_data_use.body': "বিনামূল্যে দৈনিক WebBrain Compass ব্যবহার অন্তর্ভুক্ত করা হয়েছে। WebBrain উন্নত করার জন্য সহায়তা ডিফল্টরূপে চালু থাকলেও, নির্বাচিত Compass কথোপকথনগুলি বজায় রাখা যেতে পারে এবং মূল্যায়ন, উন্নতি, ফাইন-টিউনিং এবং প্রশিক্ষণের জন্য ব্যবহার করা যেতে পারে। এই ব্যবহারগুলি থেকে ভবিষ্যতের Compass ইন্টারঅ্যাকশনগুলি বাদ দিতে সাধারণ → উন্নত-এ এটি বন্ধ করুন৷ <u>স্থানীয়-মডেল এবং আন-আপনার-নিজের API অনুরোধগুলি WebBrain দ্বারা সংগ্রহ করা হয় না।</u> {privacyLink}। আরও ব্যবহারের জন্য, {subscribeLink}-এ সদস্যতা নিন। {accountLink} এ বিলিং পরিচালনা করুন।",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "বিনামূল্যে দৈনিক WebBrain Compass ব্যবহার অন্তর্ভুক্ত করা হয়েছে। অনুরোধগুলি api.webbrain.one এর মাধ্যমে যায়; ডিফল্টরূপে আমরা কোটা এবং ডিবাগিংয়ের জন্য মেটাডেটা লগ করি, প্রম্পট টেক্সট, পৃষ্ঠার বিষয়বস্তু, স্ক্রিনশট বা মডেল প্রতিক্রিয়া নয়। {privacyLink}। আরও ব্যবহারের জন্য, {subscribeLink}-এ সদস্যতা নিন। {accountLink} এ বিলিং পরিচালনা করুন।",'st.providers.webbrain_note.privacy_link': "গোপনীয়তা নীতি",diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.jsindex 83c4255cd..675b9f88c 100644--- a/src/chrome/src/ui/locales/de.js+++ b/src/chrome/src/ui/locales/de.js@@ -687,6 +687,9 @@ export default {'st.providers.webbrain_note.body': 'Kostenlose tägliche WebBrain Compass-Nutzung ist enthalten. Anfragen werden über api.webbrain.one weitergeleitet; standardmäßig protokollieren wir Metadaten für Kontingente und Fehlerbehebung, jedoch keine Prompt-Texte, Seiteninhalte, Screenshots oder Modellantworten. {privacyLink}. Für mehr Nutzung abonnieren Sie unter {subscribeLink}. Verwalten Sie die Abrechnung unter {accountLink}.','st.providers.webbrain_note.privacy_link': 'Datenschutzrichtlinie','st.providers.webbrain_data_use.body': 'Kostenlose tägliche WebBrain Compass-Nutzung ist enthalten. Solange „Bei der Verbesserung von WebBrain helfen“ standardmäßig aktiviert ist, können ausgewählte Compass-Unterhaltungen gespeichert und für Auswertung, Verbesserung, Feinabstimmung und Training verwendet werden. Deaktivieren Sie die Option unter „Allgemein → Erweitert“, um zukünftige Compass-Interaktionen davon auszuschließen. <u>Anfragen an lokale Modelle und mit eigenen APIs werden niemals von WebBrain erfasst.</u> {privacyLink}. Für mehr Nutzung abonnieren Sie unter {subscribeLink}. Verwalten Sie die Abrechnung unter {accountLink}.',+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.ollama_warning.label': 'Ollama-FAQ','st.providers.ollama_warning.title': 'Warum gibt Ollama auf localhost einen 403-Fehler zurück?','st.providers.ollama_warning.body': 'Neuere Ollama-Versionen können Anfragen aus Browser-Erweiterungs-Origins ablehnen...',diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.jsindex 21621ada4..d98f77437 100644--- a/src/chrome/src/ui/locales/en.js+++ b/src/chrome/src/ui/locales/en.js@@ -583,7 +583,7 @@ export default {'st.display.cloud_bridge.status_error': 'Connection error: {error}','st.display.cloud_bridge.status_unreachable': 'Can’t reach {url}. Start the matching local bridge service; retrying…','st.display.help_improve.label': 'Help Improve WebBrain',- 'st.display.help_improve.desc_html': 'Allow eligible WebBrain Compass text and tool interactions to be retained and used for evaluation, improvement, fine-tuning, and training. On by default. Turning this off permanently opts out the current conversation; turning it back on applies to the next new conversation. Screenshots and image bytes are not retained in the WebBrain improvement database. <u>Local-model and bring-your-own API requests are never collected by WebBrain.</u> <a href="https://webbrain.one/privacy" target="_blank" rel="noopener noreferrer" style="color:var(--accent);">Privacy policy →</a>',+ 'st.display.help_improve.desc_html': 'Allow eligible WebBrain Compass text and tool interactions to be retained and used for evaluation, improvement, fine-tuning, and training. On by default. Turning this off permanently opts out the current conversation; turning it back on applies to the next new conversation. Screenshots and image bytes are not retained in the WebBrain improvement database. <u>Local-model and bring-your-own API requests are only collected by WebBrain from providers where you turn on “Share queries for research”.</u> <a href="https://webbrain.one/privacy" target="_blank" rel="noopener noreferrer" style="color:var(--accent);">Privacy policy →</a>','st.display.clarify_timeout.label': 'Clarify timeout','st.display.clarify_timeout.desc': 'How long to wait for a reply to a clarify prompt before auto-selecting the first option (or timing out if there are no options). 0 = Instant (always auto-select). Values above 1200s wait indefinitely (Off). Default 60s. Does not apply to permission or form-submit confirmations.','st.display.clarify_timeout.off': 'Off',@@ -727,7 +727,10 @@ export default {'st.providers.compat.value.max': 'Max','st.providers.compat.value.system': 'System','st.providers.compat.value.developer': 'Developer',- 'st.providers.webbrain_data_use.body': 'Free daily WebBrain Compass usage is included. While Help Improve WebBrain is on by default, selected Compass conversations may be retained and used for evaluation, improvement, fine-tuning, and training. Turn it off in General → Advanced to exclude future Compass interactions from those uses. <u>Local-model and bring-your-own API requests are never collected by WebBrain.</u> {privacyLink}. For more usage, subscribe at {subscribeLink}. Manage billing at {accountLink}.',+ 'st.providers.webbrain_data_use.body': 'Free daily WebBrain Compass usage is included. While Help Improve WebBrain is on by default, selected Compass conversations may be retained and used for evaluation, improvement, fine-tuning, and training. Turn it off in General → Advanced to exclude future Compass interactions from those uses. <u>Local-model and bring-your-own API requests are only collected by WebBrain when you turn on the per-provider “Share queries for research” option.</u> {privacyLink}. For more usage, subscribe at {subscribeLink}. Manage billing at {accountLink}.',+ 'st.providers.share_research.label': 'Share queries for research',+ 'st.providers.share_research.hint': 'Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.',+ 'st.providers.share_research.confirm': 'Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.','st.providers.webbrain_note.body': 'Free daily WebBrain Compass usage is included. Requests go through api.webbrain.one; by default we log metadata for quota and debugging, not prompt text, page content, screenshots, or model responses. {privacyLink}. For more usage, subscribe at {subscribeLink}. Manage billing at {accountLink}.','st.providers.webbrain_note.privacy_link': 'Privacy policy',diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.jsindex 4624af64b..293c69f22 100644--- a/src/chrome/src/ui/locales/es.js+++ b/src/chrome/src/ui/locales/es.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "Ayuda a mejorar WebBrain","st.display.help_improve.desc_html": "Permite conservar determinadas interacciones de WebBrain Compass y utilizarlas para evaluación, mejora, ajuste fino y entrenamiento. Activado de forma predeterminada. Desactívalo para impedir que futuras interacciones de Compass se utilicen con esos fines. <u>WebBrain nunca recopila solicitudes de modelos locales ni solicitudes enviadas con tus propias credenciales de API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Política de privacidad →</a>","st.providers.webbrain_data_use.body": "Se incluye uso diario gratuito de WebBrain Compass. Mientras Ayuda a mejorar WebBrain está activado de forma predeterminada, algunas conversaciones de Compass pueden conservarse y utilizarse para evaluación, mejora, ajuste fino y entrenamiento. Desactívalo en General → Avanzado para excluir futuras interacciones de Compass de esos usos. <u>WebBrain nunca recopila solicitudes de modelos locales ni solicitudes enviadas con tus propias credenciales de API.</u> {privacyLink}. Para obtener más uso, suscríbete en {subscribeLink}. Gestiona la facturación en {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Compatibilidad avanzada del modelo','st.providers.compat.blurb': 'Déjalos en Auto a menos que el modelo o el endpoint documenten un contrato de solicitud distinto.','st.providers.compat.preset': 'Preajuste de compatibilidad',diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.jsindex 5c72adbae..be0bb4c0d 100644--- a/src/chrome/src/ui/locales/fa.js+++ b/src/chrome/src/ui/locales/fa.js@@ -727,6 +727,9 @@ export default {'st.providers.compat.value.system': "سیستم",'st.providers.compat.value.developer': "توسعه دهنده",'st.providers.webbrain_data_use.body': "استفاده روزانه رایگان از WebBrain Compass گنجانده شده است. در حالی که Help Improve WebBrain به طور پیشفرض روشن است، مکالمات انتخابی Compass ممکن است حفظ شوند و برای ارزیابی، بهبود، تنظیم دقیق و آموزش استفاده شوند. آن را در عمومی ← پیشرفته خاموش کنید تا تعاملات Compass آینده را از این کاربردها حذف کنید. <u>درخواستهای API مدل محلی و خود را بیاورید هرگز توسط WebBrain جمعآوری نمیشوند.</u> {privacyLink}. برای استفاده بیشتر، در {subscribeLink} مشترک شوید. صورتحساب را در {accountLink} مدیریت کنید.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "استفاده روزانه رایگان از WebBrain Compass گنجانده شده است. درخواست ها از طریق api.webbrain.one انجام می شود. بهطور پیشفرض، فرادادهها را برای سهمیه و اشکالزدایی ثبت میکنیم، نه متن درخواستی، محتوای صفحه، عکسهای صفحه، یا پاسخهای مدل. {privacyLink}. برای استفاده بیشتر، در {subscribeLink} مشترک شوید. صورتحساب را در {accountLink} مدیریت کنید.",'st.providers.webbrain_note.privacy_link': "سیاست حفظ حریم خصوصی",diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.jsindex b1ef815ce..1319ff50e 100644--- a/src/chrome/src/ui/locales/fr.js+++ b/src/chrome/src/ui/locales/fr.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "Aider à améliorer WebBrain","st.display.help_improve.desc_html": "Autorise la conservation de certaines interactions WebBrain Compass et leur utilisation pour l’évaluation, l’amélioration, l’ajustement fin et l’entraînement. Activé par défaut. Désactivez cette option pour empêcher que les futures interactions Compass soient utilisées à ces fins. <u>WebBrain ne collecte jamais les requêtes de modèles locaux ni celles envoyées avec vos propres identifiants d’API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Politique de confidentialité →</a>","st.providers.webbrain_data_use.body": "Une utilisation quotidienne gratuite de WebBrain Compass est incluse. Tant que Aider à améliorer WebBrain est activé par défaut, certaines conversations Compass peuvent être conservées et utilisées pour l’évaluation, l’amélioration, l’ajustement fin et l’entraînement. Désactivez cette option dans Général → Avancé pour exclure les futures interactions Compass de ces usages. <u>WebBrain ne collecte jamais les requêtes de modèles locaux ni celles envoyées avec vos propres identifiants d’API.</u> {privacyLink}. Pour davantage d’utilisation, abonnez-vous sur {subscribeLink}. Gérez la facturation sur {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Compatibilité avancée du modèle','st.providers.compat.blurb': 'Laissez ces options sur Auto sauf si le modèle ou le point de terminaison documente un autre contrat de requête.','st.providers.compat.preset': 'Préréglage de compatibilité',diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.jsindex 9641b00fb..cec072d5a 100644--- a/src/chrome/src/ui/locales/he.js+++ b/src/chrome/src/ui/locales/he.js@@ -940,6 +940,9 @@ export default {"st.display.help_improve.label": "עזרה בשיפור WebBrain","st.display.help_improve.desc_html": "אפשרו לשמור אינטראקציות נבחרות עם WebBrain Compass ולהשתמש בהן להערכה, שיפור, כוונון עדין ואימון. מופעל כברירת מחדל. כבו כדי למנוע שימוש באינטראקציות Compass עתידיות למטרות אלה. <u>WebBrain לעולם אינו אוסף בקשות למודלים מקומיים או בקשות שנשלחות ישירות באמצעות פרטי ה-API שלכם.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">מדיניות פרטיות →</a>","st.providers.webbrain_data_use.body": "שימוש יומי חינמי ב-WebBrain Compass כלול. כאשר ״עזרה בשיפור WebBrain״ מופעלת כברירת מחדל, ייתכן ששיחות Compass נבחרות יישמרו וישמשו להערכה, שיפור, כוונון עדין ואימון. כבו את האפשרות ב״כללי ← מִתקַדֵם״ כדי להחריג אינטראקציות Compass עתידיות משימושים אלה. <u>WebBrain לעולם אינו אוסף בקשות למודלים מקומיים או בקשות שנשלחות ישירות באמצעות פרטי ה-API שלכם.</u> {privacyLink}. לשימוש נוסף, הירשמו דרך {subscribeLink}. נהלו את החיוב דרך {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'תאימות מתקדמת של המודל','st.providers.compat.blurb': 'השאירו על אוטומטי אלא אם המודל או נקודת הקצה מתעדים חוזה בקשה אחר.','st.providers.compat.preset': 'הגדרת תאימות מוכנה',diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.jsindex 6b3975f10..ebbfccd57 100644--- a/src/chrome/src/ui/locales/hi.js+++ b/src/chrome/src/ui/locales/hi.js@@ -727,6 +727,9 @@ export default {'st.providers.compat.value.system': "सिस्टम",'st.providers.compat.value.developer': "डेवलपर",'st.providers.webbrain_data_use.body': "मुफ़्त दैनिक WebBrain Compass उपयोग शामिल है। जबकि हेल्प इम्प्रूव WebBrain डिफ़ॉल्ट रूप से चालू है, चयनित Compass वार्तालापों को बनाए रखा जा सकता है और मूल्यांकन, सुधार, फाइन-ट्यूनिंग और प्रशिक्षण के लिए उपयोग किया जा सकता है। उन उपयोगों से भविष्य के Compass इंटरैक्शन को बाहर करने के लिए इसे सामान्य → उन्नत में बंद करें। <u>स्थानीय-मॉडल और अपनी खुद की एपीआई अनुरोध WebBrain द्वारा कभी एकत्र नहीं किए जाते हैं।</u> {privacyLink}. अधिक उपयोग के लिए, {subscribeLink} पर सदस्यता लें। {accountLink} पर बिलिंग प्रबंधित करें।",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "मुफ़्त दैनिक WebBrain Compass उपयोग शामिल है। अनुरोध api.webbrain.one से होकर गुजरते हैं; डिफ़ॉल्ट रूप से हम कोटा और डिबगिंग के लिए मेटाडेटा लॉग करते हैं, प्रॉम्प्ट टेक्स्ट, पेज सामग्री, स्क्रीनशॉट या मॉडल प्रतिक्रियाओं के लिए नहीं। {privacyLink}. अधिक उपयोग के लिए, {subscribeLink} पर सदस्यता लें। {accountLink} पर बिलिंग प्रबंधित करें।",'st.providers.webbrain_note.privacy_link': "गोपनीयता नीति",diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.jsindex 9b435e6c7..6e008c8ef 100644--- a/src/chrome/src/ui/locales/id.js+++ b/src/chrome/src/ui/locales/id.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "Bantu Tingkatkan WebBrain","st.display.help_improve.desc_html": "Izinkan interaksi WebBrain Compass tertentu disimpan dan digunakan untuk evaluasi, peningkatan, penyempurnaan, dan pelatihan. Aktif secara default. Nonaktifkan agar interaksi Compass mendatang tidak digunakan untuk tujuan tersebut. <u>WebBrain tidak pernah mengumpulkan permintaan model lokal atau permintaan yang dikirim langsung dengan kredensial API Anda sendiri.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Kebijakan privasi →</a>","st.providers.webbrain_data_use.body": "Penggunaan harian gratis WebBrain Compass sudah termasuk. Saat Bantu Tingkatkan WebBrain aktif secara default, percakapan Compass tertentu dapat disimpan dan digunakan untuk evaluasi, peningkatan, penyempurnaan, dan pelatihan. Nonaktifkan di Umum → Lanjutan agar interaksi Compass mendatang tidak digunakan untuk tujuan tersebut. <u>WebBrain tidak pernah mengumpulkan permintaan model lokal atau permintaan yang dikirim langsung dengan kredensial API Anda sendiri.</u> {privacyLink}. Untuk penggunaan lebih banyak, berlangganan di {subscribeLink}. Kelola penagihan di {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Kompatibilitas model lanjutan','st.providers.compat.blurb': 'Biarkan di Auto kecuali model atau endpoint mendokumentasikan kontrak permintaan yang berbeda.','st.providers.compat.preset': 'Preset kompatibilitas',diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.jsindex 783c6eb22..959043dfb 100644--- a/src/chrome/src/ui/locales/ja.js+++ b/src/chrome/src/ui/locales/ja.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "WebBrain の改善に協力する","st.display.help_improve.desc_html": "選択された WebBrain Compass の操作を保持し、評価、改善、微調整、トレーニングに使用することを許可します。既定でオンです。今後の Compass 操作がこれらの目的に使用されないようにするにはオフにしてください。<u>ローカルモデルへのリクエストや、ご自身の API 認証情報で直接送信したリクエストを WebBrain が収集することはありません。</u><a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">プライバシーポリシー →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass には毎日の無料利用枠が含まれます。「WebBrain の改善に協力する」は既定でオンであり、選択された Compass の会話が保持され、評価、改善、微調整、トレーニングに使用される場合があります。今後の Compass 操作をこれらの用途から除外するには、一般 → 詳細設定でオフにしてください。<u>ローカルモデルへのリクエストや、ご自身の API 認証情報で直接送信したリクエストを WebBrain が収集することはありません。</u>{privacyLink}。追加利用は {subscribeLink} で購読してください。請求は {accountLink} で管理できます。",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': '高度なモデル互換性','st.providers.compat.blurb': 'モデルまたはエンドポイントが別のリクエスト契約を明記していない限り、Auto のままにしてください。','st.providers.compat.preset': '互換性プリセット',diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.jsindex 24ecab22e..18e68534f 100644--- a/src/chrome/src/ui/locales/ko.js+++ b/src/chrome/src/ui/locales/ko.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "WebBrain 개선에 참여","st.display.help_improve.desc_html": "선택된 WebBrain Compass 상호작용을 보관하고 평가, 개선, 미세 조정 및 학습에 사용하도록 허용합니다. 기본적으로 켜져 있습니다. 향후 Compass 상호작용이 이러한 목적으로 사용되지 않도록 하려면 끄세요. <u>로컬 모델 요청과 사용자의 API 자격 증명으로 직접 전송한 요청은 WebBrain이 수집하지 않습니다.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">개인정보 처리방침 →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass에는 일일 무료 사용량이 포함됩니다. ‘WebBrain 개선에 참여’가 기본적으로 켜져 있는 동안 선택된 Compass 대화가 보관되어 평가, 개선, 미세 조정 및 학습에 사용될 수 있습니다. 향후 Compass 상호작용을 이러한 사용에서 제외하려면 일반 → 고급에서 끄세요. <u>로컬 모델 요청과 사용자의 API 자격 증명으로 직접 전송한 요청은 WebBrain이 수집하지 않습니다.</u> {privacyLink}. 더 많은 사용량이 필요하면 {subscribeLink}에서 구독하세요. 청구는 {accountLink}에서 관리하세요.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': '고급 모델 호환성','st.providers.compat.blurb': '모델이나 엔드포인트가 다른 요청 계약을 문서화하지 않는 한 Auto로 두세요.','st.providers.compat.preset': '호환성 프리셋',diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.jsindex d480ab8c8..a1165b1fb 100644--- a/src/chrome/src/ui/locales/ms.js+++ b/src/chrome/src/ui/locales/ms.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "Bantu Tingkatkan WebBrain","st.display.help_improve.desc_html": "Benarkan interaksi WebBrain Compass terpilih disimpan dan digunakan untuk penilaian, penambahbaikan, penalaan halus dan latihan. Dihidupkan secara lalai. Matikan untuk menghalang interaksi Compass pada masa hadapan daripada digunakan bagi tujuan tersebut. <u>WebBrain tidak pernah mengumpul permintaan model setempat atau permintaan yang dihantar terus menggunakan kelayakan API anda sendiri.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Dasar privasi →</a>","st.providers.webbrain_data_use.body": "Penggunaan harian percuma WebBrain Compass disertakan. Semasa Bantu Tingkatkan WebBrain dihidupkan secara lalai, perbualan Compass terpilih mungkin disimpan dan digunakan untuk penilaian, penambahbaikan, penalaan halus dan latihan. Matikan di Umum → Lanjutan untuk mengecualikan interaksi Compass pada masa hadapan daripada penggunaan tersebut. <u>WebBrain tidak pernah mengumpul permintaan model setempat atau permintaan yang dihantar terus menggunakan kelayakan API anda sendiri.</u> {privacyLink}. Untuk penggunaan tambahan, langgan di {subscribeLink}. Urus pengebilan di {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Keserasian model lanjutan','st.providers.compat.blurb': 'Biarkan pada Auto melainkan model atau titik akhir mendokumentasikan kontrak permintaan yang berbeza.','st.providers.compat.preset': 'Praset keserasian',diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.jsindex ab64f5421..d9d60c367 100644--- a/src/chrome/src/ui/locales/nl.js+++ b/src/chrome/src/ui/locales/nl.js@@ -979,6 +979,9 @@ export default {'st.providers.compat.value.system': 'Systeem','st.providers.compat.value.developer': 'Ontwikkelaar','st.providers.webbrain_data_use.body': 'Gratis dagelijks WebBrain Compass-gebruik is inbegrepen. Zolang „Help WebBrain verbeteren“ standaard is ingeschakeld, kunnen geselecteerde Compass-gesprekken worden bewaard en gebruikt voor evaluatie, verbetering, fine-tuning en training. Schakel dit uit onder Algemeen → Geavanceerd om toekomstige Compass-interacties van dit gebruik uit te sluiten. <u>Verzoeken aan lokale modellen en verzoeken met uw eigen API worden nooit door WebBrain verzameld.</u> {privacyLink}. Abonneer u voor meer gebruik via {subscribeLink}. Beheer facturering via {accountLink}.',+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.ollama_warning.label': 'Ollama FAQ','st.providers.ollama_warning.title': 'Waarom geeft Ollama op localhost 403 terug?','st.providers.ollama_warning.body': 'Recente Ollama-versies kunnen verzoeken weigeren...',diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.jsindex a880ee370..761fabf72 100644--- a/src/chrome/src/ui/locales/pl.js+++ b/src/chrome/src/ui/locales/pl.js@@ -978,6 +978,9 @@ export default {"st.display.help_improve.label": "Pomóż ulepszać WebBrain","st.display.help_improve.desc_html": "Zezwól na przechowywanie wybranych interakcji z WebBrain Compass i używanie ich do oceny, ulepszania, dostrajania i trenowania. Domyślnie włączone. Wyłącz, aby przyszłe interakcje Compass nie były używane do tych celów. <u>WebBrain nigdy nie zbiera żądań do modeli lokalnych ani żądań wysyłanych bezpośrednio przy użyciu własnych danych logowania API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Polityka prywatności →</a>","st.providers.webbrain_data_use.body": "Darmowe dzienne korzystanie z WebBrain Compass jest wliczone. Gdy opcja „Pomóż ulepszać WebBrain” jest domyślnie włączona, wybrane rozmowy Compass mogą być przechowywane i używane do oceny, ulepszania, dostrajania i trenowania. Wyłącz ją w Ogólne → Zaawansowane, aby wykluczyć przyszłe interakcje Compass z tych zastosowań. <u>WebBrain nigdy nie zbiera żądań do modeli lokalnych ani żądań wysyłanych bezpośrednio przy użyciu własnych danych logowania API.</u> {privacyLink}. Aby korzystać więcej, subskrybuj na {subscribeLink}. Zarządzaj rozliczeniami na {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.","sp.slash.export_config": "Eksportuj wszystkie ustawienia, w tym klucze API dostawców","sp.slash.import_config": "Importuj migawkę konfiguracji WebBrain w formacie JSON","sp.slash.import_config_file": "Wybierz plik JSON konfiguracji WebBrain",diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.jsindex 20d85947d..f3539c551 100644--- a/src/chrome/src/ui/locales/pt.js+++ b/src/chrome/src/ui/locales/pt.js@@ -727,6 +727,9 @@ export default {'st.providers.compat.value.system': "Sistema",'st.providers.compat.value.developer': "Desenvolvedor",'st.providers.webbrain_data_use.body': "O uso diário gratuito do WebBrain Compass está incluído. Embora Ajudar a melhorar WebBrain esteja ativado por padrão, conversas selecionadas no Compass podem ser retidas e usadas para avaliação, melhoria, ajuste fino e treinamento. Desative-o em Geral → Avançado para excluir futuras interações no Compass desses usos. <u>Solicitações de API de modelo local e de criação própria nunca são coletadas por WebBrain.</u> {privacyLink}. Para mais uso, assine em {subscribeLink}. Gerencie o faturamento em {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "O uso diário gratuito do WebBrain Compass está incluído. As solicitações passam por api.webbrain.one; por padrão, registramos metadados para cota e depuração, e não texto de prompt, conteúdo de página, capturas de tela ou respostas de modelo. {privacyLink}. Para mais uso, assine em {subscribeLink}. Gerencie o faturamento em {accountLink}.",'st.providers.webbrain_note.privacy_link': "Política de privacidade",diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.jsindex 285b7b2db..2b65903e5 100644--- a/src/chrome/src/ui/locales/ru.js+++ b/src/chrome/src/ui/locales/ru.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "Помогать улучшать WebBrain","st.display.help_improve.desc_html": "Разрешить хранить отдельные взаимодействия с WebBrain Compass и использовать их для оценки, улучшения, тонкой настройки и обучения. Включено по умолчанию. Отключите, чтобы будущие взаимодействия с Compass не использовались для этих целей. <u>WebBrain никогда не собирает запросы к локальным моделям и запросы, отправленные с вашими собственными учётными данными API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Политика конфиденциальности →</a>","st.providers.webbrain_data_use.body": "Включён бесплатный ежедневный объём WebBrain Compass. Пока параметр «Помогать улучшать WebBrain» включён по умолчанию, отдельные разговоры в Compass могут храниться и использоваться для оценки, улучшения, тонкой настройки и обучения. Отключите его в разделе «Общие → Расширенные», чтобы исключить будущие взаимодействия с Compass из такого использования. <u>WebBrain никогда не собирает запросы к локальным моделям и запросы, отправленные с вашими собственными учётными данными API.</u> {privacyLink}. Для большего объёма оформите подписку на {subscribeLink}. Управляйте оплатой на {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Расширенная совместимость модели','st.providers.compat.blurb': 'Оставляйте «Авто», если модель или endpoint не описывают другой формат запроса.','st.providers.compat.preset': 'Пресет совместимости',diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.jsindex e6e4830a8..8eb9a6d0f 100644--- a/src/chrome/src/ui/locales/th.js+++ b/src/chrome/src/ui/locales/th.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "ช่วยปรับปรุง WebBrain","st.display.help_improve.desc_html": "อนุญาตให้เก็บการโต้ตอบกับ WebBrain Compass บางรายการและใช้เพื่อการประเมิน การปรับปรุง การปรับละเอียด และการฝึก โดยเปิดไว้เป็นค่าเริ่มต้น ปิดตัวเลือกนี้เพื่อไม่ให้การโต้ตอบกับ Compass ในอนาคตถูกใช้เพื่อวัตถุประสงค์เหล่านี้ <u>WebBrain จะไม่เก็บคำขอของโมเดลภายในเครื่องหรือคำขอที่ส่งโดยตรงด้วยข้อมูลรับรอง API ของคุณเอง</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">นโยบายความเป็นส่วนตัว →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass มีโควตาใช้งานฟรีรายวัน ขณะที่ “ช่วยปรับปรุง WebBrain” เปิดไว้เป็นค่าเริ่มต้น การสนทนา Compass บางรายการอาจถูกเก็บและใช้เพื่อการประเมิน การปรับปรุง การปรับละเอียด และการฝึก ปิดได้ที่ ทั่วไป → ขั้นสูง เพื่อไม่ให้การโต้ตอบ Compass ในอนาคตถูกใช้ในลักษณะดังกล่าว <u>WebBrain จะไม่เก็บคำขอของโมเดลภายในเครื่องหรือคำขอที่ส่งโดยตรงด้วยข้อมูลรับรอง API ของคุณเอง</u> {privacyLink} หากต้องการใช้งานเพิ่ม สมัครที่ {subscribeLink} จัดการการเรียกเก็บเงินที่ {accountLink}",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'ความเข้ากันได้ของโมเดลขั้นสูง','st.providers.compat.blurb': 'ปล่อยเป็นอัตโนมัติ เว้นแต่โมเดลหรือเอนด์พอยต์จะระบุสัญญาคำขอที่แตกต่าง','st.providers.compat.preset': 'พรีเซ็ตความเข้ากันได้',diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.jsindex 0a9aa1ba4..ba8a40f44 100644--- a/src/chrome/src/ui/locales/tl.js+++ b/src/chrome/src/ui/locales/tl.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "Tumulong na Pahusayin ang WebBrain","st.display.help_improve.desc_html": "Payagan ang piling interaksyon sa WebBrain Compass na mapanatili at magamit para sa pagsusuri, pagpapahusay, fine-tuning, at training. Naka-on bilang default. I-off ito upang hindi magamit ang mga susunod na interaksyon sa Compass para sa mga layuning iyon. <u>Hindi kailanman kinokolekta ng WebBrain ang mga request sa lokal na modelo o mga request na direktang ipinadala gamit ang sarili mong API credential.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Patakaran sa privacy →</a>","st.providers.webbrain_data_use.body": "Kasama ang libreng pang-araw-araw na paggamit ng WebBrain Compass. Habang naka-on bilang default ang Tumulong na Pahusayin ang WebBrain, maaaring panatilihin at gamitin ang piling pag-uusap sa Compass para sa pagsusuri, pagpapahusay, fine-tuning, at training. I-off ito sa General → Advanced upang hindi maisama ang mga susunod na interaksyon sa Compass sa mga paggamit na iyon. <u>Hindi kailanman kinokolekta ng WebBrain ang mga request sa lokal na modelo o mga request na direktang ipinadala gamit ang sarili mong API credential.</u> {privacyLink}. Para sa higit pang paggamit, mag-subscribe sa {subscribeLink}. Pamahalaan ang billing sa {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Advanced na compatibility ng modelo','st.providers.compat.blurb': 'Iwanan sa Auto maliban kung ang modelo o endpoint ay may ibang request contract.','st.providers.compat.preset': 'Preset ng compatibility',diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.jsindex 90dc4ffe0..d16e787d9 100644--- a/src/chrome/src/ui/locales/tr.js+++ b/src/chrome/src/ui/locales/tr.js@@ -986,6 +986,9 @@ export default {"st.display.help_improve.label": "WebBrain’i İyileştirmeye Yardım Et","st.display.help_improve.desc_html": "Seçili WebBrain Compass etkileşimlerinin saklanmasına ve değerlendirme, iyileştirme, ince ayar ve eğitim için kullanılmasına izin verin. Varsayılan olarak açıktır. Gelecekteki Compass etkileşimlerinin bu amaçlarla kullanılmasını önlemek için kapatın. <u>Yerel model istekleri ve kendi API kimlik bilgilerinizle gönderilen istekler WebBrain tarafından hiçbir zaman toplanmaz.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Gizlilik politikası →</a>","st.providers.webbrain_data_use.body": "Ücretsiz günlük WebBrain Compass kullanımı dahildir. WebBrain’i İyileştirmeye Yardım Et varsayılan olarak açıkken, seçili Compass konuşmaları değerlendirme, iyileştirme, ince ayar ve eğitim için saklanabilir ve kullanılabilir. Gelecekteki Compass etkileşimlerini bu kullanımların dışında tutmak için Genel → Gelişmiş bölümünden kapatın. <u>Yerel model istekleri ve kendi API kimlik bilgilerinizle gönderilen istekler WebBrain tarafından hiçbir zaman toplanmaz.</u> {privacyLink}. Daha fazla kullanım için {subscribeLink} adresinden abone olun. Faturalandırmayı {accountLink} adresinden yönetin.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Gelişmiş model uyumluluğu','st.providers.compat.blurb': 'Model veya uç nokta farklı bir istek sözleşmesi belgelemedikçe bunları Otomatik bırakın.','st.providers.compat.preset': 'Uyumluluk ön ayarı',diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.jsindex f0b7ac2db..06e42a9e1 100644--- a/src/chrome/src/ui/locales/uk.js+++ b/src/chrome/src/ui/locales/uk.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "Допомагати вдосконалювати WebBrain","st.display.help_improve.desc_html": "Дозволити зберігати вибрані взаємодії з WebBrain Compass і використовувати їх для оцінювання, вдосконалення, тонкого налаштування та навчання. Увімкнено за замовчуванням. Вимкніть, щоб майбутні взаємодії з Compass не використовувалися для цих цілей. <u>WebBrain ніколи не збирає запити до локальних моделей і запити, надіслані з вашими власними обліковими даними API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Політика конфіденційності →</a>","st.providers.webbrain_data_use.body": "Безкоштовне щоденне використання WebBrain Compass включено. Поки параметр «Допомагати вдосконалювати WebBrain» увімкнено за замовчуванням, вибрані розмови Compass можуть зберігатися й використовуватися для оцінювання, вдосконалення, тонкого налаштування та навчання. Вимкніть його в розділі «Загальні → Розширені», щоб виключити майбутні взаємодії з Compass із такого використання. <u>WebBrain ніколи не збирає запити до локальних моделей і запити, надіслані з вашими власними обліковими даними API.</u> {privacyLink}. Для більшого обсягу оформіть підписку на {subscribeLink}. Керуйте оплатою на {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Розширена сумісність моделі','st.providers.compat.blurb': 'Залишайте «Авто», якщо модель або endpoint не описують інший формат запиту.','st.providers.compat.preset': 'Пресет сумісності',diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.jsindex 2dcbe53d8..f01c0644e 100644--- a/src/chrome/src/ui/locales/vi.js+++ b/src/chrome/src/ui/locales/vi.js@@ -727,6 +727,9 @@ export default {'st.providers.compat.value.system': "Hệ thống",'st.providers.compat.value.developer': "Nhà phát triển",'st.providers.webbrain_data_use.body': "Đã bao gồm việc sử dụng WebBrain Compass miễn phí hàng ngày. Mặc dù Trợ giúp cải thiện WebBrain được bật theo mặc định, nhưng các cuộc hội thoại Compass đã chọn có thể được giữ lại và sử dụng để đánh giá, cải tiến, tinh chỉnh và đào tạo. Hãy tắt tính năng này trong Chung → Nâng cao để loại trừ các tương tác Compass trong tương lai khỏi những mục đích sử dụng đó. <u>Các yêu cầu API theo mô hình cục bộ và mang theo của riêng bạn không bao giờ được WebBrain thu thập.</u> {privacyLink}. Để sử dụng nhiều hơn, hãy đăng ký tại {subscribeLink}. Quản lý thanh toán tại {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "Đã bao gồm việc sử dụng WebBrain Compass miễn phí hàng ngày. Yêu cầu đi qua api.webbrain.one; theo mặc định, chúng tôi ghi lại siêu dữ liệu để lấy hạn mức và gỡ lỗi, chứ không phải văn bản nhắc nhở, nội dung trang, ảnh chụp màn hình hoặc phản hồi mô hình. {privacyLink}. Để sử dụng nhiều hơn, hãy đăng ký tại {subscribeLink}. Quản lý thanh toán tại {accountLink}.",'st.providers.webbrain_note.privacy_link': "Chính sách bảo mật",diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.jsindex 22d593ab2..55e518d07 100644--- a/src/chrome/src/ui/locales/zh.js+++ b/src/chrome/src/ui/locales/zh.js@@ -987,6 +987,9 @@ export default {"st.display.help_improve.label": "帮助改进 WebBrain","st.display.help_improve.desc_html": "允许保留选定的 WebBrain Compass 交互,并将其用于评估、改进、微调和训练。此选项默认开启。关闭后,未来的 Compass 交互将不会用于这些用途。<u>WebBrain 绝不会收集本地模型请求或使用您自己的 API 凭据直接发送的请求。</u><a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">隐私政策 →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass 包含每日免费用量。帮助改进 WebBrain 默认开启时,选定的 Compass 对话可能会被保留,并用于评估、改进、微调和训练。可在“常规 → 高级”中关闭,以排除未来的 Compass 交互。<u>WebBrain 绝不会收集本地模型请求或使用您自己的 API 凭据直接发送的请求。</u>{privacyLink}。如需更多用量,请在 {subscribeLink} 订阅。在 {accountLink} 管理账单。",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': '高级模型兼容性','st.providers.compat.blurb': '除非模型或接口另有请求约定说明,否则请保持为自动。','st.providers.compat.preset': '兼容性预设',diff --git a/src/chrome/src/ui/settings.js b/src/chrome/src/ui/settings.jsindex ca14161c3..1abe298ba 100644--- a/src/chrome/src/ui/settings.js+++ b/src/chrome/src/ui/settings.js@@ -2307,6 +2307,12 @@ const OPTIONAL_LOCAL_API_KEY_FIELD = {placeholder: 'optional',collapsed: true,};+const SHARE_RESEARCH_FIELD = {+ key: 'shareQueriesForResearch',+ labelKey: 'st.providers.share_research.label',+ hintKey: 'st.providers.share_research.hint',+ type: 'checkbox',+};function providerDefinitionId(id, config = providersData[id]) {return String(config?.sourceProviderId || config?.duplicateOf || id || '');@@ -3068,6 +3074,9 @@ function renderProviders() {const keys = new Set(definition.fields.map(field => field.key));if (!keys.has('contextWindow')) definition.fields.push(CONTEXT_WINDOW_FIELD);if (!keys.has('maxOutputTokens')) definition.fields.push(MAX_OUTPUT_TOKENS_FIELD);+ // Voluntary research sharing is opt-in per provider and never shown for+ // WebBrain Compass itself.+ if (!keys.has('shareQueriesForResearch')) definition.fields.push(SHARE_RESEARCH_FIELD);}providersContainer.appendChild(renderProviderFilterBar());@@ -3132,6 +3141,9 @@ function renderProviders() {<label style="margin:0;cursor:pointer;">${escapeHtml(label)}</label></div>`;+ if (field.hintKey) {+ fieldHTML += `<div class="field-hint" style="margin:-4px 0 10px;font-size:12px;color:var(--text2);">${escapeHtml(t(field.hintKey))}</div>`;+ }} else if (field.suggestions && field.key === 'model') {const rawVal = config[field.key] || '';const isCustom = rawVal && !field.suggestions.includes(rawVal);@@ -3302,6 +3314,17 @@ function renderProviders() {const eventName = input.tagName === 'SELECT' ? 'change' : 'input';input.addEventListener(eventName, () => markProviderDirty(input.dataset.provider));});+ document.querySelectorAll('input[data-key="shareQueriesForResearch"]').forEach(input => {+ input.addEventListener('click', (event) => {+ // In click handlers, `input.checked` has already updated to the target+ // state. Only prompt for confirmation when turning the toggle ON.+ // preventDefault() cancels the click and rolls `checked` back to false.+ if (!input.checked) return;+ if (!window.confirm(t('st.providers.share_research.confirm'))) {+ event.preventDefault();+ }+ });+ });document.querySelectorAll('.btn-remove-duplicate').forEach(btn => {btn.addEventListener('click', () => removeDuplicateProvider(btn.dataset.provider));});diff --git a/src/firefox/src/agent/agent.js b/src/firefox/src/agent/agent.jsindex d7c42a402..16a5bdeb1 100644--- a/src/firefox/src/agent/agent.js+++ b/src/firefox/src/agent/agent.js@@ -71,6 +71,7 @@ import {import { normalizePdfOcrResult, PDF_OCR_SYSTEM_PROMPT } from './pdf-ocr.js';import * as trace from '../trace/recorder.js';import { buildTerminalRuntimeEvent, enqueueCloudRuntimeEvent, flushCloudRuntimeOutbox } from '../trace/cloud-runtime-outbox.js';+import { buildShareGenerationItem, enqueueShareGeneration, flushShareOutbox } from '../trace/webbrain-share-outbox.js';import { normalizeRuntimeTraceConfig } from '../trace/runtime-config.js';import { tracesToMarkdown } from './trace-export.js';import { solveCaptcha, detectCaptcha, injectToken, captchaParamError, captchaTypesMatch, captchaWebsiteUrl } from './captcha-solver.js';@@ -16533,6 +16534,34 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dvoid flushCloudRuntimeOutbox(provider);} catch {}}+ // Voluntary per-provider research sharing. The WebBrain Compass provider+ // acts as transport (its API hosts the endpoint); which provider produced+ // the run only decides whether capture is gated on (the per-provider+ // toggle) and what attribution to record. Compass itself never goes+ // through this path.+ const shareTransport = this.providerManager?.getProvider?.('webbrain_cloud');+ if (shareTransport+ && provider?.config?.shareQueriesForResearch === true+ && String(provider?.config?.providerName || '').toLowerCase() !== 'webbrain-cloud') {+ try {+ const shareSessionId = this._shareSessionId(this.conversationIds.get(tabId) || null);+ if (shareSessionId) {+ const shareItem = buildShareGenerationItem({+ runId,+ finalContent,+ messages,+ model: provider?.model,+ mode,+ provider: String(provider?.config?.providerName || '').toLowerCase(),+ provider_name: String(provider?.config?.label || provider?.name || '').slice(0, 128),+ });+ if (shareItem) await enqueueShareGeneration({ session_id: shareSessionId, ...shareItem });+ }+ } catch {}+ }+ // Retry delivery of previously queued voluntary shares on every run end,+ // mirroring the Compass runtime outbox pattern.+ void flushShareOutbox(shareTransport);if (runId) {await this._flushAdapterMatchTraceRun(runId);try {@@ -16553,6 +16582,16 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dthis._taskTokens.delete(tabId);}+ /**+ * Namespace a conversation id into a backend-valid `share_` session id.+ * Keeps only the charset the improvement endpoint accepts and stays well+ * under the 200-char session id cap.+ */+ _shareSessionId(conversationId) {+ const safe = String(conversationId || '').replace(/[^A-Za-z0-9._:-]/g, '').slice(0, 190);+ return safe ? `share_${safe}` : '';+ }+/*** Build a compact, single-line-per-turn digest of recent conversation so the* planner can resolve follow-up references ("continue", "open the first@@ -33581,6 +33620,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d// to upload; the current run is enqueued at finalization and may complete// in the background or on the next Compass run.void flushCloudRuntimeOutbox(provider);+ void flushShareOutbox(this.providerManager?.getProvider?.('webbrain_cloud'));if (typeof runOptions?.isDetachedStartCancelled === 'function'&& runOptions.isDetachedStartCancelled()) {@@ -34727,6 +34767,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dconst provider = this.providerManager.getActive();void flushCloudRuntimeOutbox(provider);+ void flushShareOutbox(this.providerManager?.getProvider?.('webbrain_cloud'));// The run claim owns cancellation reset. Stop during setup must survive.this._throwIfAborted(this._runAbortSignal(tabId));diff --git a/src/firefox/src/providers/manager.js b/src/firefox/src/providers/manager.jsindex 13525e493..36074aec4 100644--- a/src/firefox/src/providers/manager.js+++ b/src/firefox/src/providers/manager.js@@ -319,6 +319,14 @@ export class ProviderManager {...this._storedDefaultOverride(config, storedConfig),configured,};+ // Voluntary research sharing is opt-in per provider and default-off+ // (never on for WebBrain Compass itself, which already shares via its+ // own outbox). Applied in the field-level merge so existing stored+ // configs without the key inherit the off state without polluting the+ // default catalog snapshots.+ if (id !== WEBBRAIN_CLOUD_PROVIDER_ID && !Object.hasOwn(configs[id], 'shareQueriesForResearch')) {+ configs[id].shareQueriesForResearch = false;+ }if (Object.hasOwn(configs[id], 'duplicateOf')) {delete configs[id].duplicateOf;providerStateMigrated = true;@@ -382,7 +390,7 @@ export class ProviderManager {}_defaultConfigs() {- return {+ const defaults = {webbrain_cloud: {type: 'openai',category: 'cloud',@@ -826,6 +834,7 @@ export class ProviderManager {},...ADDITIONAL_PROVIDER_DEFAULTS,};+ return defaults;}_migrateStoredProviderConfigs(stored) {diff --git a/src/firefox/src/providers/openai.js b/src/firefox/src/providers/openai.jsindex b1c69429a..cb2f0d329 100644--- a/src/firefox/src/providers/openai.js+++ b/src/firefox/src/providers/openai.js@@ -149,7 +149,7 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {return options.signal ? { signal: options.signal } : {};}- _headers() {+ _headers(options = {}) {const headers = { 'Content-Type': 'application/json' };const providerName = (this.config.providerName || '').toLowerCase();if (this.config.requiresApiKey && !String(this.config.apiKey || '').trim()) {@@ -167,7 +167,8 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {if (providerName === 'webbrain-cloud') {if (this.config.deviceGuid) headers['X-WebBrain-Device-Id'] = this.config.deviceGuid;headers['X-WebBrain-Client'] = 'extension';- headers['X-WebBrain-Help-Improve'] = this.config.helpImproveWebBrain === false ? '0' : '1';+ const helpImprove = options.helpImprove ?? (this.config.helpImproveWebBrain === false ? '0' : '1');+ headers['X-WebBrain-Help-Improve'] = helpImprove;}// OpenRouter-specific headersif (providerName === 'openrouter') {@@ -210,6 +211,41 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {}}+ /**+ * Transport for the voluntary per-provider "share queries for research"+ * outbox. Only ever called on the WebBrain Compass provider instance (the+ * share outbox routes through it because the backend lives on the WebBrain+ * API). Consent is forced on for this call: the share_ session is what the+ * user opted into by enabling the per-provider toggle, independent of the+ * global Help Improve WebBrain switch.+ */+ async sendShareGeneration(sessionId, payload, { timeoutMs = 4000 } = {}) {+ if (String(this.config.providerName || '').toLowerCase() !== 'webbrain-cloud') {+ return { ok: false, retryable: false, status: 0 };+ }+ const controller = typeof AbortController === 'function' ? new AbortController() : null;+ const timer = controller ? setTimeout(() => controller.abort(), Math.max(250, timeoutMs)) : null;+ try {+ const response = await fetchWithTimeout(`${this.baseUrl}/improvement/generations`, {+ method: 'POST',+ headers: this._headers({ helpImprove: '1' }),+ body: JSON.stringify({ session_id: String(sessionId || ''), ...payload }),+ ...(controller ? { signal: controller.signal } : {}),+ });+ if (response.ok) return { ok: true, retryable: false, status: response.status };+ try { await response.text(); } catch {}+ return {+ ok: false,+ retryable: response.status === 408 || response.status === 429 || response.status >= 500,+ status: response.status,+ };+ } catch {+ return { ok: false, retryable: true, status: 0 };+ } finally {+ if (timer != null) clearTimeout(timer);+ }+ }+/*** Newer OpenAI models (gpt-5 and the o-series) reject `max_tokens` and any* non-default `temperature`, requiring `max_completion_tokens`. Detected bydiff --git a/src/firefox/src/trace/webbrain-share-outbox.js b/src/firefox/src/trace/webbrain-share-outbox.jsnew file mode 100644index 000000000..791c0a786--- /dev/null+++ b/src/firefox/src/trace/webbrain-share-outbox.js@@ -0,0 +1,168 @@+// Voluntary per-provider "share queries for research" outbox. Mirrors the+// Compass cloud-runtime outbox: writes are durable and awaited, network+// delivery is detached and retried by the next run. Unlike runtime events,+// each entry is a complete generation (request + response + attribution) and+// ships to POST /improvement/generations through the WebBrain Compass+// provider instance (its base URL hosts the backend), independent of which+// provider produced the run.++const STORAGE_KEY = 'webbrainShareOutboxV1';+const MAX_OUTBOX_ITEMS = 100;+const MAX_MESSAGE_CHARS = 10_000;+const MAX_REQUEST_BUDGET = 150_000;+const MAX_RESPONSE_CHARS = 40_000;+let storageQueue = Promise.resolve();+let fallbackRunCounter = 0;++function bounded(value, limit) {+ const serialized = typeof value === 'string' ? value : JSON.stringify(value ?? null);+ const text = typeof serialized === 'string' ? serialized : String(value ?? '');+ if (text.length <= limit) return text;+ return `${text.slice(0, limit)}\n[… ${text.length - limit} characters omitted]`;+}++function clampText(value, limit = MAX_MESSAGE_CHARS) {+ if (typeof value !== 'string') return value;+ return bounded(value, limit);+}++function scrubMessage(message) {+ if (!message || typeof message !== 'object') return null;+ const copy = { ...message };+ delete copy.image_url;+ if (Array.isArray(message.content)) {+ const items = [];+ for (const item of message.content) {+ if (!item || typeof item !== 'object') {+ items.push(item);+ continue;+ }+ // Drop images entirely so raw screenshot/data-URI bytes never leave the+ // browser; text blocks are clamped individually.+ if (item.type === 'image_url' || item.type === 'image') continue;+ if (item.type === 'text' && typeof item.text === 'string') {+ items.push({ ...item, text: clampText(item.text) });+ continue;+ }+ items.push(item);+ }+ if (!items.length) return { role: message.role, content: '[image content omitted]' };+ copy.content = items;+ } else if (typeof message.content === 'string') {+ if (!message.content.length) return null;+ copy.content = clampText(message.content);+ }+ return copy;+}++function scrubMessages(messages) {+ if (!Array.isArray(messages)) return null;+ const scrubbed = [];+ let budget = MAX_REQUEST_BUDGET;+ for (const message of messages) {+ if (budget <= 0 || scrubbed.length >= 200) break;+ const copy = scrubMessage(message);+ if (copy == null) continue;+ let serialized;+ try { serialized = JSON.stringify(copy); } catch { continue; }+ if (serialized == null || serialized.length > budget) {+ scrubbed.push({ role: 'system', content: '[remaining shared message omitted]' });+ break;+ }+ scrubbed.push(copy);+ budget -= serialized.length;+ }+ return scrubbed;+}++export function buildShareGenerationItem({+ runId,+ finalContent,+ messages,+ model,+ mode,+ provider,+ provider_name,+}) {+ const request = scrubMessages(messages);+ if (!request?.length) return null;+ const responseContent = String(finalContent ?? '');+ if (!responseContent.trim()) return null;+ const generatedId = globalThis.crypto?.randomUUID?.()+ || `${Date.now().toString(36)}_${(++fallbackRunCounter).toString(36)}`;+ return {+ id: String(runId || `share_${generatedId}`),+ provider: String(provider || '').slice(0, 64),+ provider_name: String(provider_name || '').slice(0, 128),+ model: String(model || '').slice(0, 255),+ mode: String(mode || '').slice(0, 32),+ request,+ response: { role: 'assistant', content: clampText(responseContent, MAX_RESPONSE_CHARS) },+ };+}++function localStorageArea() {+ const api = (typeof browser !== 'undefined' && browser?.storage)+ ? browser+ : ((typeof chrome !== 'undefined' && chrome?.storage) ? chrome : null);+ if (!api?.storage?.local?.get || !api.storage.local.set) {+ throw new Error('Extension local storage is unavailable');+ }+ return api.storage.local;+}++async function readOutbox() {+ const stored = await localStorageArea().get([STORAGE_KEY]);+ return Array.isArray(stored?.[STORAGE_KEY]) ? stored[STORAGE_KEY] : [];+}++function updateOutbox(update) {+ const next = storageQueue.catch(() => {}).then(async () => {+ const current = await readOutbox();+ const value = await update(current);+ await localStorageArea().set({ [STORAGE_KEY]: value.slice(-MAX_OUTBOX_ITEMS) });+ return value;+ });+ storageQueue = next;+ return next;+}++export async function enqueueShareGeneration(item) {+ if (!item?.id || item.request === undefined || item.response === undefined) return false;+ await updateOutbox(current => {+ if (current.some(entry => entry?.id === item.id)) return current;+ return [...current, { ...item, queued_at: Date.now() }];+ });+ return true;+}++export async function flushShareOutbox(transportProvider) {+ if (typeof transportProvider?.sendShareGeneration !== 'function') return 0;+ await storageQueue.catch(() => {});+ let snapshot;+ try { snapshot = await readOutbox(); } catch { return 0; }+ if (!snapshot.length) return 0;+ const removeIds = new Set();+ for (const entry of snapshot) {+ let result;+ try {+ result = await transportProvider.sendShareGeneration(entry.session_id, {+ provider: entry.provider,+ provider_name: entry.provider_name,+ model: entry.model,+ mode: entry.mode,+ request: entry.request,+ response: entry.response,+ });+ } catch {+ result = { ok: false, retryable: true };+ }+ if (result?.ok === true || result?.retryable === false) removeIds.add(entry.id);+ }+ if (removeIds.size) {+ await updateOutbox(current => current.filter(entry => !removeIds.has(entry?.id)));+ }+ return removeIds.size;+}++export const SHARE_OUTBOX_STORAGE_KEY = STORAGE_KEY;\ No newline at end of filediff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.jsindex f616b5211..42397ff0d 100644--- a/src/firefox/src/ui/locales/ar.js+++ b/src/firefox/src/ui/locales/ar.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "المساعدة في تحسين WebBrain","st.display.help_improve.desc_html": "السماح بالاحتفاظ بتفاعلات محددة مع WebBrain Compass واستخدامها للتقييم والتحسين والضبط الدقيق والتدريب. مفعّل افتراضيًا. عطّله لمنع استخدام تفاعلات Compass المستقبلية لهذه الأغراض. <u>لا يجمع WebBrain أبدًا طلبات النماذج المحلية أو الطلبات المرسلة مباشرة باستخدام بيانات اعتماد API الخاصة بك.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">سياسة الخصوصية →</a>","st.providers.webbrain_data_use.body": "يتضمن WebBrain Compass استخدامًا يوميًا مجانيًا. عندما تكون «المساعدة في تحسين WebBrain» مفعّلة افتراضيًا، قد يتم الاحتفاظ بمحادثات Compass محددة واستخدامها للتقييم والتحسين والضبط الدقيق والتدريب. عطّلها من عام ← متقدم لاستبعاد تفاعلات Compass المستقبلية من هذه الاستخدامات. <u>لا يجمع WebBrain أبدًا طلبات النماذج المحلية أو الطلبات المرسلة مباشرة باستخدام بيانات اعتماد API الخاصة بك.</u> {privacyLink}. لمزيد من الاستخدام، اشترك عبر {subscribeLink}. أدِر الفوترة عبر {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'توافق متقدم للنموذج','st.providers.compat.blurb': 'اترك هذه الخيارات على «تلقائي» ما لم يوثّق النموذج أو نقطة النهاية عقد طلب مختلفًا.','st.providers.compat.preset': 'إعداد مسبق للتوافق',diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.jsindex 5e4e8bd89..fad3c64e6 100644--- a/src/firefox/src/ui/locales/bn.js+++ b/src/firefox/src/ui/locales/bn.js@@ -713,6 +713,9 @@ export default {'st.providers.compat.value.system': "সিস্টেম",'st.providers.compat.value.developer': "বিকাশকারী",'st.providers.webbrain_data_use.body': "বিনামূল্যে দৈনিক WebBrain Compass ব্যবহার অন্তর্ভুক্ত করা হয়েছে। WebBrain উন্নত করার জন্য সহায়তা ডিফল্টরূপে চালু থাকলেও, নির্বাচিত Compass কথোপকথনগুলি বজায় রাখা যেতে পারে এবং মূল্যায়ন, উন্নতি, ফাইন-টিউনিং এবং প্রশিক্ষণের জন্য ব্যবহার করা যেতে পারে। এই ব্যবহারগুলি থেকে ভবিষ্যতের Compass ইন্টারঅ্যাকশনগুলি বাদ দিতে সাধারণ → উন্নত-এ এটি বন্ধ করুন৷ <u>স্থানীয়-মডেল এবং আন-আপনার-নিজের API অনুরোধগুলি WebBrain দ্বারা সংগ্রহ করা হয় না।</u> {privacyLink}। আরও ব্যবহারের জন্য, {subscribeLink}-এ সদস্যতা নিন। {accountLink} এ বিলিং পরিচালনা করুন।",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "বিনামূল্যে দৈনিক WebBrain Compass ব্যবহার অন্তর্ভুক্ত করা হয়েছে। অনুরোধগুলি api.webbrain.one এর মাধ্যমে যায়; ডিফল্টরূপে আমরা কোটা এবং ডিবাগিংয়ের জন্য মেটাডেটা লগ করি, প্রম্পট টেক্সট, পৃষ্ঠার বিষয়বস্তু, স্ক্রিনশট বা মডেল প্রতিক্রিয়া নয়। {privacyLink}। আরও ব্যবহারের জন্য, {subscribeLink}-এ সদস্যতা নিন। {accountLink} এ বিলিং পরিচালনা করুন।",'st.providers.webbrain_note.privacy_link': "গোপনীয়তা নীতি",diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.jsindex 93de36a6a..7bb8b1df0 100644--- a/src/firefox/src/ui/locales/de.js+++ b/src/firefox/src/ui/locales/de.js@@ -673,6 +673,9 @@ export default {'st.providers.webbrain_note.body': 'Kostenlose tägliche WebBrain Compass-Nutzung ist enthalten. Anfragen werden über api.webbrain.one weitergeleitet; standardmäßig protokollieren wir Metadaten für Kontingente und Fehlerbehebung, jedoch keine Prompt-Texte, Seiteninhalte, Screenshots oder Modellantworten. {privacyLink}. Für mehr Nutzung abonnieren Sie unter {subscribeLink}. Verwalten Sie die Abrechnung unter {accountLink}.','st.providers.webbrain_note.privacy_link': 'Datenschutzrichtlinie','st.providers.webbrain_data_use.body': 'Kostenlose tägliche WebBrain Compass-Nutzung ist enthalten. Solange „Bei der Verbesserung von WebBrain helfen“ standardmäßig aktiviert ist, können ausgewählte Compass-Unterhaltungen gespeichert und für Auswertung, Verbesserung, Feinabstimmung und Training verwendet werden. Deaktivieren Sie die Option unter „Allgemein → Erweitert“, um zukünftige Compass-Interaktionen davon auszuschließen. <u>Anfragen an lokale Modelle und mit eigenen APIs werden niemals von WebBrain erfasst.</u> {privacyLink}. Für mehr Nutzung abonnieren Sie unter {subscribeLink}. Verwalten Sie die Abrechnung unter {accountLink}.',+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.ollama_warning.label': 'Ollama-FAQ','st.providers.ollama_warning.title': 'Warum gibt Ollama auf localhost einen 403-Fehler zurück?','st.providers.ollama_warning.body': 'Neuere Ollama-Versionen können Anfragen aus Browser-Erweiterungs-Origins ablehnen...',diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.jsindex d22fa235e..b92f407ab 100644--- a/src/firefox/src/ui/locales/en.js+++ b/src/firefox/src/ui/locales/en.js@@ -571,7 +571,7 @@ export default {'st.providers.webgpu_download.stopping': 'Stopping and removing files…','st.providers.webgpu_download.stop': 'Stop & remove','st.display.help_improve.label': 'Help Improve WebBrain',- 'st.display.help_improve.desc_html': 'Allow eligible WebBrain Compass text and tool interactions to be retained and used for evaluation, improvement, fine-tuning, and training. On by default. Turning this off permanently opts out the current conversation; turning it back on applies to the next new conversation. Screenshots and image bytes are not retained in the WebBrain improvement database. <u>Local-model and bring-your-own API requests are never collected by WebBrain.</u> <a href="https://webbrain.one/privacy" target="_blank" rel="noopener noreferrer" style="color:var(--accent);">Privacy policy →</a>',+ 'st.display.help_improve.desc_html': 'Allow eligible WebBrain Compass text and tool interactions to be retained and used for evaluation, improvement, fine-tuning, and training. On by default. Turning this off permanently opts out the current conversation; turning it back on applies to the next new conversation. Screenshots and image bytes are not retained in the WebBrain improvement database. <u>Local-model and bring-your-own API requests are only collected by WebBrain from providers where you turn on “Share queries for research”.</u> <a href="https://webbrain.one/privacy" target="_blank" rel="noopener noreferrer" style="color:var(--accent);">Privacy policy →</a>','st.display.clarify_timeout.label': 'Clarify timeout','st.display.clarify_timeout.desc': 'How long to wait for a reply to a clarify prompt before auto-selecting the first option (or timing out if there are no options). 0 = Instant (always auto-select). Values above 1200s wait indefinitely (Off). Default 60s. Does not apply to permission or form-submit confirmations.','st.display.clarify_timeout.off': 'Off',@@ -713,7 +713,10 @@ export default {'st.providers.compat.value.max': 'Max','st.providers.compat.value.system': 'System','st.providers.compat.value.developer': 'Developer',- 'st.providers.webbrain_data_use.body': 'Free daily WebBrain Compass usage is included. While Help Improve WebBrain is on by default, selected Compass conversations may be retained and used for evaluation, improvement, fine-tuning, and training. Turn it off in General → Advanced to exclude future Compass interactions from those uses. <u>Local-model and bring-your-own API requests are never collected by WebBrain.</u> {privacyLink}. For more usage, subscribe at {subscribeLink}. Manage billing at {accountLink}.',+ 'st.providers.webbrain_data_use.body': 'Free daily WebBrain Compass usage is included. While Help Improve WebBrain is on by default, selected Compass conversations may be retained and used for evaluation, improvement, fine-tuning, and training. Turn it off in General → Advanced to exclude future Compass interactions from those uses. <u>Local-model and bring-your-own API requests are only collected by WebBrain when you turn on the per-provider “Share queries for research” option.</u> {privacyLink}. For more usage, subscribe at {subscribeLink}. Manage billing at {accountLink}.',+ 'st.providers.share_research.label': 'Share queries for research',+ 'st.providers.share_research.hint': 'Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.',+ 'st.providers.share_research.confirm': 'Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.','st.providers.webbrain_note.body': 'Free daily WebBrain Compass usage is included. Requests go through api.webbrain.one; by default we log metadata for quota and debugging, not prompt text, page content, screenshots, or model responses. {privacyLink}. For more usage, subscribe at {subscribeLink}. Manage billing at {accountLink}.','st.providers.webbrain_note.privacy_link': 'Privacy policy',diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.jsindex c54fa70a7..87c13c4ed 100644--- a/src/firefox/src/ui/locales/es.js+++ b/src/firefox/src/ui/locales/es.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "Ayuda a mejorar WebBrain","st.display.help_improve.desc_html": "Permite conservar determinadas interacciones de WebBrain Compass y utilizarlas para evaluación, mejora, ajuste fino y entrenamiento. Activado de forma predeterminada. Desactívalo para impedir que futuras interacciones de Compass se utilicen con esos fines. <u>WebBrain nunca recopila solicitudes de modelos locales ni solicitudes enviadas con tus propias credenciales de API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Política de privacidad →</a>","st.providers.webbrain_data_use.body": "Se incluye uso diario gratuito de WebBrain Compass. Mientras Ayuda a mejorar WebBrain está activado de forma predeterminada, algunas conversaciones de Compass pueden conservarse y utilizarse para evaluación, mejora, ajuste fino y entrenamiento. Desactívalo en General → Avanzado para excluir futuras interacciones de Compass de esos usos. <u>WebBrain nunca recopila solicitudes de modelos locales ni solicitudes enviadas con tus propias credenciales de API.</u> {privacyLink}. Para obtener más uso, suscríbete en {subscribeLink}. Gestiona la facturación en {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Compatibilidad avanzada del modelo','st.providers.compat.blurb': 'Déjalos en Auto a menos que el modelo o el endpoint documenten un contrato de solicitud distinto.','st.providers.compat.preset': 'Preajuste de compatibilidad',diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.jsindex d5fedea9b..74ec5c034 100644--- a/src/firefox/src/ui/locales/fa.js+++ b/src/firefox/src/ui/locales/fa.js@@ -713,6 +713,9 @@ export default {'st.providers.compat.value.system': "سیستم",'st.providers.compat.value.developer': "توسعه دهنده",'st.providers.webbrain_data_use.body': "استفاده روزانه رایگان از WebBrain Compass گنجانده شده است. در حالی که Help Improve WebBrain به طور پیشفرض روشن است، مکالمات انتخابی Compass ممکن است حفظ شوند و برای ارزیابی، بهبود، تنظیم دقیق و آموزش استفاده شوند. آن را در عمومی ← پیشرفته خاموش کنید تا تعاملات Compass آینده را از این کاربردها حذف کنید. <u>درخواستهای API مدل محلی و خود را بیاورید هرگز توسط WebBrain جمعآوری نمیشوند.</u> {privacyLink}. برای استفاده بیشتر، در {subscribeLink} مشترک شوید. صورتحساب را در {accountLink} مدیریت کنید.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "استفاده روزانه رایگان از WebBrain Compass گنجانده شده است. درخواست ها از طریق api.webbrain.one انجام می شود. بهطور پیشفرض، فرادادهها را برای سهمیه و اشکالزدایی ثبت میکنیم، نه متن درخواستی، محتوای صفحه، عکسهای صفحه، یا پاسخهای مدل. {privacyLink}. برای استفاده بیشتر، در {subscribeLink} مشترک شوید. صورتحساب را در {accountLink} مدیریت کنید.",'st.providers.webbrain_note.privacy_link': "سیاست حفظ حریم خصوصی",diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.jsindex 1e1d1a984..a500ab621 100644--- a/src/firefox/src/ui/locales/fr.js+++ b/src/firefox/src/ui/locales/fr.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "Aider à améliorer WebBrain","st.display.help_improve.desc_html": "Autorise la conservation de certaines interactions WebBrain Compass et leur utilisation pour l’évaluation, l’amélioration, l’ajustement fin et l’entraînement. Activé par défaut. Désactivez cette option pour empêcher que les futures interactions Compass soient utilisées à ces fins. <u>WebBrain ne collecte jamais les requêtes de modèles locaux ni celles envoyées avec vos propres identifiants d’API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Politique de confidentialité →</a>","st.providers.webbrain_data_use.body": "Une utilisation quotidienne gratuite de WebBrain Compass est incluse. Tant que Aider à améliorer WebBrain est activé par défaut, certaines conversations Compass peuvent être conservées et utilisées pour l’évaluation, l’amélioration, l’ajustement fin et l’entraînement. Désactivez cette option dans Général → Avancé pour exclure les futures interactions Compass de ces usages. <u>WebBrain ne collecte jamais les requêtes de modèles locaux ni celles envoyées avec vos propres identifiants d’API.</u> {privacyLink}. Pour davantage d’utilisation, abonnez-vous sur {subscribeLink}. Gérez la facturation sur {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Compatibilité avancée du modèle','st.providers.compat.blurb': 'Laissez ces options sur Auto sauf si le modèle ou le point de terminaison documente un autre contrat de requête.','st.providers.compat.preset': 'Préréglage de compatibilité',diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.jsindex 59128312c..fd745dcc0 100644--- a/src/firefox/src/ui/locales/he.js+++ b/src/firefox/src/ui/locales/he.js@@ -921,6 +921,9 @@ export default {"st.display.help_improve.label": "עזרה בשיפור WebBrain","st.display.help_improve.desc_html": "אפשרו לשמור אינטראקציות נבחרות עם WebBrain Compass ולהשתמש בהן להערכה, שיפור, כוונון עדין ואימון. מופעל כברירת מחדל. כבו כדי למנוע שימוש באינטראקציות Compass עתידיות למטרות אלה. <u>WebBrain לעולם אינו אוסף בקשות למודלים מקומיים או בקשות שנשלחות ישירות באמצעות פרטי ה-API שלכם.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">מדיניות פרטיות →</a>","st.providers.webbrain_data_use.body": "שימוש יומי חינמי ב-WebBrain Compass כלול. כאשר ״עזרה בשיפור WebBrain״ מופעלת כברירת מחדל, ייתכן ששיחות Compass נבחרות יישמרו וישמשו להערכה, שיפור, כוונון עדין ואימון. כבו את האפשרות ב״כללי ← מִתקַדֵם״ כדי להחריג אינטראקציות Compass עתידיות משימושים אלה. <u>WebBrain לעולם אינו אוסף בקשות למודלים מקומיים או בקשות שנשלחות ישירות באמצעות פרטי ה-API שלכם.</u> {privacyLink}. לשימוש נוסף, הירשמו דרך {subscribeLink}. נהלו את החיוב דרך {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'תאימות מתקדמת של המודל','st.providers.compat.blurb': 'השאירו על אוטומטי אלא אם המודל או נקודת הקצה מתעדים חוזה בקשה אחר.','st.providers.compat.preset': 'הגדרת תאימות מוכנה',diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.jsindex 1352131d4..3faa1c82f 100644--- a/src/firefox/src/ui/locales/hi.js+++ b/src/firefox/src/ui/locales/hi.js@@ -713,6 +713,9 @@ export default {'st.providers.compat.value.system': "सिस्टम",'st.providers.compat.value.developer': "डेवलपर",'st.providers.webbrain_data_use.body': "मुफ़्त दैनिक WebBrain Compass उपयोग शामिल है। जबकि हेल्प इम्प्रूव WebBrain डिफ़ॉल्ट रूप से चालू है, चयनित Compass वार्तालापों को बनाए रखा जा सकता है और मूल्यांकन, सुधार, फाइन-ट्यूनिंग और प्रशिक्षण के लिए उपयोग किया जा सकता है। उन उपयोगों से भविष्य के Compass इंटरैक्शन को बाहर करने के लिए इसे सामान्य → उन्नत में बंद करें। <u>स्थानीय-मॉडल और अपनी खुद की एपीआई अनुरोध WebBrain द्वारा कभी एकत्र नहीं किए जाते हैं।</u> {privacyLink}. अधिक उपयोग के लिए, {subscribeLink} पर सदस्यता लें। {accountLink} पर बिलिंग प्रबंधित करें।",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "मुफ़्त दैनिक WebBrain Compass उपयोग शामिल है। अनुरोध api.webbrain.one से होकर गुजरते हैं; डिफ़ॉल्ट रूप से हम कोटा और डिबगिंग के लिए मेटाडेटा लॉग करते हैं, प्रॉम्प्ट टेक्स्ट, पेज सामग्री, स्क्रीनशॉट या मॉडल प्रतिक्रियाओं के लिए नहीं। {privacyLink}. अधिक उपयोग के लिए, {subscribeLink} पर सदस्यता लें। {accountLink} पर बिलिंग प्रबंधित करें।",'st.providers.webbrain_note.privacy_link': "गोपनीयता नीति",diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.jsindex 003ea936b..14c91166a 100644--- a/src/firefox/src/ui/locales/id.js+++ b/src/firefox/src/ui/locales/id.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "Bantu Tingkatkan WebBrain","st.display.help_improve.desc_html": "Izinkan interaksi WebBrain Compass tertentu disimpan dan digunakan untuk evaluasi, peningkatan, penyempurnaan, dan pelatihan. Aktif secara default. Nonaktifkan agar interaksi Compass mendatang tidak digunakan untuk tujuan tersebut. <u>WebBrain tidak pernah mengumpulkan permintaan model lokal atau permintaan yang dikirim langsung dengan kredensial API Anda sendiri.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Kebijakan privasi →</a>","st.providers.webbrain_data_use.body": "Penggunaan harian gratis WebBrain Compass sudah termasuk. Saat Bantu Tingkatkan WebBrain aktif secara default, percakapan Compass tertentu dapat disimpan dan digunakan untuk evaluasi, peningkatan, penyempurnaan, dan pelatihan. Nonaktifkan di Umum → Lanjutan agar interaksi Compass mendatang tidak digunakan untuk tujuan tersebut. <u>WebBrain tidak pernah mengumpulkan permintaan model lokal atau permintaan yang dikirim langsung dengan kredensial API Anda sendiri.</u> {privacyLink}. Untuk penggunaan lebih banyak, berlangganan di {subscribeLink}. Kelola penagihan di {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Kompatibilitas model lanjutan','st.providers.compat.blurb': 'Biarkan di Auto kecuali model atau endpoint mendokumentasikan kontrak permintaan yang berbeda.','st.providers.compat.preset': 'Preset kompatibilitas',diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.jsindex 2c36ee8fa..380ddb113 100644--- a/src/firefox/src/ui/locales/ja.js+++ b/src/firefox/src/ui/locales/ja.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "WebBrain の改善に協力する","st.display.help_improve.desc_html": "選択された WebBrain Compass の操作を保持し、評価、改善、微調整、トレーニングに使用することを許可します。既定でオンです。今後の Compass 操作がこれらの目的に使用されないようにするにはオフにしてください。<u>ローカルモデルへのリクエストや、ご自身の API 認証情報で直接送信したリクエストを WebBrain が収集することはありません。</u><a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">プライバシーポリシー →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass には毎日の無料利用枠が含まれます。「WebBrain の改善に協力する」は既定でオンであり、選択された Compass の会話が保持され、評価、改善、微調整、トレーニングに使用される場合があります。今後の Compass 操作をこれらの用途から除外するには、一般 → 詳細設定でオフにしてください。<u>ローカルモデルへのリクエストや、ご自身の API 認証情報で直接送信したリクエストを WebBrain が収集することはありません。</u>{privacyLink}。追加利用は {subscribeLink} で購読してください。請求は {accountLink} で管理できます。",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': '高度なモデル互換性','st.providers.compat.blurb': 'モデルまたはエンドポイントが別のリクエスト契約を明記していない限り、Auto のままにしてください。','st.providers.compat.preset': '互換性プリセット',diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.jsindex 46dfa6ac8..3b469e5b6 100644--- a/src/firefox/src/ui/locales/ko.js+++ b/src/firefox/src/ui/locales/ko.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "WebBrain 개선에 참여","st.display.help_improve.desc_html": "선택된 WebBrain Compass 상호작용을 보관하고 평가, 개선, 미세 조정 및 학습에 사용하도록 허용합니다. 기본적으로 켜져 있습니다. 향후 Compass 상호작용이 이러한 목적으로 사용되지 않도록 하려면 끄세요. <u>로컬 모델 요청과 사용자의 API 자격 증명으로 직접 전송한 요청은 WebBrain이 수집하지 않습니다.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">개인정보 처리방침 →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass에는 일일 무료 사용량이 포함됩니다. ‘WebBrain 개선에 참여’가 기본적으로 켜져 있는 동안 선택된 Compass 대화가 보관되어 평가, 개선, 미세 조정 및 학습에 사용될 수 있습니다. 향후 Compass 상호작용을 이러한 사용에서 제외하려면 일반 → 고급에서 끄세요. <u>로컬 모델 요청과 사용자의 API 자격 증명으로 직접 전송한 요청은 WebBrain이 수집하지 않습니다.</u> {privacyLink}. 더 많은 사용량이 필요하면 {subscribeLink}에서 구독하세요. 청구는 {accountLink}에서 관리하세요.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': '고급 모델 호환성','st.providers.compat.blurb': '모델이나 엔드포인트가 다른 요청 계약을 문서화하지 않는 한 Auto로 두세요.','st.providers.compat.preset': '호환성 프리셋',diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.jsindex bd38b2457..c2ee38a3b 100644--- a/src/firefox/src/ui/locales/ms.js+++ b/src/firefox/src/ui/locales/ms.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "Bantu Tingkatkan WebBrain","st.display.help_improve.desc_html": "Benarkan interaksi WebBrain Compass terpilih disimpan dan digunakan untuk penilaian, penambahbaikan, penalaan halus dan latihan. Dihidupkan secara lalai. Matikan untuk menghalang interaksi Compass pada masa hadapan daripada digunakan bagi tujuan tersebut. <u>WebBrain tidak pernah mengumpul permintaan model setempat atau permintaan yang dihantar terus menggunakan kelayakan API anda sendiri.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Dasar privasi →</a>","st.providers.webbrain_data_use.body": "Penggunaan harian percuma WebBrain Compass disertakan. Semasa Bantu Tingkatkan WebBrain dihidupkan secara lalai, perbualan Compass terpilih mungkin disimpan dan digunakan untuk penilaian, penambahbaikan, penalaan halus dan latihan. Matikan di Umum → Lanjutan untuk mengecualikan interaksi Compass pada masa hadapan daripada penggunaan tersebut. <u>WebBrain tidak pernah mengumpul permintaan model setempat atau permintaan yang dihantar terus menggunakan kelayakan API anda sendiri.</u> {privacyLink}. Untuk penggunaan tambahan, langgan di {subscribeLink}. Urus pengebilan di {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Keserasian model lanjutan','st.providers.compat.blurb': 'Biarkan pada Auto melainkan model atau titik akhir mendokumentasikan kontrak permintaan yang berbeza.','st.providers.compat.preset': 'Praset keserasian',diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.jsindex eed02760c..cc34269cb 100644--- a/src/firefox/src/ui/locales/nl.js+++ b/src/firefox/src/ui/locales/nl.js@@ -958,6 +958,9 @@ export default {'st.providers.compat.value.system': 'Systeem','st.providers.compat.value.developer': 'Ontwikkelaar','st.providers.webbrain_data_use.body': 'Gratis dagelijks WebBrain Compass-gebruik is inbegrepen. Zolang „Help WebBrain verbeteren“ standaard is ingeschakeld, kunnen geselecteerde Compass-gesprekken worden bewaard en gebruikt voor evaluatie, verbetering, fine-tuning en training. Schakel dit uit onder Algemeen → Geavanceerd om toekomstige Compass-interacties van dit gebruik uit te sluiten. <u>Verzoeken aan lokale modellen en verzoeken met uw eigen API worden nooit door WebBrain verzameld.</u> {privacyLink}. Abonneer u voor meer gebruik via {subscribeLink}. Beheer facturering via {accountLink}.',+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.ollama_warning.label': 'Ollama FAQ','st.providers.ollama_warning.title': 'Waarom geeft Ollama op localhost 403 terug?','st.providers.ollama_warning.body': 'Recente Ollama-versies kunnen verzoeken weigeren...',diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.jsindex 0ee3eb594..7754bb19e 100644--- a/src/firefox/src/ui/locales/pl.js+++ b/src/firefox/src/ui/locales/pl.js@@ -959,6 +959,9 @@ export default {"st.display.help_improve.label": "Pomóż ulepszać WebBrain","st.display.help_improve.desc_html": "Zezwól na przechowywanie wybranych interakcji z WebBrain Compass i używanie ich do oceny, ulepszania, dostrajania i trenowania. Domyślnie włączone. Wyłącz, aby przyszłe interakcje Compass nie były używane do tych celów. <u>WebBrain nigdy nie zbiera żądań do modeli lokalnych ani żądań wysyłanych bezpośrednio przy użyciu własnych danych logowania API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Polityka prywatności →</a>","st.providers.webbrain_data_use.body": "Darmowe dzienne korzystanie z WebBrain Compass jest wliczone. Gdy opcja „Pomóż ulepszać WebBrain” jest domyślnie włączona, wybrane rozmowy Compass mogą być przechowywane i używane do oceny, ulepszania, dostrajania i trenowania. Wyłącz ją w Ogólne → Zaawansowane, aby wykluczyć przyszłe interakcje Compass z tych zastosowań. <u>WebBrain nigdy nie zbiera żądań do modeli lokalnych ani żądań wysyłanych bezpośrednio przy użyciu własnych danych logowania API.</u> {privacyLink}. Aby korzystać więcej, subskrybuj na {subscribeLink}. Zarządzaj rozliczeniami na {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.","sp.slash.export_config": "Eksportuj wszystkie ustawienia, w tym klucze API dostawców","sp.slash.import_config": "Importuj migawkę konfiguracji WebBrain w formacie JSON","sp.slash.import_config_file": "Wybierz plik JSON konfiguracji WebBrain",diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.jsindex b12e85c47..db3c8fe49 100644--- a/src/firefox/src/ui/locales/pt.js+++ b/src/firefox/src/ui/locales/pt.js@@ -713,6 +713,9 @@ export default {'st.providers.compat.value.system': "Sistema",'st.providers.compat.value.developer': "Desenvolvedor",'st.providers.webbrain_data_use.body': "O uso diário gratuito do WebBrain Compass está incluído. Embora Ajudar a melhorar WebBrain esteja ativado por padrão, conversas selecionadas no Compass podem ser retidas e usadas para avaliação, melhoria, ajuste fino e treinamento. Desative-o em Geral → Avançado para excluir futuras interações no Compass desses usos. <u>Solicitações de API de modelo local e de criação própria nunca são coletadas por WebBrain.</u> {privacyLink}. Para mais uso, assine em {subscribeLink}. Gerencie o faturamento em {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "O uso diário gratuito do WebBrain Compass está incluído. As solicitações passam por api.webbrain.one; por padrão, registramos metadados para cota e depuração, e não texto de prompt, conteúdo de página, capturas de tela ou respostas de modelo. {privacyLink}. Para mais uso, assine em {subscribeLink}. Gerencie o faturamento em {accountLink}.",'st.providers.webbrain_note.privacy_link': "Política de privacidade",diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.jsindex 8cf882342..340e0becd 100644--- a/src/firefox/src/ui/locales/ru.js+++ b/src/firefox/src/ui/locales/ru.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "Помогать улучшать WebBrain","st.display.help_improve.desc_html": "Разрешить хранить отдельные взаимодействия с WebBrain Compass и использовать их для оценки, улучшения, тонкой настройки и обучения. Включено по умолчанию. Отключите, чтобы будущие взаимодействия с Compass не использовались для этих целей. <u>WebBrain никогда не собирает запросы к локальным моделям и запросы, отправленные с вашими собственными учётными данными API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Политика конфиденциальности →</a>","st.providers.webbrain_data_use.body": "Включён бесплатный ежедневный объём WebBrain Compass. Пока параметр «Помогать улучшать WebBrain» включён по умолчанию, отдельные разговоры в Compass могут храниться и использоваться для оценки, улучшения, тонкой настройки и обучения. Отключите его в разделе «Общие → Расширенные», чтобы исключить будущие взаимодействия с Compass из такого использования. <u>WebBrain никогда не собирает запросы к локальным моделям и запросы, отправленные с вашими собственными учётными данными API.</u> {privacyLink}. Для большего объёма оформите подписку на {subscribeLink}. Управляйте оплатой на {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Расширенная совместимость модели','st.providers.compat.blurb': 'Оставляйте «Авто», если модель или endpoint не описывают другой формат запроса.','st.providers.compat.preset': 'Пресет совместимости',diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.jsindex 3411a54c7..e538e017d 100644--- a/src/firefox/src/ui/locales/th.js+++ b/src/firefox/src/ui/locales/th.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "ช่วยปรับปรุง WebBrain","st.display.help_improve.desc_html": "อนุญาตให้เก็บการโต้ตอบกับ WebBrain Compass บางรายการและใช้เพื่อการประเมิน การปรับปรุง การปรับละเอียด และการฝึก โดยเปิดไว้เป็นค่าเริ่มต้น ปิดตัวเลือกนี้เพื่อไม่ให้การโต้ตอบกับ Compass ในอนาคตถูกใช้เพื่อวัตถุประสงค์เหล่านี้ <u>WebBrain จะไม่เก็บคำขอของโมเดลภายในเครื่องหรือคำขอที่ส่งโดยตรงด้วยข้อมูลรับรอง API ของคุณเอง</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">นโยบายความเป็นส่วนตัว →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass มีโควตาใช้งานฟรีรายวัน ขณะที่ “ช่วยปรับปรุง WebBrain” เปิดไว้เป็นค่าเริ่มต้น การสนทนา Compass บางรายการอาจถูกเก็บและใช้เพื่อการประเมิน การปรับปรุง การปรับละเอียด และการฝึก ปิดได้ที่ ทั่วไป → ขั้นสูง เพื่อไม่ให้การโต้ตอบ Compass ในอนาคตถูกใช้ในลักษณะดังกล่าว <u>WebBrain จะไม่เก็บคำขอของโมเดลภายในเครื่องหรือคำขอที่ส่งโดยตรงด้วยข้อมูลรับรอง API ของคุณเอง</u> {privacyLink} หากต้องการใช้งานเพิ่ม สมัครที่ {subscribeLink} จัดการการเรียกเก็บเงินที่ {accountLink}",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'ความเข้ากันได้ของโมเดลขั้นสูง','st.providers.compat.blurb': 'ปล่อยเป็นอัตโนมัติ เว้นแต่โมเดลหรือเอนด์พอยต์จะระบุสัญญาคำขอที่แตกต่าง','st.providers.compat.preset': 'พรีเซ็ตความเข้ากันได้',diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.jsindex 928724d20..2ca819260 100644--- a/src/firefox/src/ui/locales/tl.js+++ b/src/firefox/src/ui/locales/tl.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "Tumulong na Pahusayin ang WebBrain","st.display.help_improve.desc_html": "Payagan ang piling interaksyon sa WebBrain Compass na mapanatili at magamit para sa pagsusuri, pagpapahusay, fine-tuning, at training. Naka-on bilang default. I-off ito upang hindi magamit ang mga susunod na interaksyon sa Compass para sa mga layuning iyon. <u>Hindi kailanman kinokolekta ng WebBrain ang mga request sa lokal na modelo o mga request na direktang ipinadala gamit ang sarili mong API credential.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Patakaran sa privacy →</a>","st.providers.webbrain_data_use.body": "Kasama ang libreng pang-araw-araw na paggamit ng WebBrain Compass. Habang naka-on bilang default ang Tumulong na Pahusayin ang WebBrain, maaaring panatilihin at gamitin ang piling pag-uusap sa Compass para sa pagsusuri, pagpapahusay, fine-tuning, at training. I-off ito sa General → Advanced upang hindi maisama ang mga susunod na interaksyon sa Compass sa mga paggamit na iyon. <u>Hindi kailanman kinokolekta ng WebBrain ang mga request sa lokal na modelo o mga request na direktang ipinadala gamit ang sarili mong API credential.</u> {privacyLink}. Para sa higit pang paggamit, mag-subscribe sa {subscribeLink}. Pamahalaan ang billing sa {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Advanced na compatibility ng modelo','st.providers.compat.blurb': 'Iwanan sa Auto maliban kung ang modelo o endpoint ay may ibang request contract.','st.providers.compat.preset': 'Preset ng compatibility',diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.jsindex 65dbac6ca..6b2a7f526 100644--- a/src/firefox/src/ui/locales/tr.js+++ b/src/firefox/src/ui/locales/tr.js@@ -967,6 +967,9 @@ export default {"st.display.help_improve.label": "WebBrain’i İyileştirmeye Yardım Et","st.display.help_improve.desc_html": "Seçili WebBrain Compass etkileşimlerinin saklanmasına ve değerlendirme, iyileştirme, ince ayar ve eğitim için kullanılmasına izin verin. Varsayılan olarak açıktır. Gelecekteki Compass etkileşimlerinin bu amaçlarla kullanılmasını önlemek için kapatın. <u>Yerel model istekleri ve kendi API kimlik bilgilerinizle gönderilen istekler WebBrain tarafından hiçbir zaman toplanmaz.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Gizlilik politikası →</a>","st.providers.webbrain_data_use.body": "Ücretsiz günlük WebBrain Compass kullanımı dahildir. WebBrain’i İyileştirmeye Yardım Et varsayılan olarak açıkken, seçili Compass konuşmaları değerlendirme, iyileştirme, ince ayar ve eğitim için saklanabilir ve kullanılabilir. Gelecekteki Compass etkileşimlerini bu kullanımların dışında tutmak için Genel → Gelişmiş bölümünden kapatın. <u>Yerel model istekleri ve kendi API kimlik bilgilerinizle gönderilen istekler WebBrain tarafından hiçbir zaman toplanmaz.</u> {privacyLink}. Daha fazla kullanım için {subscribeLink} adresinden abone olun. Faturalandırmayı {accountLink} adresinden yönetin.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Gelişmiş model uyumluluğu','st.providers.compat.blurb': 'Model veya uç nokta farklı bir istek sözleşmesi belgelemedikçe bunları Otomatik bırakın.','st.providers.compat.preset': 'Uyumluluk ön ayarı',diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.jsindex 9c20855c5..3ccdfd9f9 100644--- a/src/firefox/src/ui/locales/uk.js+++ b/src/firefox/src/ui/locales/uk.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "Допомагати вдосконалювати WebBrain","st.display.help_improve.desc_html": "Дозволити зберігати вибрані взаємодії з WebBrain Compass і використовувати їх для оцінювання, вдосконалення, тонкого налаштування та навчання. Увімкнено за замовчуванням. Вимкніть, щоб майбутні взаємодії з Compass не використовувалися для цих цілей. <u>WebBrain ніколи не збирає запити до локальних моделей і запити, надіслані з вашими власними обліковими даними API.</u> <a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">Політика конфіденційності →</a>","st.providers.webbrain_data_use.body": "Безкоштовне щоденне використання WebBrain Compass включено. Поки параметр «Допомагати вдосконалювати WebBrain» увімкнено за замовчуванням, вибрані розмови Compass можуть зберігатися й використовуватися для оцінювання, вдосконалення, тонкого налаштування та навчання. Вимкніть його в розділі «Загальні → Розширені», щоб виключити майбутні взаємодії з Compass із такого використання. <u>WebBrain ніколи не збирає запити до локальних моделей і запити, надіслані з вашими власними обліковими даними API.</u> {privacyLink}. Для більшого обсягу оформіть підписку на {subscribeLink}. Керуйте оплатою на {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': 'Розширена сумісність моделі','st.providers.compat.blurb': 'Залишайте «Авто», якщо модель або endpoint не описують інший формат запиту.','st.providers.compat.preset': 'Пресет сумісності',diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.jsindex 934053098..4fb2fcd7f 100644--- a/src/firefox/src/ui/locales/vi.js+++ b/src/firefox/src/ui/locales/vi.js@@ -713,6 +713,9 @@ export default {'st.providers.compat.value.system': "Hệ thống",'st.providers.compat.value.developer': "Nhà phát triển",'st.providers.webbrain_data_use.body': "Đã bao gồm việc sử dụng WebBrain Compass miễn phí hàng ngày. Mặc dù Trợ giúp cải thiện WebBrain được bật theo mặc định, nhưng các cuộc hội thoại Compass đã chọn có thể được giữ lại và sử dụng để đánh giá, cải tiến, tinh chỉnh và đào tạo. Hãy tắt tính năng này trong Chung → Nâng cao để loại trừ các tương tác Compass trong tương lai khỏi những mục đích sử dụng đó. <u>Các yêu cầu API theo mô hình cục bộ và mang theo của riêng bạn không bao giờ được WebBrain thu thập.</u> {privacyLink}. Để sử dụng nhiều hơn, hãy đăng ký tại {subscribeLink}. Quản lý thanh toán tại {accountLink}.",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.webbrain_note.body': "Đã bao gồm việc sử dụng WebBrain Compass miễn phí hàng ngày. Yêu cầu đi qua api.webbrain.one; theo mặc định, chúng tôi ghi lại siêu dữ liệu để lấy hạn mức và gỡ lỗi, chứ không phải văn bản nhắc nhở, nội dung trang, ảnh chụp màn hình hoặc phản hồi mô hình. {privacyLink}. Để sử dụng nhiều hơn, hãy đăng ký tại {subscribeLink}. Quản lý thanh toán tại {accountLink}.",'st.providers.webbrain_note.privacy_link': "Chính sách bảo mật",diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.jsindex 041f60143..3a1493a3e 100644--- a/src/firefox/src/ui/locales/zh.js+++ b/src/firefox/src/ui/locales/zh.js@@ -968,6 +968,9 @@ export default {"st.display.help_improve.label": "帮助改进 WebBrain","st.display.help_improve.desc_html": "允许保留选定的 WebBrain Compass 交互,并将其用于评估、改进、微调和训练。此选项默认开启。关闭后,未来的 Compass 交互将不会用于这些用途。<u>WebBrain 绝不会收集本地模型请求或使用您自己的 API 凭据直接发送的请求。</u><a href=\"https://webbrain.one/privacy\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:var(--accent);\">隐私政策 →</a>","st.providers.webbrain_data_use.body": "WebBrain Compass 包含每日免费用量。帮助改进 WebBrain 默认开启时,选定的 Compass 对话可能会被保留,并用于评估、改进、微调和训练。可在“常规 → 高级”中关闭,以排除未来的 Compass 交互。<u>WebBrain 绝不会收集本地模型请求或使用您自己的 API 凭据直接发送的请求。</u>{privacyLink}。如需更多用量,请在 {subscribeLink} 订阅。在 {accountLink} 管理账单。",+ 'st.providers.share_research.label': "Share queries for research",+ 'st.providers.share_research.hint': "Send anonymized prompts and responses from this provider to WebBrain for evaluation and improvement, including the provider and model used. Images are stripped before sharing.",+ 'st.providers.share_research.confirm': "Share queries from this provider with WebBrain for research?\n\nWhen on, your prompts, responses, and tool interactions with this provider will be sent to WebBrain for evaluation and improvement, together with the provider and model name. You can turn this off at any time to stop future sharing.",'st.providers.compat.title': '高级模型兼容性','st.providers.compat.blurb': '除非模型或接口另有请求约定说明,否则请保持为自动。','st.providers.compat.preset': '兼容性预设',diff --git a/src/firefox/src/ui/settings.js b/src/firefox/src/ui/settings.jsindex bd339f454..528bb63c8 100644--- a/src/firefox/src/ui/settings.js+++ b/src/firefox/src/ui/settings.js@@ -1907,6 +1907,12 @@ const OPTIONAL_LOCAL_API_KEY_FIELD = {placeholder: 'optional',collapsed: true,};+const SHARE_RESEARCH_FIELD = {+ key: 'shareQueriesForResearch',+ labelKey: 'st.providers.share_research.label',+ hintKey: 'st.providers.share_research.hint',+ type: 'checkbox',+};function providerDefinitionId(id, config = providersData[id]) {return String(config?.sourceProviderId || config?.duplicateOf || id || '');@@ -2665,6 +2671,9 @@ function renderProviders() {const keys = new Set(definition.fields.map(field => field.key));if (!keys.has('contextWindow')) definition.fields.push(CONTEXT_WINDOW_FIELD);if (!keys.has('maxOutputTokens')) definition.fields.push(MAX_OUTPUT_TOKENS_FIELD);+ // Voluntary research sharing is opt-in per provider and never shown for+ // WebBrain Compass itself.+ if (!keys.has('shareQueriesForResearch')) definition.fields.push(SHARE_RESEARCH_FIELD);}providersContainer.appendChild(renderProviderFilterBar());@@ -2727,6 +2736,9 @@ function renderProviders() {<label style="margin:0;cursor:pointer;">${escapeHtml(label)}</label></div>`;+ if (field.hintKey) {+ fieldHTML += `<div class="field-hint" style="margin:-4px 0 10px;font-size:12px;color:var(--text2);">${escapeHtml(t(field.hintKey))}</div>`;+ }} else if (field.suggestions && field.key === 'model') {const rawVal = config[field.key] || '';const isCustom = rawVal && !field.suggestions.includes(rawVal);@@ -2894,6 +2906,17 @@ function renderProviders() {const eventName = input.tagName === 'SELECT' ? 'change' : 'input';input.addEventListener(eventName, () => markProviderDirty(input.dataset.provider));});+ document.querySelectorAll('input[data-key="shareQueriesForResearch"]').forEach(input => {+ input.addEventListener('click', (event) => {+ // In click handlers, `input.checked` has already updated to the target+ // state. Only prompt for confirmation when turning the toggle ON.+ // preventDefault() cancels the click and rolls `checked` back to false.+ if (!input.checked) return;+ if (!window.confirm(t('st.providers.share_research.confirm'))) {+ event.preventDefault();+ }+ });+ });document.querySelectorAll('.btn-remove-duplicate').forEach(btn => {btn.addEventListener('click', () => removeDuplicateProvider(btn.dataset.provider));});diff --git a/test/run.js b/test/run.jsindex 8f6d91020..ff773a82f 100644--- a/test/run.js+++ b/test/run.js@@ -11992,6 +11992,8 @@ const TRACE_PRIVACY_CH = await import('file://' + path.join(ROOT, 'src/chrome/srconst TRACE_PRIVACY_FX = await import('file://' + path.join(ROOT, 'src/firefox/src/trace/privacy.js').replace(/\\/g, '/'));const CLOUD_RUNTIME_OUTBOX_CH = await import('file://' + path.join(ROOT, 'src/chrome/src/trace/cloud-runtime-outbox.js').replace(/\\/g, '/'));const CLOUD_RUNTIME_OUTBOX_FX = await import('file://' + path.join(ROOT, 'src/firefox/src/trace/cloud-runtime-outbox.js').replace(/\\/g, '/'));+const SHARE_OUTBOX_CH = await import('file://' + path.join(ROOT, 'src/chrome/src/trace/webbrain-share-outbox.js').replace(/\\/g, '/'));+const SHARE_OUTBOX_FX = await import('file://' + path.join(ROOT, 'src/firefox/src/trace/webbrain-share-outbox.js').replace(/\\/g, '/'));test('trace event model: catalog covers every kind the recorder writes', () => {const kinds = EVENT_MODEL_CH.EVENT_KINDS;@@ -12463,6 +12465,173 @@ test('Cloud runtime delivery stays consent-gated and mirrored across both builds}});+test('Share-for-research item scrubs images and clamps oversized content', () => {+ for (const [label, outbox] of [['chrome', SHARE_OUTBOX_CH], ['firefox', SHARE_OUTBOX_FX]]) {+ const itemsBefore = globalThis.crypto?.randomUUID;+ if (itemsBefore) globalThis.crypto.randomUUID = () => `uuid-${label}`;+ try {+ const item = outbox.buildShareGenerationItem({+ runId: `run-share-${label}`,+ finalContent: 'Summary.',+ messages: [+ { role: 'user', content: 'tag', image_url: 'data:image/png;base64,RAWBYTES' },+ {+ role: 'user',+ content: [+ { type: 'text', text: 'A'.repeat(12_000) },+ { type: 'image_url', image_url: { url: 'data:image/png;base64,RAWBYTES' } },+ ],+ },+ { role: 'assistant', content: 'Short reply' },+ ],+ model: 'some-model',+ mode: 'act',+ provider: 'anthropic',+ provider_name: 'Anthropic Claude',+ });+ assert.equal(item.id, `run-share-${label}`, `${label}: run id not carried`);+ assert.equal(item.provider, 'anthropic');+ assert.equal(item.provider_name, 'Anthropic Claude');+ assert.equal(item.model, 'some-model');+ assert.equal(item.mode, 'act');+ assert.equal(JSON.stringify(item).includes('RAWBYTES'), false, `${label}: image bytes escaped the scrub`);+ assert.equal(item.request[0].image_url, undefined, `${label}: top-level image_url key survived`);+ assert.equal(item.request[1].content[0].type, 'text', `${label}: text block dropped with the image`);+ assert.match(item.request[1].content[0].text, /\[… 2000 characters omitted\]/, `${label}: long text block not clamped`);+ assert.equal(item.request[2].content, 'Short reply');+ assert.deepEqual(item.response, { role: 'assistant', content: 'Summary.' });+ } finally {+ if (itemsBefore) globalThis.crypto.randomUUID = itemsBefore;+ }+ }+});++test('Share-for-research item drops empty runs and caps the whole request', () => {+ assert.equal(SHARE_OUTBOX_CH.buildShareGenerationItem({+ runId: 'r', finalContent: 'x', messages: [], model: 'm', mode: 'act', provider: 'p', provider_name: 'p',+ }), null, 'empty message list must not be shared');+ assert.equal(SHARE_OUTBOX_CH.buildShareGenerationItem({+ runId: 'r', finalContent: ' ', messages: [{ role: 'user', content: 'hi' }], model: 'm', mode: 'act', provider: 'p', provider_name: 'p',+ }), null, 'blank response must not be shared');+ const item = SHARE_OUTBOX_CH.buildShareGenerationItem({+ runId: 'r', finalContent: 'x',+ messages: Array.from({ length: 60 }, () => ({ role: 'user', content: 'y'.repeat(9_000) })),+ model: 'm', mode: 'act', provider: 'p', provider_name: 'p',+ });+ const total = JSON.stringify(item.request).length;+ assert.ok(total <= 150_000, `shared request exceeded the byte budget (${total})`);+ assert.deepEqual(item.request.at(-1), { role: 'system', content: '[remaining shared message omitted]' });+});++test('Share-for-research outbox persists retryable failures and removes acknowledged or rejected entries', async () => {+ const originalChrome = globalThis.chrome;+ const storage = {};+ globalThis.chrome = {+ storage: {+ local: {+ async get(keys) {+ const key = Array.isArray(keys) ? keys[0] : keys;+ return { [key]: storage[key] };+ },+ async set(values) { Object.assign(storage, values); },+ },+ },+ };+ const entry = { id: 'share-entry-1', session_id: 'share_conv_1', provider: 'anthropic', provider_name: 'x', model: 'm', mode: 'act', request: [{ role: 'user', content: 'hi' }], response: { role: 'assistant', content: 'yo' } };+ try {+ assert.equal(await SHARE_OUTBOX_CH.enqueueShareGeneration(entry), true);+ assert.equal(storage[SHARE_OUTBOX_CH.SHARE_OUTBOX_STORAGE_KEY].length, 1);+ let calls = 0;+ const provider = {+ async sendShareGeneration() {+ calls++;+ return calls === 1+ ? { ok: false, retryable: true, status: 503 }+ : calls === 2+ ? { ok: false, retryable: false, status: 400 }+ : { ok: true, retryable: false, status: 202 };+ },+ };+ assert.equal(await SHARE_OUTBOX_CH.flushShareOutbox(provider), 0, 'retryable failure must stay queued');+ assert.equal(storage[SHARE_OUTBOX_CH.SHARE_OUTBOX_STORAGE_KEY].length, 1);+ assert.equal(await SHARE_OUTBOX_CH.flushShareOutbox(provider), 1, 'rejected entry must be dropped without retry');+ assert.equal(storage[SHARE_OUTBOX_CH.SHARE_OUTBOX_STORAGE_KEY].length, 0);+ assert.equal(await SHARE_OUTBOX_CH.enqueueShareGeneration(entry), true);+ const listenedProvider = {+ sent: null,+ async sendShareGeneration(sessionId, payload) {+ this.sent = { sessionId, payload };+ return { ok: true, retryable: false, status: 202 };+ },+ };+ assert.equal(await SHARE_OUTBOX_CH.flushShareOutbox(listenedProvider), 1);+ assert.deepEqual(listenedProvider.sent, { sessionId: 'share_conv_1', payload: { provider: 'anthropic', provider_name: 'x', model: 'm', mode: 'act', request: entry.request, response: entry.response } });+ assert.equal(storage[SHARE_OUTBOX_CH.SHARE_OUTBOX_STORAGE_KEY].length, 0);+ } finally {+ if (originalChrome === undefined) delete globalThis.chrome;+ else globalThis.chrome = originalChrome;+ }+});++test('Firefox Share-for-research outbox uses the promise-based browser storage namespace', async () => {+ const originalBrowser = globalThis.browser;+ const originalChrome = globalThis.chrome;+ const storage = {};+ let chromeCalls = 0;+ globalThis.browser = {+ storage: {+ local: {+ async get(keys) {+ const key = Array.isArray(keys) ? keys[0] : keys;+ return { [key]: storage[key] };+ },+ async set(values) { Object.assign(storage, values); },+ },+ },+ };+ globalThis.chrome = {+ storage: {+ local: {+ get() { chromeCalls++; throw new Error('callback-only chrome namespace used'); },+ set() { chromeCalls++; throw new Error('callback-only chrome namespace used'); },+ },+ },+ };+ try {+ const entry = { id: 'share-firefox-1', session_id: 'share_firefox', provider: 'anthropic', provider_name: 'x', model: 'm', mode: 'act', request: [{ role: 'user', content: 'hi' }], response: { role: 'assistant', content: 'yo' } };+ assert.equal(await SHARE_OUTBOX_FX.enqueueShareGeneration(entry), true);+ assert.equal(storage[SHARE_OUTBOX_FX.SHARE_OUTBOX_STORAGE_KEY].length, 1);+ assert.equal(await SHARE_OUTBOX_FX.flushShareOutbox({+ async sendShareGeneration() { return { ok: true, retryable: false, status: 202 }; },+ }), 1);+ assert.equal(storage[SHARE_OUTBOX_FX.SHARE_OUTBOX_STORAGE_KEY].length, 0);+ assert.equal(chromeCalls, 0, 'Firefox share outbox touched the callback-based chrome namespace');+ } finally {+ if (originalBrowser === undefined) delete globalThis.browser;+ else globalThis.browser = originalBrowser;+ if (originalChrome === undefined) delete globalThis.chrome;+ else globalThis.chrome = originalChrome;+ }+});++test('Share-for-research delivery stays opt-in and mirrored across both builds', () => {+ const chromeOutbox = fs.readFileSync(path.join(ROOT, 'src/chrome/src/trace/webbrain-share-outbox.js'), 'utf8');+ const firefoxOutbox = fs.readFileSync(path.join(ROOT, 'src/firefox/src/trace/webbrain-share-outbox.js'), 'utf8');+ assert.equal(chromeOutbox, firefoxOutbox, 'Chrome/Firefox share outboxes drifted');+ for (const browser of ['chrome', 'firefox']) {+ const agent = fs.readFileSync(path.join(ROOT, `src/${browser}/src/agent/agent.js`), 'utf8');+ const settings = fs.readFileSync(path.join(ROOT, `src/${browser}/src/ui/settings.js`), 'utf8');+ const provider = fs.readFileSync(path.join(ROOT, `src/${browser}/src/providers/openai.js`), 'utf8');+ assert.match(agent, /shareQueriesForResearch === true[\s\S]*enqueueShareGeneration/, `${browser}: capture not gated on the per-provider toggle`);+ assert.match(agent, /'webbrain-cloud'/, `${browser}: Compass provider must not route through the share path`);+ assert.match(agent, /void flushShareOutbox\(shareTransport\)/, `${browser}: run-end share flush missing`);+ assert.match(agent, /_shareSessionId\(/, `${browser}: share session id sanitizer missing`);+ assert.match(settings, /shareQueriesForResearch/, `${browser}: share toggle field missing from settings`);+ assert.match(settings, /!input\.checked[\s\S]*?confirm\(/, `${browser}: consent confirmation must guard turning the share toggle on`);+ assert.match(provider, /\/improvement\/generations/, `${browser}: share endpoint missing from the Compass provider transport`);+ }+});+test('trace recorder: writes go through the event model and stamp the format version', () => {for (const browser of ['chrome', 'firefox']) {const recorderSource = fs.readFileSync(path.join(ROOT, `src/${browser}/src/trace/recorder.js`), 'utf8');@@ -44384,7 +44553,7 @@ test('Help Improve WebBrain is default-on in Advanced, persisted, and reloads Coassert.match(settings, /helpImproveToggle\.checked = stored\.helpImproveWebBrain !== false/, `${label}: missing default-on storage hydration`);assert.match(settings, new RegExp(`${runtime}\\.storage\\.local\\.set\\(\\{ helpImproveWebBrain: helpImproveToggle\\.checked \\}\\)`), `${label}: setting should persist`);assert.match(locale, /'st\.display\.help_improve\.label': 'Help Improve WebBrain'/, `${label}: setting label missing`);- assert.match(locale, /On by default[^']*<u>Local-model and bring-your-own API requests are never collected by WebBrain\.<\/u>/, `${label}: setting disclosure should explain and emphasize its default and scope`);+ assert.match(locale, /On by default[^']*<u>Local-model and bring-your-own API requests are only collected by WebBrain from providers where you turn on “Share queries for research”\.<\/u>/, `${label}: setting disclosure should explain and emphasize its default and scope`);assert.match(locale, /Turn it off in General → Advanced to exclude future Compass interactions/, `${label}: provider disclosure should point to General > Advanced`);for (const localeFile of fs.readdirSync(localeDir).filter((name) => name.endsWith('.js'))) {const translatedLocale = fs.readFileSync(path.join(localeDir, localeFile), 'utf8');