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
Install guide downloads D1 next to the local model; Auto uses a downloaded D1
Claudea1c1d4538d4a
diff --git a/docs/privacy-and-data-flow.md b/docs/privacy-and-data-flow.mdindex 435c6ccc7..775b12ccf 100644--- a/docs/privacy-and-data-flow.md+++ b/docs/privacy-and-data-flow.md@@ -108,11 +108,13 @@ requests.### Decision models and completion verificationProviders → Decision has three decision-model modes. **Auto** (the-default) sends nothing anywhere new: in Chrome it uses Ternary Bonsai 2 2B-Vision on the device once it is downloaded, for completion and scheduled checks-only, and while Compass is the conversation provider Compass's managed Cloud-decision route answers completion checks and semantic decisions as before.-With neither, no decision model is used. **Off** uses none, Compass's included.+default) sends nothing anywhere new: it uses D1 on the device once D1 is+downloaded (with its explicit consent, on the Providers page or from the Chrome+install guide), for completion and scheduled checks only, and while Compass is+the conversation provider Compass's managed Cloud decision route answers+completion checks and semantic decisions as before. With neither, no decision+model is used. A downloaded chat or vision model never enables decisions.+**Off** uses none, Compass's included.**On** selects OpenRouter, TypeSafe, a local/custom System One endpoint, D1 orthe in-browser chat model; completion verification, watch checks, scheduledcompletion checks, classifications and browser decisions share that selection,diff --git a/docs/providers-and-models.md b/docs/providers-and-models.mdindex 78f2abdb0..7dd46a405 100644--- a/docs/providers-and-models.md+++ b/docs/providers-and-models.md@@ -65,15 +65,20 @@ finished, did a watch find what it waited for, what does a request say about anaction) so the chat model does not have to. The Decision tab of the Providerspage asks one question first:-- **Auto** (default) needs no setup. In Chrome it uses Ternary Bonsai 2 2B- Vision once that preset is downloaded (Providers → WebGPU, the install page or- Apocalypse Mode), for completion checks and scheduled watch and completion- checks only. While Compass is the chat provider, Compass's managed decision- model answers instead, as before. Otherwise no decision model is used.- Readiness is the WebGPU worker's ready marker in Cache Storage- (`providers/webgpu-model-cache.js`), read without starting the offscreen- document. Firefox has no in-browser model, so Auto there means Compass or- nothing.+- **Auto** (default) needs no setup. It uses D1 (below) once D1 is+ downloaded on this device, for completion checks and scheduled watch and+ completion checks only. The Chrome install guide's **Download local models**+ button downloads it next to Ternary Bonsai 2 2B Vision; **Download and load**+ under On → D1 does too, in both browsers. D1 serves Auto while that Download+ or Load stands: **Unload**, **Remove cached model** and Off end it. While+ Compass is the chat provider, Compass's managed decision model answers+ instead, as before. Otherwise no decision model is used. Readiness+ (`agent/decision-availability.js`) is D1's experimental-model consent, the+ stored Load request and the package's ready marker in its OPFS directory+ (`providers/d1-cache.js`), read without starting the offscreen document,+ the Worker or the GPU. A downloaded chat or vision model, Ternary Bonsai 2 2B+ Vision included, never enables decisions+ ([`webgpu-models.md`](webgpu-models.md#decisions-on-webgpu)).- **On** uses the provider configured below for every decision: completion,scheduled watches and completions, fast classifications, fast browseractions and semantic decisions. The first five each have a switch in the collapsed@@ -116,7 +121,12 @@ questions over bounded text/JSON state and inline screenshots. Selecting itdoes not download anything. Explicit consent and **Download and load** fetchabout 0.95 GB of pinned model data and tokenizer/configuration files fromthe [Hugging Face model repository](https://huggingface.co/webbrain-one/d1-browser-decision-fp16)-into OPFS. The package stores FP16 weights and computes in FP32; it is the+into OPFS. In Chrome the first-install guide offers the same download: its+optional **Download local models** button, whose note names D1 and its size,+is that consent, and it downloads D1 in D1's own Worker while Ternary Bonsai 2+2B Vision downloads, then loads it. The guide reads D1's status, checks the GPU+and starts or stops the download (the only `d1_control` commands it may send);+it writes no decision settings, so Auto then uses D1 as described above. The package stores FP16 weights and computes in FP32; it is the[FP32 release](https://huggingface.co/webbrain-one/d1-browser-decision-fp32)with its weights rounded once, and answers the same on its held-out test. Acached FP32 package from an earlier version is removed on the next download. The repository name is not a production-readiness claim; this provider@@ -140,11 +150,13 @@ code is not evidence that every browser/GPU is supported. CPU/WASM control andshape operators are permitted and explicitly disclosed; it is not a pure-GPUclaim. **Unload** or disabling outsourcing releases the Worker/GPU resources andretains the cache; **Remove cached model** requires the model to be unloaded.-After **Download and load** or **Load**, D1 stays loaded until-it is unloaded, removed or switched off on the Providers page: a decision that finds it-unloaded (a browser restart, a discarded stalled session, a lost GPU device)-starts one reload from the verified cache in the background and uses the-fallback chain meanwhile. A reload never downloads. A decision whose caller+After **Download and load**, **Load** or the install guide's download, D1+stays loaded until it is unloaded, removed or switched off on the Providers+page (decisions Off, or another provider saved under On; switching to Auto+keeps it, since Auto uses it): a decision that finds it unloaded (a browser+restart, a discarded stalled session, a lost GPU device, or a mode change that+released the Worker) starts one reload from the verified cache in the+background and uses the fallback chain meanwhile. A reload never downloads. A decision whose callerstops waiting (a judge timeout, Stop) is cancelled in the Worker, skipped ifit was still queued, and the loaded model stays.Page state and screenshots remain untrusted evidence, never instructions.@@ -193,6 +205,7 @@ existing checks. Strict Secret Mode disables these additional calls.| --- | --- | --- || WebBrain Compass (default) | Managed decision model | Active LLM, then existing checks || Explicitly enabled and consented D1, including with Compass | Experimental local D1; no sole success authority | Active LLM, then existing checks |+| Auto, not Compass, D1 downloaded | Experimental local D1; no sole success authority | Active LLM, then existing checks || Other provider, completion outsourcing enabled | Selected decision model | Active LLM, then existing checks || Other provider, outsourcing disabled or unconfigured | Active LLM | Existing checks |diff --git a/docs/security-model.md b/docs/security-model.mdindex 76f8d2a66..bc2f939a8 100644--- a/docs/security-model.md+++ b/docs/security-model.md@@ -67,8 +67,15 @@ This is a feature (it makes the agent useful with zero setup) but also the most### Experimental Local D1 DecisionsD1 is an optional finite-decision provider, not a chat generator or browser-executor. Explicit consent on the Providers page controls download/load; the-control handler accepts only that extension page as the sender. Chrome uses its shared offscreen+executor. Explicit consent controls download/load: the checkbox on the+Providers page, or the Chrome install guide's optional **Download local+models** button, whose note names D1, its size and its source. The control+handler accepts only the extension's own Providers page and, for status, the+GPU check, download and stop only, its own install guide page; load, unload,+removal and consent stay on the Providers page. The guide writes no decision+settings. Auto uses D1 only after that consent, while the download is complete+and its Load request stands, and never in place of Compass's managed route or a+saved choice. Chrome uses its shared offscreendocument and a separate Worker; Firefox attempts its background-page Worker onlywhen hardware WebGPU and OPFS are available. Software adapters and inadequatebuffer limits are rejected, but other capable devices are not declared validated.diff --git a/docs/webgpu-models.md b/docs/webgpu-models.mdindex dcd50f1e7..2909abf1d 100644--- a/docs/webgpu-models.md+++ b/docs/webgpu-models.md@@ -255,10 +255,15 @@ Use the tools in `scripts/models/bonsai/`:- **Cache-only inference.** Chat never downloads. Only explicit download orpreload flows fetch model files: Providers → WebGPU, ApocalypseMode, and the first-install page (Chrome), which offers Ternary Bonsai 2 2B- Vision behind its optional "Download a local model" button. The install page- checks for hardware WebGPU before fetching anything, never changes the- active provider, and only points an idle WebGPU provider at Bonsai when the- configured model is not already downloaded.+ Vision and D1, the decision model, behind its optional "Download local+ models" button. The two download at once, each in its own worker, and the+ page shows D1's progress on a line of its own. The install page checks for+ hardware WebGPU before fetching anything (D1 runs its own adapter check, and+ a GPU it cannot use leaves the Bonsai download going), never changes the+ active provider or the decision settings, and only points an idle WebGPU+ provider at Bonsai when the configured model is not already downloaded.+ Auto decisions then use D1, not Bonsai+ ([`providers-and-models.md`](providers-and-models.md#decision-models)).## Decisions on WebGPU@@ -317,8 +322,11 @@ The labelled set is d1's balanced-V3 held-out test (72 synthetic screenshots,using the raw token readout also produced confident false completions onwrong destinations and unsubmitted drafts. The synthetic results belowdo not establish reliability on real browser tasks.- - Completion checks now stay with the active chat model without starting- Ternary's former 15-second decision request. Ternary chat and screenshot+ - Completion checks no longer start Ternary's former 15-second decision+ request. Auto gives its former slot to D1: once D1 is downloaded, and+ while Compass is not the chat provider, D1 answers completion and+ scheduled checks, and a positive answer still needs independent proof;+ otherwise the active chat model checks. Ternary chat and screenshotreading remain available. The diagnostic fixture/readout path is retainedfor evaluating a future replacement; its results do not authorize actions.diff --git a/src/chrome/src/agent/decision-availability.js b/src/chrome/src/agent/decision-availability.jsindex 1d0a01d2a..e5f40bc84 100644--- a/src/chrome/src/agent/decision-availability.js+++ b/src/chrome/src/agent/decision-availability.js@@ -1,6 +1,22 @@-import { resolveDecisionConfig } from './decision-config.js';+import { decisionNeedsLocalAssist, resolveDecisionConfig } from './decision-config.js';+import { D1_KEEP_LOADED_KEY } from '../providers/d1-config.js';+import { d1PackageReady } from '../providers/d1-cache.js';-// Decision availability is independent of the downloaded chat/vision model.+// Auto without Compass uses D1 once its package is downloaded and verified,+// while the user's Download or Load stands: Unload, Remove cached model and+// switching decisions Off end it (background.js d1_control). The lookup is one+// storage read and D1's ready marker, without the offscreen document or the+// GPU, so per-check callers can afford it. A downloaded chat or vision model+// never enables decisions.+export async function d1LocalAssistReady(api = globalThis.browser || globalThis.chrome, storageManager = globalThis.navigator?.storage) {+ try {+ const stored = await api.storage.local.get(D1_KEEP_LOADED_KEY);+ return stored?.[D1_KEEP_LOADED_KEY] === true && await d1PackageReady(storageManager);+ } catch { return false; }+}++// The decision configuration that applies right now.export async function resolveCurrentDecisionConfig(stored = {}, compass = null) {- return resolveDecisionConfig(stored, compass);+ const localAssistReady = decisionNeedsLocalAssist(stored, compass) && await d1LocalAssistReady();+ return resolveDecisionConfig(stored, compass, { localAssistReady });}diff --git a/src/chrome/src/agent/decision-config.js b/src/chrome/src/agent/decision-config.jsindex b3e1fb433..bc5408c23 100644--- a/src/chrome/src/agent/decision-config.js+++ b/src/chrome/src/agent/decision-config.js@@ -31,6 +31,11 @@ const NO_DECISION_FEATURES = Object.freeze(Object.fromEntries(DECISION_FEATURES.// Auto with Compass keeps what Compass did before modes existed: completion// checks and semantic decisions on its managed model.const AUTO_COMPASS_FEATURES = Object.freeze({ ...NO_DECISION_FEATURES, done: true, semantic: true });+// Auto with D1 downloaded and no Compass: the checks D1 answers by itself, the+// ones the in-browser chat model answered before its decisions were disabled.+// Fast classifications, fast browser actions and semantic decisions need an+// explicit On, so the experimental and guard-facing paths stay opt-in.+const AUTO_LOCAL_FEATURES = Object.freeze({ ...NO_DECISION_FEATURES, done: true, watch: true, completion: true });// A saved mode wins. Profiles saved before modes existed map an enabled// System One switch to On and everything else to the Auto default, without@@ -40,6 +45,13 @@ export function resolveDecisionMode(stored = {}) {return stored?.systemOneEnabled === true ? 'on' : 'auto';}+// Only Auto without Compass, after D1's experimental-model consent, looks for+// D1's download (decision-availability.js), so callers can skip that lookup+// otherwise.+export function decisionNeedsLocalAssist(stored = {}, compass = null) {+ return resolveDecisionMode(stored) === 'auto' && !compass && stored?.[D1_CONSENT_KEY] === D1_CONSENT_VERSION;+}+// Whether the resolved configuration answers this decision. Every caller asks// here instead of reading the mode or the feature switches itself.export function decisionFeatureEnabled(config, feature) {@@ -70,11 +82,17 @@ function onDecisionFeatures(stored, config, legacy) {// Resolve settings without rewriting credentials or opted-in features. The// result keeps the selected provider's fields even when no decision is// answered, so Settings and model discovery see the same configuration.-// Downloaded chat/vision weights do not establish reliable decision behavior.-// Keep accepting the old options argument without activating that model.-export function resolveDecisionConfig(stored = {}, compass = null, _options = {}) {+// Downloaded chat/vision weights do not establish reliable decision behavior;+// `localAssistReady` says D1, a decision model, is downloaded and the user's+// Download or Load stands (decision-availability.js). Only Auto without+// Compass reads it.+export function resolveDecisionConfig(stored = {}, compass = null, { localAssistReady = false } = {}) {stored = stored || {};const mode = resolveDecisionMode(stored);+ if (localAssistReady === true && decisionNeedsLocalAssist(stored, compass)) {+ const config = selectedDecisionConfig({ ...stored, decisionProvider: 'webgpu_d1', decisionVisionMode: 'auto' }, null, true);+ return { ...config, doneEnabled: true, mode, source: 'local_assist', features: { ...AUTO_LOCAL_FEATURES } };+ }const legacy = mode === 'on' && !DECISION_MODES.includes(stored[DECISION_MODE_KEY]);const on = mode === 'on';const config = selectedDecisionConfig(stored, mode === 'off' ? null : compass, on);diff --git a/src/chrome/src/background.js b/src/chrome/src/background.jsindex ebec0d1fb..dfd9d3d71 100644--- a/src/chrome/src/background.js+++ b/src/chrome/src/background.js@@ -1,5 +1,5 @@import { getChatHistoryRecord } from './ui/chat-history-store.js';-import { resolveDecisionConfig, listDecisionModels } from './agent/decision-config.js';+import { resolveDecisionConfig, listDecisionModels, DECISION_SETTINGS_KEYS } from './agent/decision-config.js';import { resolveCurrentDecisionConfig } from './agent/decision-availability.js';import { d1Request } from './providers/d1.js';import { evaluateD1LocalFixture } from './providers/d1-diagnostic.js';@@ -3450,6 +3450,23 @@ async function handleFailureRecoveryResponse(msg, sender) {}}+// Whether D1 answers this profile's decisions now, for the install guide: an+// explicit On selection, or Auto once D1 is downloaded while Compass is not the+// chat provider (decision-availability.js).+async function d1UsedForDecisions(api) {+ try {+ if (agent.strictSecretMode) return false;+ if (providerManager.providers.size === 0) await providerManager.load();+ let compass = null;+ try {+ const provider = providerManager.getActive();+ if (provider?.config?.providerName === 'webbrain-cloud') compass = provider.config;+ } catch { /* no active provider yet */ }+ const config = await resolveCurrentDecisionConfig(await api.storage.local.get(DECISION_SETTINGS_KEYS), compass);+ return config.provider === 'webgpu_d1' && config.enabled === true;+ } catch { return false; }+}+async function handleMessage(msg, sender) {if (msg.action === 'failure_recovery_response') return handleFailureRecoveryResponse(msg, sender);if (['chat_start', 'chat', 'chat_stream'].includes(msg.action)) assertChatRequestInput(msg);@@ -4954,8 +4971,13 @@ async function handleMessage(msg, sender) {case 'd1_control': {// The D1 controls are on the Decision tab of the Providers page.const api = globalThis.browser || globalThis.chrome;- const providersUrl = api.runtime.getURL('src/ui/providers.html');- if (sender.id !== api.runtime.id || String(sender.url || '').split(/[?#]/)[0] !== providersUrl) return { success: false, error: 'D1 model controls are available only from the extension Providers page.' };+ const page = sender.id === api.runtime.id ? String(sender.url || '').split(/[?#]/)[0] : '';+ // The install guide downloads D1 next to its local chat model: it reads+ // D1's status, checks the GPU, and starts or stops that download. Every+ // other control stays on the Providers page.+ const fromInstall = page === api.runtime.getURL('src/ui/install.html')+ && ['status', 'probe', 'download', 'stop'].includes(msg.command);+ if (page !== api.runtime.getURL('src/ui/providers.html') && !fromInstall) return { success: false, error: 'D1 model controls are available only from the extension Providers page.' };try {await strictSecretModeReady;if (agent.strictSecretMode && !['dispose', 'reset', 'stop', 'clear', 'status'].includes(msg.command)) throw new Error('D1 is disabled in Strict Secret Mode.');@@ -4969,7 +4991,9 @@ async function handleMessage(msg, sender) {// Unload, Remove and switching D1 off in Settings end that request.await api.storage.local.set({ [D1_KEEP_LOADED_KEY]: false });}- return { success: true, result: msg.command === 'consent' ? { consented: true } : await d1Request(msg.command, { consentVersion: D1_CONSENT_VERSION }) };+ const result = msg.command === 'consent' ? { consented: true } : await d1Request(msg.command, { consentVersion: D1_CONSENT_VERSION });+ // The guide says whether D1 answers this profile's decisions.+ return { success: true, result: fromInstall ? { ...result, usedForDecisions: await d1UsedForDecisions(api) } : result };} catch (error) { return { success: false, error: error.message }; }}case 'list_decision_models': {@@ -4992,7 +5016,8 @@ async function handleMessage(msg, sender) {// On tests the configured provider, enabled or not; Auto tests what it// would use now, and there is nothing to test when it uses nothing.const testsConfigured = !msg.settings || ['on', undefined].includes(msg.settings.decisionMode);- let config = msg.settings ? (testsConfigured ? resolveDecisionConfig({ ...msg.settings, decisionMode: 'on' }) : await resolveCurrentDecisionConfig(msg.settings)) : undefined;+ // Auto's D1 needs the experimental-model consent the draft does not carry.+ let config = msg.settings ? (testsConfigured ? resolveDecisionConfig({ ...msg.settings, decisionMode: 'on' }) : await resolveCurrentDecisionConfig({ ...await chrome.storage.local.get(D1_CONSENT_KEY), ...msg.settings })) : undefined;if (config && !testsConfigured && !config.enabled) throw new Error('No decision model is in use.');if (config?.provider === 'openrouter' && (!msg.settings.decisionVisionMode || msg.settings.decisionVisionMode === 'auto')) {try { const card = (await listDecisionModels(config)).find(m => m.id === config.model); if (card) config = { ...config, supportsVision: card.supportsVision }; } catch {}diff --git a/src/chrome/src/providers/d1-cache.js b/src/chrome/src/providers/d1-cache.jsindex e245e783d..b9a97ee69 100644--- a/src/chrome/src/providers/d1-cache.js+++ b/src/chrome/src/providers/d1-cache.js@@ -99,3 +99,14 @@ export async function setD1Ready(directory, ready) {const writer = await (await directory.getFileHandle('ready.json', { create: true })).createWritable();await writer.write(encoder.encode(JSON.stringify({ revision: D1_RELEASE.revision, manifestSha256: D1_RELEASE.manifestSha256 }))); await writer.close();}++// Whether the pinned package finished downloading and verifying, from its+// ready marker alone: no Worker, no GPU, and nothing is created when the+// directory is missing. Auto's decisions look here (decision-availability.js).+export async function d1PackageReady(storageManager = globalThis.navigator?.storage) {+ try {+ const directory = await (await storageManager.getDirectory()).getDirectoryHandle(currentCacheName());+ const marker = JSON.parse(await (await (await directory.getFileHandle('ready.json')).getFile()).text());+ return marker?.revision === D1_RELEASE.revision && marker?.manifestSha256 === D1_RELEASE.manifestSha256;+ } catch { return false; }+}diff --git a/src/chrome/src/ui/install.html b/src/chrome/src/ui/install.htmlindex 433499be1..aefe4b2b1 100644--- a/src/chrome/src/ui/install.html+++ b/src/chrome/src/ui/install.html@@ -20,8 +20,8 @@lives here so install.js stays identical in the Firefox build,which has no in-browser model runtime and no such block. --><div id="local-model" class="local-model" data-model="webbrain-one/Ternary-Bonsai-2-2B-ONNX-WebGPU-Vision" data-state="checking">- <button id="local-model-button" class="open-panel-button local-model-button" type="button" aria-describedby="local-model-status local-model-note" disabled>- <span id="local-model-label" data-i18n="install.local_model.download">Download a local model</span>+ <button id="local-model-button" class="open-panel-button local-model-button" type="button" aria-describedby="local-model-status local-model-d1 local-model-note" disabled>+ <span id="local-model-label" data-i18n="install.local_model.download">Download local models</span><svg class="local-model-icon local-model-icon--download" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19.5h14"/></svg>@@ -34,7 +34,9 @@</button><div id="local-model-progress" class="local-model-progress" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" aria-label="Local model download" data-i18n-aria-label="install.local_model.progress_label" hidden><i></i></div><p id="local-model-status" class="local-model-status" aria-live="polite"></p>- <p id="local-model-note" class="local-model-note" data-i18n="install.local_model.note">Optional · about 1.45 GB · runs on this device. You can skip this.</p>+ <!-- D1, the on-device decision model, downloads alongside (install.js). -->+ <p id="local-model-d1" class="local-model-status local-model-d1" aria-live="polite" hidden></p>+ <p id="local-model-note" class="local-model-note" data-i18n="install.local_model.note">Optional · about 1.45 GB, plus 0.95 GB for D1, WebBrain’s experimental decision model from Hugging Face. Both run on this device and use its GPU memory. You can skip this.</p></div></div>diff --git a/src/chrome/src/ui/install.js b/src/chrome/src/ui/install.jsindex 27b5553d6..129ccc79a 100644--- a/src/chrome/src/ui/install.js+++ b/src/chrome/src/ui/install.js@@ -1,4 +1,5 @@import { applyDOMTranslations, t } from './i18n.js';+import { D1_CONSENT_VERSION } from '../providers/d1-config.js';import {initializeCardSpotlight,initializeScenePlayback,@@ -222,6 +223,130 @@ export async function pointWebgpuProviderAtModel(modelId, { runtime = globalThisreturn true;}+// ── D1, the on-device decision model ─────────────────────────────────────+// The same button downloads D1, WebBrain's experimental decision model, next+// to the chat model. D1 has its own worker, so both downloads run at once, and+// D1 loads when its files are in. The click is the consent the note asks for.+// The guide writes no decision settings: Auto uses a downloaded D1 for its+// checks while Compass is not the chat provider (decision-availability.js).++const D1_POLL_MS = 1500;+const D1_POLLING_STATUSES = new Set(['checking', 'downloading']);++export function normalizeD1Snapshot(snapshot = {}) {+ const raw = String(snapshot?.status || '');+ const progress = Math.max(0, Math.min(100, Math.round(Number(snapshot?.progress) || 0)));+ const usedForDecisions = snapshot?.usedForDecisions === true;+ if (snapshot?.loaded === true || raw === 'ready') return { status: 'ready', progress: 100, error: '', usedForDecisions };+ // Downloaded and verified but not loaded: a decision loads it again.+ if (raw === 'cached' || snapshot?.cached === true) return { status: 'saved', progress: 100, error: '', usedForDecisions };+ if (raw === 'checking') return { status: 'checking', progress: 0, error: '', usedForDecisions };+ if (['downloading', 'loading'].includes(raw)) return { status: 'downloading', progress, error: '', usedForDecisions };+ if (raw === 'stopped') return { status: 'paused', progress, error: '', usedForDecisions };+ if (raw === 'error') return { status: 'error', progress: 0, error: String(snapshot?.error || ''), usedForDecisions };+ return { status: 'idle', progress: 0, error: '', usedForDecisions };+}++/** The D1 line for one normalized state; nothing while D1 was never started. */+export function d1View(state = {}) {+ switch (state.status) {+ case 'checking': return { statusKey: 'install.local_model.checking' };+ case 'downloading': return { statusKey: 'install.local_model.d1_downloading', progress: state.progress };+ case 'paused': return { statusKey: 'install.local_model.d1_paused', progress: state.progress };+ // Saved but not loaded yet, D1 loads for the next decision it answers.+ case 'ready': case 'saved': return { statusKey: state.usedForDecisions ? 'install.local_model.d1_ready' : 'install.local_model.d1_saved' };+ case 'unsupported': return { statusKey: 'install.local_model.d1_unsupported' };+ case 'error': return { statusKey: 'install.local_model.d1_error', isError: true };+ default: return { statusKey: '' };+ }+}++export function initializeD1Download({+ documentLike = globalThis.document,+ runtime = globalThis.chrome?.runtime,+ translate = t,+ pollMs = D1_POLL_MS,+} = {}) {+ const line = documentLike?.getElementById?.('local-model-d1');+ if (!line || !runtime?.sendMessage) return null;+ let state = { status: 'idle', progress: 0, error: '', usedForDecisions: false };+ let timer = null;+ let disposed = false;+ let starting = false;+ const command = (name, extra = {}) => backgroundCommand(runtime, 'd1_control', { command: name, ...extra });++ const render = () => {+ const view = d1View(state);+ line.hidden = !view.statusKey;+ line.textContent = view.statusKey ? translate(view.statusKey, { progress: view.progress ?? 0, error: state.error || '' }) : '';+ line.classList?.toggle?.('is-error', view.isError === true);+ };+ const schedule = () => {+ clearTimeout(timer);+ timer = null;+ if (!disposed && D1_POLLING_STATUSES.has(state.status)) timer = setTimeout(() => { void refresh(); }, pollMs);+ };+ const setState = (next) => {+ state = { progress: 0, error: '', usedForDecisions: false, ...next };+ render();+ schedule();+ };++ async function refresh() {+ try {+ const response = await command('status');+ // A guide reopened before D1 was ever started stays silent.+ if (!starting && !disposed) setState(normalizeD1Snapshot(response?.result));+ } catch {+ schedule();+ }+ }++ async function start() {+ if (starting || ['checking', 'downloading', 'ready', 'saved'].includes(state.status)) return;+ starting = true;+ try {+ setState({ status: 'checking' });+ try {+ await command('probe');+ } catch (error) {+ // No GPU D1 can run on: the chat model may still fit.+ setState({ status: 'unsupported', error: error?.message || String(error) });+ return;+ }+ try {+ const response = await command('download', { consent: true, consentVersion: D1_CONSENT_VERSION });+ setState(normalizeD1Snapshot({ status: 'checking', ...response?.result }));+ } catch (error) {+ setState({ status: 'error', error: error?.message || String(error) });+ return;+ }+ } finally {+ starting = false;+ }+ await refresh();+ }++ async function pause() {+ if (!['checking', 'downloading'].includes(state.status)) return;+ try { await command('stop'); } catch { /* the next status read tells */ }+ await refresh();+ }++ render();+ void refresh();+ return {+ start,+ pause,+ refresh,+ getState: () => ({ ...state }),+ dispose() {+ disposed = true;+ clearTimeout(timer);+ },+ };+}+export function initializeLocalModelDownload({documentLike = globalThis.document,runtime = globalThis.chrome?.runtime,@@ -235,6 +360,7 @@ export function initializeLocalModelDownload({const label = documentLike.getElementById('local-model-label');const bar = documentLike.getElementById('local-model-progress');const statusLine = documentLike.getElementById('local-model-status');+ const d1 = initializeD1Download({ documentLike, runtime, translate, pollMs });let state = { status: 'checking', progress: 0, error: '' };let inFlight = false;let pollTimer = null;@@ -291,6 +417,7 @@ export function initializeLocalModelDownload({try {if (view.action === 'pause') {render();+ void d1?.pause();await backgroundCommand(runtime, 'pause_webgpu_download');} else {if (view.action === 'start') {@@ -312,6 +439,8 @@ export function initializeLocalModelDownload({} else {render();}+ // D1 downloads alongside, in its own worker; its line reports it.+ void d1?.start();await backgroundCommand(runtime, 'start_webgpu_download', { model: modelId });}} catch (error) {@@ -336,9 +465,11 @@ export function initializeLocalModelDownload({return {getState: () => ({ ...state }),refresh,+ d1,dispose() {disposed = true;clearTimeout(pollTimer);+ d1?.dispose();},};}diff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.jsindex 85cf014a8..69e642554 100644--- a/src/chrome/src/ui/locales/ar.js+++ b/src/chrome/src/ui/locales/ar.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'لقطات شاشة كاملة للصفحة','install.chip.dl': 'تنزيلات جماعية','install.local_model.intro': 'ابدأ بنموذج محلي اختياري. وعندما تكون جاهزًا، افتح WebBrain من أسفل هذه الصفحة.',- 'install.local_model.download': 'تنزيل نموذج محلي',- 'install.local_model.note': 'اختياري · نحو 1.45 غيغابايت · يعمل على هذا الجهاز. يمكنك تخطي هذه الخطوة.',+ 'install.local_model.download': 'تنزيل النماذج المحلية',+ 'install.local_model.note': 'اختياري · نحو 1.45 غيغابايت، إضافة إلى 0.95 غيغابايت لـ D1، نموذج القرار التجريبي من WebBrain، من Hugging Face. يعمل كلاهما على هذا الجهاز ويستخدمان ذاكرة وحدة معالجة الرسومات. يمكنك تخطي هذه الخطوة.','install.local_model.checking': 'جارٍ التحقق من هذا المتصفح…','install.local_model.downloading': 'جارٍ تنزيل Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'إيقاف التنزيل مؤقتًا',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'تحتاج النماذج المحلية إلى WebGPU عبر العتاد، ولا يوفّره هذا المتصفح حاليًا.','install.local_model.busy': 'يجري تنزيل نموذج محلي آخر. يمكن أن يبدأ هذا التنزيل بعد انتهائه.','install.local_model.progress_label': 'تنزيل النموذج المحلي',+ 'install.local_model.d1_downloading': 'جارٍ تنزيل D1، نموذج القرار · {progress}%',+ 'install.local_model.d1_paused': 'توقف D1 مؤقتًا عند {progress}%.',+ 'install.local_model.d1_ready': 'D1 جاهز ويجيب على هذا الجهاز عن أسئلة WebBrain السريعة، مثل «هل انتهت هذه المهمة؟».',+ 'install.local_model.d1_saved': 'تم حفظ D1 على هذا الجهاز. لاستخدامه، اختره في الإعدادات ضمن نماذج القرار.',+ 'install.local_model.d1_unsupported': 'لا تستطيع وحدة معالجة الرسومات هذه تشغيل D1، لذا يواصل WebBrain فحوصه المعتادة.',+ 'install.local_model.d1_error': 'توقف D1: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} من {total}',diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.jsindex a263c06e0..953637cc3 100644--- a/src/chrome/src/ui/locales/bn.js+++ b/src/chrome/src/ui/locales/bn.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'ফুল-পেজ স্ক্রিনশট','install.chip.dl': 'বাল্ক ডাউনলোড','install.local_model.intro': 'চাইলে আগে একটি ঐচ্ছিক লোকাল মডেল ডাউনলোড করুন। প্রস্তুত হলে এই পেজের নিচ থেকে WebBrain খুলুন।',- 'install.local_model.download': 'লোকাল মডেল ডাউনলোড করুন',- 'install.local_model.note': 'ঐচ্ছিক · প্রায় 1.45 GB · এই ডিভাইসেই চলে। এই ধাপটি বাদ দিতে পারেন।',+ 'install.local_model.download': 'লোকাল মডেলগুলো ডাউনলোড করুন',+ 'install.local_model.note': 'ঐচ্ছিক · প্রায় 1.45 GB, সঙ্গে Hugging Face থেকে WebBrain-এর পরীক্ষামূলক ডিসিশন মডেল D1-এর জন্য 0.95 GB। দুটিই এই ডিভাইসে চলে এবং এর GPU মেমরি ব্যবহার করে। এই ধাপটি বাদ দিতে পারেন।','install.local_model.checking': 'এই ব্রাউজার যাচাই করা হচ্ছে…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision ডাউনলোড হচ্ছে · {progress}%','install.local_model.pause': 'ডাউনলোড বিরতি দিন',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'লোকাল মডেলের জন্য হার্ডওয়্যার WebGPU দরকার, যা এই ব্রাউজার এখন দিচ্ছে না।','install.local_model.busy': 'আরেকটি লোকাল মডেল ডাউনলোড হচ্ছে। সেটি শেষ হলে এটি শুরু হতে পারবে।','install.local_model.progress_label': 'লোকাল মডেল ডাউনলোড',+ 'install.local_model.d1_downloading': 'ডিসিশন মডেল D1 ডাউনলোড হচ্ছে · {progress}%',+ 'install.local_model.d1_paused': 'D1 {progress}%-এ বিরতি দেওয়া হয়েছে।',+ 'install.local_model.d1_ready': 'D1 প্রস্তুত, এবং এই ডিভাইসেই WebBrain-এর দ্রুত প্রশ্নের উত্তর দেয়, যেমন “এই কাজটি কি শেষ?”।',+ 'install.local_model.d1_saved': 'D1 এই ডিভাইসে সংরক্ষিত আছে। ব্যবহার করতে সেটিংসে ডিসিশন মডেল অংশ থেকে এটি বেছে নিন।',+ 'install.local_model.d1_unsupported': 'এই GPU D1 চালাতে পারে না, তাই WebBrain তার সাধারণ চেকগুলোই রাখে।',+ 'install.local_model.d1_error': 'D1 থেমে গেছে: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "সংযোগ বিচ্ছিন্ন",diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.jsindex bd4cd08f1..a7e20b412 100644--- a/src/chrome/src/ui/locales/de.js+++ b/src/chrome/src/ui/locales/de.js@@ -109,8 +109,8 @@ export default {'install.chip.shot': 'Ganzseiten-Screenshots','install.chip.dl': 'Massen-Downloads','install.local_model.intro': 'Beginnen Sie mit einem optionalen lokalen Modell. Wenn Sie bereit sind, öffnen Sie WebBrain unten auf dieser Seite.',- 'install.local_model.download': 'Lokales Modell herunterladen',- 'install.local_model.note': 'Optional · etwa 1,45 GB · läuft auf diesem Gerät. Sie können das überspringen.',+ 'install.local_model.download': 'Lokale Modelle herunterladen',+ 'install.local_model.note': 'Optional · etwa 1,45 GB, dazu 0,95 GB für D1, das experimentelle Entscheidungsmodell von WebBrain, von Hugging Face. Beide laufen auf diesem Gerät und nutzen seinen GPU-Speicher. Sie können das überspringen.','install.local_model.checking': 'Browser wird geprüft…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision wird heruntergeladen · {progress} %','install.local_model.pause': 'Download pausieren',@@ -124,6 +124,12 @@ export default {'install.local_model.unsupported': 'Lokale Modelle brauchen Hardware-WebGPU, das dieser Browser gerade nicht bereitstellt.','install.local_model.busy': 'Gerade wird ein anderes lokales Modell heruntergeladen. Dieses kann danach starten.','install.local_model.progress_label': 'Download des lokalen Modells',+ 'install.local_model.d1_downloading': 'D1, das Entscheidungsmodell, wird heruntergeladen · {progress} %',+ 'install.local_model.d1_paused': 'D1 bei {progress} % pausiert.',+ 'install.local_model.d1_ready': 'D1 ist bereit und beantwortet die kurzen Fragen von WebBrain, etwa „Ist diese Aufgabe erledigt?“, auf diesem Gerät.',+ 'install.local_model.d1_saved': 'D1 ist auf diesem Gerät gespeichert. Um es zu nutzen, wählen Sie es in den Einstellungen unter Entscheidungsmodelle.',+ 'install.local_model.d1_unsupported': 'Diese GPU kann D1 nicht ausführen, daher behält WebBrain seine üblichen Prüfungen bei.',+ 'install.local_model.d1_error': 'D1 wurde gestoppt: {error}','sp.status.disconnected': 'Getrennt','sp.status.connected': 'Verbunden ({model})','sp.status.error': 'Fehler: {msg}',diff --git a/src/chrome/src/ui/locales/decision-copy.mjs b/src/chrome/src/ui/locales/decision-copy.mjsindex 4e52ed5cc..5ed4fb0b0 100644--- a/src/chrome/src/ui/locales/decision-copy.mjs+++ b/src/chrome/src/ui/locales/decision-copy.mjs@@ -5,11 +5,11 @@ export const decisionEnglish = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "On","st.decision.mode.off": "Off",- "st.decision.mode.auto_desc": "Uses WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.",- "st.decision.mode.auto_desc_firefox": "Uses WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.",+ "st.decision.mode.auto_desc": "Uses D1 once it is downloaded on this device, or WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.",+ "st.decision.mode.auto_desc_firefox": "Uses D1 once it is downloaded on this device, or WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.","st.decision.mode.on_desc": "Uses the model you set up below for every decision. To leave some to your chat model, open “Choose which decisions use it”.","st.decision.mode.off_desc": "Never uses a decision model, WebBrain Cloud’s included. Your chat model still checks whether tasks are finished.",- "st.decision.status.local": "In use: Ternary Bonsai 2 2B Vision, on this device. It checks whether tasks and scheduled runs are finished.",+ "st.decision.status.local": "In use: D1, on this device. It checks whether tasks and scheduled runs are finished.","st.decision.status.compass": "In use: WebBrain Cloud’s decision model, while Compass is your chat provider.","st.decision.status.none": "Not in use. Choose On to set up a decision model.","st.decision.status.none_firefox": "Not in use. Choose On to set up a decision model.",@@ -52,11 +52,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Otomatik","st.decision.mode.on": "Açık","st.decision.mode.off": "Kapalı",- "st.decision.mode.auto_desc": "Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.",- "st.decision.mode.auto_desc_firefox": "Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.",+ "st.decision.mode.auto_desc": "D1 bu cihaza indirildiğinde onu, Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.",+ "st.decision.mode.auto_desc_firefox": "D1 bu cihaza indirildiğinde onu, Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.","st.decision.mode.on_desc": "Aşağıda ayarladığınız modeli her karar için kullanır. Bazılarını sohbet modelinize bırakmak için “Hangi kararlarda kullanılacağını seçin” bölümünü açın.","st.decision.mode.off_desc": "Hiçbir karar modeli kullanmaz, WebBrain Cloud’unki de dahil. Görevlerin bitip bitmediğini sohbet modeliniz yine kontrol eder.",- "st.decision.status.local": "Kullanılıyor: bu cihazda Ternary Bonsai 2 2B Vision. Görevlerin ve zamanlanmış çalışmaların bitip bitmediğini kontrol eder.",+ "st.decision.status.local": "Kullanılıyor: bu cihazda D1. Görevlerin ve zamanlanmış çalışmaların bitip bitmediğini kontrol eder.","st.decision.status.compass": "Kullanılıyor: Compass sohbet sağlayıcınız olduğu için WebBrain Cloud’un karar modeli.","st.decision.status.none": "Kullanılmıyor. Bir karar modeli ayarlamak için Açık’ı seçin.","st.decision.status.none_firefox": "Kullanılmıyor. Bir karar modeli ayarlamak için Açık’ı seçin.",@@ -124,11 +124,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automático","st.decision.mode.on": "Activado","st.decision.mode.off": "Desactivado",- "st.decision.mode.auto_desc": "Usa el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.",- "st.decision.mode.auto_desc_firefox": "Usa el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.",+ "st.decision.mode.auto_desc": "Usa D1 cuando está descargado en este dispositivo, o el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.",+ "st.decision.mode.auto_desc_firefox": "Usa D1 cuando está descargado en este dispositivo, o el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.","st.decision.mode.on_desc": "Usa el modelo que configures abajo para todas las decisiones. Para dejar algunas a tu modelo de chat, abre «Elige qué decisiones lo usan».","st.decision.mode.off_desc": "Nunca usa un modelo de decisión, ni siquiera el de WebBrain Cloud. Tu modelo de chat sigue comprobando si las tareas están terminadas.",- "st.decision.status.local": "En uso: Ternary Bonsai 2 2B Vision, en este dispositivo. Comprueba si las tareas y las ejecuciones programadas han terminado.",+ "st.decision.status.local": "En uso: D1, en este dispositivo. Comprueba si las tareas y las ejecuciones programadas han terminado.","st.decision.status.compass": "En uso: el modelo de decisión de WebBrain Cloud, mientras Compass sea tu proveedor de chat.","st.decision.status.none": "Sin uso. Elige Activado para configurar un modelo de decisión.","st.decision.status.none_firefox": "Sin uso. Elige Activado para configurar un modelo de decisión.",@@ -178,11 +178,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "Activé","st.decision.mode.off": "Désactivé",- "st.decision.mode.auto_desc": "Utilise le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.",- "st.decision.mode.auto_desc_firefox": "Utilise le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.",+ "st.decision.mode.auto_desc": "Utilise D1 une fois téléchargé sur cet appareil, ou le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.",+ "st.decision.mode.auto_desc_firefox": "Utilise D1 une fois téléchargé sur cet appareil, ou le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.","st.decision.mode.on_desc": "Utilise le modèle configuré ci-dessous pour toutes les décisions. Pour en laisser certaines à votre modèle de chat, ouvrez « Choisir les décisions qui l’utilisent ».","st.decision.mode.off_desc": "N’utilise jamais de modèle de décision, y compris celui de WebBrain Cloud. Votre modèle de chat vérifie toujours si les tâches sont terminées.",- "st.decision.status.local": "Utilisé : Ternary Bonsai 2 2B Vision, sur cet appareil. Il vérifie si les tâches et les exécutions planifiées sont terminées.",+ "st.decision.status.local": "Utilisé : D1, sur cet appareil. Il vérifie si les tâches et les exécutions planifiées sont terminées.","st.decision.status.compass": "Utilisé : le modèle de décision de WebBrain Cloud, tant que Compass est votre fournisseur de chat.","st.decision.status.none": "Non utilisé. Choisissez Activé pour configurer un modèle de décision.","st.decision.status.none_firefox": "Non utilisé. Choisissez Activé pour configurer un modèle de décision.",@@ -232,11 +232,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automatisch","st.decision.mode.on": "An","st.decision.mode.off": "Aus",- "st.decision.mode.auto_desc": "Verwendet das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.",- "st.decision.mode.auto_desc_firefox": "Verwendet das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.",+ "st.decision.mode.auto_desc": "Verwendet D1, sobald es auf diesem Gerät heruntergeladen ist, oder das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.",+ "st.decision.mode.auto_desc_firefox": "Verwendet D1, sobald es auf diesem Gerät heruntergeladen ist, oder das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.","st.decision.mode.on_desc": "Verwendet das unten eingerichtete Modell für jede Entscheidung. Um einige Ihrem Chatmodell zu überlassen, öffnen Sie „Auswählen, welche Entscheidungen es nutzen“.","st.decision.mode.off_desc": "Verwendet nie ein Entscheidungsmodell, auch nicht das von WebBrain Cloud. Ihr Chatmodell prüft weiterhin, ob Aufgaben erledigt sind.",- "st.decision.status.local": "In Verwendung: Ternary Bonsai 2 2B Vision, auf diesem Gerät. Es prüft, ob Aufgaben und geplante Ausführungen erledigt sind.",+ "st.decision.status.local": "In Verwendung: D1, auf diesem Gerät. Es prüft, ob Aufgaben und geplante Ausführungen erledigt sind.","st.decision.status.compass": "In Verwendung: das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist.","st.decision.status.none": "Nicht in Verwendung. Wählen Sie An, um ein Entscheidungsmodell einzurichten.","st.decision.status.none_firefox": "Nicht in Verwendung. Wählen Sie An, um ein Entscheidungsmodell einzurichten.",@@ -286,11 +286,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automatisch","st.decision.mode.on": "Aan","st.decision.mode.off": "Uit",- "st.decision.mode.auto_desc": "Gebruikt het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.",- "st.decision.mode.auto_desc_firefox": "Gebruikt het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.",+ "st.decision.mode.auto_desc": "Gebruikt D1 zodra het op dit apparaat is gedownload, of het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.",+ "st.decision.mode.auto_desc_firefox": "Gebruikt D1 zodra het op dit apparaat is gedownload, of het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.","st.decision.mode.on_desc": "Gebruikt het model dat je hieronder instelt voor elke beslissing. Wil je sommige aan je chatmodel overlaten, open dan “Kies welke beslissingen het gebruiken”.","st.decision.mode.off_desc": "Gebruikt nooit een beslismodel, ook niet dat van WebBrain Cloud. Je chatmodel controleert nog steeds of taken klaar zijn.",- "st.decision.status.local": "In gebruik: Ternary Bonsai 2 2B Vision, op dit apparaat. Het controleert of taken en geplande uitvoeringen klaar zijn.",+ "st.decision.status.local": "In gebruik: D1, op dit apparaat. Het controleert of taken en geplande uitvoeringen klaar zijn.","st.decision.status.compass": "In gebruik: het beslismodel van WebBrain Cloud, zolang Compass je chatprovider is.","st.decision.status.none": "Niet in gebruik. Kies Aan om een beslismodel in te stellen.","st.decision.status.none_firefox": "Niet in gebruik. Kies Aan om een beslismodel in te stellen.",@@ -340,11 +340,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automático","st.decision.mode.on": "Ativado","st.decision.mode.off": "Desativado",- "st.decision.mode.auto_desc": "Usa o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.",- "st.decision.mode.auto_desc_firefox": "Usa o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.",+ "st.decision.mode.auto_desc": "Usa o D1 quando ele está baixado neste dispositivo, ou o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.",+ "st.decision.mode.auto_desc_firefox": "Usa o D1 quando ele está baixado neste dispositivo, ou o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.","st.decision.mode.on_desc": "Usa o modelo configurado abaixo em todas as decisões. Para deixar algumas para seu modelo de chat, abra “Escolha quais decisões o usam”.","st.decision.mode.off_desc": "Nunca usa um modelo de decisão, nem o do WebBrain Cloud. Seu modelo de chat continua verificando se as tarefas terminaram.",- "st.decision.status.local": "Em uso: Ternary Bonsai 2 2B Vision, neste dispositivo. Ele verifica se tarefas e execuções agendadas terminaram.",+ "st.decision.status.local": "Em uso: D1, neste dispositivo. Ele verifica se tarefas e execuções agendadas terminaram.","st.decision.status.compass": "Em uso: o modelo de decisão do WebBrain Cloud, enquanto o Compass for seu provedor de chat.","st.decision.status.none": "Fora de uso. Escolha Ativado para configurar um modelo de decisão.","st.decision.status.none_firefox": "Fora de uso. Escolha Ativado para configurar um modelo de decisão.",@@ -394,11 +394,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automatycznie","st.decision.mode.on": "Włączone","st.decision.mode.off": "Wyłączone",- "st.decision.mode.auto_desc": "Używa modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.",- "st.decision.mode.auto_desc_firefox": "Używa modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.",+ "st.decision.mode.auto_desc": "Używa D1, gdy jest pobrany na to urządzenie, albo modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.",+ "st.decision.mode.auto_desc_firefox": "Używa D1, gdy jest pobrany na to urządzenie, albo modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.","st.decision.mode.on_desc": "Używa skonfigurowanego niżej modelu przy każdej decyzji. Aby część zostawić modelowi czatu, otwórz „Wybierz, które decyzje go używają”.","st.decision.mode.off_desc": "Nigdy nie używa modelu decyzyjnego, także tego z WebBrain Cloud. Model czatu nadal sprawdza, czy zadania są skończone.",- "st.decision.status.local": "W użyciu: Ternary Bonsai 2 2B Vision, na tym urządzeniu. Sprawdza, czy zadania i zaplanowane uruchomienia są skończone.",+ "st.decision.status.local": "W użyciu: D1, na tym urządzeniu. Sprawdza, czy zadania i zaplanowane uruchomienia są skończone.","st.decision.status.compass": "W użyciu: model decyzyjny WebBrain Cloud, dopóki Compass jest Twoim dostawcą czatu.","st.decision.status.none": "Nieużywany. Wybierz Włączone, aby skonfigurować model decyzyjny.","st.decision.status.none_firefox": "Nieużywany. Wybierz Włączone, aby skonfigurować model decyzyjny.",@@ -448,11 +448,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Авто","st.decision.mode.on": "Вкл.","st.decision.mode.off": "Выкл.",- "st.decision.mode.auto_desc": "Использует модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.",- "st.decision.mode.auto_desc_firefox": "Использует модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.",+ "st.decision.mode.auto_desc": "Использует модель D1, когда она загружена на это устройство, или модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.",+ "st.decision.mode.auto_desc_firefox": "Использует модель D1, когда она загружена на это устройство, или модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.","st.decision.mode.on_desc": "Использует настроенную ниже модель для всех решений. Чтобы оставить часть чат-модели, откройте «Выберите, какие решения её используют».","st.decision.mode.off_desc": "Никогда не использует модель решений, включая модель WebBrain Cloud. Чат-модель по-прежнему проверяет, выполнены ли задачи.",- "st.decision.status.local": "Используется: Ternary Bonsai 2 2B Vision на этом устройстве. Проверяет, выполнены ли задачи и запланированные запуски.",+ "st.decision.status.local": "Используется: D1 на этом устройстве. Проверяет, выполнены ли задачи и запланированные запуски.","st.decision.status.compass": "Используется: модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер.","st.decision.status.none": "Не используется. Выберите «Вкл.», чтобы настроить модель решений.","st.decision.status.none_firefox": "Не используется. Выберите «Вкл.», чтобы настроить модель решений.",@@ -502,11 +502,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Авто","st.decision.mode.on": "Увімк.","st.decision.mode.off": "Вимк.",- "st.decision.mode.auto_desc": "Використовує модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.",- "st.decision.mode.auto_desc_firefox": "Використовує модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.",+ "st.decision.mode.auto_desc": "Використовує модель D1, коли її завантажено на цей пристрій, або модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.",+ "st.decision.mode.auto_desc_firefox": "Використовує модель D1, коли її завантажено на цей пристрій, або модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.","st.decision.mode.on_desc": "Використовує налаштовану нижче модель для всіх рішень. Щоб залишити частину чат-моделі, відкрийте «Виберіть, які рішення її використовують».","st.decision.mode.off_desc": "Ніколи не використовує модель рішень, зокрема модель WebBrain Cloud. Чат-модель і далі перевіряє, чи виконано завдання.",- "st.decision.status.local": "Використовується: Ternary Bonsai 2 2B Vision на цьому пристрої. Перевіряє, чи виконано завдання та заплановані запуски.",+ "st.decision.status.local": "Використовується: D1 на цьому пристрої. Перевіряє, чи виконано завдання та заплановані запуски.","st.decision.status.compass": "Використовується: модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер.","st.decision.status.none": "Не використовується. Виберіть «Увімк.», щоб налаштувати модель рішень.","st.decision.status.none_firefox": "Не використовується. Виберіть «Увімк.», щоб налаштувати модель рішень.",@@ -556,11 +556,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "自动","st.decision.mode.on": "开启","st.decision.mode.off": "关闭",- "st.decision.mode.auto_desc": "当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。",- "st.decision.mode.auto_desc_firefox": "当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。",+ "st.decision.mode.auto_desc": "当 D1 已下载到此设备时使用它;当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。",+ "st.decision.mode.auto_desc_firefox": "当 D1 已下载到此设备时使用它;当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。","st.decision.mode.on_desc": "所有决策都使用你在下方设置的模型。若想把部分决策留给聊天模型,请打开“选择哪些决策使用它”。","st.decision.mode.off_desc": "从不使用决策模型,包括 WebBrain Cloud 的。你的聊天模型仍会检查任务是否完成。",- "st.decision.status.local": "使用中:Ternary Bonsai 2 2B Vision,在此设备上运行。它会检查任务和计划运行是否完成。",+ "st.decision.status.local": "使用中:D1,在此设备上运行。它会检查任务和计划运行是否完成。","st.decision.status.compass": "使用中:WebBrain Cloud 的决策模型(Compass 是你的聊天提供商时)。","st.decision.status.none": "未使用。选择“开启”来设置决策模型。","st.decision.status.none_firefox": "未使用。选择“开启”来设置决策模型。",@@ -610,11 +610,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "自動","st.decision.mode.on": "オン","st.decision.mode.off": "オフ",- "st.decision.mode.auto_desc": "Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。",- "st.decision.mode.auto_desc_firefox": "Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。",+ "st.decision.mode.auto_desc": "D1 がこのデバイスにダウンロード済みならそれを、Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。",+ "st.decision.mode.auto_desc_firefox": "D1 がこのデバイスにダウンロード済みならそれを、Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。","st.decision.mode.on_desc": "下で設定したモデルをすべての判定に使います。一部をチャットモデルに任せるには「使う判定を選ぶ」を開いてください。","st.decision.mode.off_desc": "判定モデルを一切使いません(WebBrain Cloud のものも含む)。タスクの完了確認は引き続きチャットモデルが行います。",- "st.decision.status.local": "使用中:このデバイスの Ternary Bonsai 2 2B Vision。タスクとスケジュール実行が完了したかを確認します。",+ "st.decision.status.local": "使用中:このデバイスの D1。タスクとスケジュール実行が完了したかを確認します。","st.decision.status.compass": "使用中:WebBrain Cloud の判定モデル(Compass がチャットプロバイダーの間)。","st.decision.status.none": "未使用。判定モデルを設定するにはオンを選んでください。","st.decision.status.none_firefox": "未使用。判定モデルを設定するにはオンを選んでください。",@@ -664,11 +664,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "자동","st.decision.mode.on": "켜기","st.decision.mode.off": "끄기",- "st.decision.mode.auto_desc": "Compass가 채팅 제공자인 동안 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.",- "st.decision.mode.auto_desc_firefox": "Compass가 채팅 제공자인 동안 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.",+ "st.decision.mode.auto_desc": "D1이 이 기기에 다운로드되어 있으면 그것을, Compass가 채팅 제공자인 동안에는 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.",+ "st.decision.mode.auto_desc_firefox": "D1이 이 기기에 다운로드되어 있으면 그것을, Compass가 채팅 제공자인 동안에는 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.","st.decision.mode.on_desc": "아래에서 설정한 모델을 모든 결정에 사용합니다. 일부를 채팅 모델에 맡기려면 \"사용할 결정 선택\"을 여세요.","st.decision.mode.off_desc": "결정 모델을 전혀 사용하지 않습니다(WebBrain Cloud 포함). 작업 완료 여부는 계속 채팅 모델이 확인합니다.",- "st.decision.status.local": "사용 중: 이 기기의 Ternary Bonsai 2 2B Vision. 작업과 예약 실행이 끝났는지 확인합니다.",+ "st.decision.status.local": "사용 중: 이 기기의 D1. 작업과 예약 실행이 끝났는지 확인합니다.","st.decision.status.compass": "사용 중: WebBrain Cloud의 결정 모델(Compass가 채팅 제공자인 동안).","st.decision.status.none": "사용 안 함. 결정 모델을 설정하려면 켜기를 선택하세요.","st.decision.status.none_firefox": "사용 안 함. 결정 모델을 설정하려면 켜기를 선택하세요.",@@ -718,11 +718,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "تلقائي","st.decision.mode.on": "تشغيل","st.decision.mode.off": "إيقاف",- "st.decision.mode.auto_desc": "يستخدم نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.",- "st.decision.mode.auto_desc_firefox": "يستخدم نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.",+ "st.decision.mode.auto_desc": "يستخدم D1 بعد تنزيله على هذا الجهاز، أو نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.",+ "st.decision.mode.auto_desc_firefox": "يستخدم D1 بعد تنزيله على هذا الجهاز، أو نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.","st.decision.mode.on_desc": "يستخدم النموذج الذي تضبطه أدناه في كل قرار. لترك بعضها لنموذج الدردشة، افتح «اختر القرارات التي تستخدمه».","st.decision.mode.off_desc": "لا يستخدم أي نموذج قرار، بما في ذلك نموذج WebBrain Cloud. يواصل نموذج الدردشة التحقق من انتهاء المهام.",- "st.decision.status.local": "قيد الاستخدام: Ternary Bonsai 2 2B Vision على هذا الجهاز. يتحقق من انتهاء المهام والتشغيلات المجدولة.",+ "st.decision.status.local": "قيد الاستخدام: D1 على هذا الجهاز. يتحقق من انتهاء المهام والتشغيلات المجدولة.","st.decision.status.compass": "قيد الاستخدام: نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك.","st.decision.status.none": "غير مستخدم. اختر تشغيل لإعداد نموذج قرار.","st.decision.status.none_firefox": "غير مستخدم. اختر تشغيل لإعداد نموذج قرار.",@@ -772,11 +772,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "אוטומטי","st.decision.mode.on": "פועל","st.decision.mode.off": "כבוי",- "st.decision.mode.auto_desc": "משתמש במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.",- "st.decision.mode.auto_desc_firefox": "משתמש במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.",+ "st.decision.mode.auto_desc": "משתמש ב-D1 כשהוא הורד למכשיר הזה, או במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.",+ "st.decision.mode.auto_desc_firefox": "משתמש ב-D1 כשהוא הורד למכשיר הזה, או במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.","st.decision.mode.on_desc": "משתמש במודל שתגדיר למטה לכל החלטה. כדי להשאיר חלק למודל הצ’אט, פתח את \"בחר אילו החלטות משתמשות בו\".","st.decision.mode.off_desc": "אף פעם לא משתמש במודל החלטות, כולל של WebBrain Cloud. מודל הצ’אט עדיין בודק אם משימות הסתיימו.",- "st.decision.status.local": "בשימוש: Ternary Bonsai 2 2B Vision, במכשיר הזה. הוא בודק אם משימות והרצות מתוזמנות הסתיימו.",+ "st.decision.status.local": "בשימוש: D1, במכשיר הזה. הוא בודק אם משימות והרצות מתוזמנות הסתיימו.","st.decision.status.compass": "בשימוש: מודל ההחלטות של WebBrain Cloud, כל עוד Compass הוא ספק הצ’אט שלך.","st.decision.status.none": "לא בשימוש. בחר פועל כדי להגדיר מודל החלטות.","st.decision.status.none_firefox": "לא בשימוש. בחר פועל כדי להגדיר מודל החלטות.",@@ -826,11 +826,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "خودکار","st.decision.mode.on": "روشن","st.decision.mode.off": "خاموش",- "st.decision.mode.auto_desc": "تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud استفاده میکند. در غیر این صورت از هیچکدام.",- "st.decision.mode.auto_desc_firefox": "تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud استفاده میکند. در غیر این صورت از هیچکدام.",+ "st.decision.mode.auto_desc": "وقتی D1 روی این دستگاه دانلود شده باشد از آن استفاده میکند، یا تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud. در غیر این صورت از هیچکدام.",+ "st.decision.mode.auto_desc_firefox": "وقتی D1 روی این دستگاه دانلود شده باشد از آن استفاده میکند، یا تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud. در غیر این صورت از هیچکدام.","st.decision.mode.on_desc": "برای همهٔ تصمیمها از مدلی که پایین تنظیم میکنید استفاده میکند. برای سپردن برخی به مدل گفتگو، «انتخاب کنید کدام تصمیمها از آن استفاده کنند» را باز کنید.","st.decision.mode.off_desc": "هرگز از مدل تصمیم استفاده نمیکند، حتی مدل WebBrain Cloud. مدل گفتگوی شما همچنان تمامشدن کارها را بررسی میکند.",- "st.decision.status.local": "در حال استفاده: Ternary Bonsai 2 2B Vision روی این دستگاه. بررسی میکند کارها و اجراهای زمانبندیشده تمام شدهاند یا نه.",+ "st.decision.status.local": "در حال استفاده: D1 روی این دستگاه. بررسی میکند کارها و اجراهای زمانبندیشده تمام شدهاند یا نه.","st.decision.status.compass": "در حال استفاده: مدل تصمیم WebBrain Cloud، تا وقتی Compass ارائهدهندهٔ گفتگوی شماست.","st.decision.status.none": "استفاده نمیشود. برای تنظیم مدل تصمیم، روشن را انتخاب کنید.","st.decision.status.none_firefox": "استفاده نمیشود. برای تنظیم مدل تصمیم، روشن را انتخاب کنید.",@@ -880,11 +880,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "ऑटो","st.decision.mode.on": "चालू","st.decision.mode.off": "बंद",- "st.decision.mode.auto_desc": "जब तक Compass आपका चैट प्रदाता है, WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।",- "st.decision.mode.auto_desc_firefox": "जब तक Compass आपका चैट प्रदाता है, WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।",+ "st.decision.mode.auto_desc": "इस डिवाइस पर डाउनलोड होने के बाद D1 का, या जब तक Compass आपका चैट प्रदाता है तब तक WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।",+ "st.decision.mode.auto_desc_firefox": "इस डिवाइस पर डाउनलोड होने के बाद D1 का, या जब तक Compass आपका चैट प्रदाता है तब तक WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।","st.decision.mode.on_desc": "हर निर्णय के लिए नीचे सेट किए गए मॉडल का उपयोग करता है। कुछ को चैट मॉडल पर छोड़ने के लिए \"चुनें कि कौन-से निर्णय इसका उपयोग करें\" खोलें।","st.decision.mode.off_desc": "कभी निर्णय मॉडल का उपयोग नहीं करता, WebBrain Cloud का भी नहीं। आपका चैट मॉडल अब भी जाँचता है कि काम पूरे हुए या नहीं।",- "st.decision.status.local": "उपयोग में: Ternary Bonsai 2 2B Vision, इस डिवाइस पर। यह जाँचता है कि काम और शेड्यूल किए गए रन पूरे हुए या नहीं।",+ "st.decision.status.local": "उपयोग में: D1, इस डिवाइस पर। यह जाँचता है कि काम और शेड्यूल किए गए रन पूरे हुए या नहीं।","st.decision.status.compass": "उपयोग में: WebBrain Cloud का निर्णय मॉडल, जब तक Compass आपका चैट प्रदाता है।","st.decision.status.none": "उपयोग में नहीं। निर्णय मॉडल सेट करने के लिए चालू चुनें।","st.decision.status.none_firefox": "उपयोग में नहीं। निर्णय मॉडल सेट करने के लिए चालू चुनें।",@@ -934,11 +934,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "অটো","st.decision.mode.on": "চালু","st.decision.mode.off": "বন্ধ",- "st.decision.mode.auto_desc": "Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।",- "st.decision.mode.auto_desc_firefox": "Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।",+ "st.decision.mode.auto_desc": "এই ডিভাইসে ডাউনলোড হলে D1, বা Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।",+ "st.decision.mode.auto_desc_firefox": "এই ডিভাইসে ডাউনলোড হলে D1, বা Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।","st.decision.mode.on_desc": "প্রতিটি সিদ্ধান্তে নিচে সেট করা মডেল ব্যবহার করে। কিছু সিদ্ধান্ত চ্যাট মডেলের হাতে রাখতে \"কোন সিদ্ধান্তে এটি ব্যবহার হবে বেছে নিন\" খুলুন।","st.decision.mode.off_desc": "কখনো ডিসিশন মডেল ব্যবহার করে না, WebBrain Cloud-এরটিও নয়। আপনার চ্যাট মডেল এখনও কাজ শেষ হয়েছে কি না যাচাই করে।",- "st.decision.status.local": "ব্যবহৃত হচ্ছে: এই ডিভাইসে Ternary Bonsai 2 2B Vision। এটি যাচাই করে কাজ ও নির্ধারিত রান শেষ হয়েছে কি না।",+ "st.decision.status.local": "ব্যবহৃত হচ্ছে: এই ডিভাইসে D1। এটি যাচাই করে কাজ ও নির্ধারিত রান শেষ হয়েছে কি না।","st.decision.status.compass": "ব্যবহৃত হচ্ছে: WebBrain Cloud-এর ডিসিশন মডেল, Compass আপনার চ্যাট প্রদানকারী থাকা অবধি।","st.decision.status.none": "ব্যবহৃত হচ্ছে না। ডিসিশন মডেল সেট করতে চালু বেছে নিন।","st.decision.status.none_firefox": "ব্যবহৃত হচ্ছে না। ডিসিশন মডেল সেট করতে চালু বেছে নিন।",@@ -988,11 +988,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Otomatis","st.decision.mode.on": "Aktif","st.decision.mode.off": "Nonaktif",- "st.decision.mode.auto_desc": "Menggunakan model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.",- "st.decision.mode.auto_desc_firefox": "Menggunakan model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.",+ "st.decision.mode.auto_desc": "Menggunakan D1 setelah diunduh di perangkat ini, atau model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.",+ "st.decision.mode.auto_desc_firefox": "Menggunakan D1 setelah diunduh di perangkat ini, atau model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.","st.decision.mode.on_desc": "Menggunakan model yang Anda atur di bawah untuk setiap keputusan. Untuk menyerahkan sebagian ke model chat, buka “Pilih keputusan yang memakainya”.","st.decision.mode.off_desc": "Tidak pernah menggunakan model keputusan, termasuk milik WebBrain Cloud. Model chat Anda tetap memeriksa apakah tugas sudah selesai.",- "st.decision.status.local": "Dipakai: Ternary Bonsai 2 2B Vision, di perangkat ini. Memeriksa apakah tugas dan jalannya jadwal sudah selesai.",+ "st.decision.status.local": "Dipakai: D1, di perangkat ini. Memeriksa apakah tugas dan jalannya jadwal sudah selesai.","st.decision.status.compass": "Dipakai: model keputusan WebBrain Cloud, selama Compass menjadi penyedia chat Anda.","st.decision.status.none": "Tidak dipakai. Pilih Aktif untuk menyiapkan model keputusan.","st.decision.status.none_firefox": "Tidak dipakai. Pilih Aktif untuk menyiapkan model keputusan.",@@ -1042,11 +1042,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "Hidup","st.decision.mode.off": "Mati",- "st.decision.mode.auto_desc": "Menggunakan model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.",- "st.decision.mode.auto_desc_firefox": "Menggunakan model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.",+ "st.decision.mode.auto_desc": "Menggunakan D1 setelah dimuat turun pada peranti ini, atau model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.",+ "st.decision.mode.auto_desc_firefox": "Menggunakan D1 setelah dimuat turun pada peranti ini, atau model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.","st.decision.mode.on_desc": "Menggunakan model yang anda tetapkan di bawah untuk setiap keputusan. Untuk menyerahkan sebahagian kepada model sembang, buka “Pilih keputusan yang menggunakannya”.","st.decision.mode.off_desc": "Tidak pernah menggunakan model keputusan, termasuk milik WebBrain Cloud. Model sembang anda masih menyemak sama ada tugas telah selesai.",- "st.decision.status.local": "Digunakan: Ternary Bonsai 2 2B Vision, pada peranti ini. Ia menyemak sama ada tugas dan larian berjadual telah selesai.",+ "st.decision.status.local": "Digunakan: D1, pada peranti ini. Ia menyemak sama ada tugas dan larian berjadual telah selesai.","st.decision.status.compass": "Digunakan: model keputusan WebBrain Cloud, selagi Compass ialah penyedia sembang anda.","st.decision.status.none": "Tidak digunakan. Pilih Hidup untuk menyediakan model keputusan.","st.decision.status.none_firefox": "Tidak digunakan. Pilih Hidup untuk menyediakan model keputusan.",@@ -1096,11 +1096,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "Naka-on","st.decision.mode.off": "Naka-off",- "st.decision.mode.auto_desc": "Ginagamit ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.",- "st.decision.mode.auto_desc_firefox": "Ginagamit ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.",+ "st.decision.mode.auto_desc": "Ginagamit ang D1 kapag na-download na ito sa device na ito, o ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.",+ "st.decision.mode.auto_desc_firefox": "Ginagamit ang D1 kapag na-download na ito sa device na ito, o ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.","st.decision.mode.on_desc": "Ginagamit ang model na itatakda mo sa ibaba para sa bawat desisyon. Para iwan ang ilan sa chat model mo, buksan ang “Piliin kung aling mga desisyon ang gagamit nito”.","st.decision.mode.off_desc": "Hindi kailanman gumagamit ng decision model, kasama ang sa WebBrain Cloud. Patuloy na sinusuri ng chat model mo kung tapos na ang mga gawain.",- "st.decision.status.local": "Ginagamit: Ternary Bonsai 2 2B Vision, sa device na ito. Sinusuri nito kung tapos na ang mga gawain at naka-iskedyul na run.",+ "st.decision.status.local": "Ginagamit: D1, sa device na ito. Sinusuri nito kung tapos na ang mga gawain at naka-iskedyul na run.","st.decision.status.compass": "Ginagamit: ang decision model ng WebBrain Cloud, habang Compass ang iyong chat provider.","st.decision.status.none": "Hindi ginagamit. Piliin ang Naka-on para mag-set up ng decision model.","st.decision.status.none_firefox": "Hindi ginagamit. Piliin ang Naka-on para mag-set up ng decision model.",@@ -1150,11 +1150,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "อัตโนมัติ","st.decision.mode.on": "เปิด","st.decision.mode.off": "ปิด",- "st.decision.mode.auto_desc": "ใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้",- "st.decision.mode.auto_desc_firefox": "ใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้",+ "st.decision.mode.auto_desc": "ใช้ D1 เมื่อดาวน์โหลดไว้ในอุปกรณ์นี้แล้ว หรือใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้",+ "st.decision.mode.auto_desc_firefox": "ใช้ D1 เมื่อดาวน์โหลดไว้ในอุปกรณ์นี้แล้ว หรือใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้","st.decision.mode.on_desc": "ใช้โมเดลที่คุณตั้งค่าด้านล่างกับทุกการตัดสินใจ หากต้องการให้โมเดลแชตทำบางส่วน ให้เปิด \"เลือกการตัดสินใจที่ใช้โมเดลนี้\"","st.decision.mode.off_desc": "ไม่ใช้โมเดลการตัดสินใจเลย รวมถึงของ WebBrain Cloud โมเดลแชตของคุณยังคงตรวจว่างานเสร็จหรือไม่",- "st.decision.status.local": "กำลังใช้: Ternary Bonsai 2 2B Vision ในอุปกรณ์นี้ ตรวจว่างานและการรันตามกำหนดเวลาเสร็จหรือไม่",+ "st.decision.status.local": "กำลังใช้: D1 ในอุปกรณ์นี้ ตรวจว่างานและการรันตามกำหนดเวลาเสร็จหรือไม่","st.decision.status.compass": "กำลังใช้: โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ","st.decision.status.none": "ไม่ได้ใช้ เลือก เปิด เพื่อตั้งค่าโมเดลการตัดสินใจ","st.decision.status.none_firefox": "ไม่ได้ใช้ เลือก เปิด เพื่อตั้งค่าโมเดลการตัดสินใจ",@@ -1204,11 +1204,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Tự động","st.decision.mode.on": "Bật","st.decision.mode.off": "Tắt",- "st.decision.mode.auto_desc": "Dùng mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.",- "st.decision.mode.auto_desc_firefox": "Dùng mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.",+ "st.decision.mode.auto_desc": "Dùng D1 khi đã tải xuống thiết bị này, hoặc mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.",+ "st.decision.mode.auto_desc_firefox": "Dùng D1 khi đã tải xuống thiết bị này, hoặc mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.","st.decision.mode.on_desc": "Dùng mô hình bạn thiết lập bên dưới cho mọi quyết định. Để giao một số cho mô hình trò chuyện, hãy mở “Chọn quyết định nào dùng nó”.","st.decision.mode.off_desc": "Không bao giờ dùng mô hình quyết định, kể cả của WebBrain Cloud. Mô hình trò chuyện vẫn kiểm tra tác vụ đã xong chưa.",- "st.decision.status.local": "Đang dùng: Ternary Bonsai 2 2B Vision, trên thiết bị này. Nó kiểm tra tác vụ và các lần chạy theo lịch đã xong chưa.",+ "st.decision.status.local": "Đang dùng: D1, trên thiết bị này. Nó kiểm tra tác vụ và các lần chạy theo lịch đã xong chưa.","st.decision.status.compass": "Đang dùng: mô hình quyết định của WebBrain Cloud, khi Compass là nhà cung cấp trò chuyện của bạn.","st.decision.status.none": "Không dùng. Chọn Bật để thiết lập mô hình quyết định.","st.decision.status.none_firefox": "Không dùng. Chọn Bật để thiết lập mô hình quyết định.",diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.jsindex e10a90f02..84ad42571 100644--- a/src/chrome/src/ui/locales/en.js+++ b/src/chrome/src/ui/locales/en.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'Full-page screenshots','install.chip.dl': 'Bulk downloads','install.local_model.intro': 'Start with an optional local model. When you’re ready, open WebBrain at the bottom of this page.',- 'install.local_model.download': 'Download a local model',- 'install.local_model.note': 'Optional · about 1.45 GB · runs on this device. You can skip this.',+ 'install.local_model.download': 'Download local models',+ 'install.local_model.note': 'Optional · about 1.45 GB, plus 0.95 GB for D1, WebBrain’s experimental decision model from Hugging Face. Both run on this device and use its GPU memory. You can skip this.','install.local_model.checking': 'Checking this browser…','install.local_model.downloading': 'Downloading Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Pause download',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'Local models need hardware WebGPU, which this browser isn’t offering right now.','install.local_model.busy': 'Another local model is downloading. This one can start after it finishes.','install.local_model.progress_label': 'Local model download',+ 'install.local_model.d1_downloading': 'Downloading D1, the decision model · {progress}%',+ 'install.local_model.d1_paused': 'D1 paused at {progress}%.',+ 'install.local_model.d1_ready': 'D1 is ready and answers WebBrain’s quick questions, such as “Is this task finished?”, on this device.',+ 'install.local_model.d1_saved': 'D1 is saved on this device. To use it, choose it in Settings under Decision models.',+ 'install.local_model.d1_unsupported': 'This GPU can’t run D1, so WebBrain keeps its usual checks.',+ 'install.local_model.d1_error': 'D1 stopped: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': 'Disconnected',diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.jsindex 1a7d65e3b..8f40ae4fb 100644--- a/src/chrome/src/ui/locales/es.js+++ b/src/chrome/src/ui/locales/es.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Capturas de página completa','install.chip.dl': 'Descargas masivas','install.local_model.intro': 'Empieza con un modelo local opcional. Cuando estés listo, abre WebBrain al final de esta página.',- 'install.local_model.download': 'Descargar un modelo local',- 'install.local_model.note': 'Opcional · unos 1,45 GB · se ejecuta en este dispositivo. Puedes omitirlo.',+ 'install.local_model.download': 'Descargar modelos locales',+ 'install.local_model.note': 'Opcional · unos 1,45 GB, más 0,95 GB para D1, el modelo de decisión experimental de WebBrain, desde Hugging Face. Ambos se ejecutan en este dispositivo y usan su memoria de GPU. Puedes omitirlo.','install.local_model.checking': 'Comprobando este navegador…','install.local_model.downloading': 'Descargando Ternary Bonsai 2 2B Vision · {progress} %','install.local_model.pause': 'Pausar descarga',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Los modelos locales necesitan WebGPU por hardware, que este navegador no ofrece ahora mismo.','install.local_model.busy': 'Se está descargando otro modelo local. Este podrá empezar cuando termine.','install.local_model.progress_label': 'Descarga del modelo local',+ 'install.local_model.d1_downloading': 'Descargando D1, el modelo de decisión · {progress} %',+ 'install.local_model.d1_paused': 'D1 en pausa al {progress} %.',+ 'install.local_model.d1_ready': 'D1 está listo y responde en este dispositivo a las preguntas rápidas de WebBrain, como «¿Terminó esta tarea?».',+ 'install.local_model.d1_saved': 'D1 está guardado en este dispositivo. Para usarlo, elígelo en Ajustes, en Modelos de decisión.',+ 'install.local_model.d1_unsupported': 'Esta GPU no puede ejecutar D1, así que WebBrain mantiene sus comprobaciones habituales.',+ 'install.local_model.d1_error': 'D1 se detuvo: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} de {total}',diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.jsindex 421b7d7c5..46d650f8a 100644--- a/src/chrome/src/ui/locales/fa.js+++ b/src/chrome/src/ui/locales/fa.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'اسکرینشات تمامصفحه','install.chip.dl': 'دانلود گروهی','install.local_model.intro': 'اگر بخواهید، اول یک مدل محلی اختیاری دانلود کنید. هر وقت آماده بودید، WebBrain را از پایین همین صفحه باز کنید.',- 'install.local_model.download': 'دانلود مدل محلی',- 'install.local_model.note': 'اختیاری · حدود ۱٫۴۵ گیگابایت · روی همین دستگاه اجرا میشود. میتوانید این مرحله را رد کنید.',+ 'install.local_model.download': 'دانلود مدلهای محلی',+ 'install.local_model.note': 'اختیاری · حدود ۱٫۴۵ گیگابایت، بهعلاوه ۰٫۹۵ گیگابایت برای D1، مدل تصمیم آزمایشی WebBrain از Hugging Face. هر دو روی همین دستگاه اجرا میشوند و از حافظهٔ GPU آن استفاده میکنند. میتوانید این مرحله را رد کنید.','install.local_model.checking': 'در حال بررسی این مرورگر…','install.local_model.downloading': 'در حال دانلود Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'توقف موقت دانلود',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'مدلهای محلی به WebGPU سختافزاری نیاز دارند که این مرورگر فعلاً ارائه نمیکند.','install.local_model.busy': 'مدل محلی دیگری در حال دانلود است. این دانلود بعد از آن میتواند شروع شود.','install.local_model.progress_label': 'دانلود مدل محلی',+ 'install.local_model.d1_downloading': 'در حال دانلود D1، مدل تصمیم · {progress}%',+ 'install.local_model.d1_paused': 'D1 در {progress}% متوقف شد.',+ 'install.local_model.d1_ready': 'D1 آماده است و روی همین دستگاه به پرسشهای کوتاه WebBrain، مثل «آیا این کار تمام شد؟»، پاسخ میدهد.',+ 'install.local_model.d1_saved': 'D1 روی این دستگاه ذخیره شد. برای استفاده، آن را در تنظیمات، بخش مدلهای تصمیم، انتخاب کنید.',+ 'install.local_model.d1_unsupported': 'این GPU نمیتواند D1 را اجرا کند، بنابراین WebBrain بررسیهای معمول خود را ادامه میدهد.',+ 'install.local_model.d1_error': 'D1 متوقف شد: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "قطع شد",diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.jsindex 811b2f593..c713f8f7f 100644--- a/src/chrome/src/ui/locales/fr.js+++ b/src/chrome/src/ui/locales/fr.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Captures de page entière','install.chip.dl': 'Téléchargements groupés','install.local_model.intro': 'Commencez par un modèle local facultatif. Quand vous êtes prêt, ouvrez WebBrain en bas de cette page.',- 'install.local_model.download': 'Télécharger un modèle local',- 'install.local_model.note': 'Facultatif · environ 1,45 Go · s’exécute sur cet appareil. Vous pouvez passer cette étape.',+ 'install.local_model.download': 'Télécharger les modèles locaux',+ 'install.local_model.note': 'Facultatif · environ 1,45 Go, plus 0,95 Go pour D1, le modèle de décision expérimental de WebBrain, depuis Hugging Face. Les deux s’exécutent sur cet appareil et utilisent sa mémoire GPU. Vous pouvez passer cette étape.','install.local_model.checking': 'Vérification de ce navigateur…','install.local_model.downloading': 'Téléchargement de Ternary Bonsai 2 2B Vision · {progress} %','install.local_model.pause': 'Mettre en pause',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Les modèles locaux nécessitent WebGPU matériel, que ce navigateur ne propose pas pour le moment.','install.local_model.busy': 'Un autre modèle local est en cours de téléchargement. Celui-ci pourra démarrer ensuite.','install.local_model.progress_label': 'Téléchargement du modèle local',+ 'install.local_model.d1_downloading': 'Téléchargement de D1, le modèle de décision · {progress} %',+ 'install.local_model.d1_paused': 'D1 en pause à {progress} %.',+ 'install.local_model.d1_ready': 'D1 est prêt et répond sur cet appareil aux questions rapides de WebBrain, comme « Cette tâche est-elle terminée ? ».',+ 'install.local_model.d1_saved': 'D1 est enregistré sur cet appareil. Pour l’utiliser, choisissez-le dans les Paramètres, sous Modèles de décision.',+ 'install.local_model.d1_unsupported': 'Ce GPU ne peut pas exécuter D1 : WebBrain garde ses vérifications habituelles.',+ 'install.local_model.d1_error': 'D1 s’est arrêté : {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sur {total}',diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.jsindex 522698d98..ebb0e58ab 100644--- a/src/chrome/src/ui/locales/he.js+++ b/src/chrome/src/ui/locales/he.js@@ -123,8 +123,8 @@ export default {'install.chip.shot': 'צילומי מסך של דף מלא','install.chip.dl': 'הורדות בכמות גדולה','install.local_model.intro': 'אפשר להתחיל במודל מקומי אופציונלי. כשתהיו מוכנים, פתחו את WebBrain בתחתית הדף.',- 'install.local_model.download': 'הורדת מודל מקומי',- 'install.local_model.note': 'אופציונלי · כ-1.45 GB · פועל במכשיר הזה. אפשר לדלג על השלב.',+ 'install.local_model.download': 'הורדת מודלים מקומיים',+ 'install.local_model.note': 'אופציונלי · כ-1.45 GB, ועוד 0.95 GB עבור D1, מודל ההחלטות הניסיוני של WebBrain, מ-Hugging Face. שניהם פועלים במכשיר הזה ומשתמשים בזיכרון ה-GPU שלו. אפשר לדלג על השלב.','install.local_model.checking': 'בודקים את הדפדפן…','install.local_model.downloading': 'מוריד את Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'השהיית ההורדה',@@ -138,6 +138,12 @@ export default {'install.local_model.unsupported': 'מודלים מקומיים דורשים WebGPU בחומרה, והדפדפן הזה לא מציע אותו כרגע.','install.local_model.busy': 'מודל מקומי אחר נמצא בהורדה. ההורדה הזו תוכל להתחיל אחריו.','install.local_model.progress_label': 'הורדת המודל המקומי',+ 'install.local_model.d1_downloading': 'מוריד את D1, מודל ההחלטות · {progress}%',+ 'install.local_model.d1_paused': 'D1 הושהה ב-{progress}%.',+ 'install.local_model.d1_ready': 'D1 מוכן ועונה במכשיר הזה על השאלות המהירות של WebBrain, כמו „האם המשימה הסתיימה?”.',+ 'install.local_model.d1_saved': 'D1 נשמר במכשיר הזה. כדי להשתמש בו, בחרו בו בהגדרות, תחת מודלי החלטות.',+ 'install.local_model.d1_unsupported': 'ה-GPU הזה לא יכול להריץ את D1, ולכן WebBrain ממשיך בבדיקות הרגילות שלו.',+ 'install.local_model.d1_error': 'D1 נעצר: {error}',"sp.status.disconnected": "לא מחובר","sp.status.connected": "מחובר ({model})","sp.status.error": "שגיאה: {msg}",diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.jsindex d7a9c83a0..9efa3f7ec 100644--- a/src/chrome/src/ui/locales/hi.js+++ b/src/chrome/src/ui/locales/hi.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'फ़ुल-पेज स्क्रीनशॉट','install.chip.dl': 'बल्क डाउनलोड','install.local_model.intro': 'चाहें तो पहले एक वैकल्पिक लोकल मॉडल डाउनलोड करें। तैयार होने पर इस पेज के नीचे से WebBrain खोलें।',- 'install.local_model.download': 'लोकल मॉडल डाउनलोड करें',- 'install.local_model.note': 'वैकल्पिक · लगभग 1.45 GB · इसी डिवाइस पर चलता है। आप इसे छोड़ सकते हैं।',+ 'install.local_model.download': 'लोकल मॉडल्स डाउनलोड करें',+ 'install.local_model.note': 'वैकल्पिक · लगभग 1.45 GB, साथ में Hugging Face से WebBrain के प्रायोगिक निर्णय मॉडल D1 के लिए 0.95 GB। दोनों इसी डिवाइस पर चलते हैं और इसकी GPU मेमोरी इस्तेमाल करते हैं। आप इसे छोड़ सकते हैं।','install.local_model.checking': 'इस ब्राउज़र की जाँच हो रही है…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision डाउनलोड हो रहा है · {progress}%','install.local_model.pause': 'डाउनलोड रोकें',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'लोकल मॉडल के लिए हार्डवेयर WebGPU चाहिए, जो यह ब्राउज़र अभी नहीं दे रहा है।','install.local_model.busy': 'एक और लोकल मॉडल डाउनलोड हो रहा है। यह उसके पूरा होने के बाद शुरू हो सकता है।','install.local_model.progress_label': 'लोकल मॉडल डाउनलोड',+ 'install.local_model.d1_downloading': 'निर्णय मॉडल D1 डाउनलोड हो रहा है · {progress}%',+ 'install.local_model.d1_paused': 'D1 को {progress}% पर रोका गया।',+ 'install.local_model.d1_ready': 'D1 तैयार है और इसी डिवाइस पर WebBrain के छोटे सवालों के जवाब देता है, जैसे “क्या यह काम पूरा हो गया?”।',+ 'install.local_model.d1_saved': 'D1 इस डिवाइस पर सहेजा गया है। इसे इस्तेमाल करने के लिए सेटिंग्स में निर्णय मॉडल के अंतर्गत चुनें।',+ 'install.local_model.d1_unsupported': 'यह GPU D1 नहीं चला सकता, इसलिए WebBrain अपनी सामान्य जाँचें जारी रखता है।',+ 'install.local_model.d1_error': 'D1 रुक गया: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "विच्छेदित",diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.jsindex 788b02690..02c6d92ea 100644--- a/src/chrome/src/ui/locales/id.js+++ b/src/chrome/src/ui/locales/id.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': 'Unduhan massal','install.local_model.intro': 'Mulailah dengan model lokal opsional. Jika sudah siap, buka WebBrain di bagian bawah halaman ini.','install.local_model.download': 'Unduh model lokal',- 'install.local_model.note': 'Opsional · sekitar 1,45 GB · berjalan di perangkat ini. Anda bisa melewatinya.',+ 'install.local_model.note': 'Opsional · sekitar 1,45 GB, ditambah 0,95 GB untuk D1, model keputusan eksperimental WebBrain dari Hugging Face. Keduanya berjalan di perangkat ini dan memakai memori GPU-nya. Anda bisa melewatinya.','install.local_model.checking': 'Memeriksa browser ini…','install.local_model.downloading': 'Mengunduh Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Jeda unduhan',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Model lokal memerlukan WebGPU perangkat keras, yang saat ini tidak tersedia di browser ini.','install.local_model.busy': 'Model lokal lain sedang diunduh. Unduhan ini bisa dimulai setelahnya.','install.local_model.progress_label': 'Unduhan model lokal',+ 'install.local_model.d1_downloading': 'Mengunduh D1, model keputusan · {progress}%',+ 'install.local_model.d1_paused': 'D1 dijeda di {progress}%.',+ 'install.local_model.d1_ready': 'D1 siap dan menjawab pertanyaan cepat WebBrain, seperti “Apakah tugas ini sudah selesai?”, di perangkat ini.',+ 'install.local_model.d1_saved': 'D1 tersimpan di perangkat ini. Untuk memakainya, pilih di Pengaturan, bagian Model keputusan.',+ 'install.local_model.d1_unsupported': 'GPU ini tidak bisa menjalankan D1, jadi WebBrain tetap memakai pemeriksaan biasanya.',+ 'install.local_model.d1_error': 'D1 berhenti: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} dari {total}',diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.jsindex 9c14e002d..fd98c0cd0 100644--- a/src/chrome/src/ui/locales/ja.js+++ b/src/chrome/src/ui/locales/ja.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': '一括ダウンロード','install.local_model.intro': 'まずはオプションのローカルモデルをどうぞ。準備ができたら、このページの一番下から WebBrain を開いてください。','install.local_model.download': 'ローカルモデルをダウンロード',- 'install.local_model.note': 'オプション · 約 1.45 GB · このデバイス上で動作。スキップしてもかまいません。',+ 'install.local_model.note': 'オプション · 約 1.45 GB に加え、Hugging Face から WebBrain の実験的な判定モデル D1 として約 0.95 GB。どちらもこのデバイス上で動作し、GPU メモリを使います。スキップしてもかまいません。','install.local_model.checking': 'このブラウザーを確認しています…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision をダウンロード中 · {progress}%','install.local_model.pause': 'ダウンロードを一時停止',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'ローカルモデルにはハードウェア WebGPU が必要ですが、このブラウザーでは現在利用できません。','install.local_model.busy': '別のローカルモデルをダウンロード中です。完了後にこちらを開始できます。','install.local_model.progress_label': 'ローカルモデルのダウンロード',+ 'install.local_model.d1_downloading': '判定モデル D1 をダウンロード中 · {progress}%',+ 'install.local_model.d1_paused': 'D1 を {progress}% で一時停止しました。',+ 'install.local_model.d1_ready': 'D1 の準備ができました。「このタスクは終わった?」のような WebBrain の簡単な質問に、このデバイス上で答えます。',+ 'install.local_model.d1_saved': 'D1 をこのデバイスに保存しました。使うには、設定の「判定モデル」で選んでください。',+ 'install.local_model.d1_unsupported': 'この GPU では D1 を実行できないため、WebBrain は通常のチェックを続けます。',+ 'install.local_model.d1_error': 'D1 が停止しました: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.jsindex f1b9c350d..03752ff59 100644--- a/src/chrome/src/ui/locales/ko.js+++ b/src/chrome/src/ui/locales/ko.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': '일괄 다운로드','install.local_model.intro': '원하면 먼저 로컬 모델을 받아 두세요. 준비되면 이 페이지 맨 아래에서 WebBrain을 여세요.','install.local_model.download': '로컬 모델 다운로드',- 'install.local_model.note': '선택 사항 · 약 1.45GB · 이 기기에서 실행됩니다. 건너뛰어도 됩니다.',+ 'install.local_model.note': '선택 사항 · 약 1.45GB, 여기에 Hugging Face에서 받는 WebBrain의 실험적 결정 모델 D1용 0.95GB. 둘 다 이 기기에서 실행되며 GPU 메모리를 사용합니다. 건너뛰어도 됩니다.','install.local_model.checking': '이 브라우저를 확인하는 중…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision 다운로드 중 · {progress}%','install.local_model.pause': '다운로드 일시중지',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': '로컬 모델에는 하드웨어 WebGPU가 필요한데, 이 브라우저는 지금 이를 제공하지 않습니다.','install.local_model.busy': '다른 로컬 모델을 다운로드하는 중입니다. 끝나면 이 모델을 시작할 수 있습니다.','install.local_model.progress_label': '로컬 모델 다운로드',+ 'install.local_model.d1_downloading': '결정 모델 D1 다운로드 중 · {progress}%',+ 'install.local_model.d1_paused': 'D1이 {progress}%에서 일시중지됨.',+ 'install.local_model.d1_ready': 'D1이 준비되었습니다. "이 작업이 끝났나요?" 같은 WebBrain의 간단한 질문에 이 기기에서 답합니다.',+ 'install.local_model.d1_saved': 'D1이 이 기기에 저장되었습니다. 사용하려면 설정의 결정 모델에서 선택하세요.',+ 'install.local_model.d1_unsupported': '이 GPU에서는 D1을 실행할 수 없어 WebBrain은 평소의 확인을 계속합니다.',+ 'install.local_model.d1_error': 'D1이 중단되었습니다: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.jsindex 43b6c12a6..a0405d608 100644--- a/src/chrome/src/ui/locales/ms.js+++ b/src/chrome/src/ui/locales/ms.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': 'Muat turun pukal','install.local_model.intro': 'Mulakan dengan model setempat pilihan. Apabila sedia, buka WebBrain di bahagian bawah halaman ini.','install.local_model.download': 'Muat turun model setempat',- 'install.local_model.note': 'Pilihan · kira-kira 1.45 GB · berjalan pada peranti ini. Anda boleh melangkau langkah ini.',+ 'install.local_model.note': 'Pilihan · kira-kira 1.45 GB, serta 0.95 GB untuk D1, model keputusan eksperimen WebBrain daripada Hugging Face. Kedua-duanya berjalan pada peranti ini dan menggunakan memori GPUnya. Anda boleh melangkau langkah ini.','install.local_model.checking': 'Menyemak pelayar ini…','install.local_model.downloading': 'Memuat turun Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Jeda muat turun',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Model setempat memerlukan WebGPU perkakasan, yang tidak ditawarkan oleh pelayar ini sekarang.','install.local_model.busy': 'Model setempat lain sedang dimuat turun. Yang ini boleh bermula selepas ia selesai.','install.local_model.progress_label': 'Muat turun model setempat',+ 'install.local_model.d1_downloading': 'Memuat turun D1, model keputusan · {progress}%',+ 'install.local_model.d1_paused': 'D1 dijeda pada {progress}%.',+ 'install.local_model.d1_ready': 'D1 sedia dan menjawab soalan pantas WebBrain, seperti “Adakah tugas ini sudah selesai?”, pada peranti ini.',+ 'install.local_model.d1_saved': 'D1 disimpan pada peranti ini. Untuk menggunakannya, pilih dalam Tetapan, di bawah Model keputusan.',+ 'install.local_model.d1_unsupported': 'GPU ini tidak dapat menjalankan D1, jadi WebBrain kekal dengan semakan biasanya.',+ 'install.local_model.d1_error': 'D1 terhenti: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} daripada {total}',diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.jsindex 34acf90a8..3983b6a11 100644--- a/src/chrome/src/ui/locales/nl.js+++ b/src/chrome/src/ui/locales/nl.js@@ -109,8 +109,8 @@ export default {'install.chip.shot': 'Screenshots van hele pagina’s','install.chip.dl': 'Bulkdownloads','install.local_model.intro': 'Begin met een optioneel lokaal model. Open WebBrain onderaan deze pagina wanneer je klaar bent.',- 'install.local_model.download': 'Lokaal model downloaden',- 'install.local_model.note': 'Optioneel · ongeveer 1,45 GB · draait op dit apparaat. Je kunt dit overslaan.',+ 'install.local_model.download': 'Lokale modellen downloaden',+ 'install.local_model.note': 'Optioneel · ongeveer 1,45 GB, plus 0,95 GB voor D1, het experimentele beslismodel van WebBrain, van Hugging Face. Beide draaien op dit apparaat en gebruiken het GPU-geheugen. Je kunt dit overslaan.','install.local_model.checking': 'Deze browser controleren…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision downloaden · {progress}%','install.local_model.pause': 'Download pauzeren',@@ -124,6 +124,12 @@ export default {'install.local_model.unsupported': 'Lokale modellen hebben hardware-WebGPU nodig, en die biedt deze browser nu niet.','install.local_model.busy': 'Er wordt al een ander lokaal model gedownload. Dit model kan daarna starten.','install.local_model.progress_label': 'Download van lokaal model',+ 'install.local_model.d1_downloading': 'D1, het beslismodel, downloaden · {progress}%',+ 'install.local_model.d1_paused': 'D1 gepauzeerd bij {progress}%.',+ 'install.local_model.d1_ready': 'D1 is klaar en beantwoordt op dit apparaat de snelle vragen van WebBrain, zoals ‘Is deze taak klaar?’.',+ 'install.local_model.d1_saved': 'D1 is op dit apparaat opgeslagen. Kies het in Instellingen onder Beslismodellen om het te gebruiken.',+ 'install.local_model.d1_unsupported': 'Deze GPU kan D1 niet draaien, dus WebBrain houdt zijn gewone controles aan.',+ 'install.local_model.d1_error': 'D1 is gestopt: {error}','sp.status.disconnected': 'Niet verbonden','sp.status.connected': 'Verbonden ({model})','sp.status.error': 'Fout: {msg}',diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.jsindex f49cab655..306d56ed8 100644--- a/src/chrome/src/ui/locales/pl.js+++ b/src/chrome/src/ui/locales/pl.js@@ -109,8 +109,8 @@ export default {'install.chip.shot': 'Zrzuty całej strony','install.chip.dl': 'Pobieranie zbiorcze','install.local_model.intro': 'Zacznij od opcjonalnego modelu lokalnego. Gdy będziesz gotowy, otwórz WebBrain na dole tej strony.',- 'install.local_model.download': 'Pobierz model lokalny',- 'install.local_model.note': 'Opcjonalne · ok. 1,45 GB · działa na tym urządzeniu. Możesz to pominąć.',+ 'install.local_model.download': 'Pobierz modele lokalne',+ 'install.local_model.note': 'Opcjonalne · ok. 1,45 GB oraz 0,95 GB na D1, eksperymentalny model decyzyjny WebBrain z Hugging Face. Oba działają na tym urządzeniu i korzystają z pamięci jego GPU. Możesz to pominąć.','install.local_model.checking': 'Sprawdzanie tej przeglądarki…','install.local_model.downloading': 'Pobieranie Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Wstrzymaj pobieranie',@@ -124,6 +124,12 @@ export default {'install.local_model.unsupported': 'Modele lokalne wymagają sprzętowego WebGPU, którego ta przeglądarka teraz nie udostępnia.','install.local_model.busy': 'Trwa pobieranie innego modelu lokalnego. Ten może zacząć się po jego zakończeniu.','install.local_model.progress_label': 'Pobieranie modelu lokalnego',+ 'install.local_model.d1_downloading': 'Pobieranie D1, modelu decyzyjnego · {progress}%',+ 'install.local_model.d1_paused': 'D1 wstrzymano przy {progress}%.',+ 'install.local_model.d1_ready': 'D1 jest gotowy i na tym urządzeniu odpowiada na krótkie pytania WebBrain, np. „Czy to zadanie jest skończone?”.',+ 'install.local_model.d1_saved': 'D1 jest zapisany na tym urządzeniu. Aby go używać, wybierz go w Ustawieniach, w sekcji Modele decyzyjne.',+ 'install.local_model.d1_unsupported': 'Ten GPU nie uruchomi D1, więc WebBrain zostaje przy swoich zwykłych sprawdzeniach.',+ 'install.local_model.d1_error': 'D1 się zatrzymał: {error}','sp.status.disconnected': 'Rozłączono','sp.status.connected': 'Połączono ({model})','sp.status.error': 'Błąd: {msg}',diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.jsindex 8b9093570..4320c3e80 100644--- a/src/chrome/src/ui/locales/pt.js+++ b/src/chrome/src/ui/locales/pt.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'Capturas de página inteira','install.chip.dl': 'Downloads em massa','install.local_model.intro': 'Comece com um modelo local opcional. Quando estiver pronto, abra o WebBrain no fim desta página.',- 'install.local_model.download': 'Baixar um modelo local',- 'install.local_model.note': 'Opcional · cerca de 1,45 GB · roda neste dispositivo. Você pode pular esta etapa.',+ 'install.local_model.download': 'Baixar modelos locais',+ 'install.local_model.note': 'Opcional · cerca de 1,45 GB, mais 0,95 GB para o D1, o modelo de decisão experimental do WebBrain, do Hugging Face. Os dois rodam neste dispositivo e usam a memória da GPU. Você pode pular esta etapa.','install.local_model.checking': 'Verificando este navegador…','install.local_model.downloading': 'Baixando Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Pausar download',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'Modelos locais precisam de WebGPU por hardware, que este navegador não está oferecendo agora.','install.local_model.busy': 'Outro modelo local está sendo baixado. Este pode começar quando ele terminar.','install.local_model.progress_label': 'Download do modelo local',+ 'install.local_model.d1_downloading': 'Baixando o D1, o modelo de decisão · {progress}%',+ 'install.local_model.d1_paused': 'D1 pausado em {progress}%.',+ 'install.local_model.d1_ready': 'O D1 está pronto e responde neste dispositivo às perguntas rápidas do WebBrain, como “Esta tarefa terminou?”.',+ 'install.local_model.d1_saved': 'O D1 está salvo neste dispositivo. Para usá-lo, escolha-o em Configurações, em Modelos de decisão.',+ 'install.local_model.d1_unsupported': 'Esta GPU não consegue rodar o D1, então o WebBrain mantém suas verificações de sempre.',+ 'install.local_model.d1_error': 'O D1 parou: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Desconectado",diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.jsindex e4cf1649c..cdce27894 100644--- a/src/chrome/src/ui/locales/ru.js+++ b/src/chrome/src/ui/locales/ru.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Скриншоты всей страницы','install.chip.dl': 'Массовая загрузка','install.local_model.intro': 'Для начала можно скачать локальную модель — это необязательно. Когда будете готовы, откройте WebBrain внизу этой страницы.',- 'install.local_model.download': 'Скачать локальную модель',- 'install.local_model.note': 'Необязательно · около 1,45 ГБ · работает на этом устройстве. Этот шаг можно пропустить.',+ 'install.local_model.download': 'Скачать локальные модели',+ 'install.local_model.note': 'Необязательно · около 1,45 ГБ и ещё 0,95 ГБ для D1 — экспериментальной модели решений WebBrain с Hugging Face. Обе работают на этом устройстве и используют память его GPU. Этот шаг можно пропустить.','install.local_model.checking': 'Проверяем этот браузер…','install.local_model.downloading': 'Загрузка Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Приостановить загрузку',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Локальным моделям нужен аппаратный WebGPU, а этот браузер сейчас его не предоставляет.','install.local_model.busy': 'Сейчас загружается другая локальная модель. Эта начнётся после неё.','install.local_model.progress_label': 'Загрузка локальной модели',+ 'install.local_model.d1_downloading': 'Загрузка D1, модели решений · {progress}%',+ 'install.local_model.d1_paused': 'D1 приостановлена на {progress}%.',+ 'install.local_model.d1_ready': 'D1 готова и прямо на этом устройстве отвечает на короткие вопросы WebBrain, например «Задача выполнена?».',+ 'install.local_model.d1_saved': 'D1 сохранена на этом устройстве. Чтобы её использовать, выберите её в Настройках, в разделе «Модели решений».',+ 'install.local_model.d1_unsupported': 'Этот GPU не может запустить D1, поэтому WebBrain оставляет свои обычные проверки.',+ 'install.local_model.d1_error': 'D1 остановилась: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} из {total}',diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.jsindex b79caa3e2..845956756 100644--- a/src/chrome/src/ui/locales/th.js+++ b/src/chrome/src/ui/locales/th.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': 'ดาวน์โหลดจำนวนมาก','install.local_model.intro': 'เริ่มด้วยโมเดลในเครื่องแบบไม่บังคับก็ได้ เมื่อพร้อมแล้ว เปิด WebBrain ที่ด้านล่างของหน้านี้','install.local_model.download': 'ดาวน์โหลดโมเดลในเครื่อง',- 'install.local_model.note': 'ไม่บังคับ · ประมาณ 1.45 GB · ทำงานบนอุปกรณ์นี้ ข้ามขั้นตอนนี้ได้',+ 'install.local_model.note': 'ไม่บังคับ · ประมาณ 1.45 GB และอีก 0.95 GB สำหรับ D1 โมเดลการตัดสินใจรุ่นทดลองของ WebBrain จาก Hugging Face ทั้งสองทำงานบนอุปกรณ์นี้และใช้หน่วยความจำ GPU ข้ามขั้นตอนนี้ได้','install.local_model.checking': 'กำลังตรวจสอบเบราว์เซอร์นี้…','install.local_model.downloading': 'กำลังดาวน์โหลด Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'หยุดดาวน์โหลดชั่วคราว',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'โมเดลในเครื่องต้องใช้ WebGPU ระดับฮาร์ดแวร์ ซึ่งเบราว์เซอร์นี้ยังไม่มีให้ในตอนนี้','install.local_model.busy': 'กำลังดาวน์โหลดโมเดลในเครื่องตัวอื่นอยู่ ตัวนี้จะเริ่มได้หลังจากนั้น','install.local_model.progress_label': 'การดาวน์โหลดโมเดลในเครื่อง',+ 'install.local_model.d1_downloading': 'กำลังดาวน์โหลด D1 โมเดลการตัดสินใจ · {progress}%',+ 'install.local_model.d1_paused': 'D1 หยุดชั่วคราวที่ {progress}%',+ 'install.local_model.d1_ready': 'D1 พร้อมแล้ว และตอบคำถามสั้นๆ ของ WebBrain เช่น “งานนี้เสร็จหรือยัง” บนอุปกรณ์นี้',+ 'install.local_model.d1_saved': 'บันทึก D1 ไว้บนอุปกรณ์นี้แล้ว หากต้องการใช้ ให้เลือกในการตั้งค่า ใต้โมเดลการตัดสินใจ',+ 'install.local_model.d1_unsupported': 'GPU นี้รัน D1 ไม่ได้ WebBrain จึงใช้การตรวจสอบตามปกติต่อไป',+ 'install.local_model.d1_error': 'D1 หยุดทำงาน: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} จาก {total}',diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.jsindex 116a988b8..034d0f599 100644--- a/src/chrome/src/ui/locales/tl.js+++ b/src/chrome/src/ui/locales/tl.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Full-page na screenshot','install.chip.dl': 'Maramihang pag-download','install.local_model.intro': 'Puwede kang magsimula sa isang opsyonal na lokal na model. Kapag handa ka na, buksan ang WebBrain sa ibaba ng pahinang ito.',- 'install.local_model.download': 'Mag-download ng lokal na model',- 'install.local_model.note': 'Opsyonal · mga 1.45 GB · tumatakbo sa device na ito. Puwede mo itong laktawan.',+ 'install.local_model.download': 'Mag-download ng mga lokal na model',+ 'install.local_model.note': 'Opsyonal · mga 1.45 GB, dagdag ang 0.95 GB para sa D1, ang eksperimental na decision model ng WebBrain mula sa Hugging Face. Parehong tumatakbo sa device na ito at gumagamit ng GPU memory nito. Puwede mo itong laktawan.','install.local_model.checking': 'Sinusuri ang browser na ito…','install.local_model.downloading': 'Dina-download ang Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'I-pause ang download',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Kailangan ng mga lokal na model ang hardware WebGPU, na hindi iniaalok ng browser na ito ngayon.','install.local_model.busy': 'May ibang lokal na model na dina-download. Puwedeng magsimula ito pagkatapos noon.','install.local_model.progress_label': 'Download ng lokal na model',+ 'install.local_model.d1_downloading': 'Dina-download ang D1, ang decision model · {progress}%',+ 'install.local_model.d1_paused': 'Naka-pause ang D1 sa {progress}%.',+ 'install.local_model.d1_ready': 'Handa na ang D1 at sinasagot nito sa device na ito ang mabibilis na tanong ng WebBrain, gaya ng “Tapos na ba ang task na ito?”.',+ 'install.local_model.d1_saved': 'Naka-save ang D1 sa device na ito. Para gamitin ito, piliin ito sa Mga Setting, sa ilalim ng Mga decision model.',+ 'install.local_model.d1_unsupported': 'Hindi kayang patakbuhin ng GPU na ito ang D1, kaya nananatili ang WebBrain sa karaniwang mga check nito.',+ 'install.local_model.d1_error': 'Huminto ang D1: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sa {total}',diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.jsindex 71c5635f9..3dddd518e 100644--- a/src/chrome/src/ui/locales/tr.js+++ b/src/chrome/src/ui/locales/tr.js@@ -215,8 +215,8 @@ export default {'install.chip.shot': 'Tam sayfa ekran görüntüleri','install.chip.dl': 'Toplu indirme','install.local_model.intro': 'İstersen önce yerel bir model indir. Hazır olduğunda WebBrain’i bu sayfanın en altından aç.',- 'install.local_model.download': 'Yerel model indir',- 'install.local_model.note': 'İsteğe bağlı · yaklaşık 1,45 GB · bu cihazda çalışır. Bu adımı atlayabilirsin.',+ 'install.local_model.download': 'Yerel modelleri indir',+ 'install.local_model.note': 'İsteğe bağlı · yaklaşık 1,45 GB, artı WebBrain’in Hugging Face’ten gelen deneysel karar modeli D1 için 0,95 GB. İkisi de bu cihazda çalışır ve GPU belleğini kullanır. Bu adımı atlayabilirsin.','install.local_model.checking': 'Tarayıcı kontrol ediliyor…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision indiriliyor · %{progress}','install.local_model.pause': 'İndirmeyi duraklat',@@ -230,6 +230,12 @@ export default {'install.local_model.unsupported': 'Yerel modeller donanım WebGPU desteği ister; bu tarayıcı şu anda bunu sunmuyor.','install.local_model.busy': 'Başka bir yerel model indiriliyor. Bu indirme o bittikten sonra başlayabilir.','install.local_model.progress_label': 'Yerel model indirmesi',+ 'install.local_model.d1_downloading': 'Karar modeli D1 indiriliyor · %{progress}',+ 'install.local_model.d1_paused': 'D1, %{progress} noktasında duraklatıldı.',+ 'install.local_model.d1_ready': 'D1 hazır; WebBrain’in “Bu görev bitti mi?” gibi hızlı sorularını bu cihazda yanıtlıyor.',+ 'install.local_model.d1_saved': 'D1 bu cihaza kaydedildi. Kullanmak için Ayarlar’da Karar modelleri bölümünden seç.',+ 'install.local_model.d1_unsupported': 'Bu GPU D1’i çalıştıramıyor; WebBrain her zamanki kontrollerini sürdürüyor.',+ 'install.local_model.d1_error': 'D1 durdu: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.jsindex 80457b4de..71dc8a90e 100644--- a/src/chrome/src/ui/locales/uk.js+++ b/src/chrome/src/ui/locales/uk.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Знімки всієї сторінки','install.chip.dl': 'Масове завантаження','install.local_model.intro': 'Для початку можна завантажити локальну модель — це необов’язково. Коли будете готові, відкрийте WebBrain унизу цієї сторінки.',- 'install.local_model.download': 'Завантажити локальну модель',- 'install.local_model.note': 'Необов’язково · близько 1,45 ГБ · працює на цьому пристрої. Цей крок можна пропустити.',+ 'install.local_model.download': 'Завантажити локальні моделі',+ 'install.local_model.note': 'Необов’язково · близько 1,45 ГБ і ще 0,95 ГБ для D1 — експериментальної моделі рішень WebBrain з Hugging Face. Обидві працюють на цьому пристрої й використовують пам’ять його GPU. Цей крок можна пропустити.','install.local_model.checking': 'Перевіряємо цей браузер…','install.local_model.downloading': 'Завантаження Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Призупинити завантаження',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Локальним моделям потрібен апаратний WebGPU, якого цей браузер зараз не надає.','install.local_model.busy': 'Зараз завантажується інша локальна модель. Ця почнеться після неї.','install.local_model.progress_label': 'Завантаження локальної моделі',+ 'install.local_model.d1_downloading': 'Завантаження D1, моделі рішень · {progress}%',+ 'install.local_model.d1_paused': 'D1 призупинено на {progress}%.',+ 'install.local_model.d1_ready': 'D1 готова й просто на цьому пристрої відповідає на короткі запитання WebBrain, як-от «Завдання виконано?».',+ 'install.local_model.d1_saved': 'D1 збережено на цьому пристрої. Щоб її використовувати, виберіть її в Налаштуваннях, у розділі «Моделі рішень».',+ 'install.local_model.d1_unsupported': 'Цей GPU не може запустити D1, тож WebBrain лишає свої звичайні перевірки.',+ 'install.local_model.d1_error': 'D1 зупинилася: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} з {total}',diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.jsindex ac3df0c59..16cb4ce24 100644--- a/src/chrome/src/ui/locales/vi.js+++ b/src/chrome/src/ui/locales/vi.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'Chụp toàn trang','install.chip.dl': 'Tải xuống hàng loạt','install.local_model.intro': 'Bạn có thể bắt đầu với một mô hình cục bộ tùy chọn. Khi sẵn sàng, hãy mở WebBrain ở cuối trang này.',- 'install.local_model.download': 'Tải xuống mô hình cục bộ',- 'install.local_model.note': 'Tùy chọn · khoảng 1,45 GB · chạy trên thiết bị này. Bạn có thể bỏ qua bước này.',+ 'install.local_model.download': 'Tải xuống các mô hình cục bộ',+ 'install.local_model.note': 'Tùy chọn · khoảng 1,45 GB, thêm 0,95 GB cho D1, mô hình quyết định thử nghiệm của WebBrain, tải từ Hugging Face. Cả hai chạy trên thiết bị này và dùng bộ nhớ GPU của nó. Bạn có thể bỏ qua bước này.','install.local_model.checking': 'Đang kiểm tra trình duyệt này…','install.local_model.downloading': 'Đang tải Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Tạm dừng tải xuống',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'Mô hình cục bộ cần WebGPU phần cứng, nhưng trình duyệt này hiện không cung cấp.','install.local_model.busy': 'Một mô hình cục bộ khác đang được tải. Mô hình này có thể bắt đầu sau khi nó xong.','install.local_model.progress_label': 'Tải xuống mô hình cục bộ',+ 'install.local_model.d1_downloading': 'Đang tải D1, mô hình quyết định · {progress}%',+ 'install.local_model.d1_paused': 'D1 đã tạm dừng ở {progress}%.',+ 'install.local_model.d1_ready': 'D1 đã sẵn sàng và trả lời ngay trên thiết bị này những câu hỏi nhanh của WebBrain, như “Tác vụ này xong chưa?”.',+ 'install.local_model.d1_saved': 'D1 đã được lưu trên thiết bị này. Để dùng, hãy chọn nó trong Cài đặt, mục Mô hình quyết định.',+ 'install.local_model.d1_unsupported': 'GPU này không chạy được D1, nên WebBrain giữ các bước kiểm tra thông thường.',+ 'install.local_model.d1_error': 'D1 đã dừng: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Đã ngắt kết nối",diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.jsindex ea38d5a9d..ef9e28343 100644--- a/src/chrome/src/ui/locales/zh.js+++ b/src/chrome/src/ui/locales/zh.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': '批量下载','install.local_model.intro': '可以先下载一个可选的本地模型。准备好后,在本页底部打开 WebBrain。','install.local_model.download': '下载本地模型',- 'install.local_model.note': '可选 · 约 1.45 GB · 在此设备上运行。可以跳过此步骤。',+ 'install.local_model.note': '可选 · 约 1.45 GB,另需约 0.95 GB 用于 D1——WebBrain 来自 Hugging Face 的实验性决策模型。两者都在此设备上运行并占用其 GPU 内存。可以跳过此步骤。','install.local_model.checking': '正在检查此浏览器…','install.local_model.downloading': '正在下载 Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': '暂停下载',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': '本地模型需要硬件 WebGPU,而此浏览器目前未提供。','install.local_model.busy': '另一个本地模型正在下载。它完成后才能开始此下载。','install.local_model.progress_label': '本地模型下载',+ 'install.local_model.d1_downloading': '正在下载决策模型 D1 · {progress}%',+ 'install.local_model.d1_paused': 'D1 已在 {progress}% 处暂停。',+ 'install.local_model.d1_ready': 'D1 已就绪,会在此设备上回答 WebBrain 的快速问题,例如“这个任务完成了吗?”。',+ 'install.local_model.d1_saved': 'D1 已保存在此设备上。要使用它,请在设置的“决策模型”中选择。',+ 'install.local_model.d1_unsupported': '此 GPU 无法运行 D1,因此 WebBrain 继续使用常规检查。',+ 'install.local_model.d1_error': 'D1 已停止:{error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/chrome/src/ui/settings.js b/src/chrome/src/ui/settings.jsindex 35453f831..b67fb0049 100644--- a/src/chrome/src/ui/settings.js+++ b/src/chrome/src/ui/settings.js@@ -1,6 +1,7 @@import { DECISION_MODE_KEY, DECISION_SETTINGS_KEYS, materializeLegacyDecisionFeatures, DEFAULT_DECISION_MODEL, WEBGPU_CHAT_DECISION_MODEL, resolveDecisionConfig, resolveDecisionMode } from '../agent/decision-config.js';import { normalizeLeanModeSetting } from '../agent/lean-mode.js';-import { D1_MODEL_ID } from '../providers/d1-config.js';+import { D1_CONSENT_KEY, D1_CONSENT_VERSION, D1_MODEL_ID } from '../providers/d1-config.js';+import { d1LocalAssistReady } from '../agent/decision-availability.js';import { initD1Settings } from './d1-settings.js';/*** WebBrain Settings pages — settings.html (preferences, budgets, memory,@@ -308,16 +309,21 @@ async function syncDecisionStatus() {// Strict Secret Mode keeps page content away from every decision model, so Auto has nothing to use.const strict = strictSecretModeOn;const compass = !strict && activeProviderIsCompass();+ // Without Compass, Auto uses D1 once it is downloaded (decision-availability.js).+ const local = !strict && !compass+ && (await chrome.storage.local.get(D1_CONSENT_KEY).catch(() => ({})))?.[D1_CONSENT_KEY] === D1_CONSENT_VERSION+ && await d1LocalAssistReady();if (sequence !== decisionStatusSequence || selectedDecisionMode() !== 'auto') return;- const key = strict ? 'st.decision.status.strict' : compass ? 'st.decision.status.compass' : 'st.decision.status.none';+ const key = strict ? 'st.decision.status.strict' : compass ? 'st.decision.status.compass' : local ? 'st.decision.status.local' : 'st.decision.status.none';if (status) {status.dataset.i18n = key;- status.dataset.state = compass ? 'active' : 'inactive';+ status.dataset.state = compass || local ? 'active' : 'inactive';status.textContent = t(key);status.hidden = false;}- // Compass's managed model is not tested by the browser's Settings probe.- if (btnTestSystemOne) btnTestSystemOne.hidden = true;+ // Test runs here in the browser, so it can check D1 but not Compass's+ // managed model.+ if (btnTestSystemOne) btnTestSystemOne.hidden = !local;}for (const input of decisionModeInputs) {input.addEventListener('change', async () => {@@ -328,7 +334,9 @@ for (const input of decisionModeInputs) {// A pre-mode On profile shows its stored switches; keep them when the explicit mode replaces that reading.const legacyFeatures = materializeLegacyDecisionFeatures(await chrome.storage.local.get(DECISION_SETTINGS_KEYS));await chrome.storage.local.set({ ...legacyFeatures, [DECISION_MODE_KEY]: mode, systemOneEnabled: mode === 'on' });- if (mode !== 'on') await sendToBackground('d1_control', { command: 'reset' }).catch(() => {});+ // Off ends D1's Download or Load; Auto keeps it, since Auto uses a+ // downloaded D1 while Compass is not the chat provider.+ if (mode === 'off') await sendToBackground('d1_control', { command: 'reset' }).catch(() => {});showSystemOneResult('ok', t('st.providers.saved'));});}diff --git a/src/firefox/src/agent/decision-availability.js b/src/firefox/src/agent/decision-availability.jsindex 9fb590d31..e5f40bc84 100644--- a/src/firefox/src/agent/decision-availability.js+++ b/src/firefox/src/agent/decision-availability.js@@ -1,7 +1,22 @@-import { resolveDecisionConfig } from './decision-config.js';+import { decisionNeedsLocalAssist, resolveDecisionConfig } from './decision-config.js';+import { D1_KEEP_LOADED_KEY } from '../providers/d1-config.js';+import { d1PackageReady } from '../providers/d1-cache.js';-// The decision configuration that applies right now. Firefox has no-// in-browser model runtime, so Auto never finds a local decision model here.+// Auto without Compass uses D1 once its package is downloaded and verified,+// while the user's Download or Load stands: Unload, Remove cached model and+// switching decisions Off end it (background.js d1_control). The lookup is one+// storage read and D1's ready marker, without the offscreen document or the+// GPU, so per-check callers can afford it. A downloaded chat or vision model+// never enables decisions.+export async function d1LocalAssistReady(api = globalThis.browser || globalThis.chrome, storageManager = globalThis.navigator?.storage) {+ try {+ const stored = await api.storage.local.get(D1_KEEP_LOADED_KEY);+ return stored?.[D1_KEEP_LOADED_KEY] === true && await d1PackageReady(storageManager);+ } catch { return false; }+}++// The decision configuration that applies right now.export async function resolveCurrentDecisionConfig(stored = {}, compass = null) {- return resolveDecisionConfig(stored, compass);+ const localAssistReady = decisionNeedsLocalAssist(stored, compass) && await d1LocalAssistReady();+ return resolveDecisionConfig(stored, compass, { localAssistReady });}diff --git a/src/firefox/src/agent/decision-config.js b/src/firefox/src/agent/decision-config.jsindex bc3bcb3d6..be2b8e1bf 100644--- a/src/firefox/src/agent/decision-config.js+++ b/src/firefox/src/agent/decision-config.js@@ -32,6 +32,11 @@ const NO_DECISION_FEATURES = Object.freeze(Object.fromEntries(DECISION_FEATURES.// Auto with Compass keeps what Compass did before modes existed: completion// checks and semantic decisions on its managed model.const AUTO_COMPASS_FEATURES = Object.freeze({ ...NO_DECISION_FEATURES, done: true, semantic: true });+// Auto with D1 downloaded and no Compass: the checks D1 answers by itself, the+// ones the in-browser chat model answered before its decisions were disabled.+// Fast classifications, fast browser actions and semantic decisions need an+// explicit On, so the experimental and guard-facing paths stay opt-in.+const AUTO_LOCAL_FEATURES = Object.freeze({ ...NO_DECISION_FEATURES, done: true, watch: true, completion: true });// A saved mode wins. Profiles saved before modes existed map an enabled// System One switch to On and everything else to the Auto default, without@@ -41,6 +46,13 @@ export function resolveDecisionMode(stored = {}) {return stored?.systemOneEnabled === true ? 'on' : 'auto';}+// Only Auto without Compass, after D1's experimental-model consent, looks for+// D1's download (decision-availability.js), so callers can skip that lookup+// otherwise.+export function decisionNeedsLocalAssist(stored = {}, compass = null) {+ return resolveDecisionMode(stored) === 'auto' && !compass && stored?.[D1_CONSENT_KEY] === D1_CONSENT_VERSION;+}+// Whether the resolved configuration answers this decision. Every caller asks// here instead of reading the mode or the feature switches itself.export function decisionFeatureEnabled(config, feature) {@@ -71,11 +83,17 @@ function onDecisionFeatures(stored, config, legacy) {// Resolve settings without rewriting credentials or opted-in features. The// result keeps the selected provider's fields even when no decision is// answered, so Settings and model discovery see the same configuration.-// Firefox has no in-browser model runtime, so Auto never finds one here and-// the option Chrome passes for it is accepted and ignored.-export function resolveDecisionConfig(stored = {}, compass = null, _options = {}) {+// Downloaded chat/vision weights do not establish reliable decision behavior;+// `localAssistReady` says D1, a decision model, is downloaded and the user's+// Download or Load stands (decision-availability.js). Only Auto without+// Compass reads it.+export function resolveDecisionConfig(stored = {}, compass = null, { localAssistReady = false } = {}) {stored = stored || {};const mode = resolveDecisionMode(stored);+ if (localAssistReady === true && decisionNeedsLocalAssist(stored, compass)) {+ const config = selectedDecisionConfig({ ...stored, decisionProvider: 'webgpu_d1', decisionVisionMode: 'auto' }, null, true);+ return { ...config, doneEnabled: true, mode, source: 'local_assist', features: { ...AUTO_LOCAL_FEATURES } };+ }const legacy = mode === 'on' && !DECISION_MODES.includes(stored[DECISION_MODE_KEY]);const on = mode === 'on';const config = selectedDecisionConfig(stored, mode === 'off' ? null : compass, on);diff --git a/src/firefox/src/background.js b/src/firefox/src/background.jsindex e812b938a..a7028310b 100644--- a/src/firefox/src/background.js+++ b/src/firefox/src/background.js@@ -1,5 +1,5 @@import { getChatHistoryRecord } from './ui/chat-history-store.js';-import { resolveDecisionConfig, listDecisionModels } from './agent/decision-config.js';+import { resolveDecisionConfig, listDecisionModels, DECISION_SETTINGS_KEYS } from './agent/decision-config.js';import { resolveCurrentDecisionConfig } from './agent/decision-availability.js';import { d1Request } from './providers/d1.js';import { evaluateD1LocalFixture } from './providers/d1-diagnostic.js';@@ -3048,6 +3048,23 @@ async function handleFailureRecoveryResponse(msg, sender) {}}+// Whether D1 answers this profile's decisions now, for the install guide: an+// explicit On selection, or Auto once D1 is downloaded while Compass is not the+// chat provider (decision-availability.js).+async function d1UsedForDecisions(api) {+ try {+ if (agent.strictSecretMode) return false;+ if (providerManager.providers.size === 0) await providerManager.load();+ let compass = null;+ try {+ const provider = providerManager.getActive();+ if (provider?.config?.providerName === 'webbrain-cloud') compass = provider.config;+ } catch { /* no active provider yet */ }+ const config = await resolveCurrentDecisionConfig(await api.storage.local.get(DECISION_SETTINGS_KEYS), compass);+ return config.provider === 'webgpu_d1' && config.enabled === true;+ } catch { return false; }+}+async function handleMessage(msg, sender) {if (msg.action === 'failure_recovery_response') return handleFailureRecoveryResponse(msg, sender);if (['chat_start', 'chat', 'chat_stream'].includes(msg.action)) assertChatRequestInput(msg);@@ -4325,8 +4342,13 @@ async function handleMessage(msg, sender) {case 'd1_control': {// The D1 controls are on the Decision tab of the Providers page.const api = globalThis.browser || globalThis.chrome;- const providersUrl = api.runtime.getURL('src/ui/providers.html');- if (sender.id !== api.runtime.id || String(sender.url || '').split(/[?#]/)[0] !== providersUrl) return { success: false, error: 'D1 model controls are available only from the extension Providers page.' };+ const page = sender.id === api.runtime.id ? String(sender.url || '').split(/[?#]/)[0] : '';+ // The install guide downloads D1 next to its local chat model: it reads+ // D1's status, checks the GPU, and starts or stops that download. Every+ // other control stays on the Providers page.+ const fromInstall = page === api.runtime.getURL('src/ui/install.html')+ && ['status', 'probe', 'download', 'stop'].includes(msg.command);+ if (page !== api.runtime.getURL('src/ui/providers.html') && !fromInstall) return { success: false, error: 'D1 model controls are available only from the extension Providers page.' };try {await strictSecretModeReady;if (agent.strictSecretMode && !['dispose', 'reset', 'stop', 'clear', 'status'].includes(msg.command)) throw new Error('D1 is disabled in Strict Secret Mode.');@@ -4340,7 +4362,9 @@ async function handleMessage(msg, sender) {// Unload, Remove and switching D1 off in Settings end that request.await api.storage.local.set({ [D1_KEEP_LOADED_KEY]: false });}- return { success: true, result: msg.command === 'consent' ? { consented: true } : await d1Request(msg.command, { consentVersion: D1_CONSENT_VERSION }) };+ const result = msg.command === 'consent' ? { consented: true } : await d1Request(msg.command, { consentVersion: D1_CONSENT_VERSION });+ // The guide says whether D1 answers this profile's decisions.+ return { success: true, result: fromInstall ? { ...result, usedForDecisions: await d1UsedForDecisions(api) } : result };} catch (error) { return { success: false, error: error.message }; }}case 'list_decision_models': {@@ -4363,7 +4387,8 @@ async function handleMessage(msg, sender) {// On tests the configured provider, enabled or not; Auto tests what it// would use now, and there is nothing to test when it uses nothing.const testsConfigured = !msg.settings || ['on', undefined].includes(msg.settings.decisionMode);- let config = msg.settings ? (testsConfigured ? resolveDecisionConfig({ ...msg.settings, decisionMode: 'on' }) : await resolveCurrentDecisionConfig(msg.settings)) : undefined;+ // Auto's D1 needs the experimental-model consent the draft does not carry.+ let config = msg.settings ? (testsConfigured ? resolveDecisionConfig({ ...msg.settings, decisionMode: 'on' }) : await resolveCurrentDecisionConfig({ ...await browser.storage.local.get(D1_CONSENT_KEY), ...msg.settings })) : undefined;if (config && !testsConfigured && !config.enabled) throw new Error('No decision model is in use.');if (config?.provider === 'openrouter' && (!msg.settings.decisionVisionMode || msg.settings.decisionVisionMode === 'auto')) {try { const card = (await listDecisionModels(config)).find(m => m.id === config.model); if (card) config = { ...config, supportsVision: card.supportsVision }; } catch {}diff --git a/src/firefox/src/providers/d1-cache.js b/src/firefox/src/providers/d1-cache.jsindex e245e783d..b9a97ee69 100644--- a/src/firefox/src/providers/d1-cache.js+++ b/src/firefox/src/providers/d1-cache.js@@ -99,3 +99,14 @@ export async function setD1Ready(directory, ready) {const writer = await (await directory.getFileHandle('ready.json', { create: true })).createWritable();await writer.write(encoder.encode(JSON.stringify({ revision: D1_RELEASE.revision, manifestSha256: D1_RELEASE.manifestSha256 }))); await writer.close();}++// Whether the pinned package finished downloading and verifying, from its+// ready marker alone: no Worker, no GPU, and nothing is created when the+// directory is missing. Auto's decisions look here (decision-availability.js).+export async function d1PackageReady(storageManager = globalThis.navigator?.storage) {+ try {+ const directory = await (await storageManager.getDirectory()).getDirectoryHandle(currentCacheName());+ const marker = JSON.parse(await (await (await directory.getFileHandle('ready.json')).getFile()).text());+ return marker?.revision === D1_RELEASE.revision && marker?.manifestSha256 === D1_RELEASE.manifestSha256;+ } catch { return false; }+}diff --git a/src/firefox/src/ui/install.js b/src/firefox/src/ui/install.jsindex 27b5553d6..129ccc79a 100644--- a/src/firefox/src/ui/install.js+++ b/src/firefox/src/ui/install.js@@ -1,4 +1,5 @@import { applyDOMTranslations, t } from './i18n.js';+import { D1_CONSENT_VERSION } from '../providers/d1-config.js';import {initializeCardSpotlight,initializeScenePlayback,@@ -222,6 +223,130 @@ export async function pointWebgpuProviderAtModel(modelId, { runtime = globalThisreturn true;}+// ── D1, the on-device decision model ─────────────────────────────────────+// The same button downloads D1, WebBrain's experimental decision model, next+// to the chat model. D1 has its own worker, so both downloads run at once, and+// D1 loads when its files are in. The click is the consent the note asks for.+// The guide writes no decision settings: Auto uses a downloaded D1 for its+// checks while Compass is not the chat provider (decision-availability.js).++const D1_POLL_MS = 1500;+const D1_POLLING_STATUSES = new Set(['checking', 'downloading']);++export function normalizeD1Snapshot(snapshot = {}) {+ const raw = String(snapshot?.status || '');+ const progress = Math.max(0, Math.min(100, Math.round(Number(snapshot?.progress) || 0)));+ const usedForDecisions = snapshot?.usedForDecisions === true;+ if (snapshot?.loaded === true || raw === 'ready') return { status: 'ready', progress: 100, error: '', usedForDecisions };+ // Downloaded and verified but not loaded: a decision loads it again.+ if (raw === 'cached' || snapshot?.cached === true) return { status: 'saved', progress: 100, error: '', usedForDecisions };+ if (raw === 'checking') return { status: 'checking', progress: 0, error: '', usedForDecisions };+ if (['downloading', 'loading'].includes(raw)) return { status: 'downloading', progress, error: '', usedForDecisions };+ if (raw === 'stopped') return { status: 'paused', progress, error: '', usedForDecisions };+ if (raw === 'error') return { status: 'error', progress: 0, error: String(snapshot?.error || ''), usedForDecisions };+ return { status: 'idle', progress: 0, error: '', usedForDecisions };+}++/** The D1 line for one normalized state; nothing while D1 was never started. */+export function d1View(state = {}) {+ switch (state.status) {+ case 'checking': return { statusKey: 'install.local_model.checking' };+ case 'downloading': return { statusKey: 'install.local_model.d1_downloading', progress: state.progress };+ case 'paused': return { statusKey: 'install.local_model.d1_paused', progress: state.progress };+ // Saved but not loaded yet, D1 loads for the next decision it answers.+ case 'ready': case 'saved': return { statusKey: state.usedForDecisions ? 'install.local_model.d1_ready' : 'install.local_model.d1_saved' };+ case 'unsupported': return { statusKey: 'install.local_model.d1_unsupported' };+ case 'error': return { statusKey: 'install.local_model.d1_error', isError: true };+ default: return { statusKey: '' };+ }+}++export function initializeD1Download({+ documentLike = globalThis.document,+ runtime = globalThis.chrome?.runtime,+ translate = t,+ pollMs = D1_POLL_MS,+} = {}) {+ const line = documentLike?.getElementById?.('local-model-d1');+ if (!line || !runtime?.sendMessage) return null;+ let state = { status: 'idle', progress: 0, error: '', usedForDecisions: false };+ let timer = null;+ let disposed = false;+ let starting = false;+ const command = (name, extra = {}) => backgroundCommand(runtime, 'd1_control', { command: name, ...extra });++ const render = () => {+ const view = d1View(state);+ line.hidden = !view.statusKey;+ line.textContent = view.statusKey ? translate(view.statusKey, { progress: view.progress ?? 0, error: state.error || '' }) : '';+ line.classList?.toggle?.('is-error', view.isError === true);+ };+ const schedule = () => {+ clearTimeout(timer);+ timer = null;+ if (!disposed && D1_POLLING_STATUSES.has(state.status)) timer = setTimeout(() => { void refresh(); }, pollMs);+ };+ const setState = (next) => {+ state = { progress: 0, error: '', usedForDecisions: false, ...next };+ render();+ schedule();+ };++ async function refresh() {+ try {+ const response = await command('status');+ // A guide reopened before D1 was ever started stays silent.+ if (!starting && !disposed) setState(normalizeD1Snapshot(response?.result));+ } catch {+ schedule();+ }+ }++ async function start() {+ if (starting || ['checking', 'downloading', 'ready', 'saved'].includes(state.status)) return;+ starting = true;+ try {+ setState({ status: 'checking' });+ try {+ await command('probe');+ } catch (error) {+ // No GPU D1 can run on: the chat model may still fit.+ setState({ status: 'unsupported', error: error?.message || String(error) });+ return;+ }+ try {+ const response = await command('download', { consent: true, consentVersion: D1_CONSENT_VERSION });+ setState(normalizeD1Snapshot({ status: 'checking', ...response?.result }));+ } catch (error) {+ setState({ status: 'error', error: error?.message || String(error) });+ return;+ }+ } finally {+ starting = false;+ }+ await refresh();+ }++ async function pause() {+ if (!['checking', 'downloading'].includes(state.status)) return;+ try { await command('stop'); } catch { /* the next status read tells */ }+ await refresh();+ }++ render();+ void refresh();+ return {+ start,+ pause,+ refresh,+ getState: () => ({ ...state }),+ dispose() {+ disposed = true;+ clearTimeout(timer);+ },+ };+}+export function initializeLocalModelDownload({documentLike = globalThis.document,runtime = globalThis.chrome?.runtime,@@ -235,6 +360,7 @@ export function initializeLocalModelDownload({const label = documentLike.getElementById('local-model-label');const bar = documentLike.getElementById('local-model-progress');const statusLine = documentLike.getElementById('local-model-status');+ const d1 = initializeD1Download({ documentLike, runtime, translate, pollMs });let state = { status: 'checking', progress: 0, error: '' };let inFlight = false;let pollTimer = null;@@ -291,6 +417,7 @@ export function initializeLocalModelDownload({try {if (view.action === 'pause') {render();+ void d1?.pause();await backgroundCommand(runtime, 'pause_webgpu_download');} else {if (view.action === 'start') {@@ -312,6 +439,8 @@ export function initializeLocalModelDownload({} else {render();}+ // D1 downloads alongside, in its own worker; its line reports it.+ void d1?.start();await backgroundCommand(runtime, 'start_webgpu_download', { model: modelId });}} catch (error) {@@ -336,9 +465,11 @@ export function initializeLocalModelDownload({return {getState: () => ({ ...state }),refresh,+ d1,dispose() {disposed = true;clearTimeout(pollTimer);+ d1?.dispose();},};}diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.jsindex 8e8639ba0..e974ef131 100644--- a/src/firefox/src/ui/locales/ar.js+++ b/src/firefox/src/ui/locales/ar.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'لقطات شاشة كاملة للصفحة','install.chip.dl': 'تنزيلات جماعية','install.local_model.intro': 'ابدأ بنموذج محلي اختياري. وعندما تكون جاهزًا، افتح WebBrain من أسفل هذه الصفحة.',- 'install.local_model.download': 'تنزيل نموذج محلي',- 'install.local_model.note': 'اختياري · نحو 1.45 غيغابايت · يعمل على هذا الجهاز. يمكنك تخطي هذه الخطوة.',+ 'install.local_model.download': 'تنزيل النماذج المحلية',+ 'install.local_model.note': 'اختياري · نحو 1.45 غيغابايت، إضافة إلى 0.95 غيغابايت لـ D1، نموذج القرار التجريبي من WebBrain، من Hugging Face. يعمل كلاهما على هذا الجهاز ويستخدمان ذاكرة وحدة معالجة الرسومات. يمكنك تخطي هذه الخطوة.','install.local_model.checking': 'جارٍ التحقق من هذا المتصفح…','install.local_model.downloading': 'جارٍ تنزيل Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'إيقاف التنزيل مؤقتًا',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'تحتاج النماذج المحلية إلى WebGPU عبر العتاد، ولا يوفّره هذا المتصفح حاليًا.','install.local_model.busy': 'يجري تنزيل نموذج محلي آخر. يمكن أن يبدأ هذا التنزيل بعد انتهائه.','install.local_model.progress_label': 'تنزيل النموذج المحلي',+ 'install.local_model.d1_downloading': 'جارٍ تنزيل D1، نموذج القرار · {progress}%',+ 'install.local_model.d1_paused': 'توقف D1 مؤقتًا عند {progress}%.',+ 'install.local_model.d1_ready': 'D1 جاهز ويجيب على هذا الجهاز عن أسئلة WebBrain السريعة، مثل «هل انتهت هذه المهمة؟».',+ 'install.local_model.d1_saved': 'تم حفظ D1 على هذا الجهاز. لاستخدامه، اختره في الإعدادات ضمن نماذج القرار.',+ 'install.local_model.d1_unsupported': 'لا تستطيع وحدة معالجة الرسومات هذه تشغيل D1، لذا يواصل WebBrain فحوصه المعتادة.',+ 'install.local_model.d1_error': 'توقف D1: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} من {total}',diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.jsindex 389f5d51b..469a365d5 100644--- a/src/firefox/src/ui/locales/bn.js+++ b/src/firefox/src/ui/locales/bn.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'ফুল-পেজ স্ক্রিনশট','install.chip.dl': 'বাল্ক ডাউনলোড','install.local_model.intro': 'চাইলে আগে একটি ঐচ্ছিক লোকাল মডেল ডাউনলোড করুন। প্রস্তুত হলে এই পেজের নিচ থেকে WebBrain খুলুন।',- 'install.local_model.download': 'লোকাল মডেল ডাউনলোড করুন',- 'install.local_model.note': 'ঐচ্ছিক · প্রায় 1.45 GB · এই ডিভাইসেই চলে। এই ধাপটি বাদ দিতে পারেন।',+ 'install.local_model.download': 'লোকাল মডেলগুলো ডাউনলোড করুন',+ 'install.local_model.note': 'ঐচ্ছিক · প্রায় 1.45 GB, সঙ্গে Hugging Face থেকে WebBrain-এর পরীক্ষামূলক ডিসিশন মডেল D1-এর জন্য 0.95 GB। দুটিই এই ডিভাইসে চলে এবং এর GPU মেমরি ব্যবহার করে। এই ধাপটি বাদ দিতে পারেন।','install.local_model.checking': 'এই ব্রাউজার যাচাই করা হচ্ছে…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision ডাউনলোড হচ্ছে · {progress}%','install.local_model.pause': 'ডাউনলোড বিরতি দিন',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'লোকাল মডেলের জন্য হার্ডওয়্যার WebGPU দরকার, যা এই ব্রাউজার এখন দিচ্ছে না।','install.local_model.busy': 'আরেকটি লোকাল মডেল ডাউনলোড হচ্ছে। সেটি শেষ হলে এটি শুরু হতে পারবে।','install.local_model.progress_label': 'লোকাল মডেল ডাউনলোড',+ 'install.local_model.d1_downloading': 'ডিসিশন মডেল D1 ডাউনলোড হচ্ছে · {progress}%',+ 'install.local_model.d1_paused': 'D1 {progress}%-এ বিরতি দেওয়া হয়েছে।',+ 'install.local_model.d1_ready': 'D1 প্রস্তুত, এবং এই ডিভাইসেই WebBrain-এর দ্রুত প্রশ্নের উত্তর দেয়, যেমন “এই কাজটি কি শেষ?”।',+ 'install.local_model.d1_saved': 'D1 এই ডিভাইসে সংরক্ষিত আছে। ব্যবহার করতে সেটিংসে ডিসিশন মডেল অংশ থেকে এটি বেছে নিন।',+ 'install.local_model.d1_unsupported': 'এই GPU D1 চালাতে পারে না, তাই WebBrain তার সাধারণ চেকগুলোই রাখে।',+ 'install.local_model.d1_error': 'D1 থেমে গেছে: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "সংযোগ বিচ্ছিন্ন",diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.jsindex 381ef757a..1bd599bc1 100644--- a/src/firefox/src/ui/locales/de.js+++ b/src/firefox/src/ui/locales/de.js@@ -109,8 +109,8 @@ export default {'install.chip.shot': 'Ganzseiten-Screenshots','install.chip.dl': 'Massen-Downloads','install.local_model.intro': 'Beginnen Sie mit einem optionalen lokalen Modell. Wenn Sie bereit sind, öffnen Sie WebBrain unten auf dieser Seite.',- 'install.local_model.download': 'Lokales Modell herunterladen',- 'install.local_model.note': 'Optional · etwa 1,45 GB · läuft auf diesem Gerät. Sie können das überspringen.',+ 'install.local_model.download': 'Lokale Modelle herunterladen',+ 'install.local_model.note': 'Optional · etwa 1,45 GB, dazu 0,95 GB für D1, das experimentelle Entscheidungsmodell von WebBrain, von Hugging Face. Beide laufen auf diesem Gerät und nutzen seinen GPU-Speicher. Sie können das überspringen.','install.local_model.checking': 'Browser wird geprüft…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision wird heruntergeladen · {progress} %','install.local_model.pause': 'Download pausieren',@@ -124,6 +124,12 @@ export default {'install.local_model.unsupported': 'Lokale Modelle brauchen Hardware-WebGPU, das dieser Browser gerade nicht bereitstellt.','install.local_model.busy': 'Gerade wird ein anderes lokales Modell heruntergeladen. Dieses kann danach starten.','install.local_model.progress_label': 'Download des lokalen Modells',+ 'install.local_model.d1_downloading': 'D1, das Entscheidungsmodell, wird heruntergeladen · {progress} %',+ 'install.local_model.d1_paused': 'D1 bei {progress} % pausiert.',+ 'install.local_model.d1_ready': 'D1 ist bereit und beantwortet die kurzen Fragen von WebBrain, etwa „Ist diese Aufgabe erledigt?“, auf diesem Gerät.',+ 'install.local_model.d1_saved': 'D1 ist auf diesem Gerät gespeichert. Um es zu nutzen, wählen Sie es in den Einstellungen unter Entscheidungsmodelle.',+ 'install.local_model.d1_unsupported': 'Diese GPU kann D1 nicht ausführen, daher behält WebBrain seine üblichen Prüfungen bei.',+ 'install.local_model.d1_error': 'D1 wurde gestoppt: {error}','sp.status.disconnected': 'Getrennt','sp.status.connected': 'Verbunden ({model})','sp.status.error': 'Fehler: {msg}',diff --git a/src/firefox/src/ui/locales/decision-copy.mjs b/src/firefox/src/ui/locales/decision-copy.mjsindex 4e52ed5cc..5ed4fb0b0 100644--- a/src/firefox/src/ui/locales/decision-copy.mjs+++ b/src/firefox/src/ui/locales/decision-copy.mjs@@ -5,11 +5,11 @@ export const decisionEnglish = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "On","st.decision.mode.off": "Off",- "st.decision.mode.auto_desc": "Uses WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.",- "st.decision.mode.auto_desc_firefox": "Uses WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.",+ "st.decision.mode.auto_desc": "Uses D1 once it is downloaded on this device, or WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.",+ "st.decision.mode.auto_desc_firefox": "Uses D1 once it is downloaded on this device, or WebBrain Cloud’s decision model while Compass is your chat provider. Otherwise none.","st.decision.mode.on_desc": "Uses the model you set up below for every decision. To leave some to your chat model, open “Choose which decisions use it”.","st.decision.mode.off_desc": "Never uses a decision model, WebBrain Cloud’s included. Your chat model still checks whether tasks are finished.",- "st.decision.status.local": "In use: Ternary Bonsai 2 2B Vision, on this device. It checks whether tasks and scheduled runs are finished.",+ "st.decision.status.local": "In use: D1, on this device. It checks whether tasks and scheduled runs are finished.","st.decision.status.compass": "In use: WebBrain Cloud’s decision model, while Compass is your chat provider.","st.decision.status.none": "Not in use. Choose On to set up a decision model.","st.decision.status.none_firefox": "Not in use. Choose On to set up a decision model.",@@ -52,11 +52,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Otomatik","st.decision.mode.on": "Açık","st.decision.mode.off": "Kapalı",- "st.decision.mode.auto_desc": "Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.",- "st.decision.mode.auto_desc_firefox": "Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.",+ "st.decision.mode.auto_desc": "D1 bu cihaza indirildiğinde onu, Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.",+ "st.decision.mode.auto_desc_firefox": "D1 bu cihaza indirildiğinde onu, Compass sohbet sağlayıcınızken WebBrain Cloud’un karar modelini kullanır. Aksi hâlde hiçbirini kullanmaz.","st.decision.mode.on_desc": "Aşağıda ayarladığınız modeli her karar için kullanır. Bazılarını sohbet modelinize bırakmak için “Hangi kararlarda kullanılacağını seçin” bölümünü açın.","st.decision.mode.off_desc": "Hiçbir karar modeli kullanmaz, WebBrain Cloud’unki de dahil. Görevlerin bitip bitmediğini sohbet modeliniz yine kontrol eder.",- "st.decision.status.local": "Kullanılıyor: bu cihazda Ternary Bonsai 2 2B Vision. Görevlerin ve zamanlanmış çalışmaların bitip bitmediğini kontrol eder.",+ "st.decision.status.local": "Kullanılıyor: bu cihazda D1. Görevlerin ve zamanlanmış çalışmaların bitip bitmediğini kontrol eder.","st.decision.status.compass": "Kullanılıyor: Compass sohbet sağlayıcınız olduğu için WebBrain Cloud’un karar modeli.","st.decision.status.none": "Kullanılmıyor. Bir karar modeli ayarlamak için Açık’ı seçin.","st.decision.status.none_firefox": "Kullanılmıyor. Bir karar modeli ayarlamak için Açık’ı seçin.",@@ -124,11 +124,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automático","st.decision.mode.on": "Activado","st.decision.mode.off": "Desactivado",- "st.decision.mode.auto_desc": "Usa el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.",- "st.decision.mode.auto_desc_firefox": "Usa el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.",+ "st.decision.mode.auto_desc": "Usa D1 cuando está descargado en este dispositivo, o el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.",+ "st.decision.mode.auto_desc_firefox": "Usa D1 cuando está descargado en este dispositivo, o el modelo de decisión de WebBrain Cloud mientras Compass sea tu proveedor de chat. Si no, ninguno.","st.decision.mode.on_desc": "Usa el modelo que configures abajo para todas las decisiones. Para dejar algunas a tu modelo de chat, abre «Elige qué decisiones lo usan».","st.decision.mode.off_desc": "Nunca usa un modelo de decisión, ni siquiera el de WebBrain Cloud. Tu modelo de chat sigue comprobando si las tareas están terminadas.",- "st.decision.status.local": "En uso: Ternary Bonsai 2 2B Vision, en este dispositivo. Comprueba si las tareas y las ejecuciones programadas han terminado.",+ "st.decision.status.local": "En uso: D1, en este dispositivo. Comprueba si las tareas y las ejecuciones programadas han terminado.","st.decision.status.compass": "En uso: el modelo de decisión de WebBrain Cloud, mientras Compass sea tu proveedor de chat.","st.decision.status.none": "Sin uso. Elige Activado para configurar un modelo de decisión.","st.decision.status.none_firefox": "Sin uso. Elige Activado para configurar un modelo de decisión.",@@ -178,11 +178,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "Activé","st.decision.mode.off": "Désactivé",- "st.decision.mode.auto_desc": "Utilise le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.",- "st.decision.mode.auto_desc_firefox": "Utilise le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.",+ "st.decision.mode.auto_desc": "Utilise D1 une fois téléchargé sur cet appareil, ou le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.",+ "st.decision.mode.auto_desc_firefox": "Utilise D1 une fois téléchargé sur cet appareil, ou le modèle de décision de WebBrain Cloud tant que Compass est votre fournisseur de chat. Sinon, aucun.","st.decision.mode.on_desc": "Utilise le modèle configuré ci-dessous pour toutes les décisions. Pour en laisser certaines à votre modèle de chat, ouvrez « Choisir les décisions qui l’utilisent ».","st.decision.mode.off_desc": "N’utilise jamais de modèle de décision, y compris celui de WebBrain Cloud. Votre modèle de chat vérifie toujours si les tâches sont terminées.",- "st.decision.status.local": "Utilisé : Ternary Bonsai 2 2B Vision, sur cet appareil. Il vérifie si les tâches et les exécutions planifiées sont terminées.",+ "st.decision.status.local": "Utilisé : D1, sur cet appareil. Il vérifie si les tâches et les exécutions planifiées sont terminées.","st.decision.status.compass": "Utilisé : le modèle de décision de WebBrain Cloud, tant que Compass est votre fournisseur de chat.","st.decision.status.none": "Non utilisé. Choisissez Activé pour configurer un modèle de décision.","st.decision.status.none_firefox": "Non utilisé. Choisissez Activé pour configurer un modèle de décision.",@@ -232,11 +232,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automatisch","st.decision.mode.on": "An","st.decision.mode.off": "Aus",- "st.decision.mode.auto_desc": "Verwendet das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.",- "st.decision.mode.auto_desc_firefox": "Verwendet das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.",+ "st.decision.mode.auto_desc": "Verwendet D1, sobald es auf diesem Gerät heruntergeladen ist, oder das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.",+ "st.decision.mode.auto_desc_firefox": "Verwendet D1, sobald es auf diesem Gerät heruntergeladen ist, oder das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist. Sonst keines.","st.decision.mode.on_desc": "Verwendet das unten eingerichtete Modell für jede Entscheidung. Um einige Ihrem Chatmodell zu überlassen, öffnen Sie „Auswählen, welche Entscheidungen es nutzen“.","st.decision.mode.off_desc": "Verwendet nie ein Entscheidungsmodell, auch nicht das von WebBrain Cloud. Ihr Chatmodell prüft weiterhin, ob Aufgaben erledigt sind.",- "st.decision.status.local": "In Verwendung: Ternary Bonsai 2 2B Vision, auf diesem Gerät. Es prüft, ob Aufgaben und geplante Ausführungen erledigt sind.",+ "st.decision.status.local": "In Verwendung: D1, auf diesem Gerät. Es prüft, ob Aufgaben und geplante Ausführungen erledigt sind.","st.decision.status.compass": "In Verwendung: das Entscheidungsmodell von WebBrain Cloud, solange Compass Ihr Chat-Anbieter ist.","st.decision.status.none": "Nicht in Verwendung. Wählen Sie An, um ein Entscheidungsmodell einzurichten.","st.decision.status.none_firefox": "Nicht in Verwendung. Wählen Sie An, um ein Entscheidungsmodell einzurichten.",@@ -286,11 +286,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automatisch","st.decision.mode.on": "Aan","st.decision.mode.off": "Uit",- "st.decision.mode.auto_desc": "Gebruikt het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.",- "st.decision.mode.auto_desc_firefox": "Gebruikt het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.",+ "st.decision.mode.auto_desc": "Gebruikt D1 zodra het op dit apparaat is gedownload, of het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.",+ "st.decision.mode.auto_desc_firefox": "Gebruikt D1 zodra het op dit apparaat is gedownload, of het beslismodel van WebBrain Cloud zolang Compass je chatprovider is. Anders geen.","st.decision.mode.on_desc": "Gebruikt het model dat je hieronder instelt voor elke beslissing. Wil je sommige aan je chatmodel overlaten, open dan “Kies welke beslissingen het gebruiken”.","st.decision.mode.off_desc": "Gebruikt nooit een beslismodel, ook niet dat van WebBrain Cloud. Je chatmodel controleert nog steeds of taken klaar zijn.",- "st.decision.status.local": "In gebruik: Ternary Bonsai 2 2B Vision, op dit apparaat. Het controleert of taken en geplande uitvoeringen klaar zijn.",+ "st.decision.status.local": "In gebruik: D1, op dit apparaat. Het controleert of taken en geplande uitvoeringen klaar zijn.","st.decision.status.compass": "In gebruik: het beslismodel van WebBrain Cloud, zolang Compass je chatprovider is.","st.decision.status.none": "Niet in gebruik. Kies Aan om een beslismodel in te stellen.","st.decision.status.none_firefox": "Niet in gebruik. Kies Aan om een beslismodel in te stellen.",@@ -340,11 +340,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automático","st.decision.mode.on": "Ativado","st.decision.mode.off": "Desativado",- "st.decision.mode.auto_desc": "Usa o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.",- "st.decision.mode.auto_desc_firefox": "Usa o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.",+ "st.decision.mode.auto_desc": "Usa o D1 quando ele está baixado neste dispositivo, ou o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.",+ "st.decision.mode.auto_desc_firefox": "Usa o D1 quando ele está baixado neste dispositivo, ou o modelo de decisão do WebBrain Cloud enquanto o Compass for seu provedor de chat. Caso contrário, nenhum.","st.decision.mode.on_desc": "Usa o modelo configurado abaixo em todas as decisões. Para deixar algumas para seu modelo de chat, abra “Escolha quais decisões o usam”.","st.decision.mode.off_desc": "Nunca usa um modelo de decisão, nem o do WebBrain Cloud. Seu modelo de chat continua verificando se as tarefas terminaram.",- "st.decision.status.local": "Em uso: Ternary Bonsai 2 2B Vision, neste dispositivo. Ele verifica se tarefas e execuções agendadas terminaram.",+ "st.decision.status.local": "Em uso: D1, neste dispositivo. Ele verifica se tarefas e execuções agendadas terminaram.","st.decision.status.compass": "Em uso: o modelo de decisão do WebBrain Cloud, enquanto o Compass for seu provedor de chat.","st.decision.status.none": "Fora de uso. Escolha Ativado para configurar um modelo de decisão.","st.decision.status.none_firefox": "Fora de uso. Escolha Ativado para configurar um modelo de decisão.",@@ -394,11 +394,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Automatycznie","st.decision.mode.on": "Włączone","st.decision.mode.off": "Wyłączone",- "st.decision.mode.auto_desc": "Używa modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.",- "st.decision.mode.auto_desc_firefox": "Używa modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.",+ "st.decision.mode.auto_desc": "Używa D1, gdy jest pobrany na to urządzenie, albo modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.",+ "st.decision.mode.auto_desc_firefox": "Używa D1, gdy jest pobrany na to urządzenie, albo modelu decyzyjnego WebBrain Cloud, gdy Compass jest Twoim dostawcą czatu. W przeciwnym razie żadnego.","st.decision.mode.on_desc": "Używa skonfigurowanego niżej modelu przy każdej decyzji. Aby część zostawić modelowi czatu, otwórz „Wybierz, które decyzje go używają”.","st.decision.mode.off_desc": "Nigdy nie używa modelu decyzyjnego, także tego z WebBrain Cloud. Model czatu nadal sprawdza, czy zadania są skończone.",- "st.decision.status.local": "W użyciu: Ternary Bonsai 2 2B Vision, na tym urządzeniu. Sprawdza, czy zadania i zaplanowane uruchomienia są skończone.",+ "st.decision.status.local": "W użyciu: D1, na tym urządzeniu. Sprawdza, czy zadania i zaplanowane uruchomienia są skończone.","st.decision.status.compass": "W użyciu: model decyzyjny WebBrain Cloud, dopóki Compass jest Twoim dostawcą czatu.","st.decision.status.none": "Nieużywany. Wybierz Włączone, aby skonfigurować model decyzyjny.","st.decision.status.none_firefox": "Nieużywany. Wybierz Włączone, aby skonfigurować model decyzyjny.",@@ -448,11 +448,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Авто","st.decision.mode.on": "Вкл.","st.decision.mode.off": "Выкл.",- "st.decision.mode.auto_desc": "Использует модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.",- "st.decision.mode.auto_desc_firefox": "Использует модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.",+ "st.decision.mode.auto_desc": "Использует модель D1, когда она загружена на это устройство, или модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.",+ "st.decision.mode.auto_desc_firefox": "Использует модель D1, когда она загружена на это устройство, или модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер. Иначе никакую.","st.decision.mode.on_desc": "Использует настроенную ниже модель для всех решений. Чтобы оставить часть чат-модели, откройте «Выберите, какие решения её используют».","st.decision.mode.off_desc": "Никогда не использует модель решений, включая модель WebBrain Cloud. Чат-модель по-прежнему проверяет, выполнены ли задачи.",- "st.decision.status.local": "Используется: Ternary Bonsai 2 2B Vision на этом устройстве. Проверяет, выполнены ли задачи и запланированные запуски.",+ "st.decision.status.local": "Используется: D1 на этом устройстве. Проверяет, выполнены ли задачи и запланированные запуски.","st.decision.status.compass": "Используется: модель решений WebBrain Cloud, пока Compass — ваш чат-провайдер.","st.decision.status.none": "Не используется. Выберите «Вкл.», чтобы настроить модель решений.","st.decision.status.none_firefox": "Не используется. Выберите «Вкл.», чтобы настроить модель решений.",@@ -502,11 +502,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Авто","st.decision.mode.on": "Увімк.","st.decision.mode.off": "Вимк.",- "st.decision.mode.auto_desc": "Використовує модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.",- "st.decision.mode.auto_desc_firefox": "Використовує модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.",+ "st.decision.mode.auto_desc": "Використовує модель D1, коли її завантажено на цей пристрій, або модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.",+ "st.decision.mode.auto_desc_firefox": "Використовує модель D1, коли її завантажено на цей пристрій, або модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер. Інакше жодної.","st.decision.mode.on_desc": "Використовує налаштовану нижче модель для всіх рішень. Щоб залишити частину чат-моделі, відкрийте «Виберіть, які рішення її використовують».","st.decision.mode.off_desc": "Ніколи не використовує модель рішень, зокрема модель WebBrain Cloud. Чат-модель і далі перевіряє, чи виконано завдання.",- "st.decision.status.local": "Використовується: Ternary Bonsai 2 2B Vision на цьому пристрої. Перевіряє, чи виконано завдання та заплановані запуски.",+ "st.decision.status.local": "Використовується: D1 на цьому пристрої. Перевіряє, чи виконано завдання та заплановані запуски.","st.decision.status.compass": "Використовується: модель рішень WebBrain Cloud, поки Compass — ваш чат-провайдер.","st.decision.status.none": "Не використовується. Виберіть «Увімк.», щоб налаштувати модель рішень.","st.decision.status.none_firefox": "Не використовується. Виберіть «Увімк.», щоб налаштувати модель рішень.",@@ -556,11 +556,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "自动","st.decision.mode.on": "开启","st.decision.mode.off": "关闭",- "st.decision.mode.auto_desc": "当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。",- "st.decision.mode.auto_desc_firefox": "当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。",+ "st.decision.mode.auto_desc": "当 D1 已下载到此设备时使用它;当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。",+ "st.decision.mode.auto_desc_firefox": "当 D1 已下载到此设备时使用它;当 Compass 是你的聊天提供商时使用 WebBrain Cloud 的决策模型。否则不使用。","st.decision.mode.on_desc": "所有决策都使用你在下方设置的模型。若想把部分决策留给聊天模型,请打开“选择哪些决策使用它”。","st.decision.mode.off_desc": "从不使用决策模型,包括 WebBrain Cloud 的。你的聊天模型仍会检查任务是否完成。",- "st.decision.status.local": "使用中:Ternary Bonsai 2 2B Vision,在此设备上运行。它会检查任务和计划运行是否完成。",+ "st.decision.status.local": "使用中:D1,在此设备上运行。它会检查任务和计划运行是否完成。","st.decision.status.compass": "使用中:WebBrain Cloud 的决策模型(Compass 是你的聊天提供商时)。","st.decision.status.none": "未使用。选择“开启”来设置决策模型。","st.decision.status.none_firefox": "未使用。选择“开启”来设置决策模型。",@@ -610,11 +610,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "自動","st.decision.mode.on": "オン","st.decision.mode.off": "オフ",- "st.decision.mode.auto_desc": "Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。",- "st.decision.mode.auto_desc_firefox": "Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。",+ "st.decision.mode.auto_desc": "D1 がこのデバイスにダウンロード済みならそれを、Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。",+ "st.decision.mode.auto_desc_firefox": "D1 がこのデバイスにダウンロード済みならそれを、Compass がチャットプロバイダーの間は WebBrain Cloud の判定モデルを使います。それ以外は使いません。","st.decision.mode.on_desc": "下で設定したモデルをすべての判定に使います。一部をチャットモデルに任せるには「使う判定を選ぶ」を開いてください。","st.decision.mode.off_desc": "判定モデルを一切使いません(WebBrain Cloud のものも含む)。タスクの完了確認は引き続きチャットモデルが行います。",- "st.decision.status.local": "使用中:このデバイスの Ternary Bonsai 2 2B Vision。タスクとスケジュール実行が完了したかを確認します。",+ "st.decision.status.local": "使用中:このデバイスの D1。タスクとスケジュール実行が完了したかを確認します。","st.decision.status.compass": "使用中:WebBrain Cloud の判定モデル(Compass がチャットプロバイダーの間)。","st.decision.status.none": "未使用。判定モデルを設定するにはオンを選んでください。","st.decision.status.none_firefox": "未使用。判定モデルを設定するにはオンを選んでください。",@@ -664,11 +664,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "자동","st.decision.mode.on": "켜기","st.decision.mode.off": "끄기",- "st.decision.mode.auto_desc": "Compass가 채팅 제공자인 동안 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.",- "st.decision.mode.auto_desc_firefox": "Compass가 채팅 제공자인 동안 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.",+ "st.decision.mode.auto_desc": "D1이 이 기기에 다운로드되어 있으면 그것을, Compass가 채팅 제공자인 동안에는 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.",+ "st.decision.mode.auto_desc_firefox": "D1이 이 기기에 다운로드되어 있으면 그것을, Compass가 채팅 제공자인 동안에는 WebBrain Cloud의 결정 모델을 사용합니다. 그 외에는 사용하지 않습니다.","st.decision.mode.on_desc": "아래에서 설정한 모델을 모든 결정에 사용합니다. 일부를 채팅 모델에 맡기려면 \"사용할 결정 선택\"을 여세요.","st.decision.mode.off_desc": "결정 모델을 전혀 사용하지 않습니다(WebBrain Cloud 포함). 작업 완료 여부는 계속 채팅 모델이 확인합니다.",- "st.decision.status.local": "사용 중: 이 기기의 Ternary Bonsai 2 2B Vision. 작업과 예약 실행이 끝났는지 확인합니다.",+ "st.decision.status.local": "사용 중: 이 기기의 D1. 작업과 예약 실행이 끝났는지 확인합니다.","st.decision.status.compass": "사용 중: WebBrain Cloud의 결정 모델(Compass가 채팅 제공자인 동안).","st.decision.status.none": "사용 안 함. 결정 모델을 설정하려면 켜기를 선택하세요.","st.decision.status.none_firefox": "사용 안 함. 결정 모델을 설정하려면 켜기를 선택하세요.",@@ -718,11 +718,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "تلقائي","st.decision.mode.on": "تشغيل","st.decision.mode.off": "إيقاف",- "st.decision.mode.auto_desc": "يستخدم نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.",- "st.decision.mode.auto_desc_firefox": "يستخدم نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.",+ "st.decision.mode.auto_desc": "يستخدم D1 بعد تنزيله على هذا الجهاز، أو نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.",+ "st.decision.mode.auto_desc_firefox": "يستخدم D1 بعد تنزيله على هذا الجهاز، أو نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك. وإلا فلا شيء.","st.decision.mode.on_desc": "يستخدم النموذج الذي تضبطه أدناه في كل قرار. لترك بعضها لنموذج الدردشة، افتح «اختر القرارات التي تستخدمه».","st.decision.mode.off_desc": "لا يستخدم أي نموذج قرار، بما في ذلك نموذج WebBrain Cloud. يواصل نموذج الدردشة التحقق من انتهاء المهام.",- "st.decision.status.local": "قيد الاستخدام: Ternary Bonsai 2 2B Vision على هذا الجهاز. يتحقق من انتهاء المهام والتشغيلات المجدولة.",+ "st.decision.status.local": "قيد الاستخدام: D1 على هذا الجهاز. يتحقق من انتهاء المهام والتشغيلات المجدولة.","st.decision.status.compass": "قيد الاستخدام: نموذج القرار من WebBrain Cloud ما دام Compass مزوّد الدردشة لديك.","st.decision.status.none": "غير مستخدم. اختر تشغيل لإعداد نموذج قرار.","st.decision.status.none_firefox": "غير مستخدم. اختر تشغيل لإعداد نموذج قرار.",@@ -772,11 +772,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "אוטומטי","st.decision.mode.on": "פועל","st.decision.mode.off": "כבוי",- "st.decision.mode.auto_desc": "משתמש במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.",- "st.decision.mode.auto_desc_firefox": "משתמש במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.",+ "st.decision.mode.auto_desc": "משתמש ב-D1 כשהוא הורד למכשיר הזה, או במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.",+ "st.decision.mode.auto_desc_firefox": "משתמש ב-D1 כשהוא הורד למכשיר הזה, או במודל ההחלטות של WebBrain Cloud כל עוד Compass הוא ספק הצ’אט שלך. אחרת באף אחד.","st.decision.mode.on_desc": "משתמש במודל שתגדיר למטה לכל החלטה. כדי להשאיר חלק למודל הצ’אט, פתח את \"בחר אילו החלטות משתמשות בו\".","st.decision.mode.off_desc": "אף פעם לא משתמש במודל החלטות, כולל של WebBrain Cloud. מודל הצ’אט עדיין בודק אם משימות הסתיימו.",- "st.decision.status.local": "בשימוש: Ternary Bonsai 2 2B Vision, במכשיר הזה. הוא בודק אם משימות והרצות מתוזמנות הסתיימו.",+ "st.decision.status.local": "בשימוש: D1, במכשיר הזה. הוא בודק אם משימות והרצות מתוזמנות הסתיימו.","st.decision.status.compass": "בשימוש: מודל ההחלטות של WebBrain Cloud, כל עוד Compass הוא ספק הצ’אט שלך.","st.decision.status.none": "לא בשימוש. בחר פועל כדי להגדיר מודל החלטות.","st.decision.status.none_firefox": "לא בשימוש. בחר פועל כדי להגדיר מודל החלטות.",@@ -826,11 +826,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "خودکار","st.decision.mode.on": "روشن","st.decision.mode.off": "خاموش",- "st.decision.mode.auto_desc": "تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud استفاده میکند. در غیر این صورت از هیچکدام.",- "st.decision.mode.auto_desc_firefox": "تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud استفاده میکند. در غیر این صورت از هیچکدام.",+ "st.decision.mode.auto_desc": "وقتی D1 روی این دستگاه دانلود شده باشد از آن استفاده میکند، یا تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud. در غیر این صورت از هیچکدام.",+ "st.decision.mode.auto_desc_firefox": "وقتی D1 روی این دستگاه دانلود شده باشد از آن استفاده میکند، یا تا وقتی Compass ارائهدهندهٔ گفتگوی شماست از مدل تصمیم WebBrain Cloud. در غیر این صورت از هیچکدام.","st.decision.mode.on_desc": "برای همهٔ تصمیمها از مدلی که پایین تنظیم میکنید استفاده میکند. برای سپردن برخی به مدل گفتگو، «انتخاب کنید کدام تصمیمها از آن استفاده کنند» را باز کنید.","st.decision.mode.off_desc": "هرگز از مدل تصمیم استفاده نمیکند، حتی مدل WebBrain Cloud. مدل گفتگوی شما همچنان تمامشدن کارها را بررسی میکند.",- "st.decision.status.local": "در حال استفاده: Ternary Bonsai 2 2B Vision روی این دستگاه. بررسی میکند کارها و اجراهای زمانبندیشده تمام شدهاند یا نه.",+ "st.decision.status.local": "در حال استفاده: D1 روی این دستگاه. بررسی میکند کارها و اجراهای زمانبندیشده تمام شدهاند یا نه.","st.decision.status.compass": "در حال استفاده: مدل تصمیم WebBrain Cloud، تا وقتی Compass ارائهدهندهٔ گفتگوی شماست.","st.decision.status.none": "استفاده نمیشود. برای تنظیم مدل تصمیم، روشن را انتخاب کنید.","st.decision.status.none_firefox": "استفاده نمیشود. برای تنظیم مدل تصمیم، روشن را انتخاب کنید.",@@ -880,11 +880,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "ऑटो","st.decision.mode.on": "चालू","st.decision.mode.off": "बंद",- "st.decision.mode.auto_desc": "जब तक Compass आपका चैट प्रदाता है, WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।",- "st.decision.mode.auto_desc_firefox": "जब तक Compass आपका चैट प्रदाता है, WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।",+ "st.decision.mode.auto_desc": "इस डिवाइस पर डाउनलोड होने के बाद D1 का, या जब तक Compass आपका चैट प्रदाता है तब तक WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।",+ "st.decision.mode.auto_desc_firefox": "इस डिवाइस पर डाउनलोड होने के बाद D1 का, या जब तक Compass आपका चैट प्रदाता है तब तक WebBrain Cloud के निर्णय मॉडल का उपयोग करता है। वरना किसी का नहीं।","st.decision.mode.on_desc": "हर निर्णय के लिए नीचे सेट किए गए मॉडल का उपयोग करता है। कुछ को चैट मॉडल पर छोड़ने के लिए \"चुनें कि कौन-से निर्णय इसका उपयोग करें\" खोलें।","st.decision.mode.off_desc": "कभी निर्णय मॉडल का उपयोग नहीं करता, WebBrain Cloud का भी नहीं। आपका चैट मॉडल अब भी जाँचता है कि काम पूरे हुए या नहीं।",- "st.decision.status.local": "उपयोग में: Ternary Bonsai 2 2B Vision, इस डिवाइस पर। यह जाँचता है कि काम और शेड्यूल किए गए रन पूरे हुए या नहीं।",+ "st.decision.status.local": "उपयोग में: D1, इस डिवाइस पर। यह जाँचता है कि काम और शेड्यूल किए गए रन पूरे हुए या नहीं।","st.decision.status.compass": "उपयोग में: WebBrain Cloud का निर्णय मॉडल, जब तक Compass आपका चैट प्रदाता है।","st.decision.status.none": "उपयोग में नहीं। निर्णय मॉडल सेट करने के लिए चालू चुनें।","st.decision.status.none_firefox": "उपयोग में नहीं। निर्णय मॉडल सेट करने के लिए चालू चुनें।",@@ -934,11 +934,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "অটো","st.decision.mode.on": "চালু","st.decision.mode.off": "বন্ধ",- "st.decision.mode.auto_desc": "Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।",- "st.decision.mode.auto_desc_firefox": "Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।",+ "st.decision.mode.auto_desc": "এই ডিভাইসে ডাউনলোড হলে D1, বা Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।",+ "st.decision.mode.auto_desc_firefox": "এই ডিভাইসে ডাউনলোড হলে D1, বা Compass আপনার চ্যাট প্রদানকারী থাকা অবধি WebBrain Cloud-এর ডিসিশন মডেল ব্যবহার করে। নইলে কোনোটিই নয়।","st.decision.mode.on_desc": "প্রতিটি সিদ্ধান্তে নিচে সেট করা মডেল ব্যবহার করে। কিছু সিদ্ধান্ত চ্যাট মডেলের হাতে রাখতে \"কোন সিদ্ধান্তে এটি ব্যবহার হবে বেছে নিন\" খুলুন।","st.decision.mode.off_desc": "কখনো ডিসিশন মডেল ব্যবহার করে না, WebBrain Cloud-এরটিও নয়। আপনার চ্যাট মডেল এখনও কাজ শেষ হয়েছে কি না যাচাই করে।",- "st.decision.status.local": "ব্যবহৃত হচ্ছে: এই ডিভাইসে Ternary Bonsai 2 2B Vision। এটি যাচাই করে কাজ ও নির্ধারিত রান শেষ হয়েছে কি না।",+ "st.decision.status.local": "ব্যবহৃত হচ্ছে: এই ডিভাইসে D1। এটি যাচাই করে কাজ ও নির্ধারিত রান শেষ হয়েছে কি না।","st.decision.status.compass": "ব্যবহৃত হচ্ছে: WebBrain Cloud-এর ডিসিশন মডেল, Compass আপনার চ্যাট প্রদানকারী থাকা অবধি।","st.decision.status.none": "ব্যবহৃত হচ্ছে না। ডিসিশন মডেল সেট করতে চালু বেছে নিন।","st.decision.status.none_firefox": "ব্যবহৃত হচ্ছে না। ডিসিশন মডেল সেট করতে চালু বেছে নিন।",@@ -988,11 +988,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Otomatis","st.decision.mode.on": "Aktif","st.decision.mode.off": "Nonaktif",- "st.decision.mode.auto_desc": "Menggunakan model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.",- "st.decision.mode.auto_desc_firefox": "Menggunakan model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.",+ "st.decision.mode.auto_desc": "Menggunakan D1 setelah diunduh di perangkat ini, atau model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.",+ "st.decision.mode.auto_desc_firefox": "Menggunakan D1 setelah diunduh di perangkat ini, atau model keputusan WebBrain Cloud selama Compass menjadi penyedia chat Anda. Selain itu, tidak ada.","st.decision.mode.on_desc": "Menggunakan model yang Anda atur di bawah untuk setiap keputusan. Untuk menyerahkan sebagian ke model chat, buka “Pilih keputusan yang memakainya”.","st.decision.mode.off_desc": "Tidak pernah menggunakan model keputusan, termasuk milik WebBrain Cloud. Model chat Anda tetap memeriksa apakah tugas sudah selesai.",- "st.decision.status.local": "Dipakai: Ternary Bonsai 2 2B Vision, di perangkat ini. Memeriksa apakah tugas dan jalannya jadwal sudah selesai.",+ "st.decision.status.local": "Dipakai: D1, di perangkat ini. Memeriksa apakah tugas dan jalannya jadwal sudah selesai.","st.decision.status.compass": "Dipakai: model keputusan WebBrain Cloud, selama Compass menjadi penyedia chat Anda.","st.decision.status.none": "Tidak dipakai. Pilih Aktif untuk menyiapkan model keputusan.","st.decision.status.none_firefox": "Tidak dipakai. Pilih Aktif untuk menyiapkan model keputusan.",@@ -1042,11 +1042,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "Hidup","st.decision.mode.off": "Mati",- "st.decision.mode.auto_desc": "Menggunakan model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.",- "st.decision.mode.auto_desc_firefox": "Menggunakan model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.",+ "st.decision.mode.auto_desc": "Menggunakan D1 setelah dimuat turun pada peranti ini, atau model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.",+ "st.decision.mode.auto_desc_firefox": "Menggunakan D1 setelah dimuat turun pada peranti ini, atau model keputusan WebBrain Cloud selagi Compass ialah penyedia sembang anda. Jika tidak, tiada.","st.decision.mode.on_desc": "Menggunakan model yang anda tetapkan di bawah untuk setiap keputusan. Untuk menyerahkan sebahagian kepada model sembang, buka “Pilih keputusan yang menggunakannya”.","st.decision.mode.off_desc": "Tidak pernah menggunakan model keputusan, termasuk milik WebBrain Cloud. Model sembang anda masih menyemak sama ada tugas telah selesai.",- "st.decision.status.local": "Digunakan: Ternary Bonsai 2 2B Vision, pada peranti ini. Ia menyemak sama ada tugas dan larian berjadual telah selesai.",+ "st.decision.status.local": "Digunakan: D1, pada peranti ini. Ia menyemak sama ada tugas dan larian berjadual telah selesai.","st.decision.status.compass": "Digunakan: model keputusan WebBrain Cloud, selagi Compass ialah penyedia sembang anda.","st.decision.status.none": "Tidak digunakan. Pilih Hidup untuk menyediakan model keputusan.","st.decision.status.none_firefox": "Tidak digunakan. Pilih Hidup untuk menyediakan model keputusan.",@@ -1096,11 +1096,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Auto","st.decision.mode.on": "Naka-on","st.decision.mode.off": "Naka-off",- "st.decision.mode.auto_desc": "Ginagamit ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.",- "st.decision.mode.auto_desc_firefox": "Ginagamit ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.",+ "st.decision.mode.auto_desc": "Ginagamit ang D1 kapag na-download na ito sa device na ito, o ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.",+ "st.decision.mode.auto_desc_firefox": "Ginagamit ang D1 kapag na-download na ito sa device na ito, o ang decision model ng WebBrain Cloud habang Compass ang iyong chat provider. Kung hindi, wala.","st.decision.mode.on_desc": "Ginagamit ang model na itatakda mo sa ibaba para sa bawat desisyon. Para iwan ang ilan sa chat model mo, buksan ang “Piliin kung aling mga desisyon ang gagamit nito”.","st.decision.mode.off_desc": "Hindi kailanman gumagamit ng decision model, kasama ang sa WebBrain Cloud. Patuloy na sinusuri ng chat model mo kung tapos na ang mga gawain.",- "st.decision.status.local": "Ginagamit: Ternary Bonsai 2 2B Vision, sa device na ito. Sinusuri nito kung tapos na ang mga gawain at naka-iskedyul na run.",+ "st.decision.status.local": "Ginagamit: D1, sa device na ito. Sinusuri nito kung tapos na ang mga gawain at naka-iskedyul na run.","st.decision.status.compass": "Ginagamit: ang decision model ng WebBrain Cloud, habang Compass ang iyong chat provider.","st.decision.status.none": "Hindi ginagamit. Piliin ang Naka-on para mag-set up ng decision model.","st.decision.status.none_firefox": "Hindi ginagamit. Piliin ang Naka-on para mag-set up ng decision model.",@@ -1150,11 +1150,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "อัตโนมัติ","st.decision.mode.on": "เปิด","st.decision.mode.off": "ปิด",- "st.decision.mode.auto_desc": "ใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้",- "st.decision.mode.auto_desc_firefox": "ใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้",+ "st.decision.mode.auto_desc": "ใช้ D1 เมื่อดาวน์โหลดไว้ในอุปกรณ์นี้แล้ว หรือใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้",+ "st.decision.mode.auto_desc_firefox": "ใช้ D1 เมื่อดาวน์โหลดไว้ในอุปกรณ์นี้แล้ว หรือใช้โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ นอกนั้นไม่ใช้","st.decision.mode.on_desc": "ใช้โมเดลที่คุณตั้งค่าด้านล่างกับทุกการตัดสินใจ หากต้องการให้โมเดลแชตทำบางส่วน ให้เปิด \"เลือกการตัดสินใจที่ใช้โมเดลนี้\"","st.decision.mode.off_desc": "ไม่ใช้โมเดลการตัดสินใจเลย รวมถึงของ WebBrain Cloud โมเดลแชตของคุณยังคงตรวจว่างานเสร็จหรือไม่",- "st.decision.status.local": "กำลังใช้: Ternary Bonsai 2 2B Vision ในอุปกรณ์นี้ ตรวจว่างานและการรันตามกำหนดเวลาเสร็จหรือไม่",+ "st.decision.status.local": "กำลังใช้: D1 ในอุปกรณ์นี้ ตรวจว่างานและการรันตามกำหนดเวลาเสร็จหรือไม่","st.decision.status.compass": "กำลังใช้: โมเดลการตัดสินใจของ WebBrain Cloud ขณะที่ Compass เป็นผู้ให้บริการแชตของคุณ","st.decision.status.none": "ไม่ได้ใช้ เลือก เปิด เพื่อตั้งค่าโมเดลการตัดสินใจ","st.decision.status.none_firefox": "ไม่ได้ใช้ เลือก เปิด เพื่อตั้งค่าโมเดลการตัดสินใจ",@@ -1204,11 +1204,11 @@ export const decisionTranslations = {"st.decision.mode.auto": "Tự động","st.decision.mode.on": "Bật","st.decision.mode.off": "Tắt",- "st.decision.mode.auto_desc": "Dùng mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.",- "st.decision.mode.auto_desc_firefox": "Dùng mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.",+ "st.decision.mode.auto_desc": "Dùng D1 khi đã tải xuống thiết bị này, hoặc mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.",+ "st.decision.mode.auto_desc_firefox": "Dùng D1 khi đã tải xuống thiết bị này, hoặc mô hình quyết định của WebBrain Cloud khi Compass là nhà cung cấp trò chuyện của bạn. Ngoài ra thì không dùng.","st.decision.mode.on_desc": "Dùng mô hình bạn thiết lập bên dưới cho mọi quyết định. Để giao một số cho mô hình trò chuyện, hãy mở “Chọn quyết định nào dùng nó”.","st.decision.mode.off_desc": "Không bao giờ dùng mô hình quyết định, kể cả của WebBrain Cloud. Mô hình trò chuyện vẫn kiểm tra tác vụ đã xong chưa.",- "st.decision.status.local": "Đang dùng: Ternary Bonsai 2 2B Vision, trên thiết bị này. Nó kiểm tra tác vụ và các lần chạy theo lịch đã xong chưa.",+ "st.decision.status.local": "Đang dùng: D1, trên thiết bị này. Nó kiểm tra tác vụ và các lần chạy theo lịch đã xong chưa.","st.decision.status.compass": "Đang dùng: mô hình quyết định của WebBrain Cloud, khi Compass là nhà cung cấp trò chuyện của bạn.","st.decision.status.none": "Không dùng. Chọn Bật để thiết lập mô hình quyết định.","st.decision.status.none_firefox": "Không dùng. Chọn Bật để thiết lập mô hình quyết định.",diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.jsindex 5eea3a468..e97b0aedb 100644--- a/src/firefox/src/ui/locales/en.js+++ b/src/firefox/src/ui/locales/en.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'Full-page screenshots','install.chip.dl': 'Bulk downloads','install.local_model.intro': 'Start with an optional local model. When you’re ready, open WebBrain at the bottom of this page.',- 'install.local_model.download': 'Download a local model',- 'install.local_model.note': 'Optional · about 1.45 GB · runs on this device. You can skip this.',+ 'install.local_model.download': 'Download local models',+ 'install.local_model.note': 'Optional · about 1.45 GB, plus 0.95 GB for D1, WebBrain’s experimental decision model from Hugging Face. Both run on this device and use its GPU memory. You can skip this.','install.local_model.checking': 'Checking this browser…','install.local_model.downloading': 'Downloading Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Pause download',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'Local models need hardware WebGPU, which this browser isn’t offering right now.','install.local_model.busy': 'Another local model is downloading. This one can start after it finishes.','install.local_model.progress_label': 'Local model download',+ 'install.local_model.d1_downloading': 'Downloading D1, the decision model · {progress}%',+ 'install.local_model.d1_paused': 'D1 paused at {progress}%.',+ 'install.local_model.d1_ready': 'D1 is ready and answers WebBrain’s quick questions, such as “Is this task finished?”, on this device.',+ 'install.local_model.d1_saved': 'D1 is saved on this device. To use it, choose it in Settings under Decision models.',+ 'install.local_model.d1_unsupported': 'This GPU can’t run D1, so WebBrain keeps its usual checks.',+ 'install.local_model.d1_error': 'D1 stopped: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': 'Disconnected',diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.jsindex bd680e708..3644f6a9b 100644--- a/src/firefox/src/ui/locales/es.js+++ b/src/firefox/src/ui/locales/es.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Capturas de página completa','install.chip.dl': 'Descargas masivas','install.local_model.intro': 'Empieza con un modelo local opcional. Cuando estés listo, abre WebBrain al final de esta página.',- 'install.local_model.download': 'Descargar un modelo local',- 'install.local_model.note': 'Opcional · unos 1,45 GB · se ejecuta en este dispositivo. Puedes omitirlo.',+ 'install.local_model.download': 'Descargar modelos locales',+ 'install.local_model.note': 'Opcional · unos 1,45 GB, más 0,95 GB para D1, el modelo de decisión experimental de WebBrain, desde Hugging Face. Ambos se ejecutan en este dispositivo y usan su memoria de GPU. Puedes omitirlo.','install.local_model.checking': 'Comprobando este navegador…','install.local_model.downloading': 'Descargando Ternary Bonsai 2 2B Vision · {progress} %','install.local_model.pause': 'Pausar descarga',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Los modelos locales necesitan WebGPU por hardware, que este navegador no ofrece ahora mismo.','install.local_model.busy': 'Se está descargando otro modelo local. Este podrá empezar cuando termine.','install.local_model.progress_label': 'Descarga del modelo local',+ 'install.local_model.d1_downloading': 'Descargando D1, el modelo de decisión · {progress} %',+ 'install.local_model.d1_paused': 'D1 en pausa al {progress} %.',+ 'install.local_model.d1_ready': 'D1 está listo y responde en este dispositivo a las preguntas rápidas de WebBrain, como «¿Terminó esta tarea?».',+ 'install.local_model.d1_saved': 'D1 está guardado en este dispositivo. Para usarlo, elígelo en Ajustes, en Modelos de decisión.',+ 'install.local_model.d1_unsupported': 'Esta GPU no puede ejecutar D1, así que WebBrain mantiene sus comprobaciones habituales.',+ 'install.local_model.d1_error': 'D1 se detuvo: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} de {total}',diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.jsindex 4eebb97e8..f51b5f9a6 100644--- a/src/firefox/src/ui/locales/fa.js+++ b/src/firefox/src/ui/locales/fa.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'اسکرینشات تمامصفحه','install.chip.dl': 'دانلود گروهی','install.local_model.intro': 'اگر بخواهید، اول یک مدل محلی اختیاری دانلود کنید. هر وقت آماده بودید، WebBrain را از پایین همین صفحه باز کنید.',- 'install.local_model.download': 'دانلود مدل محلی',- 'install.local_model.note': 'اختیاری · حدود ۱٫۴۵ گیگابایت · روی همین دستگاه اجرا میشود. میتوانید این مرحله را رد کنید.',+ 'install.local_model.download': 'دانلود مدلهای محلی',+ 'install.local_model.note': 'اختیاری · حدود ۱٫۴۵ گیگابایت، بهعلاوه ۰٫۹۵ گیگابایت برای D1، مدل تصمیم آزمایشی WebBrain از Hugging Face. هر دو روی همین دستگاه اجرا میشوند و از حافظهٔ GPU آن استفاده میکنند. میتوانید این مرحله را رد کنید.','install.local_model.checking': 'در حال بررسی این مرورگر…','install.local_model.downloading': 'در حال دانلود Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'توقف موقت دانلود',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'مدلهای محلی به WebGPU سختافزاری نیاز دارند که این مرورگر فعلاً ارائه نمیکند.','install.local_model.busy': 'مدل محلی دیگری در حال دانلود است. این دانلود بعد از آن میتواند شروع شود.','install.local_model.progress_label': 'دانلود مدل محلی',+ 'install.local_model.d1_downloading': 'در حال دانلود D1، مدل تصمیم · {progress}%',+ 'install.local_model.d1_paused': 'D1 در {progress}% متوقف شد.',+ 'install.local_model.d1_ready': 'D1 آماده است و روی همین دستگاه به پرسشهای کوتاه WebBrain، مثل «آیا این کار تمام شد؟»، پاسخ میدهد.',+ 'install.local_model.d1_saved': 'D1 روی این دستگاه ذخیره شد. برای استفاده، آن را در تنظیمات، بخش مدلهای تصمیم، انتخاب کنید.',+ 'install.local_model.d1_unsupported': 'این GPU نمیتواند D1 را اجرا کند، بنابراین WebBrain بررسیهای معمول خود را ادامه میدهد.',+ 'install.local_model.d1_error': 'D1 متوقف شد: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "قطع شد",diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.jsindex f83e4886d..f732f67b0 100644--- a/src/firefox/src/ui/locales/fr.js+++ b/src/firefox/src/ui/locales/fr.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Captures de page entière','install.chip.dl': 'Téléchargements groupés','install.local_model.intro': 'Commencez par un modèle local facultatif. Quand vous êtes prêt, ouvrez WebBrain en bas de cette page.',- 'install.local_model.download': 'Télécharger un modèle local',- 'install.local_model.note': 'Facultatif · environ 1,45 Go · s’exécute sur cet appareil. Vous pouvez passer cette étape.',+ 'install.local_model.download': 'Télécharger les modèles locaux',+ 'install.local_model.note': 'Facultatif · environ 1,45 Go, plus 0,95 Go pour D1, le modèle de décision expérimental de WebBrain, depuis Hugging Face. Les deux s’exécutent sur cet appareil et utilisent sa mémoire GPU. Vous pouvez passer cette étape.','install.local_model.checking': 'Vérification de ce navigateur…','install.local_model.downloading': 'Téléchargement de Ternary Bonsai 2 2B Vision · {progress} %','install.local_model.pause': 'Mettre en pause',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Les modèles locaux nécessitent WebGPU matériel, que ce navigateur ne propose pas pour le moment.','install.local_model.busy': 'Un autre modèle local est en cours de téléchargement. Celui-ci pourra démarrer ensuite.','install.local_model.progress_label': 'Téléchargement du modèle local',+ 'install.local_model.d1_downloading': 'Téléchargement de D1, le modèle de décision · {progress} %',+ 'install.local_model.d1_paused': 'D1 en pause à {progress} %.',+ 'install.local_model.d1_ready': 'D1 est prêt et répond sur cet appareil aux questions rapides de WebBrain, comme « Cette tâche est-elle terminée ? ».',+ 'install.local_model.d1_saved': 'D1 est enregistré sur cet appareil. Pour l’utiliser, choisissez-le dans les Paramètres, sous Modèles de décision.',+ 'install.local_model.d1_unsupported': 'Ce GPU ne peut pas exécuter D1 : WebBrain garde ses vérifications habituelles.',+ 'install.local_model.d1_error': 'D1 s’est arrêté : {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sur {total}',diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.jsindex bf26df8ff..c08ba2837 100644--- a/src/firefox/src/ui/locales/he.js+++ b/src/firefox/src/ui/locales/he.js@@ -123,8 +123,8 @@ export default {'install.chip.shot': 'צילומי מסך של דף מלא','install.chip.dl': 'הורדות בכמות גדולה','install.local_model.intro': 'אפשר להתחיל במודל מקומי אופציונלי. כשתהיו מוכנים, פתחו את WebBrain בתחתית הדף.',- 'install.local_model.download': 'הורדת מודל מקומי',- 'install.local_model.note': 'אופציונלי · כ-1.45 GB · פועל במכשיר הזה. אפשר לדלג על השלב.',+ 'install.local_model.download': 'הורדת מודלים מקומיים',+ 'install.local_model.note': 'אופציונלי · כ-1.45 GB, ועוד 0.95 GB עבור D1, מודל ההחלטות הניסיוני של WebBrain, מ-Hugging Face. שניהם פועלים במכשיר הזה ומשתמשים בזיכרון ה-GPU שלו. אפשר לדלג על השלב.','install.local_model.checking': 'בודקים את הדפדפן…','install.local_model.downloading': 'מוריד את Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'השהיית ההורדה',@@ -138,6 +138,12 @@ export default {'install.local_model.unsupported': 'מודלים מקומיים דורשים WebGPU בחומרה, והדפדפן הזה לא מציע אותו כרגע.','install.local_model.busy': 'מודל מקומי אחר נמצא בהורדה. ההורדה הזו תוכל להתחיל אחריו.','install.local_model.progress_label': 'הורדת המודל המקומי',+ 'install.local_model.d1_downloading': 'מוריד את D1, מודל ההחלטות · {progress}%',+ 'install.local_model.d1_paused': 'D1 הושהה ב-{progress}%.',+ 'install.local_model.d1_ready': 'D1 מוכן ועונה במכשיר הזה על השאלות המהירות של WebBrain, כמו „האם המשימה הסתיימה?”.',+ 'install.local_model.d1_saved': 'D1 נשמר במכשיר הזה. כדי להשתמש בו, בחרו בו בהגדרות, תחת מודלי החלטות.',+ 'install.local_model.d1_unsupported': 'ה-GPU הזה לא יכול להריץ את D1, ולכן WebBrain ממשיך בבדיקות הרגילות שלו.',+ 'install.local_model.d1_error': 'D1 נעצר: {error}',"sp.status.disconnected": "לא מחובר","sp.status.connected": "מחובר ({model})","sp.status.error": "שגיאה: {msg}",diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.jsindex 4149bdcd8..0047cb5eb 100644--- a/src/firefox/src/ui/locales/hi.js+++ b/src/firefox/src/ui/locales/hi.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'फ़ुल-पेज स्क्रीनशॉट','install.chip.dl': 'बल्क डाउनलोड','install.local_model.intro': 'चाहें तो पहले एक वैकल्पिक लोकल मॉडल डाउनलोड करें। तैयार होने पर इस पेज के नीचे से WebBrain खोलें।',- 'install.local_model.download': 'लोकल मॉडल डाउनलोड करें',- 'install.local_model.note': 'वैकल्पिक · लगभग 1.45 GB · इसी डिवाइस पर चलता है। आप इसे छोड़ सकते हैं।',+ 'install.local_model.download': 'लोकल मॉडल्स डाउनलोड करें',+ 'install.local_model.note': 'वैकल्पिक · लगभग 1.45 GB, साथ में Hugging Face से WebBrain के प्रायोगिक निर्णय मॉडल D1 के लिए 0.95 GB। दोनों इसी डिवाइस पर चलते हैं और इसकी GPU मेमोरी इस्तेमाल करते हैं। आप इसे छोड़ सकते हैं।','install.local_model.checking': 'इस ब्राउज़र की जाँच हो रही है…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision डाउनलोड हो रहा है · {progress}%','install.local_model.pause': 'डाउनलोड रोकें',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'लोकल मॉडल के लिए हार्डवेयर WebGPU चाहिए, जो यह ब्राउज़र अभी नहीं दे रहा है।','install.local_model.busy': 'एक और लोकल मॉडल डाउनलोड हो रहा है। यह उसके पूरा होने के बाद शुरू हो सकता है।','install.local_model.progress_label': 'लोकल मॉडल डाउनलोड',+ 'install.local_model.d1_downloading': 'निर्णय मॉडल D1 डाउनलोड हो रहा है · {progress}%',+ 'install.local_model.d1_paused': 'D1 को {progress}% पर रोका गया।',+ 'install.local_model.d1_ready': 'D1 तैयार है और इसी डिवाइस पर WebBrain के छोटे सवालों के जवाब देता है, जैसे “क्या यह काम पूरा हो गया?”।',+ 'install.local_model.d1_saved': 'D1 इस डिवाइस पर सहेजा गया है। इसे इस्तेमाल करने के लिए सेटिंग्स में निर्णय मॉडल के अंतर्गत चुनें।',+ 'install.local_model.d1_unsupported': 'यह GPU D1 नहीं चला सकता, इसलिए WebBrain अपनी सामान्य जाँचें जारी रखता है।',+ 'install.local_model.d1_error': 'D1 रुक गया: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "विच्छेदित",diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.jsindex 323257389..eb91419f3 100644--- a/src/firefox/src/ui/locales/id.js+++ b/src/firefox/src/ui/locales/id.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': 'Unduhan massal','install.local_model.intro': 'Mulailah dengan model lokal opsional. Jika sudah siap, buka WebBrain di bagian bawah halaman ini.','install.local_model.download': 'Unduh model lokal',- 'install.local_model.note': 'Opsional · sekitar 1,45 GB · berjalan di perangkat ini. Anda bisa melewatinya.',+ 'install.local_model.note': 'Opsional · sekitar 1,45 GB, ditambah 0,95 GB untuk D1, model keputusan eksperimental WebBrain dari Hugging Face. Keduanya berjalan di perangkat ini dan memakai memori GPU-nya. Anda bisa melewatinya.','install.local_model.checking': 'Memeriksa browser ini…','install.local_model.downloading': 'Mengunduh Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Jeda unduhan',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Model lokal memerlukan WebGPU perangkat keras, yang saat ini tidak tersedia di browser ini.','install.local_model.busy': 'Model lokal lain sedang diunduh. Unduhan ini bisa dimulai setelahnya.','install.local_model.progress_label': 'Unduhan model lokal',+ 'install.local_model.d1_downloading': 'Mengunduh D1, model keputusan · {progress}%',+ 'install.local_model.d1_paused': 'D1 dijeda di {progress}%.',+ 'install.local_model.d1_ready': 'D1 siap dan menjawab pertanyaan cepat WebBrain, seperti “Apakah tugas ini sudah selesai?”, di perangkat ini.',+ 'install.local_model.d1_saved': 'D1 tersimpan di perangkat ini. Untuk memakainya, pilih di Pengaturan, bagian Model keputusan.',+ 'install.local_model.d1_unsupported': 'GPU ini tidak bisa menjalankan D1, jadi WebBrain tetap memakai pemeriksaan biasanya.',+ 'install.local_model.d1_error': 'D1 berhenti: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} dari {total}',diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.jsindex 94dd24fa1..11391106d 100644--- a/src/firefox/src/ui/locales/ja.js+++ b/src/firefox/src/ui/locales/ja.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': '一括ダウンロード','install.local_model.intro': 'まずはオプションのローカルモデルをどうぞ。準備ができたら、このページの一番下から WebBrain を開いてください。','install.local_model.download': 'ローカルモデルをダウンロード',- 'install.local_model.note': 'オプション · 約 1.45 GB · このデバイス上で動作。スキップしてもかまいません。',+ 'install.local_model.note': 'オプション · 約 1.45 GB に加え、Hugging Face から WebBrain の実験的な判定モデル D1 として約 0.95 GB。どちらもこのデバイス上で動作し、GPU メモリを使います。スキップしてもかまいません。','install.local_model.checking': 'このブラウザーを確認しています…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision をダウンロード中 · {progress}%','install.local_model.pause': 'ダウンロードを一時停止',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'ローカルモデルにはハードウェア WebGPU が必要ですが、このブラウザーでは現在利用できません。','install.local_model.busy': '別のローカルモデルをダウンロード中です。完了後にこちらを開始できます。','install.local_model.progress_label': 'ローカルモデルのダウンロード',+ 'install.local_model.d1_downloading': '判定モデル D1 をダウンロード中 · {progress}%',+ 'install.local_model.d1_paused': 'D1 を {progress}% で一時停止しました。',+ 'install.local_model.d1_ready': 'D1 の準備ができました。「このタスクは終わった?」のような WebBrain の簡単な質問に、このデバイス上で答えます。',+ 'install.local_model.d1_saved': 'D1 をこのデバイスに保存しました。使うには、設定の「判定モデル」で選んでください。',+ 'install.local_model.d1_unsupported': 'この GPU では D1 を実行できないため、WebBrain は通常のチェックを続けます。',+ 'install.local_model.d1_error': 'D1 が停止しました: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.jsindex aba602395..a324befb9 100644--- a/src/firefox/src/ui/locales/ko.js+++ b/src/firefox/src/ui/locales/ko.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': '일괄 다운로드','install.local_model.intro': '원하면 먼저 로컬 모델을 받아 두세요. 준비되면 이 페이지 맨 아래에서 WebBrain을 여세요.','install.local_model.download': '로컬 모델 다운로드',- 'install.local_model.note': '선택 사항 · 약 1.45GB · 이 기기에서 실행됩니다. 건너뛰어도 됩니다.',+ 'install.local_model.note': '선택 사항 · 약 1.45GB, 여기에 Hugging Face에서 받는 WebBrain의 실험적 결정 모델 D1용 0.95GB. 둘 다 이 기기에서 실행되며 GPU 메모리를 사용합니다. 건너뛰어도 됩니다.','install.local_model.checking': '이 브라우저를 확인하는 중…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision 다운로드 중 · {progress}%','install.local_model.pause': '다운로드 일시중지',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': '로컬 모델에는 하드웨어 WebGPU가 필요한데, 이 브라우저는 지금 이를 제공하지 않습니다.','install.local_model.busy': '다른 로컬 모델을 다운로드하는 중입니다. 끝나면 이 모델을 시작할 수 있습니다.','install.local_model.progress_label': '로컬 모델 다운로드',+ 'install.local_model.d1_downloading': '결정 모델 D1 다운로드 중 · {progress}%',+ 'install.local_model.d1_paused': 'D1이 {progress}%에서 일시중지됨.',+ 'install.local_model.d1_ready': 'D1이 준비되었습니다. "이 작업이 끝났나요?" 같은 WebBrain의 간단한 질문에 이 기기에서 답합니다.',+ 'install.local_model.d1_saved': 'D1이 이 기기에 저장되었습니다. 사용하려면 설정의 결정 모델에서 선택하세요.',+ 'install.local_model.d1_unsupported': '이 GPU에서는 D1을 실행할 수 없어 WebBrain은 평소의 확인을 계속합니다.',+ 'install.local_model.d1_error': 'D1이 중단되었습니다: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.jsindex 655b788d2..fa1799630 100644--- a/src/firefox/src/ui/locales/ms.js+++ b/src/firefox/src/ui/locales/ms.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': 'Muat turun pukal','install.local_model.intro': 'Mulakan dengan model setempat pilihan. Apabila sedia, buka WebBrain di bahagian bawah halaman ini.','install.local_model.download': 'Muat turun model setempat',- 'install.local_model.note': 'Pilihan · kira-kira 1.45 GB · berjalan pada peranti ini. Anda boleh melangkau langkah ini.',+ 'install.local_model.note': 'Pilihan · kira-kira 1.45 GB, serta 0.95 GB untuk D1, model keputusan eksperimen WebBrain daripada Hugging Face. Kedua-duanya berjalan pada peranti ini dan menggunakan memori GPUnya. Anda boleh melangkau langkah ini.','install.local_model.checking': 'Menyemak pelayar ini…','install.local_model.downloading': 'Memuat turun Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Jeda muat turun',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Model setempat memerlukan WebGPU perkakasan, yang tidak ditawarkan oleh pelayar ini sekarang.','install.local_model.busy': 'Model setempat lain sedang dimuat turun. Yang ini boleh bermula selepas ia selesai.','install.local_model.progress_label': 'Muat turun model setempat',+ 'install.local_model.d1_downloading': 'Memuat turun D1, model keputusan · {progress}%',+ 'install.local_model.d1_paused': 'D1 dijeda pada {progress}%.',+ 'install.local_model.d1_ready': 'D1 sedia dan menjawab soalan pantas WebBrain, seperti “Adakah tugas ini sudah selesai?”, pada peranti ini.',+ 'install.local_model.d1_saved': 'D1 disimpan pada peranti ini. Untuk menggunakannya, pilih dalam Tetapan, di bawah Model keputusan.',+ 'install.local_model.d1_unsupported': 'GPU ini tidak dapat menjalankan D1, jadi WebBrain kekal dengan semakan biasanya.',+ 'install.local_model.d1_error': 'D1 terhenti: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} daripada {total}',diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.jsindex cec6d0625..81037f1e1 100644--- a/src/firefox/src/ui/locales/nl.js+++ b/src/firefox/src/ui/locales/nl.js@@ -109,8 +109,8 @@ export default {'install.chip.shot': 'Screenshots van hele pagina’s','install.chip.dl': 'Bulkdownloads','install.local_model.intro': 'Begin met een optioneel lokaal model. Open WebBrain onderaan deze pagina wanneer je klaar bent.',- 'install.local_model.download': 'Lokaal model downloaden',- 'install.local_model.note': 'Optioneel · ongeveer 1,45 GB · draait op dit apparaat. Je kunt dit overslaan.',+ 'install.local_model.download': 'Lokale modellen downloaden',+ 'install.local_model.note': 'Optioneel · ongeveer 1,45 GB, plus 0,95 GB voor D1, het experimentele beslismodel van WebBrain, van Hugging Face. Beide draaien op dit apparaat en gebruiken het GPU-geheugen. Je kunt dit overslaan.','install.local_model.checking': 'Deze browser controleren…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision downloaden · {progress}%','install.local_model.pause': 'Download pauzeren',@@ -124,6 +124,12 @@ export default {'install.local_model.unsupported': 'Lokale modellen hebben hardware-WebGPU nodig, en die biedt deze browser nu niet.','install.local_model.busy': 'Er wordt al een ander lokaal model gedownload. Dit model kan daarna starten.','install.local_model.progress_label': 'Download van lokaal model',+ 'install.local_model.d1_downloading': 'D1, het beslismodel, downloaden · {progress}%',+ 'install.local_model.d1_paused': 'D1 gepauzeerd bij {progress}%.',+ 'install.local_model.d1_ready': 'D1 is klaar en beantwoordt op dit apparaat de snelle vragen van WebBrain, zoals ‘Is deze taak klaar?’.',+ 'install.local_model.d1_saved': 'D1 is op dit apparaat opgeslagen. Kies het in Instellingen onder Beslismodellen om het te gebruiken.',+ 'install.local_model.d1_unsupported': 'Deze GPU kan D1 niet draaien, dus WebBrain houdt zijn gewone controles aan.',+ 'install.local_model.d1_error': 'D1 is gestopt: {error}','sp.status.disconnected': 'Niet verbonden','sp.status.connected': 'Verbonden ({model})','sp.status.error': 'Fout: {msg}',diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.jsindex eb155e019..0b7dcd22c 100644--- a/src/firefox/src/ui/locales/pl.js+++ b/src/firefox/src/ui/locales/pl.js@@ -109,8 +109,8 @@ export default {'install.chip.shot': 'Zrzuty całej strony','install.chip.dl': 'Pobieranie zbiorcze','install.local_model.intro': 'Zacznij od opcjonalnego modelu lokalnego. Gdy będziesz gotowy, otwórz WebBrain na dole tej strony.',- 'install.local_model.download': 'Pobierz model lokalny',- 'install.local_model.note': 'Opcjonalne · ok. 1,45 GB · działa na tym urządzeniu. Możesz to pominąć.',+ 'install.local_model.download': 'Pobierz modele lokalne',+ 'install.local_model.note': 'Opcjonalne · ok. 1,45 GB oraz 0,95 GB na D1, eksperymentalny model decyzyjny WebBrain z Hugging Face. Oba działają na tym urządzeniu i korzystają z pamięci jego GPU. Możesz to pominąć.','install.local_model.checking': 'Sprawdzanie tej przeglądarki…','install.local_model.downloading': 'Pobieranie Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Wstrzymaj pobieranie',@@ -124,6 +124,12 @@ export default {'install.local_model.unsupported': 'Modele lokalne wymagają sprzętowego WebGPU, którego ta przeglądarka teraz nie udostępnia.','install.local_model.busy': 'Trwa pobieranie innego modelu lokalnego. Ten może zacząć się po jego zakończeniu.','install.local_model.progress_label': 'Pobieranie modelu lokalnego',+ 'install.local_model.d1_downloading': 'Pobieranie D1, modelu decyzyjnego · {progress}%',+ 'install.local_model.d1_paused': 'D1 wstrzymano przy {progress}%.',+ 'install.local_model.d1_ready': 'D1 jest gotowy i na tym urządzeniu odpowiada na krótkie pytania WebBrain, np. „Czy to zadanie jest skończone?”.',+ 'install.local_model.d1_saved': 'D1 jest zapisany na tym urządzeniu. Aby go używać, wybierz go w Ustawieniach, w sekcji Modele decyzyjne.',+ 'install.local_model.d1_unsupported': 'Ten GPU nie uruchomi D1, więc WebBrain zostaje przy swoich zwykłych sprawdzeniach.',+ 'install.local_model.d1_error': 'D1 się zatrzymał: {error}','sp.status.disconnected': 'Rozłączono','sp.status.connected': 'Połączono ({model})','sp.status.error': 'Błąd: {msg}',diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.jsindex 3057b15bf..61414dae3 100644--- a/src/firefox/src/ui/locales/pt.js+++ b/src/firefox/src/ui/locales/pt.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'Capturas de página inteira','install.chip.dl': 'Downloads em massa','install.local_model.intro': 'Comece com um modelo local opcional. Quando estiver pronto, abra o WebBrain no fim desta página.',- 'install.local_model.download': 'Baixar um modelo local',- 'install.local_model.note': 'Opcional · cerca de 1,45 GB · roda neste dispositivo. Você pode pular esta etapa.',+ 'install.local_model.download': 'Baixar modelos locais',+ 'install.local_model.note': 'Opcional · cerca de 1,45 GB, mais 0,95 GB para o D1, o modelo de decisão experimental do WebBrain, do Hugging Face. Os dois rodam neste dispositivo e usam a memória da GPU. Você pode pular esta etapa.','install.local_model.checking': 'Verificando este navegador…','install.local_model.downloading': 'Baixando Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Pausar download',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'Modelos locais precisam de WebGPU por hardware, que este navegador não está oferecendo agora.','install.local_model.busy': 'Outro modelo local está sendo baixado. Este pode começar quando ele terminar.','install.local_model.progress_label': 'Download do modelo local',+ 'install.local_model.d1_downloading': 'Baixando o D1, o modelo de decisão · {progress}%',+ 'install.local_model.d1_paused': 'D1 pausado em {progress}%.',+ 'install.local_model.d1_ready': 'O D1 está pronto e responde neste dispositivo às perguntas rápidas do WebBrain, como “Esta tarefa terminou?”.',+ 'install.local_model.d1_saved': 'O D1 está salvo neste dispositivo. Para usá-lo, escolha-o em Configurações, em Modelos de decisão.',+ 'install.local_model.d1_unsupported': 'Esta GPU não consegue rodar o D1, então o WebBrain mantém suas verificações de sempre.',+ 'install.local_model.d1_error': 'O D1 parou: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Desconectado",diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.jsindex 98e156267..ca257d400 100644--- a/src/firefox/src/ui/locales/ru.js+++ b/src/firefox/src/ui/locales/ru.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Скриншоты всей страницы','install.chip.dl': 'Массовая загрузка','install.local_model.intro': 'Для начала можно скачать локальную модель — это необязательно. Когда будете готовы, откройте WebBrain внизу этой страницы.',- 'install.local_model.download': 'Скачать локальную модель',- 'install.local_model.note': 'Необязательно · около 1,45 ГБ · работает на этом устройстве. Этот шаг можно пропустить.',+ 'install.local_model.download': 'Скачать локальные модели',+ 'install.local_model.note': 'Необязательно · около 1,45 ГБ и ещё 0,95 ГБ для D1 — экспериментальной модели решений WebBrain с Hugging Face. Обе работают на этом устройстве и используют память его GPU. Этот шаг можно пропустить.','install.local_model.checking': 'Проверяем этот браузер…','install.local_model.downloading': 'Загрузка Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Приостановить загрузку',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Локальным моделям нужен аппаратный WebGPU, а этот браузер сейчас его не предоставляет.','install.local_model.busy': 'Сейчас загружается другая локальная модель. Эта начнётся после неё.','install.local_model.progress_label': 'Загрузка локальной модели',+ 'install.local_model.d1_downloading': 'Загрузка D1, модели решений · {progress}%',+ 'install.local_model.d1_paused': 'D1 приостановлена на {progress}%.',+ 'install.local_model.d1_ready': 'D1 готова и прямо на этом устройстве отвечает на короткие вопросы WebBrain, например «Задача выполнена?».',+ 'install.local_model.d1_saved': 'D1 сохранена на этом устройстве. Чтобы её использовать, выберите её в Настройках, в разделе «Модели решений».',+ 'install.local_model.d1_unsupported': 'Этот GPU не может запустить D1, поэтому WebBrain оставляет свои обычные проверки.',+ 'install.local_model.d1_error': 'D1 остановилась: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} из {total}',diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.jsindex 25e51d5d7..f576faa37 100644--- a/src/firefox/src/ui/locales/th.js+++ b/src/firefox/src/ui/locales/th.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': 'ดาวน์โหลดจำนวนมาก','install.local_model.intro': 'เริ่มด้วยโมเดลในเครื่องแบบไม่บังคับก็ได้ เมื่อพร้อมแล้ว เปิด WebBrain ที่ด้านล่างของหน้านี้','install.local_model.download': 'ดาวน์โหลดโมเดลในเครื่อง',- 'install.local_model.note': 'ไม่บังคับ · ประมาณ 1.45 GB · ทำงานบนอุปกรณ์นี้ ข้ามขั้นตอนนี้ได้',+ 'install.local_model.note': 'ไม่บังคับ · ประมาณ 1.45 GB และอีก 0.95 GB สำหรับ D1 โมเดลการตัดสินใจรุ่นทดลองของ WebBrain จาก Hugging Face ทั้งสองทำงานบนอุปกรณ์นี้และใช้หน่วยความจำ GPU ข้ามขั้นตอนนี้ได้','install.local_model.checking': 'กำลังตรวจสอบเบราว์เซอร์นี้…','install.local_model.downloading': 'กำลังดาวน์โหลด Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'หยุดดาวน์โหลดชั่วคราว',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'โมเดลในเครื่องต้องใช้ WebGPU ระดับฮาร์ดแวร์ ซึ่งเบราว์เซอร์นี้ยังไม่มีให้ในตอนนี้','install.local_model.busy': 'กำลังดาวน์โหลดโมเดลในเครื่องตัวอื่นอยู่ ตัวนี้จะเริ่มได้หลังจากนั้น','install.local_model.progress_label': 'การดาวน์โหลดโมเดลในเครื่อง',+ 'install.local_model.d1_downloading': 'กำลังดาวน์โหลด D1 โมเดลการตัดสินใจ · {progress}%',+ 'install.local_model.d1_paused': 'D1 หยุดชั่วคราวที่ {progress}%',+ 'install.local_model.d1_ready': 'D1 พร้อมแล้ว และตอบคำถามสั้นๆ ของ WebBrain เช่น “งานนี้เสร็จหรือยัง” บนอุปกรณ์นี้',+ 'install.local_model.d1_saved': 'บันทึก D1 ไว้บนอุปกรณ์นี้แล้ว หากต้องการใช้ ให้เลือกในการตั้งค่า ใต้โมเดลการตัดสินใจ',+ 'install.local_model.d1_unsupported': 'GPU นี้รัน D1 ไม่ได้ WebBrain จึงใช้การตรวจสอบตามปกติต่อไป',+ 'install.local_model.d1_error': 'D1 หยุดทำงาน: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} จาก {total}',diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.jsindex dd5363bcb..41b4fb79a 100644--- a/src/firefox/src/ui/locales/tl.js+++ b/src/firefox/src/ui/locales/tl.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Full-page na screenshot','install.chip.dl': 'Maramihang pag-download','install.local_model.intro': 'Puwede kang magsimula sa isang opsyonal na lokal na model. Kapag handa ka na, buksan ang WebBrain sa ibaba ng pahinang ito.',- 'install.local_model.download': 'Mag-download ng lokal na model',- 'install.local_model.note': 'Opsyonal · mga 1.45 GB · tumatakbo sa device na ito. Puwede mo itong laktawan.',+ 'install.local_model.download': 'Mag-download ng mga lokal na model',+ 'install.local_model.note': 'Opsyonal · mga 1.45 GB, dagdag ang 0.95 GB para sa D1, ang eksperimental na decision model ng WebBrain mula sa Hugging Face. Parehong tumatakbo sa device na ito at gumagamit ng GPU memory nito. Puwede mo itong laktawan.','install.local_model.checking': 'Sinusuri ang browser na ito…','install.local_model.downloading': 'Dina-download ang Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'I-pause ang download',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Kailangan ng mga lokal na model ang hardware WebGPU, na hindi iniaalok ng browser na ito ngayon.','install.local_model.busy': 'May ibang lokal na model na dina-download. Puwedeng magsimula ito pagkatapos noon.','install.local_model.progress_label': 'Download ng lokal na model',+ 'install.local_model.d1_downloading': 'Dina-download ang D1, ang decision model · {progress}%',+ 'install.local_model.d1_paused': 'Naka-pause ang D1 sa {progress}%.',+ 'install.local_model.d1_ready': 'Handa na ang D1 at sinasagot nito sa device na ito ang mabibilis na tanong ng WebBrain, gaya ng “Tapos na ba ang task na ito?”.',+ 'install.local_model.d1_saved': 'Naka-save ang D1 sa device na ito. Para gamitin ito, piliin ito sa Mga Setting, sa ilalim ng Mga decision model.',+ 'install.local_model.d1_unsupported': 'Hindi kayang patakbuhin ng GPU na ito ang D1, kaya nananatili ang WebBrain sa karaniwang mga check nito.',+ 'install.local_model.d1_error': 'Huminto ang D1: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sa {total}',diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.jsindex 231cbe336..bf706d018 100644--- a/src/firefox/src/ui/locales/tr.js+++ b/src/firefox/src/ui/locales/tr.js@@ -215,8 +215,8 @@ export default {'install.chip.shot': 'Tam sayfa ekran görüntüleri','install.chip.dl': 'Toplu indirme','install.local_model.intro': 'İstersen önce yerel bir model indir. Hazır olduğunda WebBrain’i bu sayfanın en altından aç.',- 'install.local_model.download': 'Yerel model indir',- 'install.local_model.note': 'İsteğe bağlı · yaklaşık 1,45 GB · bu cihazda çalışır. Bu adımı atlayabilirsin.',+ 'install.local_model.download': 'Yerel modelleri indir',+ 'install.local_model.note': 'İsteğe bağlı · yaklaşık 1,45 GB, artı WebBrain’in Hugging Face’ten gelen deneysel karar modeli D1 için 0,95 GB. İkisi de bu cihazda çalışır ve GPU belleğini kullanır. Bu adımı atlayabilirsin.','install.local_model.checking': 'Tarayıcı kontrol ediliyor…','install.local_model.downloading': 'Ternary Bonsai 2 2B Vision indiriliyor · %{progress}','install.local_model.pause': 'İndirmeyi duraklat',@@ -230,6 +230,12 @@ export default {'install.local_model.unsupported': 'Yerel modeller donanım WebGPU desteği ister; bu tarayıcı şu anda bunu sunmuyor.','install.local_model.busy': 'Başka bir yerel model indiriliyor. Bu indirme o bittikten sonra başlayabilir.','install.local_model.progress_label': 'Yerel model indirmesi',+ 'install.local_model.d1_downloading': 'Karar modeli D1 indiriliyor · %{progress}',+ 'install.local_model.d1_paused': 'D1, %{progress} noktasında duraklatıldı.',+ 'install.local_model.d1_ready': 'D1 hazır; WebBrain’in “Bu görev bitti mi?” gibi hızlı sorularını bu cihazda yanıtlıyor.',+ 'install.local_model.d1_saved': 'D1 bu cihaza kaydedildi. Kullanmak için Ayarlar’da Karar modelleri bölümünden seç.',+ 'install.local_model.d1_unsupported': 'Bu GPU D1’i çalıştıramıyor; WebBrain her zamanki kontrollerini sürdürüyor.',+ 'install.local_model.d1_error': 'D1 durdu: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.jsindex 19212dbef..d10e41970 100644--- a/src/firefox/src/ui/locales/uk.js+++ b/src/firefox/src/ui/locales/uk.js@@ -179,8 +179,8 @@ export default {'install.chip.shot': 'Знімки всієї сторінки','install.chip.dl': 'Масове завантаження','install.local_model.intro': 'Для початку можна завантажити локальну модель — це необов’язково. Коли будете готові, відкрийте WebBrain унизу цієї сторінки.',- 'install.local_model.download': 'Завантажити локальну модель',- 'install.local_model.note': 'Необов’язково · близько 1,45 ГБ · працює на цьому пристрої. Цей крок можна пропустити.',+ 'install.local_model.download': 'Завантажити локальні моделі',+ 'install.local_model.note': 'Необов’язково · близько 1,45 ГБ і ще 0,95 ГБ для D1 — експериментальної моделі рішень WebBrain з Hugging Face. Обидві працюють на цьому пристрої й використовують пам’ять його GPU. Цей крок можна пропустити.','install.local_model.checking': 'Перевіряємо цей браузер…','install.local_model.downloading': 'Завантаження Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Призупинити завантаження',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': 'Локальним моделям потрібен апаратний WebGPU, якого цей браузер зараз не надає.','install.local_model.busy': 'Зараз завантажується інша локальна модель. Ця почнеться після неї.','install.local_model.progress_label': 'Завантаження локальної моделі',+ 'install.local_model.d1_downloading': 'Завантаження D1, моделі рішень · {progress}%',+ 'install.local_model.d1_paused': 'D1 призупинено на {progress}%.',+ 'install.local_model.d1_ready': 'D1 готова й просто на цьому пристрої відповідає на короткі запитання WebBrain, як-от «Завдання виконано?».',+ 'install.local_model.d1_saved': 'D1 збережено на цьому пристрої. Щоб її використовувати, виберіть її в Налаштуваннях, у розділі «Моделі рішень».',+ 'install.local_model.d1_unsupported': 'Цей GPU не може запустити D1, тож WebBrain лишає свої звичайні перевірки.',+ 'install.local_model.d1_error': 'D1 зупинилася: {error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} з {total}',diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.jsindex 28008f5a3..87b832354 100644--- a/src/firefox/src/ui/locales/vi.js+++ b/src/firefox/src/ui/locales/vi.js@@ -107,8 +107,8 @@ export default {'install.chip.shot': 'Chụp toàn trang','install.chip.dl': 'Tải xuống hàng loạt','install.local_model.intro': 'Bạn có thể bắt đầu với một mô hình cục bộ tùy chọn. Khi sẵn sàng, hãy mở WebBrain ở cuối trang này.',- 'install.local_model.download': 'Tải xuống mô hình cục bộ',- 'install.local_model.note': 'Tùy chọn · khoảng 1,45 GB · chạy trên thiết bị này. Bạn có thể bỏ qua bước này.',+ 'install.local_model.download': 'Tải xuống các mô hình cục bộ',+ 'install.local_model.note': 'Tùy chọn · khoảng 1,45 GB, thêm 0,95 GB cho D1, mô hình quyết định thử nghiệm của WebBrain, tải từ Hugging Face. Cả hai chạy trên thiết bị này và dùng bộ nhớ GPU của nó. Bạn có thể bỏ qua bước này.','install.local_model.checking': 'Đang kiểm tra trình duyệt này…','install.local_model.downloading': 'Đang tải Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': 'Tạm dừng tải xuống',@@ -122,6 +122,12 @@ export default {'install.local_model.unsupported': 'Mô hình cục bộ cần WebGPU phần cứng, nhưng trình duyệt này hiện không cung cấp.','install.local_model.busy': 'Một mô hình cục bộ khác đang được tải. Mô hình này có thể bắt đầu sau khi nó xong.','install.local_model.progress_label': 'Tải xuống mô hình cục bộ',+ 'install.local_model.d1_downloading': 'Đang tải D1, mô hình quyết định · {progress}%',+ 'install.local_model.d1_paused': 'D1 đã tạm dừng ở {progress}%.',+ 'install.local_model.d1_ready': 'D1 đã sẵn sàng và trả lời ngay trên thiết bị này những câu hỏi nhanh của WebBrain, như “Tác vụ này xong chưa?”.',+ 'install.local_model.d1_saved': 'D1 đã được lưu trên thiết bị này. Để dùng, hãy chọn nó trong Cài đặt, mục Mô hình quyết định.',+ 'install.local_model.d1_unsupported': 'GPU này không chạy được D1, nên WebBrain giữ các bước kiểm tra thông thường.',+ 'install.local_model.d1_error': 'D1 đã dừng: {error}',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Đã ngắt kết nối",diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.jsindex 81c7df16d..059cf65f0 100644--- a/src/firefox/src/ui/locales/zh.js+++ b/src/firefox/src/ui/locales/zh.js@@ -180,7 +180,7 @@ export default {'install.chip.dl': '批量下载','install.local_model.intro': '可以先下载一个可选的本地模型。准备好后,在本页底部打开 WebBrain。','install.local_model.download': '下载本地模型',- 'install.local_model.note': '可选 · 约 1.45 GB · 在此设备上运行。可以跳过此步骤。',+ 'install.local_model.note': '可选 · 约 1.45 GB,另需约 0.95 GB 用于 D1——WebBrain 来自 Hugging Face 的实验性决策模型。两者都在此设备上运行并占用其 GPU 内存。可以跳过此步骤。','install.local_model.checking': '正在检查此浏览器…','install.local_model.downloading': '正在下载 Ternary Bonsai 2 2B Vision · {progress}%','install.local_model.pause': '暂停下载',@@ -194,6 +194,12 @@ export default {'install.local_model.unsupported': '本地模型需要硬件 WebGPU,而此浏览器目前未提供。','install.local_model.busy': '另一个本地模型正在下载。它完成后才能开始此下载。','install.local_model.progress_label': '本地模型下载',+ 'install.local_model.d1_downloading': '正在下载决策模型 D1 · {progress}%',+ 'install.local_model.d1_paused': 'D1 已在 {progress}% 处暂停。',+ 'install.local_model.d1_ready': 'D1 已就绪,会在此设备上回答 WebBrain 的快速问题,例如“这个任务完成了吗?”。',+ 'install.local_model.d1_saved': 'D1 已保存在此设备上。要使用它,请在设置的“决策模型”中选择。',+ 'install.local_model.d1_unsupported': '此 GPU 无法运行 D1,因此 WebBrain 继续使用常规检查。',+ 'install.local_model.d1_error': 'D1 已停止:{error}',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/settings.js b/src/firefox/src/ui/settings.jsindex c5a11f2d1..8ac0348f4 100644--- a/src/firefox/src/ui/settings.js+++ b/src/firefox/src/ui/settings.js@@ -1,6 +1,7 @@import { DECISION_MODE_KEY, DECISION_SETTINGS_KEYS, materializeLegacyDecisionFeatures, DEFAULT_DECISION_MODEL, resolveDecisionConfig, resolveDecisionMode } from '../agent/decision-config.js';import { normalizeLeanModeSetting } from '../agent/lean-mode.js';-import { D1_MODEL_ID } from '../providers/d1-config.js';+import { D1_CONSENT_KEY, D1_CONSENT_VERSION, D1_MODEL_ID } from '../providers/d1-config.js';+import { d1LocalAssistReady } from '../agent/decision-availability.js';import { initD1Settings } from './d1-settings.js';/*** WebBrain Settings pages — settings.html (preferences, budgets, memory,@@ -245,43 +246,62 @@ if (globalThis.browser?.storage?.onChanged) {browser.storage.onChanged.addListener((changes, area) => {if (area !== 'local' || !changes.strictSecretMode) return;strictSecretModeOn = changes.strictSecretMode.newValue === true;- syncDecisionStatus();+ void syncDecisionStatus();});}-function syncDecisionStatus() {+let decisionStatusSequence = 0;+async function syncDecisionStatus() {if (!decisionModeInputs.length) return;const mode = selectedDecisionMode();for (const description of document.querySelectorAll('[data-decision-mode-desc]')) description.hidden = description.dataset.decisionModeDesc !== mode;const configured = document.getElementById('decision-configured');if (configured) configured.hidden = mode !== 'on';if (btnSaveSystemOne) btnSaveSystemOne.hidden = mode !== 'on';- // Test runs here, so only On has something it can check.- if (btnTestSystemOne) btnTestSystemOne.hidden = mode !== 'on';const status = document.getElementById('decision-auto-status');- if (!status) return;- status.hidden = mode !== 'auto';- if (mode !== 'auto') return;+ const sequence = ++decisionStatusSequence;+ if (mode !== 'auto') {+ if (status) status.hidden = true;+ // Test runs here, so On has something it can check.+ if (btnTestSystemOne) btnTestSystemOne.hidden = mode !== 'on';+ return;+ }// Strict Secret Mode keeps page content away from every decision model, so Auto has nothing to use.const strict = strictSecretModeOn;const compass = !strict && activeProviderIsCompass();- const key = strict ? 'st.decision.status.strict' : compass ? 'st.decision.status.compass' : 'st.decision.status.none_firefox';- status.dataset.i18n = key;- status.dataset.state = compass ? 'active' : 'inactive';- status.textContent = t(key);+ // Without Compass, Auto uses D1 once it is downloaded (decision-availability.js).+ const local = !strict && !compass+ && (await browser.storage.local.get(D1_CONSENT_KEY).catch(() => ({})))?.[D1_CONSENT_KEY] === D1_CONSENT_VERSION+ && await d1LocalAssistReady();+ if (sequence !== decisionStatusSequence || selectedDecisionMode() !== 'auto') return;+ const key = strict ? 'st.decision.status.strict' : compass ? 'st.decision.status.compass' : local ? 'st.decision.status.local' : 'st.decision.status.none_firefox';+ if (status) {+ status.dataset.i18n = key;+ status.dataset.state = compass || local ? 'active' : 'inactive';+ status.textContent = t(key);+ status.hidden = false;+ }+ // Test runs here in the browser, so it can check D1 but not Compass's+ // managed model.+ if (btnTestSystemOne) btnTestSystemOne.hidden = !local;}for (const input of decisionModeInputs) {input.addEventListener('change', async () => {if (!input.checked) return;const mode = input.value;- syncDecisionStatus();+ void syncDecisionStatus();// The mode applies at once; On's provider fields still use Save.// A pre-mode On profile shows its stored switches; keep them when the explicit mode replaces that reading.const legacyFeatures = materializeLegacyDecisionFeatures(await browser.storage.local.get(DECISION_SETTINGS_KEYS));await browser.storage.local.set({ ...legacyFeatures, [DECISION_MODE_KEY]: mode, systemOneEnabled: mode === 'on' });- if (mode !== 'on') await sendToBackground('d1_control', { command: 'reset' }).catch(() => {});+ // Off ends D1's Download or Load; Auto keeps it, since Auto uses a+ // downloaded D1 while Compass is not the chat provider.+ if (mode === 'off') await sendToBackground('d1_control', { command: 'reset' }).catch(() => {});showSystemOneResult('ok', t('st.providers.saved'));});}+// A download in another tab or Settings section changes what Auto uses.+globalThis.addEventListener?.('focus', () => { void syncDecisionStatus(); });+document.addEventListener('visibilitychange', () => { if (!document.hidden) void syncDecisionStatus(); });const systemOneApiKeyInput = document.getElementById('system-one-api-key');const systemOneWatchToggle = document.getElementById('toggle-system-one-watch');@@ -693,7 +713,7 @@ async function init() {if (systemOneApiKeyInput) systemOneApiKeyInput.value = decisionConfig.apiKey;if (systemOneWatchThresholdRange) systemOneWatchThresholdRange.value = String(normalizeSystemOneThreshold(stored.systemOneWatchThreshold) * 100);if (systemOneCompletionThresholdRange) systemOneCompletionThresholdRange.value = String(normalizeSystemOneThreshold(stored.systemOneCompletionThreshold) * 100);- syncDecisionStatus();+ void syncDecisionStatus();updateSystemOneThresholdLabels();}@@ -744,7 +764,7 @@ async function init() {providersData = res.providers;activeProviderId = res.active;renderProviders();- syncDecisionStatus();+ void syncDecisionStatus();}// Tooling (UI tests, docs screenshots) waits for this before reading the page.document.documentElement.dataset.settingsReady = 'true';@@ -1466,7 +1486,7 @@ btnResetCostSpend?.addEventListener('click', async () => {strictSecretToggle?.addEventListener('change', async () => {await browser.storage.local.set({ strictSecretMode: strictSecretToggle.checked }).catch(() => {});- syncDecisionStatus();+ void syncDecisionStatus();});strictGuardsToggle?.addEventListener('change', async () => {@@ -1571,7 +1591,7 @@ if (btnClearSystemOne) {await refreshD1Settings();// D1's provider switch unchecks Verify completion; Reset restores On's default.decisionDoneToggle.checked = true;- syncDecisionStatus();+ await syncDecisionStatus();showSystemOneResult('ok', t('st.decision.reset_done'));});}@@ -2773,7 +2793,7 @@ async function refreshWebbrainPaymentNotice() {function renderProviders() {if (!providersContainer) return;providersContainer.innerHTML = '';- syncDecisionStatus();+ void syncDecisionStatus();// Field definitions reference i18n keys (labelKey) so switching languages// re-renders with translated labels. Placeholders stay as raw values —@@ -3941,7 +3961,7 @@ async function saveProvider(id, { showFlash = true, markConfigured = true } = {}function refreshProviderCardStatus(id) {// Saving a provider marks it configured without rebuilding the list. Keep// the Active pill in sync even if the card disappeared during the request.- syncDecisionStatus();+ void syncDecisionStatus();refreshActiveProviderFilterCount();const card = document.querySelector(`.provider-card[data-provider-id="${id}"]`);if (!card) return;diff --git a/test/completion-verifier.mjs b/test/completion-verifier.mjsindex 03b62257c..bd0d3887a 100644--- a/test/completion-verifier.mjs+++ b/test/completion-verifier.mjs@@ -575,6 +575,34 @@ for (const build of ['chrome', 'firefox']) {assert.equal(decisionCalls, 0, 'disabled Ternary never starts, even before main-model fallback');}, { decisionMode, decisionProvider: 'webgpu_chat', systemOneEnabled: true, systemOneDoneEnabled: true }));}+ test(`${build}: Auto checks completion with a downloaded D1, and a positive D1 answer still needs the main model`, async () => {+ const pin = await import(`../src/${build}/src/providers/d1-config.js`);+ const previousChrome = globalThis.chrome, previousBrowser = globalThis.browser;+ const navigatorDescriptor = Object.getOwnPropertyDescriptor(globalThis, 'navigator');+ const marker = { revision: pin.D1_RELEASE.revision, manifestSha256: pin.D1_RELEASE.manifestSha256 };+ const directory = { getFileHandle: async () => ({ getFile: async () => ({ text: async () => JSON.stringify(marker) }) }) };+ Object.defineProperty(globalThis, 'navigator', { configurable: true, value: { onLine: true, storage: { getDirectory: async () => ({ getDirectoryHandle: async () => directory }) } } });+ // Auto (nothing saved) after the install guide's download: consent and the Load request.+ const stored = { [pin.D1_CONSENT_KEY]: pin.D1_CONSENT_VERSION, [pin.D1_KEEP_LOADED_KEY]: true };+ globalThis.chrome = globalThis.browser = { storage: { local: { get: async () => ({ ...stored }) } } };+ try {+ for (const [decisionOutcome, expected] of [['succeeded', { engine: 'llm', outcome: 'failed', mainCalls: 1 }], ['pending', { engine: 'webgpu_d1', outcome: 'pending', mainCalls: 0 }]]) {+ const providers = [];+ let mainCalls = 0;+ const agent = stagedFormAgent({ messages: [], guard: { enabled: true, requiresSubmission: false, requiresStateChange: true }, captures: { count: 0 }, decisionOutcome,+ onDecision: args => providers.push(args.config.provider),+ onChat: () => { mainCalls++; return { content: JSON.stringify({ outcome: 'failed', reason: 'the page still shows the form' }) }; } });+ const verdict = await runtime.verifyBrowserCompletion(agent, 1, { pageUrl: 'https://forms.example/signup' });+ assert.ok(providers.length > 0 && providers.every(provider => provider === 'webgpu_d1'), `${decisionOutcome}: D1 answered first`);+ assert.equal(verdict.engine, expected.engine, decisionOutcome);+ assert.equal(verdict.outcome, expected.outcome, decisionOutcome);+ assert.equal(mainCalls, expected.mainCalls, decisionOutcome);+ }+ } finally {+ globalThis.chrome = previousChrome; globalThis.browser = previousBrowser;+ if (navigatorDescriptor) Object.defineProperty(globalThis, 'navigator', navigatorDescriptor); else delete globalThis.navigator;+ }+ });test(`${build}: a staged form whose request names a password reaches the active judge intact, and a blind third-party sidecar is not asked`, withDecisionRuntime(async () => {const fields = [['ref_1', 'skanlsmds', false], ['ref_2', '[email protected]', false], ['ref_3', typedPassword, true], ['ref_4', typedPassword, true]];const messages = fields.flatMap(([ref, text, sensitive], index) => [diff --git a/test/d1-decision.mjs b/test/d1-decision.mjsindex 57d4b50d4..17f1db155 100644--- a/test/d1-decision.mjs+++ b/test/d1-decision.mjs@@ -2,9 +2,55 @@ import assert from 'node:assert/strict';import { test } from 'node:test';import { readFile } from 'node:fs/promises';import { createHash } from 'node:crypto';+import vm from 'node:vm';++// One top-level function of a source file, by name.+function topLevelFunction(source, name) {+ const start = source.search(new RegExp(`^(?:async )?function ${name}\\(`, 'm'));+ assert.ok(start >= 0, name);+ const end = source.indexOf('\n}\n', start);+ assert.ok(end > start, name);+ return source.slice(start, end + 2);+}++// D1 as its Worker leaves a finished download: the stored Load request and the+// package's ready marker in its OPFS directory. `marker`: 'current', another+// marker object, 'missing' (no ready.json) or 'no-directory'.+async function withD1Download(pin, { stored = {}, marker = 'current' } = {}, fn) {+ const saved = { navigator: Object.getOwnPropertyDescriptor(globalThis, 'navigator'), chrome: globalThis.chrome, browser: globalThis.browser };+ const reads = [];+ const area = { ...stored };+ const local = {+ get: async keys => Object.fromEntries((keys == null ? Object.keys(area) : Array.isArray(keys) ? keys : [keys]).filter(key => key in area).map(key => [key, area[key]])),+ set: async values => { Object.assign(area, values); },+ };+ const api = { storage: { local } };+ const directory = {+ async getFileHandle(name, options) {+ reads.push(['file', name, options]);+ if (marker === 'missing') throw Object.assign(new Error('missing'), { name: 'NotFoundError' });+ const value = marker === 'current' ? { revision: pin.D1_RELEASE.revision, manifestSha256: pin.D1_RELEASE.manifestSha256 } : marker;+ return { getFile: async () => ({ text: async () => JSON.stringify(value) }) };+ },+ };+ const root = {+ async getDirectoryHandle(name, options) {+ reads.push(['directory', name, options]);+ if (marker === 'no-directory') throw Object.assign(new Error('missing'), { name: 'NotFoundError' });+ return directory;+ },+ };+ Object.defineProperty(globalThis, 'navigator', { configurable: true, value: { storage: { getDirectory: async () => root } } });+ globalThis.chrome = api; globalThis.browser = api;+ try { return await fn({ api, area, reads }); } finally {+ if (saved.navigator) Object.defineProperty(globalThis, 'navigator', saved.navigator); else delete globalThis.navigator;+ globalThis.chrome = saved.chrome; globalThis.browser = saved.browser;+ }+}for (const build of ['chrome', 'firefox']) {const config = await import(`../src/${build}/src/agent/decision-config.js`);+ const availability = await import(`../src/${build}/src/agent/decision-availability.js`);const pin = await import(`../src/${build}/src/providers/d1-config.js`);const runtime = await import(`../src/${build}/src/providers/d1-runtime.js`);const preprocess = await import(`../src/${build}/src/providers/d1-preprocess.js`);@@ -220,6 +266,55 @@ for (const build of ['chrome', 'firefox']) {assert.match(branch, /msg\.command === 'consent' \? \{\} : \{ \[D1_KEEP_LOADED_KEY\]: true \}/);assert.match(branch, /\['reset', 'dispose', 'clear'\]\.includes\(msg\.command\)\) \{[^}]*\[D1_KEEP_LOADED_KEY\]: false/);});+ test(`${build}: D1's ready marker says whether its package is downloaded, and reading it creates nothing`, async () => {+ const directoryName = `${pin.D1_CACHE_NAME}-${pin.D1_RELEASE.revision}`;+ await withD1Download(pin, {}, async ({ reads }) => {+ assert.equal(await cache.d1PackageReady(), true);+ assert.deepEqual(reads, [['directory', directoryName, undefined], ['file', 'ready.json', undefined]], 'no create option anywhere');+ });+ for (const marker of ['missing', 'no-directory', { revision: 'older', manifestSha256: pin.D1_RELEASE.manifestSha256 }, { revision: pin.D1_RELEASE.revision, manifestSha256: 'f'.repeat(64) }]) {+ await withD1Download(pin, { marker }, async () => assert.equal(await cache.d1PackageReady(), false, JSON.stringify(marker)));+ }+ assert.equal(await cache.d1PackageReady({}), false, 'a browser without OPFS');+ });+ test(`${build}: the install guide may read, check, start and stop D1's download and leaves decision settings alone`, async () => {+ const background = await readFile(new URL(`../src/${build}/src/background.js`, import.meta.url), 'utf8');+ const branch = background.slice(background.indexOf("case 'd1_control':"), background.indexOf("case 'list_decision_models':"));+ // From the guide: status, probe, download and stop only. Load, Unload,+ // Remove and consent stay in Settings, and consent still gates a download.+ assert.match(branch, /page === api\.runtime\.getURL\('src\/ui\/install\.html'\)\s*&& \['status', 'probe', 'download', 'stop'\]\.includes\(msg\.command\)/);+ assert.match(branch, /const page = sender\.id === api\.runtime\.id \? String\(sender\.url \|\| ''\)\.split\(\/\[\?#\]\/\)\[0\] : '';/);+ assert.match(branch, /if \(page !== api\.runtime\.getURL\('src\/ui\/providers\.html'\) && !fromInstall\) return \{ success: false/);+ assert.match(branch, /if \(msg\.consent !== true \|\| msg\.consentVersion !== D1_CONSENT_VERSION\) throw/);+ assert.match(branch, /result: fromInstall \? \{ \.\.\.result, usedForDecisions: await d1UsedForDecisions\(api\) \} : result/);+ assert.doesNotMatch(background, /adoptForDecisions|adoptD1ForDecisions/, 'the guide never writes decision settings');+ // The guide says whether D1 answers this profile's decisions now.+ const source = topLevelFunction(background, 'd1UsedForDecisions');+ const compassProvider = { config: { providerName: 'webbrain-cloud', baseUrl: 'https://api.webbrain.one/v1' } };+ const otherProvider = { config: { providerName: 'openai' } };+ const consent = { [pin.D1_CONSENT_KEY]: pin.D1_CONSENT_VERSION };+ const loaded = { [pin.D1_KEEP_LOADED_KEY]: true };+ for (const [label, stored, options, expected] of [+ ['Auto with D1 downloaded', { ...consent, ...loaded }, {}, true],+ ['Auto while Compass chats', { ...consent, ...loaded }, { provider: compassProvider }, false],+ ['Auto after Unload', { ...consent, [pin.D1_KEEP_LOADED_KEY]: false }, {}, false],+ ['Auto before the download finished', { ...consent, ...loaded }, { marker: 'missing' }, false],+ ['Strict Secret Mode', { ...consent, ...loaded }, { strict: true }, false],+ ['On with D1', { ...consent, ...loaded, decisionMode: 'on', decisionProvider: 'webgpu_d1' }, { provider: compassProvider }, true],+ ['On with another provider', { ...consent, ...loaded, decisionMode: 'on', decisionProvider: 'openrouter', decisionApiKey: 'owned-key' }, {}, false],+ ['Off', { ...consent, ...loaded, decisionMode: 'off' }, {}, false],+ ]) {+ await withD1Download(pin, { stored, marker: options.marker }, async ({ api, area }) => {+ const before = JSON.stringify(area);+ const providerManager = { providers: new Map([['active', {}]]), load: async () => {}, getActive: () => options.provider || otherProvider };+ const context = vm.createContext({ api, agent: { strictSecretMode: options.strict === true }, providerManager,+ DECISION_SETTINGS_KEYS: config.DECISION_SETTINGS_KEYS, resolveCurrentDecisionConfig: availability.resolveCurrentDecisionConfig });+ vm.runInContext(source, context);+ assert.equal(await vm.runInContext('d1UsedForDecisions(api)', context), expected, label);+ assert.equal(JSON.stringify(area), before, `${label}: nothing is written`);+ });+ }+ });test(`${build}: D1 is opt-in, endpoint/key-free, zero-cost and overrides Compass only with explicit local consent`, async () => {const stored = { decisionProvider: 'webgpu_d1', systemOneEnabled: true };assert.equal(config.resolveDecisionConfig(stored).enabled, false);diff --git a/test/decision-mode.mjs b/test/decision-mode.mjsindex e3cd82266..2de80916b 100644--- a/test/decision-mode.mjs+++ b/test/decision-mode.mjs@@ -26,9 +26,32 @@ function withBonsaiCache(downloaded, fn) {});}+// D1 after a finished download: the experimental-model consent, the stored+// Load request and the package's ready marker in its OPFS directory.+async function withD1Download(pin, { consent = true, keepLoaded = true, marker = true } = {}, fn) {+ const savedNavigator = Object.getOwnPropertyDescriptor(globalThis, 'navigator');+ const savedGet = area.get;+ const reads = [];+ area.get = async keys => {+ const wanted = keys == null ? [] : Array.isArray(keys) ? keys : [keys];+ return Object.fromEntries(wanted.filter(key => key === pin.D1_KEEP_LOADED_KEY && keepLoaded).map(key => [key, true]));+ };+ const directory = { async getFileHandle(name) {+ reads.push(name);+ if (!marker) throw new Error('NotFoundError');+ return { getFile: async () => ({ text: async () => JSON.stringify({ revision: pin.D1_RELEASE.revision, manifestSha256: pin.D1_RELEASE.manifestSha256 }) }) };+ } };+ Object.defineProperty(globalThis, 'navigator', { configurable: true, value: { storage: { getDirectory: async () => ({ getDirectoryHandle: async () => directory }) } } });+ try { return await fn({ reads, consent: consent ? { [pin.D1_CONSENT_KEY]: pin.D1_CONSENT_VERSION } : {} }); } finally {+ area.get = savedGet;+ if (savedNavigator) Object.defineProperty(globalThis, 'navigator', savedNavigator); else delete globalThis.navigator;+ }+}+for (const build of ['chrome', 'firefox']) {const config = await import(`../src/${build}/src/agent/decision-config.js`);const availability = await import(`../src/${build}/src/agent/decision-availability.js`);+ const pin = await import(`../src/${build}/src/providers/d1-config.js`);const transfer = await import(`../src/${build}/src/config-transfer.js`);const scheduler = await import(`../src/${build}/src/agent/scheduler.js`);@@ -190,6 +213,84 @@ for (const build of ['chrome', 'firefox']) {});});+ test(`${build}: Auto uses a downloaded D1 for completion and scheduled checks only, never over Compass or a saved choice`, async () => {+ const consent = { [pin.D1_CONSENT_KEY]: pin.D1_CONSENT_VERSION };+ const local = config.resolveDecisionConfig({ ...consent, decisionVisionMode: 'off', decisionProvider: 'openrouter', systemOneFastBrowser: true }, null, { localAssistReady: true });+ assert.equal(local.provider, 'webgpu_d1'); assert.equal(local.source, 'local_assist'); assert.equal(local.mode, 'auto');+ assert.equal(local.model, pin.D1_MODEL_ID); assert.equal(local.enabled, true); assert.equal(local.local, true);+ assert.equal(local.supportsVision, true, "another provider's image setting does not blind D1");+ assert.equal(local.requiresIndependentSuccessConfirmation, true, 'a positive D1 completion still needs independent proof');+ assert.deepEqual(local.features, { ...NO_FEATURES, done: true, watch: true, completion: true },+ 'fast classifications, fast browser actions and semantic decisions stay with On');+ assert.equal(local.threshold, .9);+ // The download alone, or consent alone, is not enough; Compass, Off and On keep their own answer.+ assert.equal(config.resolveDecisionConfig(consent).source, 'none');+ assert.equal(config.resolveDecisionConfig({}, null, { localAssistReady: true }).source, 'none', 'no consent, no D1');+ assert.equal(config.resolveDecisionConfig(consent, COMPASS, { localAssistReady: true }).provider, 'compass');+ assert.equal(config.resolveDecisionConfig({ ...consent, decisionMode: 'off' }, null, { localAssistReady: true }).enabled, false);+ const on = config.resolveDecisionConfig({ ...consent, decisionMode: 'on', decisionProvider: 'typesafe', typesafeApiKey: 'ts-key' }, null, { localAssistReady: true });+ assert.equal(on.provider, 'typesafe'); assert.equal(on.source, 'configured');+ assert.equal(config.decisionNeedsLocalAssist(consent), true);+ for (const [stored, compass] of [[{}, null], [consent, COMPASS], [{ ...consent, decisionMode: 'on' }, null], [{ ...consent, decisionMode: 'off' }, null], [{ ...consent, systemOneEnabled: true }, null]]) {+ assert.equal(config.decisionNeedsLocalAssist(stored, compass), false, JSON.stringify([stored, compass]));+ }+ });++ test(`${build}: the current configuration reads D1's download only when Auto could use it`, async () => {+ await withD1Download(pin, {}, async ({ reads, consent }) => {+ const auto = await availability.resolveCurrentDecisionConfig(consent);+ assert.equal(auto.provider, 'webgpu_d1'); assert.equal(auto.source, 'local_assist');+ assert.deepEqual(reads, ['ready.json'], 'one marker read, no Worker or GPU');+ reads.length = 0;+ assert.equal((await availability.resolveCurrentDecisionConfig(consent, COMPASS)).provider, 'compass');+ await availability.resolveCurrentDecisionConfig({ ...consent, decisionMode: 'off' });+ await availability.resolveCurrentDecisionConfig({ ...consent, decisionMode: 'on', decisionProvider: 'local' });+ assert.equal((await availability.resolveCurrentDecisionConfig({})).source, 'none');+ assert.deepEqual(reads, [], 'Compass, Off, On and a profile without consent never look');+ });+ await withD1Download(pin, { keepLoaded: false }, async ({ reads, consent }) => {+ assert.equal((await availability.resolveCurrentDecisionConfig(consent)).source, 'none', 'Unload, Remove and Off end what Auto uses');+ assert.deepEqual(reads, []);+ });+ await withD1Download(pin, { marker: false }, async ({ consent }) => {+ assert.equal((await availability.resolveCurrentDecisionConfig(consent)).source, 'none', 'a download that never finished');+ });+ await withBonsaiCache(true, async lookups => {+ await availability.resolveCurrentDecisionConfig({ [pin.D1_CONSENT_KEY]: pin.D1_CONSENT_VERSION });+ assert.equal(lookups.length, 0, 'the chat/vision model is never looked up');+ });+ });++ test(`${build}: scheduled checks and agent decisions use Auto's D1 for its own checks only`, async () => {+ let calls = 0;+ const judge = { evaluate: async args => { calls++; assert.equal(args.config.provider, 'webgpu_d1'); return { model: pin.D1_MODEL_ID, answers: { condition_met: { noul: .95 }, task_complete: { noul: .95 }, task_completeness: { score: 2 } } }; } };+ const h = makeSchedulerHarness(scheduler, { systemOneJudge: judge });+ const evidence = { observations: [{ data: 'Status: done' }] };+ await withD1Download(pin, {}, async ({ consent }) => {+ const run = (source, runMeta = {}) => h.manager._evaluateSystemOne({ source, prompt: 'Watch status', tabId: 77 }, '', 'success', { settings: consent, evidence, ...runMeta });+ assert.equal((await run('watch')).decision, 'keep', 'Auto checks a watch with the downloaded D1');+ assert.equal((await run('scheduled')).decision, 'keep');+ assert.equal((await run('watch', { compass: COMPASS })).reason, 'disabled', 'Compass keeps watches with the main model');+ assert.equal(calls, 2);+ });+ const saved = globalThis.chrome;+ const store = { [pin.D1_CONSENT_KEY]: pin.D1_CONSENT_VERSION };+ try {+ await withD1Download(pin, {}, async () => {+ const download = globalThis.chrome.storage.local.get;+ const local = { get: async keys => ({ ...store, ...await download(keys) }), set: async values => Object.assign(store, values) };+ globalThis.chrome = globalThis.browser = { ...saved, storage: { local, session: local } };+ const { Agent } = await import(`../src/${build}/src/agent/agent.js`);+ const agent = new Agent({ getActive: () => ({ config: {} }) });+ assert.equal((await agent._jevSettings(1, { config: {} }, 'done'))?.decisionConfig.provider, 'webgpu_d1');+ for (const feature of ['semantic', 'classifications', 'browser']) assert.equal(await agent._jevSettings(1, { config: {} }, feature), null, feature);+ assert.equal(await agent._jevSettings(1, { config: { providerName: 'webbrain-cloud', baseUrl: COMPASS.baseUrl } }, 'watch'), null, 'Compass first');+ });+ } finally {+ globalThis.chrome = globalThis.browser = saved;+ }+ });+test(`${build}: agent decision paths ask for their own decision`, async () => {const saved = globalThis.chrome;const store = { decisionMode: 'on', decisionProvider: 'local', systemOneFastBrowser: false };diff --git a/test/run.js b/test/run.jsindex 1ae4bbf06..cdf428d29 100644--- a/test/run.js+++ b/test/run.js@@ -45269,7 +45269,7 @@ test('first install opens a browser-aware panel launcher without fake toolbar coconst chromeLocale = (await import(pathToFileURL(path.join(ROOT, 'src/chrome/src/ui/locales', filename)).href)).default;const firefoxLocale = (await import(pathToFileURL(path.join(ROOT, 'src/firefox/src/ui/locales', filename)).href)).default;const installKeys = Object.keys(chromeLocale).filter((key) => key.startsWith('install.'));- assert.equal(installKeys.length, 80, `${filename}: install guide should translate every user-facing string`);+ assert.equal(installKeys.length, 86, `${filename}: install guide should translate every user-facing string`);assert.ok(chromeLocale['install.showcase.ask.title'], `${filename}: Ask showcase headline should be translated`);assert.ok(chromeLocale['install.showcase.apocalypse.body'], `${filename}: Apocalypse showcase body should be translated`);for (const key of [@@ -45282,13 +45282,22 @@ test('first install opens a browser-aware panel launcher without fake toolbar co'install.mock.captcha_sent', 'install.mock.captcha_waiting', 'install.mock.captcha_note','install.mock.show_image', 'install.mock.safesocial_note', 'install.mock.tab', 'install.mock.screen',...['intro', 'download', 'note', 'checking', 'downloading', 'pause', 'resume', 'paused', 'working', 'ready',- 'ready_detail', 'retry', 'error', 'unsupported', 'busy', 'progress_label'].map((key) => `install.local_model.${key}`),+ 'ready_detail', 'retry', 'error', 'unsupported', 'busy', 'progress_label', 'd1_downloading', 'd1_paused',+ 'd1_ready', 'd1_saved', 'd1_unsupported', 'd1_error'].map((key) => `install.local_model.${key}`),]) {assert.ok(chromeLocale[key], `${filename}: ${key} should be translated`);}assert.ok(chromeLocale['install.local_model.downloading'].includes('{progress}'), `${filename}: download progress must keep its placeholder`);assert.ok(chromeLocale['install.local_model.paused'].includes('{progress}'), `${filename}: paused progress must keep its placeholder`);assert.ok(chromeLocale['install.local_model.error'].includes('{error}'), `${filename}: the download error must keep its placeholder`);+ for (const key of ['d1_downloading', 'd1_paused']) {+ assert.ok(chromeLocale[`install.local_model.${key}`].includes('{progress}'), `${filename}: ${key} must keep its placeholder`);+ }+ assert.ok(chromeLocale['install.local_model.d1_error'].includes('{error}'), `${filename}: the D1 error must keep its placeholder`);+ // The note is the D1 consent the click gives: it names D1, says it is+ // experimental and from Hugging Face, and states both sizes.+ assert.ok(/D1/.test(chromeLocale['install.local_model.note']) && /Hugging Face/.test(chromeLocale['install.local_model.note']),+ `${filename}: the note should name D1 and Hugging Face`);assert.ok(chromeLocale['install.shot.body_html'].includes('<code>/screenshot --full-page</code>'), `${filename}: the screenshot command must survive translation verbatim`);assert.ok(chromeLocale['install.record.body_html'].includes('<code>/record</code>'), `${filename}: the record command must survive translation verbatim`);assert.ok(chromeLocale['install.pin.confirm'], `${filename}: pin coachmark should translate its confirmation action`);@@ -45330,6 +45339,13 @@ test('chrome install page offers the shipped in-browser model with progress instassert.match(css, /\.local-model-note \{[\s\S]*?color: var\(--quiet\);[\s\S]*?font-size: 12px;/, 'the optional note should be small and gray');assert.match(english['install.local_model.note'], /^Optional\b/, 'the note should say up front that the download is optional');assert.match(english['install.local_model.note'], /1\.45 GB/, 'the note should state the download size of the preset');+ assert.match(english['install.local_model.note'], /0\.95 GB for D1, WebBrain’s experimental decision model from Hugging Face/,+ 'the note is the D1 consent: its size, that it is experimental, and where it comes from');+ assert.match(english['install.local_model.note'], /GPU memory/, 'the note states the memory D1 needs, like the Settings consent');+ assert.match(hero, /id="local-model-button"[^>]*aria-describedby="local-model-status local-model-d1 local-model-note"/,+ 'the button is described by both download lines and the note');+ assert.match(hero, /<p id="local-model-d1" class="local-model-status local-model-d1" aria-live="polite" hidden><\/p>/,+ 'D1 has its own announced status line, hidden until it starts');const preset = webgpu.WEBGPU_MODEL_PRESETS.find((entry) => entry.id === modelId);assert.equal(preset.size, '1.45 GB', 'the note quotes the preset size; update the copy if the preset changes');@@ -45542,6 +45558,184 @@ test('chrome install page offers the shipped in-browser model with progress inst}});+test('chrome install page downloads D1 next to the chat model and says what D1 does', async () => {+ const install = await import(pathToFileURL(path.join(ROOT, 'src/chrome/src/ui/install.js')).href);+ const webgpu = await import(pathToFileURL(path.join(ROOT, 'src/chrome/src/providers/webgpu.js')).href);+ const d1Config = await import(pathToFileURL(path.join(ROOT, 'src/chrome/src/providers/d1-config.js')).href);+ const english = (await import(pathToFileURL(path.join(ROOT, 'src/chrome/src/ui/locales/en.js')).href)).default;+ assert.equal(fs.readFileSync(path.join(ROOT, 'src/chrome/src/ui/install.js'), 'utf8'),+ fs.readFileSync(path.join(ROOT, 'src/firefox/src/ui/install.js'), 'utf8'), 'install.js stays identical in both builds');+ const modelId = webgpu.WEBGPU_BONSAI2_VL_2B_MODEL_ID;++ const normalize = install.normalizeD1Snapshot;+ assert.deepEqual(normalize({ status: 'ready', loaded: true, usedForDecisions: true }), { status: 'ready', progress: 100, error: '', usedForDecisions: true });+ assert.equal(normalize({ status: 'cached' }).status, 'saved');+ assert.equal(normalize({ status: 'error', cached: true, error: 'WebGPU device lost' }).status, 'saved', 'a verified cache is still saved');+ assert.deepEqual(normalize({ status: 'downloading', progress: 41.6 }), { status: 'downloading', progress: 42, error: '', usedForDecisions: false });+ assert.equal(normalize({ status: 'loading', progress: 100 }).status, 'downloading');+ assert.equal(normalize({ status: 'stopped', progress: 30 }).status, 'paused');+ assert.deepEqual(normalize({ status: 'error', error: 'no bytes' }), { status: 'error', progress: 0, error: 'no bytes', usedForDecisions: false });+ assert.equal(normalize({ status: 'idle' }).status, 'idle');+ assert.equal(normalize(undefined).status, 'idle');+ const view = install.d1View;+ assert.equal(view({ status: 'idle' }).statusKey, '', 'D1 says nothing until it starts');+ assert.equal(view({ status: 'ready', usedForDecisions: true }).statusKey, 'install.local_model.d1_ready');+ assert.equal(view({ status: 'saved', usedForDecisions: true }).statusKey, 'install.local_model.d1_ready', 'a kept-loaded D1 loads for its next decision');+ assert.equal(view({ status: 'ready', usedForDecisions: false }).statusKey, 'install.local_model.d1_saved', 'a profile with another decision model is told where D1 is');+ assert.equal(view({ status: 'error' }).isError, true);+ for (const status of ['checking', 'downloading', 'paused', 'ready', 'saved', 'unsupported', 'error']) {+ const { statusKey } = view({ status, usedForDecisions: status === 'ready' });+ assert.ok(english[statusKey], `${status}: ${statusKey} should be translated`);+ }++ function fakeRuntime(responses) {+ const sent = [];+ const listeners = [];+ return {+ sent, listeners,+ onMessage: { addListener(fn) { listeners.push(fn); } },+ async sendMessage(message) {+ sent.push(message);+ const key = message.action === 'd1_control' ? `d1_control:${message.command}` : message.action;+ const reply = responses[key];+ return typeof reply === 'function' ? reply(message) : reply;+ },+ };+ }+ function fakeDocument() {+ const element = (id, extra = {}) => {+ const attributes = new Map();+ const classes = new Set();+ const listeners = new Map();+ return {+ id, dataset: {}, hidden: false, disabled: true, textContent: '',+ style: { setProperty() {} },+ classList: { toggle(name, on) { if (on) classes.add(name); else classes.delete(name); }, contains: (name) => classes.has(name) },+ setAttribute(name, value) { attributes.set(name, String(value)); },+ removeAttribute(name) { attributes.delete(name); },+ getAttribute(name) { return attributes.get(name) ?? null; },+ addEventListener(type, fn) { listeners.set(type, fn); },+ fire(type) { return listeners.get(type)?.(); },+ ...extra,+ };+ };+ const nodes = {+ 'local-model': element('local-model', { dataset: { model: modelId, state: 'checking' } }),+ 'local-model-button': element('local-model-button'),+ 'local-model-label': element('local-model-label'),+ 'local-model-progress': element('local-model-progress', { hidden: true }),+ 'local-model-status': element('local-model-status'),+ 'local-model-d1': element('local-model-d1', { hidden: true }),+ };+ return { nodes, getElementById: (id) => nodes[id] || null };+ }+ // Like the real translator, a string only shows the placeholders it has.+ const translate = (key, params = {}) => [key,+ ...['progress', 'error'].filter((name) => String(english[key] || '').includes(`{${name}}`)).map((name) => params[name])].join('|');+ const settle = async () => { for (let i = 0; i < 6; i += 1) await new Promise((resolve) => setTimeout(resolve, 0)); };+ const bonsai = (state) => ({+ get_webgpu_download_status: (message) => (message.model === modelId ? state.bonsai : { status: 'not-downloaded' }),+ test_provider: { ok: true },+ get_providers: { providers: { webgpu: { model: modelId } }, active: 'webbrain_cloud' },+ start_webgpu_download: () => { state.bonsai = { status: 'downloading', modelId, loaded: 100, total: 1000 }; return { ok: true }; },+ pause_webgpu_download: () => { state.bonsai = { status: 'paused', modelId, progress: 10 }; return { ok: true }; },+ });++ {+ // A new install: one click downloads both; Auto then uses D1 for its checks.+ const state = { bonsai: { status: 'not-downloaded', modelId }, d1: { status: 'idle' } };+ const runtime = fakeRuntime({+ ...bonsai(state),+ 'd1_control:status': () => ({ success: true, result: { ...state.d1, usedForDecisions: state.d1.status === 'ready' } }),+ 'd1_control:probe': { success: true, result: { success: true } },+ 'd1_control:download': () => { state.d1 = { status: 'downloading', progress: 5 }; return { success: true, result: { started: true, ...state.d1 } }; },+ 'd1_control:stop': () => { state.d1 = { status: 'stopped', progress: 30 }; return { success: true, result: { stopped: true } }; },+ });+ const documentLike = fakeDocument();+ const controller = install.initializeLocalModelDownload({ documentLike, runtime, translate, pollMs: 60_000 });+ await settle();+ const { nodes } = documentLike;+ assert.equal(nodes['local-model-d1'].hidden, true, 'nothing about D1 before the click');+ assert.ok(runtime.sent.some((message) => message.action === 'd1_control' && message.command === 'status'), 'a reopened guide reads D1');++ await nodes['local-model-button'].fire('click');+ await settle();+ const d1Messages = runtime.sent.filter((message) => message.action === 'd1_control' && message.command !== 'status');+ assert.deepEqual(d1Messages.map((message) => message.command), ['probe', 'download'], 'D1 checks the GPU, then downloads');+ assert.deepEqual(d1Messages[1], { target: 'background', action: 'd1_control', command: 'download', consent: true,+ consentVersion: d1Config.D1_CONSENT_VERSION }, 'the click is the consent the note asks for, and nothing else');+ assert.ok(runtime.sent.some((message) => message.action === 'start_webgpu_download'), 'the chat model downloads too');+ assert.equal(nodes['local-model'].dataset.state, 'downloading');+ assert.equal(nodes['local-model-d1'].hidden, false);+ assert.equal(nodes['local-model-d1'].textContent, 'install.local_model.d1_downloading|5');++ // Pause stops both; resume starts both again.+ await nodes['local-model-button'].fire('click');+ await settle();+ assert.ok(runtime.sent.some((message) => message.action === 'd1_control' && message.command === 'stop'));+ assert.ok(runtime.sent.some((message) => message.action === 'pause_webgpu_download'));+ assert.equal(nodes['local-model-d1'].textContent, 'install.local_model.d1_paused|30');+ await nodes['local-model-button'].fire('click');+ await settle();+ assert.equal(runtime.sent.filter((message) => message.action === 'd1_control' && message.command === 'download').length, 2,+ 'resume downloads what D1 still lacks');++ state.d1 = { status: 'ready', loaded: true };+ await controller.d1.refresh();+ assert.equal(nodes['local-model-d1'].textContent, 'install.local_model.d1_ready');+ controller.dispose();+ }++ {+ // A GPU D1 cannot use: say so, and the chat model still downloads.+ const state = { bonsai: { status: 'not-downloaded', modelId } };+ const runtime = fakeRuntime({+ ...bonsai(state),+ 'd1_control:status': { success: true, result: { status: 'idle', usedForDecisions: false } },+ 'd1_control:probe': { success: false, error: 'D1 requires hardware WebGPU, not a software adapter.' },+ });+ const documentLike = fakeDocument();+ const controller = install.initializeLocalModelDownload({ documentLike, runtime, translate, pollMs: 60_000 });+ await settle();+ await documentLike.nodes['local-model-button'].fire('click');+ await settle();+ assert.ok(!runtime.sent.some((message) => message.action === 'd1_control' && message.command === 'download'), 'nothing downloads that cannot run');+ assert.ok(runtime.sent.some((message) => message.action === 'start_webgpu_download'));+ assert.equal(documentLike.nodes['local-model-d1'].textContent, 'install.local_model.d1_unsupported');+ controller.dispose();+ }++ {+ // No hardware WebGPU at all: D1 is not even checked.+ const runtime = fakeRuntime({+ get_webgpu_download_status: { status: 'not-downloaded', modelId },+ test_provider: { ok: false, error: 'Hardware WebGPU is unavailable.' },+ 'd1_control:status': { success: true, result: { status: 'idle' } },+ });+ const documentLike = fakeDocument();+ const controller = install.initializeLocalModelDownload({ documentLike, runtime, translate, pollMs: 60_000 });+ await settle();+ await documentLike.nodes['local-model-button'].fire('click');+ await settle();+ assert.ok(!runtime.sent.some((message) => message.action === 'd1_control' && message.command !== 'status'));+ assert.equal(documentLike.nodes['local-model-d1'].hidden, true);+ controller.dispose();+ }++ {+ // Compass's managed model, or a saved choice, answers instead: D1 is saved, and the guide says where to choose it.+ const runtime = fakeRuntime({+ get_webgpu_download_status: { status: 'ready', ready: true, modelId },+ 'd1_control:status': { success: true, result: { status: 'ready', loaded: true, usedForDecisions: false } },+ });+ const documentLike = fakeDocument();+ const controller = install.initializeLocalModelDownload({ documentLike, runtime, translate, pollMs: 60_000 });+ await settle();+ assert.equal(documentLike.nodes['local-model-d1'].textContent, 'install.local_model.d1_saved');+ controller.dispose();+ }+});+test('chrome /record reports mic denial as a warning, not recording failure', () => {const panel = fs.readFileSync(path.join(ROOT, 'src/chrome/src/ui/sidepanel.js'), 'utf8');const locale = fs.readFileSync(path.join(ROOT, 'src/chrome/src/ui/locales/en.js'), 'utf8');diff --git a/test/systemone-ui.mjs b/test/systemone-ui.mjsindex df4d125e0..64cb576c3 100644--- a/test/systemone-ui.mjs+++ b/test/systemone-ui.mjs@@ -140,7 +140,35 @@ try {assert.equal(await page.evaluate(() => testRequests.filter(r => r.action === 'test_system_one').length), 0);await page.evaluate(async () => { await caches.delete('transformers-cache'); });}- const tests = 0;+ // A finished D1 download (its consent, Load request and ready marker) is what Auto uses.+ await page.evaluate(async build => {+ const { D1_CACHE_NAME, D1_RELEASE, D1_CONSENT_KEY, D1_CONSENT_VERSION, D1_KEEP_LOADED_KEY } = await import(`/src/${build}/src/providers/d1-config.js`);+ const directory = await (await navigator.storage.getDirectory()).getDirectoryHandle(`${D1_CACHE_NAME}-${D1_RELEASE.revision}`, { create: true });+ const writer = await (await directory.getFileHandle('ready.json', { create: true })).createWritable();+ await writer.write(JSON.stringify({ revision: D1_RELEASE.revision, manifestSha256: D1_RELEASE.manifestSha256 }));+ await writer.close();+ Object.assign(testStore, { [D1_CONSENT_KEY]: D1_CONSENT_VERSION, [D1_KEEP_LOADED_KEY]: true });+ dispatchEvent(new Event('focus'));+ }, build);+ await page.waitForFunction(() => document.querySelector('#decision-auto-status').dataset.state === 'active');+ assert.match(await statusText(), tr ? /Kullanılıyor: bu cihazda D1\./ : /In use: D1, on this device\./);+ assert.equal(await page.locator('#btn-test-system-one').isVisible(), true, 'D1 runs here, so Auto can test it');+ await page.locator('#system-one-card').screenshot({ animations: 'disabled', caret: 'hide', path: `${output}/${build}-${lang}-${width}-auto-d1.png` });+ await page.locator('#btn-test-system-one').click();+ await page.waitForFunction(() => testRequests.filter(r => r.action === 'test_system_one').length === 1);+ assert.equal(await page.evaluate(() => testRequests.at(-1).settings.decisionMode), 'auto');+ // Unload ends what Auto uses.+ await page.evaluate(async build => {+ const { D1_CACHE_NAME, D1_RELEASE, D1_CONSENT_KEY, D1_KEEP_LOADED_KEY } = await import(`/src/${build}/src/providers/d1-config.js`);+ testStore[D1_KEEP_LOADED_KEY] = false;+ dispatchEvent(new Event('focus'));+ await new Promise(resolve => setTimeout(resolve, 50));+ await (await navigator.storage.getDirectory()).removeEntry(`${D1_CACHE_NAME}-${D1_RELEASE.revision}`, { recursive: true });+ delete testStore[D1_CONSENT_KEY]; delete testStore[D1_KEEP_LOADED_KEY];+ }, build);+ await page.waitForFunction(() => document.querySelector('#decision-auto-status').dataset.state === 'inactive');+ assert.equal(await page.locator('#btn-test-system-one').isVisible(), false);+ const tests = 1;// On applies at once and shows the provider fields; switches stay folded.await page.locator('input[name="decision-mode"][value="on"]').locator('..').click();await page.waitForFunction(() => testStore.decisionMode === 'on' && testStore.systemOneEnabled === true);@@ -202,13 +230,20 @@ try {await page.screenshot({ animations: 'disabled', caret: 'hide', path: `${output}/${build}-${lang}-${width}.png`, fullPage: true });await page.locator('#system-one-card').screenshot({ animations: 'disabled', caret: 'hide', path: `${output}/${build}-${lang}-${width}-decision-card.png` });// Off applies at once and hides everything but the explanation.+ const resets = () => page.evaluate(() => testRequests.filter(r => r.action === 'd1_control' && r.command === 'reset').length);+ const resetsBeforeOff = await resets();await page.locator('input[name="decision-mode"][value="off"]').locator('..').click();await page.waitForFunction(() => testStore.decisionMode === 'off' && testStore.systemOneEnabled === false);+ await page.waitForFunction(count => testRequests.filter(r => r.action === 'd1_control' && r.command === 'reset').length === count, resetsBeforeOff + 1);assert.equal(await page.locator('#decision-configured').isVisible(), false);assert.equal(await page.locator('#btn-test-system-one').isVisible(), false);assert.equal(await page.locator('#btn-save-system-one').isVisible(), false);assert.equal(await page.locator('#decision-auto-status').isVisible(), false);await page.locator('#system-one-card').screenshot({ animations: 'disabled', caret: 'hide', path: `${output}/${build}-${lang}-${width}-off.png` });+ // Off ended D1's Load; Auto keeps it, since Auto uses a downloaded D1.+ await page.locator('input[name="decision-mode"][value="auto"]').locator('..').click();+ await page.waitForFunction(() => testStore.decisionMode === 'auto' && testStore.systemOneEnabled === false);+ assert.equal(await resets(), resetsBeforeOff + 1);// Reset returns to Auto with On's defaults and deletes the keys.await page.locator('#btn-clear-system-one').click();await page.waitForFunction(() => testStore.decisionMode === undefined && testStore.typesafeApiKey === undefined);