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
Make Jev scheduled verification evidence-based and safe to resume
release-verification889d882de5d5
diff --git a/docs/architecture.md b/docs/architecture.mdindex 460942338..651217170 100644--- a/docs/architecture.md+++ b/docs/architecture.md@@ -1008,3 +1008,15 @@ Key points:- Trace data is local-only (IndexedDB), never transmitted- Offscreen proxy only forwards provider SDK traffic- Finance adapters inject extra confirmation guidance++### Jev auxiliary verification++The static Jev card lives above the dynamic provider list and never participates+in chat model selection. `systemone-judge.js` owns the pinned HTTP contract,+strict typed responses and a shared deadline for retries. `systemone-evidence.js`+collects bounded allowlisted observations and invalidates them on page changes.+Scheduler evaluation returns keep/downgrade/skip plus metadata, revalidates the+execution after awaiting the response and never requeues a downgraded action.+The agent supplies the original run cost state and trace ID to the sidecar.+No evidence is written to additional diagnostic logs. Watch baselines alone+persist a bounded observation to support change comparisons.diff --git a/docs/privacy-and-data-flow.md b/docs/privacy-and-data-flow.mdindex ac0bf2050..e2e244a32 100644--- a/docs/privacy-and-data-flow.md+++ b/docs/privacy-and-data-flow.md@@ -99,27 +99,37 @@ on login, layout, or timeout failures. Turning Research escalation off removesboth the delegation tool and the Ask-mode consent schema from later modelrequests.-### Optional TypeSafe System One scheduled-task judge--TypeSafe System One is **off by default** and has separate opt-in switches for-scheduled `/watch` polls and scheduled task completion. When enabled, the-background scheduler sends a bounded JSON state to `api.typesafe.ai` using the-user's own TypeSafe API key. The state contains the scheduled task text, the-latest bounded observation, and (for watches) the previous observation as data.-The sidecar receives no screenshot, audio, provider credential, conversation-history, or browser control capability.--System One can only downgrade an optimistic scheduler success to a partial-poll/completion. It cannot turn a failed or incomplete run into success. A-missing key, disabled feature, strict-secret run, cancellation, cost-limit-condition, timeout, invalid response, or network failure fails open to the-existing deterministic scheduler result. Thresholds are user-configurable and-bounded to 50–95%.--The TypeSafe key is stored in plaintext in browser local storage, is included-in portable Settings export like other BYO API keys, and may incur charges on-the user's TypeSafe account. The feature is implemented with the documented-HTTP API and does not install an SDK.+### Optional Jev (TypeSafe) scheduled-task verification++Settings → Providers → Auxiliary models contains Jev, disabled by default,+with separate watch and completion switches. Turning the master switch off+preserves those preferences. Removing the key disables all uses and resets+probability thresholds to 70%. Settings import/export preserves the original+`systemOne*` keys and `typesafeApiKey` (plaintext local storage).++The scheduler sends at most 16,000 serialized characters to+`https://api.typesafe.ai/v1/systemone`, pinned to `jev-1.13.0`. State contains+the bounded task, allowlisted textual tool observations from this run, and a+bounded real previous observation for watches. It excludes agent success+summaries, conversation history, screenshots, audio, attachments, raw request+bodies and credential fields. Text is redacted and wrapped as untrusted data.+An action invalidates earlier observations. Missing eligible evidence skips+verification. Redaction is best effort: ordinary page text can contain personal+data, so enabling Jev authorizes sending that limited evidence to TypeSafe.++Jev never upgrades a result. A low judgment on a read-only watch permits another+poll. If an action was dispatched or its outcome is uncertain, a downgrade+preserves its record and requests reconciliation instead of repeating it;+this also applies to recurring tasks. Cancellation or replaced execution+invalidates late responses. Invalid responses, unavailable service, Strict+Secret Mode, offline operation or cost restrictions retain the existing result.++Requests have one total five-second deadline, including up to two retries for+429/529. Connection testing occurs only on a button press and sends one fixed+synthetic example with no retries. Input usage is estimated at $0.042 per million+tokens; output tokens are free under the documented model price. Usage, duration,+model and decision reasons enter cost/trace accounting without raw evidence.+TypeSafe may charge your account; no SDK is installed.### WebBrain Compass improvement datadiff --git a/package.json b/package.jsonindex 6c449fded..dba3720fe 100644--- a/package.json+++ b/package.json@@ -5,7 +5,7 @@"private": true,"type": "module","scripts": {- "test": "node --test test/browser-dialogs.mjs && npm run test:firefox-bidi && npm run test:runtime-lifecycle && npm run test:provider-limits && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:build-unpacked && npm run test:attachment-drop && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security",+ "test": "npm run test:systemone && node --test test/browser-dialogs.mjs && npm run test:firefox-bidi && npm run test:runtime-lifecycle && npm run test:provider-limits && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:build-unpacked && npm run test:attachment-drop && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security","test:provider-limits": "node test/provider-model-limits.mjs","test:accessibility-tree-benchmark": "node --test test/llm/lib/accessibility-tree-formats.test.mjs && node test/llm/accessibility-tree-benchmark.mjs --no-exact-tokenizer --check","test:attachment-drop": "node test/attachment-drop.mjs",@@ -47,7 +47,9 @@"test:runtime-lifecycle": "node --test test/agent-lifecycle.mjs test/runtime-lifecycle.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs && node test/ui-content-lifecycle.mjs","test:rich-text-dom": "node test/ui-content-lifecycle.mjs --dom","test:firefox-bidi": "node --test test/firefox-bidi.mjs",- "test:firefox-bidi:e2e": "node test/firefox-bidi-e2e.mjs"+ "test:firefox-bidi:e2e": "node test/firefox-bidi-e2e.mjs",+ "test:systemone": "node --test test/systemone.mjs",+ "test:systemone:ui": "node test/systemone-ui.mjs"},"devDependencies": {"playwright": "^1.48.0",diff --git a/src/chrome/src/agent/agent.js b/src/chrome/src/agent/agent.jsindex 726fe5070..ea25ad9f5 100644--- a/src/chrome/src/agent/agent.js+++ b/src/chrome/src/agent/agent.js@@ -1,3 +1,4 @@+import { SYSTEM_ONE_COST_PROVIDER } from './systemone-judge.js';import { SOCIAL_PLATFORMS, socialPublicationApiPlatform, normalizePublicationContract, publicationProgress, exactPublicationText, publicationMediaMatches, publicationContractMessages, publicationAuditMessages, publicationAuditAccepted } from './social-publish-contract.js';import { AGENT_TOOLS, AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_NAMES, getToolsForMode, SYSTEM_PROMPT_ASK, SYSTEM_PROMPT_ACT, SYSTEM_PROMPT_ACT_COMPACT, SYSTEM_PROMPT_ACT_MID, SYSTEM_PROMPT_DEV_APPENDIX, SYSTEM_PROMPT_WEBMCP_ASK, SYSTEM_PROMPT_WEBMCP_ACT } from './tools.js';import { validateToolArguments } from './tool-arguments.js';@@ -5957,6 +5958,8 @@ export class Agent extends LoopDetector {// Claim synchronously before awaiting the external guard so teacher-mode// startup cannot race a run whose persisted teacher-state check is pending.this._runningTabs.add(tabId);+ this._systemOneGenerations ??= new Map();+ this._systemOneGenerations.set(tabId, (this._systemOneGenerations.get(tabId) || 0) + 1);// Reset only when claiming a NEW run, before any asynchronous setup.this.abortFlags.delete(tabId);const controller = new AbortController();@@ -6783,6 +6786,32 @@ export class Agent extends LoopDetector {return { status: reason, reason, ...(code ? { code } : {}), ...detail };}+ systemOneContext(tabId) {+ const generation = this._systemOneGenerations?.get(tabId);+ return { costState: this.currentCostState.get(tabId), runId: this.currentRunId.get(tabId),+ isCurrent: () => this._systemOneGenerations?.get(tabId) === generation };+ }++ async evaluateSystemOne(tabId, client, args, context = this.systemOneContext(tabId)) {+ const costState = context.costState || this.currentCostState.get(tabId) || this._newCostRunState();+ return client.evaluate({ ...args,+ beforeRequest: async () => {+ if (this.strictSecretMode || globalThis.navigator?.onLine === false || context.isCurrent?.() === false) throw new Error('Jev unavailable.');+ const message = await this._checkCostAllowance(SYSTEM_ONE_COST_PROVIDER, costState);+ if (message) throw this._costAllowanceError(message);+ },+ onUsage: async metadata => {+ await this._recordCostUsage(SYSTEM_ONE_COST_PROVIDER, metadata.usage, costState);+ this.recordSystemOneVerdict(tabId, { decision: 'usage', ...metadata }, context);+ },+ });+ }++ recordSystemOneVerdict(tabId, metadata, context = {}) {+ const runId = context.runId || this.currentRunId.get(tabId);+ if (runId) try { trace.recordNote(runId, 0, 'system_one', metadata); } catch {}+ }+async _chatWithCostAllowance(provider, messages, options, costState, requestContext = null) {const linked = this._linkAbortSignals(options?.signal, this._runAbortSignal(requestContext?.tabId));options = { ...options, signal: linked.signal };diff --git a/src/chrome/src/agent/scheduler.js b/src/chrome/src/agent/scheduler.jsindex 0cb8d8999..11c28eacc 100644--- a/src/chrome/src/agent/scheduler.js+++ b/src/chrome/src/agent/scheduler.js@@ -1,3 +1,4 @@+import { createSystemOneEvidence, systemOneEvidenceState } from './systemone-evidence.js';import {buildCompletionQuestions,buildWatchQuestions,@@ -570,6 +571,7 @@ export function summarizeScheduledJob(job) {target: job.target || null,lastResult: job.lastResult || null,lastOutcome: job.lastOutcome || null,+ systemOneVerdict: job.systemOneVerdict || null,lastError: job.lastError || null,needsUserInput: job.status === 'needs_user_input',clarificationRequired: job.clarificationRequired === true,@@ -1450,44 +1452,66 @@ export class ScheduledJobManager {return `[Scheduled task ${job.id}: ${job.title}]\nThe user explicitly scheduled this future task. Treat this as the user-authored task for this scheduled run.\nTask: ${job.prompt}\nFirst reread the current page/state. If the task is stale, conflicts with newer user messages, or needs user input, stop and explain.`;}- async _shouldDowngradeWithSystemOne(job, result, outcome, runMeta = {}) {- if (outcome !== 'success' || !this.systemOneJudge) return false;+ async _evaluateSystemOne(job, result, outcome, runMeta = {}) {const settings = asObject(runMeta.settings);const isWatch = job.source === 'watch';- const featureEnabled = isWatch ? settings.systemOneWatchEnabled : settings.systemOneCompletionEnabled;- if (settings.systemOneEnabled !== true- || featureEnabled !== true- || !settings.typesafeApiKey- || settings.strictSecretMode === true- || runMeta.sidecarAllowed === false- || runMeta.signal?.aborted) {- return false;- }- const state = {- task: String(job.prompt || job.resumeInstruction || job.reason || '').slice(0, 8000),- latest_observation: String(result || '').slice(0, 2000),- ...(isWatch ? {- baseline: String(job.watch?.lastObservation || '').slice(0, 2000) || null,- } : {}),- };+ const skip = reason => ({ decision: 'skip', reason });+ if (outcome !== 'success') return skip('not_success');+ if (!this.systemOneJudge || settings.systemOneEnabled !== true+ || !(isWatch ? settings.systemOneWatchEnabled : settings.systemOneCompletionEnabled)+ || !settings.typesafeApiKey) return skip('disabled');+ if (settings.strictSecretMode || runMeta.sidecarAllowed === false || runMeta.signal?.aborted) return skip('unavailable');+ const state = systemOneEvidenceState(job.prompt || job.resumeInstruction || job.reason || '', runMeta.evidence, isWatch ? job.watch?.systemOneBaseline : null);+ if (!state) return skip('no_evidence');try {- const verdict = await this.systemOneJudge.evaluate({- apiKey: settings.typesafeApiKey,- state,- questions: isWatch ? buildWatchQuestions() : buildCompletionQuestions(),- signal: runMeta.signal,- });- return shouldDowngradeSuccess(verdict?.answers, {- threshold: isWatch ? settings.systemOneWatchThreshold : settings.systemOneCompletionThreshold,- });+ const args = { apiKey: settings.typesafeApiKey, state,+ questions: isWatch ? buildWatchQuestions() : buildCompletionQuestions(), signal: runMeta.signal };+ const verdict = this.agent.evaluateSystemOne+ ? await this.agent.evaluateSystemOne(job.tabId, this.systemOneJudge, args, runMeta.judgeContext)+ : await this.systemOneJudge.evaluate(args);+ return {+ decision: shouldDowngradeSuccess(verdict.answers, {+ threshold: isWatch ? settings.systemOneWatchThreshold : settings.systemOneCompletionThreshold,+ }) ? 'downgrade' : 'keep',+ reason: 'evidence_judgment', model: verdict.model, latencyMs: verdict.latencyMs,+ usage: verdict.usage, estimatedCostUsd: verdict.estimatedCostUsd,+ };} catch (error) {- if (!runMeta.signal?.aborted) {- console.warn('[WebBrain] TypeSafe System One sidecar failed open:', error);- }- return false;+ return skip(runMeta.signal?.aborted ? 'cancelled' : error?.code === 'WB_COST_ALLOWANCE' ? 'cost_limit' : 'service_unavailable');}}+ async _applySystemOne(job, result, outcome, runMeta) {+ const verdict = await this._evaluateSystemOne(job, result, outcome, runMeta);+ if (runMeta.signal?.aborted || runMeta.judgeContext?.isCurrent?.() === false) return { stop: true };+ if (verdict.reason === 'disabled') return { stop: false, outcome };+ const current = await this._updateJobIf(job.id, prev => (+ ['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false+ ), prev => ({+ systemOneVerdict: verdict,+ ...(prev.source === 'watch' && runMeta.evidence?.observations?.length ? {+ watch: { ...prev.watch, systemOneBaseline: runMeta.evidence.observations.slice(-1) },+ } : {}),+ }));+ if (!current) return { stop: true };+ this.agent.recordSystemOneVerdict?.(job.tabId, verdict, runMeta.judgeContext);+ if (verdict.decision === 'downgrade' && (runMeta.evidence?.sideEffect || current.completedConsequentialAction || current.pendingToolCall)) {+ const waiting = await this._updateJobIf(job.id, prev => (+ prev.executionId === current.executionId && ['running', 'needs_user_input'].includes(prev.status) && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false+ ), () => ({ status: 'needs_user_input', reconciliationRequired: true,+ clarificationRequired: true, clarificationAuthorizationRequired: true,+ lastOutcome: 'partial', lastResult: String(result || '').slice(0, 2000),+ lastError: 'Jev could not verify the completed action. Check its result before running this task again.',+ nextRunAt: null, pendingClarify: null,+ }));+ if (waiting) this._emit(waiting, 'clarification_required');+ return { stop: true };+ }+ return { stop: false, outcome: verdict.decision === 'downgrade' ? 'partial' : outcome };+ }+async _completeWatch(job, result, outcome = null, runMeta = {}) {const lastOutcome = normalizeDoneOutcome(outcome);const observation = String(result || '').slice(0, 2000);@@ -1499,10 +1523,9 @@ export class ScheduledJobManager {&& !!eventKey&& eventKey === job.watch?.lastTriggeredEventKey;let effectiveOutcome = duplicateAlert ? 'partial' : lastOutcome;- if (effectiveOutcome === 'success'- && await this._shouldDowngradeWithSystemOne(job, result, effectiveOutcome, runMeta)) {- effectiveOutcome = 'partial';- }+ const judged = await this._applySystemOne(job, result, effectiveOutcome, runMeta);+ if (judged.stop) return;+ effectiveOutcome = judged.outcome;const freshAlert = effectiveOutcome === 'success'&& job.watch?.beep === true&& watchAlert.armed === true@@ -1531,6 +1554,8 @@ export class ScheduledJobManager {if (keepWatching) {const updated = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => {const nextRunAt = computeNextRunAt(prev, this.now());return {@@ -1586,6 +1611,8 @@ export class ScheduledJobManager {const completed = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => ({status: 'completed',reconciliationRequired: false,@@ -1634,13 +1661,14 @@ export class ScheduledJobManager {return;}let lastOutcome = normalizeDoneOutcome(outcome);- if (lastOutcome === 'success'- && await this._shouldDowngradeWithSystemOne(job, result, lastOutcome, runMeta)) {- lastOutcome = 'partial';- }+ const judged = await this._applySystemOne(job, result, lastOutcome, runMeta);+ if (judged.stop) return;+ lastOutcome = judged.outcome;if (job.kind === 'task' && job.schedule?.type === 'recurring') {const updated = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => {const nextRunAt = computeNextRunAt(prev, this.now());return {@@ -1670,6 +1698,8 @@ export class ScheduledJobManager {}const completed = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => ({status: 'completed',reconciliationRequired: false,@@ -1868,7 +1898,11 @@ export class ScheduledJobManager {let runStatus = null;let watchAlert = null;let sawFailureLikeUpdate = false;+ let judgeContext = null;+ const evidence = createSystemOneEvidence(this.agent._wrapUntrusted?.bind(this.agent));const onUpdate = (type, data) => {+ judgeContext = this.agent.systemOneContext?.(tabId) || judgeContext;+ evidence.observe(type, data);const doneOutcome = doneOutcomeFromUpdate(type, data);if (doneOutcome) runOutcome = doneOutcome;if (type === 'error' || type === 'attachment_rejected' || type === 'max_steps_reached'@@ -2032,6 +2066,9 @@ export class ScheduledJobManager {: null);await this._complete(running, result, effectiveOutcome, {watchAlert,+ evidence: evidence.snapshot(),+ judgeContext,+ executionId: execution.id,settings,signal: execution.controller.signal,sidecarAllowed: runStatus !== 'cost_limit',diff --git a/src/chrome/src/agent/systemone-evidence.js b/src/chrome/src/agent/systemone-evidence.jsnew file mode 100644index 000000000..274810485--- /dev/null+++ b/src/chrome/src/agent/systemone-evidence.js@@ -0,0 +1,70 @@+import { BROWSER_MUTATION_TOOLS } from './mutation-tools.js';+import { secureRandomBase36Token } from './random-token.js';++// Only these textual observations may leave the browser. Never serialize an+// entire tool result: it can include credentials, request bodies or attachments.+const READS = new Map([+ ['get_accessibility_tree', ['pageContent']], ['read_page', ['text', 'content', 'pageContent']],+ ['verify_form', ['fields', 'verified']], ['chat_observe', ['workflowState', 'newMessages']],+]);+const READ_NAVIGATION = new Set(['navigate', 'go_back', 'go_forward', 'scroll', 'hover', 'highlight_element', 'inspect_event_listeners', 'delegate_research', 'gmail_count_results']);+const SIDE_EFFECTS = new Set([...BROWSER_MUTATION_TOOLS, 'download_files', 'download_file', 'chrome_web_store_publish']);++export function redactSystemOneText(value) {+ return String(value ?? '').replace(/https?:\/\/[^\s"<>]+/gi, raw => {+ try { const url = new URL(raw); return `${url.origin}${url.pathname}`; } catch { return '[url]'; }+ }).replace(/[^\n]*(?:password|passwd|api[_ -]?key|authorization|access[_ -]?token|refresh[_ -]?token|cookie|secret|recovery code)[^\n]*/gi, '[credential omitted]')+ .replace(/\bBearer\s+\S+/gi, '[credential omitted]');+}++export function wrapSystemOneData(value) {+ const id = secureRandomBase36Token(8);+ const text = String(value).replace(/<\/?untrusted_page_content\b[^>]*>/gi, '[markup stripped]');+ return `<untrusted_page_content id="${id}">\n${text}\n</untrusted_page_content id="${id}">`;+}++export function createSystemOneEvidence(wrap = (_name, text) => wrapSystemOneData(text)) {+ let observations = [];+ let sideEffect = false;+ let pendingMutation = null;+ return {+ observe(type, data = {}) {+ const name = data.name;+ const networkWrite = ['fetch_url', 'research_url'].includes(name) && /^(POST|PUT|PATCH|DELETE)$/i.test(data.args?.method || '');+ if (type === 'tool_call' && (SIDE_EFFECTS.has(name) || networkWrite)) {+ observations = [];+ pendingMutation = name;+ }+ if (type !== 'tool_result') return;+ const result = data.result;+ if (pendingMutation === name) {+ if (!READ_NAVIGATION.has(name) && result?.noDispatch !== true && result?.dispatched !== false) sideEffect = true;+ pendingMutation = null;+ }+ if (!READS.has(name) || !result || result.error || result.success === false) return;+ const fields = {};+ for (const key of READS.get(name)) {+ // Nested data is excluded; explicit scalar readback fields are allowed.+ if (typeof result[key] === 'string') fields[key] = redactSystemOneText(result[key]).slice(0, 2500);+ if (typeof result[key] === 'boolean') fields[key] = result[key];+ }+ if (!Object.values(fields).some(v => typeof v === 'string' && v.trim())) return;+ observations.push({ tool: name, data: wrap(name, JSON.stringify(fields)) });+ observations = observations.slice(-2);+ },+ snapshot() { return { observations: observations.slice(), sideEffect: sideEffect || (!!pendingMutation && !READ_NAVIGATION.has(pendingMutation)) }; },+ };+}++export function systemOneEvidenceState(task, evidence, baseline = null) {+ if (!evidence?.observations?.length) return null;+ const state = {+ task: redactSystemOneText(task).slice(0, 4000),+ latest_observation: evidence.observations,+ baseline: Array.isArray(baseline) ? baseline.slice(-1).filter(v => READS.has(v?.tool) && typeof v.data === 'string').map(v => ({ tool: v.tool, data: wrapSystemOneData(redactSystemOneText(v.data).slice(0, 3000)) })) : null,+ };+ if (JSON.stringify(state).length > 16000) state.baseline = null;+ if (JSON.stringify(state).length > 16000) state.latest_observation = evidence.observations.slice(-1);+ if (JSON.stringify(state).length > 16000) return null;+ return state;+}diff --git a/src/chrome/src/agent/systemone-judge.js b/src/chrome/src/agent/systemone-judge.jsindex ed3ca867a..c96e90be7 100644--- a/src/chrome/src/agent/systemone-judge.js+++ b/src/chrome/src/agent/systemone-judge.js@@ -5,7 +5,7 @@// interface. It never performs an action or turns a non-success into success.export const SYSTEM_ONE_API_URL = 'https://api.typesafe.ai/v1/systemone';-export const SYSTEM_ONE_MODEL = 'jev-latest';+export const SYSTEM_ONE_MODEL = 'jev-1.13.0';export const SYSTEM_ONE_API_KEY = 'typesafeApiKey';export const SYSTEM_ONE_ENABLED_KEY = 'systemOneEnabled';export const SYSTEM_ONE_WATCH_ENABLED_KEY = 'systemOneWatchEnabled';@@ -97,8 +97,53 @@ function requestError(status) {}function normalizeAnswerNumber(value) {- const number = Number(value);- return Number.isFinite(number) ? number : null;+ return typeof value === 'number' && Number.isFinite(value) ? value : null;+}++export const SYSTEM_ONE_INPUT_COST_PER_MILLION_USD = 0.042;+export const SYSTEM_ONE_COST_PROVIDER = Object.freeze({+ config: { category: 'cloud', inputCostPerMillionUsd: SYSTEM_ONE_INPUT_COST_PER_MILLION_USD, outputCostPerMillionUsd: 0 },+});++export function validateSystemOneAnswers(answers, questions) {+ if (!isRecord(answers)) throw new Error('Invalid Jev answer map.');+ for (const [id, question] of Object.entries(questions)) {+ const answer = answers[id];+ if (!isRecord(answer) || answer.type !== question.type) throw new Error('Invalid Jev answer type.');+ if (question.type === 'noul') {+ if (!unitNumber(answer.noul)) throw new Error('Invalid Jev probability.');+ continue;+ }+ const keys = question.type === 'choice' ? Object.keys(question.criteria) : question.criteria.map((_, i) => String(i));+ if (!unitNumber(answer.confidence) || !isRecord(answer.probabilities)+ || Object.keys(answer.probabilities).length !== keys.length+ || keys.some(key => !unitNumber(answer.probabilities[key]))+ || Math.abs(keys.reduce((sum, key) => sum + answer.probabilities[key], 0) - 1) > 0.001) {+ throw new Error('Invalid Jev distribution.');+ }+ if (question.type === 'choice') {+ if (!keys.includes(answer.choice) || keys.some(key => answer.probabilities[key] > answer.probabilities[answer.choice] + 1e-6)) throw new Error('Invalid Jev choice.');+ } else {+ const expected = keys.reduce((sum, key) => sum + Number(key) * answer.probabilities[key], 0);+ if (normalizeAnswerNumber(answer.score) == null || answer.score < 0 || answer.score > keys.length - 1+ || Math.abs(expected - answer.score) > 0.02 || !isRecord(answer.legend)+ || keys.some(key => typeof answer.legend[key] !== 'string')) throw new Error('Invalid Jev score.');+ }+ }+ return answers;+}++function unitNumber(value) {+ return normalizeAnswerNumber(value) != null && value >= 0 && value <= 1;+}++function abortable(promise, signal) {+ throwIfAborted(signal);+ return new Promise((resolve, reject) => {+ const abort = () => reject(abortError(signal));+ signal.addEventListener('abort', abort, { once: true });+ Promise.resolve(promise).then(resolve, reject).finally(() => signal.removeEventListener('abort', abort));+ });}export function normalizeTypesafeApiKey(value) {@@ -110,12 +155,8 @@ export function isValidTypesafeApiKey(value) {}export function normalizeSystemOneThreshold(value, fallback = SYSTEM_ONE_DEFAULT_THRESHOLD) {- const number = Number(value);- const safeFallback = Number.isFinite(Number(fallback))- ? Number(fallback)- : SYSTEM_ONE_DEFAULT_THRESHOLD;- const candidate = Number.isFinite(number) ? number : safeFallback;- return Math.max(SYSTEM_ONE_MIN_THRESHOLD, Math.min(SYSTEM_ONE_MAX_THRESHOLD, candidate));+ const valid = n => typeof n === 'number' && Number.isFinite(n) && n >= SYSTEM_ONE_MIN_THRESHOLD && n <= SYSTEM_ONE_MAX_THRESHOLD;+ return valid(value) ? value : valid(fallback) ? fallback : SYSTEM_ONE_DEFAULT_THRESHOLD;}export function buildWatchQuestions() {@@ -170,7 +211,7 @@ export function shouldDowngradeSuccess(answers, { threshold = SYSTEM_ONE_DEFAULTconst completenessAnswer = answers.task_completeness;const probability = normalizeAnswerNumber(conditionAnswer?.noul);const score = normalizeAnswerNumber(completenessAnswer?.score);- if (probability == null || score == null) return false;+ if (!unitNumber(probability) || score == null || score < 0 || score > 2) return false;return probability < normalizeSystemOneThreshold(threshold)|| score < SYSTEM_ONE_MIN_COMPLETENESS_SCORE;}@@ -180,48 +221,57 @@ export function createSystemOneJudge({sleep = defaultSleep,timeoutMs = SYSTEM_ONE_TIMEOUT_MS,maxRetries = SYSTEM_ONE_MAX_RETRIES,+ now = () => Date.now(),} = {}) {if (typeof fetchImpl !== 'function') throw new Error('TypeSafe System One fetch is unavailable.');return {- async evaluate({ apiKey, state, questions, signal } = {}) {+ async evaluate({ apiKey, state, questions, signal, beforeRequest, onUsage } = {}) {const key = normalizeTypesafeApiKey(apiKey);if (!key) throw new Error('TypeSafe System One API key is not configured.');validateState(state);validateQuestions(questions);- const body = { state, model: SYSTEM_ONE_MODEL, questions };- const retries = Math.max(0, Math.floor(Number(maxRetries) || 0));-- for (let attempt = 0; ; attempt += 1) {- throwIfAborted(signal);- const request = requestSignal(signal, timeoutMs);- try {- const response = await fetchImpl(SYSTEM_ONE_API_URL, {+ const started = now();+ const request = requestSignal(signal, Math.max(1, Math.min(5000, Number(timeoutMs) || 5000)));+ const retries = Math.max(0, Math.min(2, Math.floor(Number(maxRetries) || 0)));+ try {+ for (let attempt = 0; ; attempt += 1) {+ throwIfAborted(request.signal);+ if (beforeRequest) await abortable(beforeRequest(), request.signal);+ throwIfAborted(request.signal);+ const response = await abortable(fetchImpl(SYSTEM_ONE_API_URL, {method: 'POST',- headers: {- Authorization: `Bearer ${key}`,- 'Content-Type': 'application/json',- },- body: JSON.stringify(body),+ credentials: 'omit',+ headers: { Authorization: `Bearer ${key}`, 'Content-Type': 'application/json' },+ body: JSON.stringify({ state, model: SYSTEM_ONE_MODEL, questions }),signal: request.signal,- });+ }), request.signal);if (!response?.ok) {const status = Number(response?.status) || 0;if ((status === 429 || status === 529) && attempt < retries) {- request.dispose();- await sleep(SYSTEM_ONE_RETRY_BASE_MS * (2 ** attempt));+ await abortable(sleep(SYSTEM_ONE_RETRY_BASE_MS * (2 ** attempt)), request.signal);continue;}throw requestError(status);}- let result;- try { result = await response.json(); } catch { throw new Error('TypeSafe System One returned invalid JSON.'); }- if (!isRecord(result) || !isRecord(result.answers)) {- throw new Error('TypeSafe System One returned an invalid answer map.');- }- return result;- } finally {- request.dispose();+ const result = await abortable(response.json(), request.signal);+ const usage = result?.usage;+ if (!isRecord(usage) || !Number.isInteger(usage.input_tokens) || usage.input_tokens < 0+ || !Number.isInteger(usage.output_tokens) || usage.output_tokens < 0) throw new Error('Invalid Jev usage.');+ const metadata = {+ model: SYSTEM_ONE_MODEL,+ usage: { input_tokens: usage.input_tokens, output_tokens: usage.output_tokens },+ latencyMs: Math.max(0, now() - started),+ estimatedCostUsd: usage.input_tokens * SYSTEM_ONE_INPUT_COST_PER_MILLION_USD / 1_000_000,+ };+ // Account for billable responses even when the answer contract is invalid.+ if (onUsage) await abortable(onUsage(metadata), request.signal);+ throwIfAborted(request.signal);+ if (result.model !== SYSTEM_ONE_MODEL) throw new Error('Unexpected Jev model version.');+ validateSystemOneAnswers(result.answers, questions);+ return { ...metadata, answers: result.answers };}+ } finally {+ request.dispose();}},};diff --git a/src/chrome/src/background.js b/src/chrome/src/background.jsindex f8b766cd8..84e6bb67e 100644--- a/src/chrome/src/background.js+++ b/src/chrome/src/background.js@@ -4058,6 +4058,17 @@ async function handleMessage(msg, sender) {return await providerManager.testTranscriptionProvider();}+ case 'test_system_one': {+ await strictSecretModeReady;+ try {+ const result = await agent.evaluateSystemOne(null, createSystemOneJudge({ maxRetries: 0 }), {+ apiKey: msg.apiKey, state: { color: 'blue' },+ questions: { test: { type: 'noul', instructions: 'Is the color blue?' } },+ });+ return { success: true, model: result.model };+ } catch (error) { return { success: false, error: error.message }; }+ }+case 'test_capsolver_balance': {// Settings UI "Check balance" button. Uses the key from the request// rather than re-reading storage so the user gets feedback beforediff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.jsindex 373ec4a35..1b5d572ff 100644--- a/src/chrome/src/ui/locales/ar.js+++ b/src/chrome/src/ui/locales/ar.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'المزوّدون النشطون','sp.providers.active': 'نشط','sp.providers.more': 'المزيد…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "نماذج مساعدة",+ "st.system_one.desc_html": "تحقق إضافي من المراقبة المجدولة وإتمام المهام.",+ "st.system_one.enabled.label": "تفعيل Jev",+ "st.system_one.api_key.label": "مفتاح API لـ TypeSafe",+ "st.system_one.watch.label": "التحقق من المراقبة المجدولة",+ "st.system_one.completion.label": "التحقق من إتمام المهام المجدولة",+ "st.system_one.security_html": "يرسل المهمة وأدلة محدودة من الصفحة إلى TypeSafe. يُحفظ المفتاح محليًا كنص عادي وقد يكون الاستخدام مدفوعًا. يعطّل Strict Secret Mode خدمة Jev.",+ "st.system_one.need_key": "أدخل مفتاح API لـ TypeSafe.",+ "st.system_one.uncertain": "Jev: تعذر التحقق من الإتمام.",+ "st.system_one.clear": "حذف المفتاح",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "التحقق من المراقبة المجدولة — عتبة الاحتمال",+ "st.system_one.completion_threshold": "التحقق من إتمام المهام المجدولة — عتبة الاحتمال",'st.providers.selected': 'محدد','st.providers.select_for_chat': 'تحديد للدردشة',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.jsindex c7b463f5d..d02f270b1 100644--- a/src/chrome/src/ui/locales/bn.js+++ b/src/chrome/src/ui/locales/bn.js@@ -978,22 +978,19 @@ export default {'st.captcha.balance_fail': "ব্যর্থ হয়েছে: {error}",'st.captcha.security_html': "<strong>হেড-আপ:</strong> API কী সংরক্ষণ করা হয় <strong>প্লেইনটেক্সট</strong> ব্রাউজার স্থানীয় স্টোরেজে। CapSolver প্রতিটি সমাধানের জন্য আপনার অ্যাকাউন্ট চার্জ করে; এজেন্ট কেবল তখনই এটিকে কল করবে যখন একটি ক্যাপচা প্রকৃতপক্ষে একটি পদক্ষেপকে ব্লক করে (প্রতি এনকাউন্টারে সর্বোচ্চ একবার - এটি ব্যর্থ হলে পুনরায় চেষ্টা করবে না)। কিছু সাইটের পরিষেবার শর্তাবলী স্বয়ংক্রিয় ক্যাপচা সমাধান নিষিদ্ধ করে; আপনার রায় ব্যবহার করুন।",- 'st.system_one.desc_html': 'শিডিউল করা ওয়াচ এবং কাজ সম্পন্ন হওয়ার জন্য দ্বিতীয় মতামত হিসেবে ঐচ্ছিকভাবে <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> ব্যবহার করুন। এটি শুধু সীমাবদ্ধ কাজ ও সর্বশেষ পর্যবেক্ষণ বিচার করে; ব্রাউজার নিয়ন্ত্রণ করে না।',- 'st.system_one.enabled.label': 'TypeSafe System One চালু করুন',- 'st.system_one.enabled.desc': 'শিডিউল করা কাজের যেকোনো গার্ড চালুর আগে এটি সামগ্রিকভাবে অনুমোদন করুন। ডিফল্টে বন্ধ।',- 'st.system_one.api_key.label': 'TypeSafe API key',- 'st.system_one.watch.label': 'শিডিউল করা ওয়াচ বিচার করুন',- 'st.system_one.watch.desc': 'শর্ত বা প্রমাণ অনিশ্চিত মনে হলে ওয়াচের সাফল্যকে পোল হিসেবে নামিয়ে দিন।',- 'st.system_one.completion.label': 'শিডিউল করা কাজ সম্পূর্ণতা বিচার করুন',- 'st.system_one.completion.desc': 'সম্পূর্ণতার প্রমাণ অনিশ্চিত মনে হলে অতিরিক্ত আশাবাদী সাফল্যকে নামিয়ে দিন।',- 'st.system_one.watch_threshold': 'ওয়াচ আস্থার সীমা',- 'st.system_one.completion_threshold': 'সম্পূর্ণতা আস্থার সীমা',- 'st.system_one.save': 'সেটিংস সংরক্ষণ করুন',- 'st.system_one.clear': 'মুছুন',- 'st.system_one.saved': 'সংরক্ষিত। TypeSafe System One কনফিগার করা হয়েছে।',- 'st.system_one.cleared': 'মুছে ফেলা হয়েছে।',- 'st.system_one.need_key': 'System One চালু করার আগে একটি TypeSafe API key দিন।',- 'st.system_one.security_html': '<strong>গোপনীয়তা ও খরচ:</strong> আপনি অনুমতি না দেওয়া পর্যন্ত এই বৈশিষ্ট্য বন্ধ থাকে। এক্সটেনশন আপনার API key ব্যবহার করে কাজ ও সীমাবদ্ধ সর্বশেষ পর্যবেক্ষণ TypeSafe-এ পাঠায়। স্ক্রিনশট, অডিও বা provider credentials পাঠানো হয় না। key ব্রাউজারের local storage-এ plaintext হিসেবে রাখা হয়; TypeSafe আপনার অ্যাকাউন্টে খরচ করতে পারে। Strict Secret Mode এই sidecar বন্ধ করে।',+ "st.system_one.heading": "সহায়ক মডেল",+ "st.system_one.desc_html": "নির্ধারিত পর্যবেক্ষণ ও কাজ সম্পন্ন হওয়ার অতিরিক্ত যাচাই।",+ "st.system_one.enabled.label": "Jev চালু করুন",+ "st.system_one.api_key.label": "TypeSafe API কী",+ "st.system_one.watch.label": "নির্ধারিত পর্যবেক্ষণ যাচাই করুন",+ "st.system_one.completion.label": "নির্ধারিত কাজ সম্পন্ন হওয়া যাচাই করুন",+ "st.system_one.security_html": "কাজ ও পৃষ্ঠার সীমিত প্রমাণ TypeSafe-এ পাঠায়। কী স্থানীয়ভাবে সাধারণ পাঠ্য হিসেবে থাকে এবং ব্যবহারে খরচ হতে পারে। Strict Secret Mode-এ Jev বন্ধ থাকে।",+ "st.system_one.need_key": "TypeSafe API কী লিখুন।",+ "st.system_one.uncertain": "Jev: কাজ সম্পন্ন হওয়া যাচাই করা যায়নি।",+ "st.system_one.clear": "কী মুছুন",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "নির্ধারিত পর্যবেক্ষণ যাচাই করুন — সম্ভাবনার সীমা",+ "st.system_one.completion_threshold": "নির্ধারিত কাজ সম্পন্ন হওয়া যাচাই করুন — সম্ভাবনার সীমা",// --- Chat History page -------------------------------------------------'hist.title': "WebBrain চ্যাট ইতিহাস",diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.jsindex 7c2f15ef6..465263e77 100644--- a/src/chrome/src/ui/locales/de.js+++ b/src/chrome/src/ui/locales/de.js@@ -919,22 +919,19 @@ export default {'st.captcha.balance_fail': 'Fehlgeschlagen: {error}','st.captcha.security_html': '<strong>Hinweis:</strong> Der API-Schlüssel wird als Klartext im Browser-Speicher gespeichert...',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Hilfsmodelle",+ "st.system_one.desc_html": "Zusätzliche Prüfung geplanter Überwachungen und Aufgabenabschlüsse.",+ "st.system_one.enabled.label": "Jev aktivieren",+ "st.system_one.api_key.label": "TypeSafe-API-Schlüssel",+ "st.system_one.watch.label": "Geplante Überwachungen prüfen",+ "st.system_one.completion.label": "Abschluss geplanter Aufgaben prüfen",+ "st.system_one.security_html": "Sendet die Aufgabe und begrenzte Seitenbelege an TypeSafe. Der Schlüssel wird lokal im Klartext gespeichert. Die Nutzung kann kostenpflichtig sein. Strict Secret Mode deaktiviert Jev.",+ "st.system_one.need_key": "TypeSafe-API-Schlüssel eingeben.",+ "st.system_one.uncertain": "Jev: Abschluss konnte nicht bestätigt werden.",+ "st.system_one.clear": "Schlüssel löschen",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Geplante Überwachungen prüfen — Wahrscheinlichkeitsschwelle",+ "st.system_one.completion_threshold": "Abschluss geplanter Aufgaben prüfen — Wahrscheinlichkeitsschwelle",// --- Skills settings ---'st.skills.desc_html': 'Aktivierte Skills stehen auf Anfrage in Mid- und Full-Leveln zur Verfügung...','st.skills.name.label': 'Name (optional)',diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.jsindex 7aa729da4..703bf2d2d 100644--- a/src/chrome/src/ui/locales/en.js+++ b/src/chrome/src/ui/locales/en.js@@ -982,22 +982,19 @@ export default {'st.captcha.balance_fail': 'Failed: {error}','st.captcha.security_html': '<strong>Heads-up:</strong> the API key is stored <strong>in plaintext</strong> in browser local storage. CapSolver charges your account for every solve; the agent will only call it when a CAPTCHA actually blocks a step (max once per encounter — it won\'t retry on failure). Some sites\' terms of service prohibit automated CAPTCHA solving; use your judgement.',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Auxiliary models",+ "st.system_one.desc_html": "Extra verification for scheduled watches and task completion.",+ "st.system_one.enabled.label": "Enable Jev",+ "st.system_one.api_key.label": "TypeSafe API key",+ "st.system_one.watch.label": "Verify scheduled watches",+ "st.system_one.completion.label": "Verify scheduled task completion",+ "st.system_one.security_html": "Sends the task and limited page evidence to TypeSafe. Your key is stored locally in plaintext and usage may cost money. Strict Secret Mode disables Jev.",+ "st.system_one.need_key": "Enter a TypeSafe API key.",+ "st.system_one.uncertain": "Jev: completion could not be verified.",+ "st.system_one.clear": "Delete key",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verify scheduled watches — Probability threshold",+ "st.system_one.completion_threshold": "Verify scheduled task completion — Probability threshold",// --- Chat History page -------------------------------------------------'hist.title': 'WebBrain Chat History',diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.jsindex 9bdf3bcf4..886ee497f 100644--- a/src/chrome/src/ui/locales/es.js+++ b/src/chrome/src/ui/locales/es.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Proveedores activos','sp.providers.active': 'Activo','sp.providers.more': 'Más…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Modelos auxiliares",+ "st.system_one.desc_html": "Verificación adicional de seguimientos y tareas programadas.",+ "st.system_one.enabled.label": "Activar Jev",+ "st.system_one.api_key.label": "Clave API de TypeSafe",+ "st.system_one.watch.label": "Verificar seguimientos programados",+ "st.system_one.completion.label": "Verificar tareas programadas completadas",+ "st.system_one.security_html": "Envía la tarea y pruebas limitadas de la página a TypeSafe. La clave se guarda localmente en texto plano. El uso puede tener coste. Strict Secret Mode desactiva Jev.",+ "st.system_one.need_key": "Introduce una clave API de TypeSafe.",+ "st.system_one.uncertain": "Jev: no se pudo verificar la finalización.",+ "st.system_one.clear": "Eliminar clave",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verificar seguimientos programados — Umbral de probabilidad",+ "st.system_one.completion_threshold": "Verificar tareas programadas completadas — Umbral de probabilidad",'st.providers.selected': 'SELECCIONADO','st.providers.select_for_chat': 'Seleccionar para el chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.jsindex d35769bea..298b072a2 100644--- a/src/chrome/src/ui/locales/fa.js+++ b/src/chrome/src/ui/locales/fa.js@@ -978,22 +978,19 @@ export default {'st.captcha.balance_fail': "ناموفق: {error}",'st.captcha.security_html': "<strong>هدآپ:</strong> کلید API ذخیره می شود <strong>در متن ساده</strong> در حافظه محلی مرورگر CapSolver برای هر حل حساب شما را شارژ می کند. عامل فقط زمانی آن را فراخوانی می کند که یک CAPTCHA در واقع یک مرحله را مسدود کند (حداکثر یک بار در هر برخورد - در صورت شکست مجدداً تلاش نمی کند). شرایط خدمات برخی از سایت ها حل خودکار CAPTCHA را ممنوع می کند. از قضاوت خود استفاده کنید",- 'st.system_one.desc_html': 'بهصورت اختیاری از <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> بهعنوان نظر دوم برای پایشهای زمانبندیشده و تکمیل وظایف استفاده کنید. این ابزار فقط وظیفه محدود و مشاهده اخیر را ارزیابی میکند و هرگز مرورگر را کنترل نمیکند.',- 'st.system_one.enabled.label': 'فعالسازی TypeSafe System One',- 'st.system_one.enabled.desc': 'پیش از فعالکردن هر محافظ وظیفه زمانبندیشده، این گزینه را بهصورت کلی فعال کنید. بهطور پیشفرض خاموش است.',- 'st.system_one.api_key.label': 'کلید API تایپسیف',- 'st.system_one.watch.label': 'ارزیابی پایشهای زمانبندیشده',- 'st.system_one.watch.desc': 'وقتی شرط یا شواهد نامطمئن است، موفقیت پایش را به یک بررسی دورهای تبدیل میکند.',- 'st.system_one.completion.label': 'ارزیابی تکمیل وظایف زمانبندیشده',- 'st.system_one.completion.desc': 'وقتی شواهد تکمیل نامطمئن است، موفقیت خوشبینانه وظیفه را کاهش میدهد.',- 'st.system_one.watch_threshold': 'آستانه اطمینان پایش',- 'st.system_one.completion_threshold': 'آستانه اطمینان تکمیل',- 'st.system_one.save': 'ذخیره تنظیمات',- 'st.system_one.clear': 'پاککردن',- 'st.system_one.saved': 'ذخیره شد. TypeSafe System One پیکربندی شد.',- 'st.system_one.cleared': 'پاک شد.',- 'st.system_one.need_key': 'پیش از فعالکردن System One یک کلید API تایپسیف وارد کنید.',- 'st.system_one.security_html': '<strong>حریم خصوصی و هزینه:</strong> این قابلیت تا زمان انتخاب شما خاموش است. افزونه با استفاده از کلید API شما، وظیفه و یک مشاهده اخیر محدودشده را به TypeSafe میفرستد. تصویر، صدا یا اعتبارنامه ارائهدهنده ارسال نمیشود. کلید بهصورت متن ساده در حافظه محلی مرورگر ذخیره میشود و TypeSafe ممکن است از حساب شما هزینه بگیرد. Strict Secret Mode این sidecar را غیرفعال میکند.',+ "st.system_one.heading": "مدلهای کمکی",+ "st.system_one.desc_html": "بررسی تکمیلی پایشهای زمانبندیشده و تکمیل کارها.",+ "st.system_one.enabled.label": "فعالسازی Jev",+ "st.system_one.api_key.label": "کلید API تایپسیف",+ "st.system_one.watch.label": "بررسی پایشهای زمانبندیشده",+ "st.system_one.completion.label": "بررسی تکمیل کارهای زمانبندیشده",+ "st.system_one.security_html": "کار و شواهد محدود صفحه را به TypeSafe میفرستد. کلید بهصورت متن ساده محلی ذخیره میشود و استفاده ممکن است هزینه داشته باشد. Strict Secret Mode، Jev را غیرفعال میکند.",+ "st.system_one.need_key": "کلید API تایپسیف را وارد کنید.",+ "st.system_one.uncertain": "Jev: تکمیل کار تأیید نشد.",+ "st.system_one.clear": "حذف کلید",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "بررسی پایشهای زمانبندیشده — آستانه احتمال",+ "st.system_one.completion_threshold": "بررسی تکمیل کارهای زمانبندیشده — آستانه احتمال",// --- Chat History page -------------------------------------------------'hist.title': "تاریخچه چت WebBrain",diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.jsindex b69e3ba25..eee498e36 100644--- a/src/chrome/src/ui/locales/fr.js+++ b/src/chrome/src/ui/locales/fr.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Fournisseurs actifs','sp.providers.active': 'Actif','sp.providers.more': 'Plus…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Modèles auxiliaires",+ "st.system_one.desc_html": "Vérification supplémentaire des surveillances et tâches planifiées.",+ "st.system_one.enabled.label": "Activer Jev",+ "st.system_one.api_key.label": "Clé API TypeSafe",+ "st.system_one.watch.label": "Vérifier les surveillances planifiées",+ "st.system_one.completion.label": "Vérifier la fin des tâches planifiées",+ "st.system_one.security_html": "Envoie la tâche et des éléments limités de la page à TypeSafe. La clé est stockée localement en clair. L’utilisation peut être payante. Strict Secret Mode désactive Jev.",+ "st.system_one.need_key": "Saisissez une clé API TypeSafe.",+ "st.system_one.uncertain": "Jev : fin de tâche non confirmée.",+ "st.system_one.clear": "Supprimer la clé",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Vérifier les surveillances planifiées — Seuil de probabilité",+ "st.system_one.completion_threshold": "Vérifier la fin des tâches planifiées — Seuil de probabilité",'st.providers.selected': 'SÉLECTIONNÉ','st.providers.select_for_chat': 'Sélectionner pour le chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.jsindex ec885d7a6..46b5bee2a 100644--- a/src/chrome/src/ui/locales/he.js+++ b/src/chrome/src/ui/locales/he.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'ספקים פעילים','sp.providers.active': 'פעיל','sp.providers.more': 'עוד…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "מודלים מסייעים",+ "st.system_one.desc_html": "אימות נוסף למעקבים מתוזמנים ולהשלמת משימות.",+ "st.system_one.enabled.label": "הפעלת Jev",+ "st.system_one.api_key.label": "מפתח API של TypeSafe",+ "st.system_one.watch.label": "אימות מעקבים מתוזמנים",+ "st.system_one.completion.label": "אימות השלמת משימות מתוזמנות",+ "st.system_one.security_html": "שולח את המשימה וראיות מוגבלות מהדף אל TypeSafe. המפתח נשמר מקומית כטקסט גלוי והשימוש עשוי להיות בתשלום. Strict Secret Mode משבית את Jev.",+ "st.system_one.need_key": "יש להזין מפתח API של TypeSafe.",+ "st.system_one.uncertain": "Jev: לא ניתן לאמת את ההשלמה.",+ "st.system_one.clear": "מחיקת מפתח",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "אימות מעקבים מתוזמנים — סף הסתברות",+ "st.system_one.completion_threshold": "אימות השלמת משימות מתוזמנות — סף הסתברות",'st.providers.selected': 'נבחר','st.providers.select_for_chat': 'בחירה לצ׳אט',"brand": "WebBrain",diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.jsindex 7cbd09c74..c2222b5aa 100644--- a/src/chrome/src/ui/locales/hi.js+++ b/src/chrome/src/ui/locales/hi.js@@ -978,22 +978,19 @@ export default {'st.captcha.balance_fail': "विफल: {error}",'st.captcha.security_html': "<strong>सावधान:</strong> एपीआई कुंजी संग्रहीत है <strong>सादे पाठ में</strong> ब्राउज़र स्थानीय भंडारण में. कैपसॉल्वर प्रत्येक समाधान के लिए आपके खाते से शुल्क लेता है; एजेंट इसे केवल तभी कॉल करेगा जब कैप्चा वास्तव में एक चरण को अवरुद्ध करता है (प्रति मुठभेड़ अधिकतम एक बार - यह विफलता पर पुनः प्रयास नहीं करेगा)। कुछ साइटों की सेवा की शर्तें स्वचालित कैप्चा समाधान पर रोक लगाती हैं; अपने निर्णय का प्रयोग करें.",- 'st.system_one.desc_html': 'शेड्यूल किए गए वॉच और कार्य-पूर्णता के लिए दूसरे मत के रूप में वैकल्पिक रूप से <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> का उपयोग करें। यह केवल सीमित कार्य और नवीनतम निरीक्षण का मूल्यांकन करता है; ब्राउज़र को नियंत्रित नहीं करता।',- 'st.system_one.enabled.label': 'TypeSafe System One सक्षम करें',- 'st.system_one.enabled.desc': 'किसी भी शेड्यूल किए गए सुरक्षा विकल्प को सक्षम करने से पहले इसे वैश्विक रूप से चुनें। डिफ़ॉल्ट रूप से बंद।',- 'st.system_one.api_key.label': 'TypeSafe API key',- 'st.system_one.watch.label': 'शेड्यूल किए गए वॉच का मूल्यांकन करें',- 'st.system_one.watch.desc': 'स्थिति या प्रमाण अनिश्चित होने पर वॉच की सफलता को पोल में बदलें।',- 'st.system_one.completion.label': 'शेड्यूल किए गए कार्य की पूर्णता का मूल्यांकन करें',- 'st.system_one.completion.desc': 'पूर्णता का प्रमाण अनिश्चित होने पर आशावादी कार्य-सफलता को कम करें।',- 'st.system_one.watch_threshold': 'वॉच विश्वास सीमा',- 'st.system_one.completion_threshold': 'पूर्णता विश्वास सीमा',- 'st.system_one.save': 'सेटिंग सहेजें',- 'st.system_one.clear': 'साफ़ करें',- 'st.system_one.saved': 'सहेजा गया। TypeSafe System One कॉन्फ़िगर है।',- 'st.system_one.cleared': 'साफ़ किया गया।',- 'st.system_one.need_key': 'System One सक्षम करने से पहले TypeSafe API key दर्ज करें।',- 'st.system_one.security_html': '<strong>गोपनीयता और लागत:</strong> यह सुविधा आपकी अनुमति तक बंद रहती है। एक्सटेंशन आपकी अपनी API key का उपयोग करके कार्य और सीमित नवीनतम निरीक्षण TypeSafe को भेजता है। स्क्रीनशॉट, ऑडियो या provider credentials नहीं भेजे जाते। key ब्राउज़र local storage में plaintext में रखी जाती है; TypeSafe आपके खाते से शुल्क ले सकता है। Strict Secret Mode इस sidecar को बंद करता है।',+ "st.system_one.heading": "सहायक मॉडल",+ "st.system_one.desc_html": "निर्धारित निगरानी और कार्य पूर्ण होने की अतिरिक्त जाँच।",+ "st.system_one.enabled.label": "Jev चालू करें",+ "st.system_one.api_key.label": "TypeSafe API कुंजी",+ "st.system_one.watch.label": "निर्धारित निगरानी की जाँच करें",+ "st.system_one.completion.label": "निर्धारित कार्य पूर्ण होने की जाँच करें",+ "st.system_one.security_html": "कार्य और पृष्ठ के सीमित प्रमाण TypeSafe को भेजता है। कुंजी स्थानीय रूप से सादे पाठ में रहती है और उपयोग का शुल्क लग सकता है। Strict Secret Mode में Jev बंद रहता है।",+ "st.system_one.need_key": "TypeSafe API कुंजी दर्ज करें।",+ "st.system_one.uncertain": "Jev: कार्य पूर्ण होने की पुष्टि नहीं हुई।",+ "st.system_one.clear": "कुंजी हटाएँ",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "निर्धारित निगरानी की जाँच करें — प्रायिकता सीमा",+ "st.system_one.completion_threshold": "निर्धारित कार्य पूर्ण होने की जाँच करें — प्रायिकता सीमा",// --- Chat History page -------------------------------------------------'hist.title': "WebBrain चैट इतिहास",diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.jsindex 820cc749c..8fa96c117 100644--- a/src/chrome/src/ui/locales/id.js+++ b/src/chrome/src/ui/locales/id.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Penyedia aktif','sp.providers.active': 'Aktif','sp.providers.more': 'Lainnya…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Model pendukung",+ "st.system_one.desc_html": "Verifikasi tambahan untuk pemantauan terjadwal dan penyelesaian tugas.",+ "st.system_one.enabled.label": "Aktifkan Jev",+ "st.system_one.api_key.label": "Kunci API TypeSafe",+ "st.system_one.watch.label": "Verifikasi pemantauan terjadwal",+ "st.system_one.completion.label": "Verifikasi penyelesaian tugas terjadwal",+ "st.system_one.security_html": "Mengirim tugas dan bukti halaman terbatas ke TypeSafe. Kunci disimpan lokal sebagai teks biasa dan penggunaan dapat dikenai biaya. Strict Secret Mode menonaktifkan Jev.",+ "st.system_one.need_key": "Masukkan kunci API TypeSafe.",+ "st.system_one.uncertain": "Jev: penyelesaian tidak dapat diverifikasi.",+ "st.system_one.clear": "Hapus kunci",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verifikasi pemantauan terjadwal — Ambang probabilitas",+ "st.system_one.completion_threshold": "Verifikasi penyelesaian tugas terjadwal — Ambang probabilitas",'st.providers.selected': 'DIPILIH','st.providers.select_for_chat': 'Pilih untuk chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.jsindex 06c1b695e..e96597694 100644--- a/src/chrome/src/ui/locales/ja.js+++ b/src/chrome/src/ui/locales/ja.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': '有効なプロバイダー','sp.providers.active': '有効','sp.providers.more': 'その他…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "補助モデル",+ "st.system_one.desc_html": "定期監視と予約タスクの完了を追加検証します。",+ "st.system_one.enabled.label": "Jev を有効にする",+ "st.system_one.api_key.label": "TypeSafe API キー",+ "st.system_one.watch.label": "定期監視を検証",+ "st.system_one.completion.label": "予約タスクの完了を検証",+ "st.system_one.security_html": "タスクと限定的なページ証拠を TypeSafe に送信します。キーはローカルに平文で保存され、利用料金が発生する場合があります。Strict Secret Mode では Jev は無効です。",+ "st.system_one.need_key": "TypeSafe API キーを入力してください。",+ "st.system_one.uncertain": "Jev: 完了を確認できませんでした。",+ "st.system_one.clear": "キーを削除",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "定期監視を検証 — 確率のしきい値",+ "st.system_one.completion_threshold": "予約タスクの完了を検証 — 確率のしきい値",'st.providers.selected': '選択中','st.providers.select_for_chat': 'チャット用に選択',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.jsindex ed71c2899..f3584686f 100644--- a/src/chrome/src/ui/locales/ko.js+++ b/src/chrome/src/ui/locales/ko.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': '활성 공급자','sp.providers.active': '활성','sp.providers.more': '더 보기…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "보조 모델",+ "st.system_one.desc_html": "예약된 모니터링과 작업 완료를 추가로 검증합니다.",+ "st.system_one.enabled.label": "Jev 활성화",+ "st.system_one.api_key.label": "TypeSafe API 키",+ "st.system_one.watch.label": "예약 모니터링 검증",+ "st.system_one.completion.label": "예약 작업 완료 검증",+ "st.system_one.security_html": "작업과 제한된 페이지 증거를 TypeSafe로 보냅니다. 키는 로컬에 일반 텍스트로 저장되며 사용 요금이 발생할 수 있습니다. Strict Secret Mode에서는 Jev가 비활성화됩니다.",+ "st.system_one.need_key": "TypeSafe API 키를 입력하세요.",+ "st.system_one.uncertain": "Jev: 완료를 확인할 수 없습니다.",+ "st.system_one.clear": "키 삭제",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "예약 모니터링 검증 — 확률 임계값",+ "st.system_one.completion_threshold": "예약 작업 완료 검증 — 확률 임계값",'st.providers.selected': '선택됨','st.providers.select_for_chat': '채팅용으로 선택',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.jsindex 3fb999cac..479befc56 100644--- a/src/chrome/src/ui/locales/ms.js+++ b/src/chrome/src/ui/locales/ms.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Penyedia aktif','sp.providers.active': 'Aktif','sp.providers.more': 'Lagi…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Model bantuan",+ "st.system_one.desc_html": "Pengesahan tambahan bagi pemantauan berjadual dan penyelesaian tugas.",+ "st.system_one.enabled.label": "Dayakan Jev",+ "st.system_one.api_key.label": "Kunci API TypeSafe",+ "st.system_one.watch.label": "Sahkan pemantauan berjadual",+ "st.system_one.completion.label": "Sahkan penyelesaian tugas berjadual",+ "st.system_one.security_html": "Menghantar tugas dan bukti halaman terhad kepada TypeSafe. Kunci disimpan secara setempat sebagai teks biasa dan penggunaan mungkin berbayar. Strict Secret Mode melumpuhkan Jev.",+ "st.system_one.need_key": "Masukkan kunci API TypeSafe.",+ "st.system_one.uncertain": "Jev: penyelesaian tidak dapat disahkan.",+ "st.system_one.clear": "Padam kunci",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Sahkan pemantauan berjadual — Ambang kebarangkalian",+ "st.system_one.completion_threshold": "Sahkan penyelesaian tugas berjadual — Ambang kebarangkalian",'st.providers.selected': 'DIPILIH','st.providers.select_for_chat': 'Pilih untuk sembang',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.jsindex b1f674468..ff8722378 100644--- a/src/chrome/src/ui/locales/nl.js+++ b/src/chrome/src/ui/locales/nl.js@@ -879,22 +879,19 @@ export default {'st.captcha.balance_fail': 'Mislukt: {error}','st.captcha.security_html': '<strong>Let op:</strong> de API-sleutel wordt in platte tekst opgeslagen...',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Hulpmodellen",+ "st.system_one.desc_html": "Extra controle van geplande bewakingen en voltooide taken.",+ "st.system_one.enabled.label": "Jev inschakelen",+ "st.system_one.api_key.label": "TypeSafe-API-sleutel",+ "st.system_one.watch.label": "Geplande bewakingen controleren",+ "st.system_one.completion.label": "Voltooiing van geplande taken controleren",+ "st.system_one.security_html": "Stuurt de taak en beperkt paginabewijs naar TypeSafe. De sleutel wordt lokaal als platte tekst opgeslagen. Gebruik kan geld kosten. Strict Secret Mode schakelt Jev uit.",+ "st.system_one.need_key": "Voer een TypeSafe-API-sleutel in.",+ "st.system_one.uncertain": "Jev: voltooiing kon niet worden bevestigd.",+ "st.system_one.clear": "Sleutel verwijderen",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Geplande bewakingen controleren — Waarschijnlijkheidsdrempel",+ "st.system_one.completion_threshold": "Voltooiing van geplande taken controleren — Waarschijnlijkheidsdrempel",'hist.title': 'WebBrain Chatgeschiedenis','hist.records': '{n} records','hist.record': '{n} record',diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.jsindex ef6cbac6f..d8ffc5a65 100644--- a/src/chrome/src/ui/locales/pl.js+++ b/src/chrome/src/ui/locales/pl.js@@ -661,22 +661,19 @@ export default {'st.captcha.balance_fail': 'Niepowodzenie: {error}','st.captcha.security_html': '<strong>Uwaga:</strong> klucz API jest przechowywany <strong>w postaci jawnej</strong> w lokalnej pamięci przeglądarki. CapSolver obciąża Twoje konto za każde rozwiązanie; agent wywoła go tylko, gdy CAPTCHA faktycznie zablokuje krok (maksymalnie raz na napotkanie — nie ponawia po niepowodzeniu). Regulaminy niektórych witryn zabraniają automatycznego rozwiązywania CAPTCHA; kieruj się własnym osądem.',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Modele pomocnicze",+ "st.system_one.desc_html": "Dodatkowa weryfikacja zaplanowanego monitorowania i ukończenia zadań.",+ "st.system_one.enabled.label": "Włącz Jev",+ "st.system_one.api_key.label": "Klucz API TypeSafe",+ "st.system_one.watch.label": "Weryfikuj zaplanowane monitorowanie",+ "st.system_one.completion.label": "Weryfikuj ukończenie zaplanowanych zadań",+ "st.system_one.security_html": "Wysyła zadanie i ograniczone dowody ze strony do TypeSafe. Klucz jest przechowywany lokalnie jawnym tekstem. Korzystanie może być płatne. Strict Secret Mode wyłącza Jev.",+ "st.system_one.need_key": "Wprowadź klucz API TypeSafe.",+ "st.system_one.uncertain": "Jev: nie udało się potwierdzić ukończenia.",+ "st.system_one.clear": "Usuń klucz",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Weryfikuj zaplanowane monitorowanie — Próg prawdopodobieństwa",+ "st.system_one.completion_threshold": "Weryfikuj ukończenie zaplanowanych zadań — Próg prawdopodobieństwa",'tr.title': 'Ślady WebBrain','tr.lossless.badge': 'Sensitive debug tier','tr.lossless.warning': 'This run contains full request content. Review it for secrets before exporting or sharing.',diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.jsindex 48007a4e4..8a8c75a26 100644--- a/src/chrome/src/ui/locales/pt.js+++ b/src/chrome/src/ui/locales/pt.js@@ -978,22 +978,19 @@ export default {'st.captcha.balance_fail': "Falha: {error}",'st.captcha.security_html': "<strong>Atenção:</strong> a chave API é armazenada <strong>em texto simples</strong> no armazenamento local do navegador. CapSolver cobra sua conta por cada solução; o agente só o chamará quando um CAPTCHA realmente bloquear uma etapa (no máximo uma vez por encontro - ele não tentará novamente em caso de falha). Os termos de serviço de alguns sites proíbem a resolução automatizada de CAPTCHA; use seu julgamento.",- 'st.system_one.desc_html': 'Use opcionalmente o <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> como segunda opinião para monitoramentos agendados e conclusão de tarefas. Ele avalia apenas a tarefa limitada e a observação mais recente; nunca controla o navegador.',- 'st.system_one.enabled.label': 'Ativar TypeSafe System One',- 'st.system_one.enabled.desc': 'Ative globalmente antes de habilitar qualquer proteção de tarefa agendada. Desativado por padrão.',- 'st.system_one.api_key.label': 'Chave de API TypeSafe',- 'st.system_one.watch.label': 'Avaliar monitoramentos agendados',- 'st.system_one.watch.desc': 'Rebaixa o sucesso de um monitoramento para uma sondagem quando a condição ou a evidência parece incerta.',- 'st.system_one.completion.label': 'Avaliar conclusão de tarefas agendadas',- 'st.system_one.completion.desc': 'Rebaixa um sucesso otimista quando a evidência de conclusão parece incerta.',- 'st.system_one.watch_threshold': 'Limite de confiança do monitoramento',- 'st.system_one.completion_threshold': 'Limite de confiança da conclusão',- 'st.system_one.save': 'Salvar configurações',- 'st.system_one.clear': 'Limpar',- 'st.system_one.saved': 'Salvo. O TypeSafe System One está configurado.',- 'st.system_one.cleared': 'Limpo.',- 'st.system_one.need_key': 'Insira uma chave de API TypeSafe antes de ativar o System One.',- 'st.system_one.security_html': '<strong>Privacidade e custo:</strong> este recurso fica desativado até você autorizá-lo. A extensão envia a tarefa e uma observação recente limitada ao TypeSafe usando sua própria chave de API. Não envia capturas de tela, áudio nem credenciais de provedores. A chave é armazenada em texto simples no armazenamento local do navegador; o TypeSafe pode cobrar sua conta. O Strict Secret Mode desativa este sidecar.',+ "st.system_one.heading": "Modelos auxiliares",+ "st.system_one.desc_html": "Verificação adicional de monitoramentos e tarefas agendadas.",+ "st.system_one.enabled.label": "Ativar Jev",+ "st.system_one.api_key.label": "Chave de API TypeSafe",+ "st.system_one.watch.label": "Verificar monitoramentos agendados",+ "st.system_one.completion.label": "Verificar conclusão de tarefas agendadas",+ "st.system_one.security_html": "Envia a tarefa e evidências limitadas da página ao TypeSafe. A chave é armazenada localmente em texto simples. O uso pode ter custos. Strict Secret Mode desativa o Jev.",+ "st.system_one.need_key": "Insira uma chave de API TypeSafe.",+ "st.system_one.uncertain": "Jev: não foi possível confirmar a conclusão.",+ "st.system_one.clear": "Excluir chave",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verificar monitoramentos agendados — Limite de probabilidade",+ "st.system_one.completion_threshold": "Verificar conclusão de tarefas agendadas — Limite de probabilidade",// --- Chat History page -------------------------------------------------'hist.title': "WebBrain Histórico de bate-papo",diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.jsindex 3b9b27e71..dad52a7c9 100644--- a/src/chrome/src/ui/locales/ru.js+++ b/src/chrome/src/ui/locales/ru.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Активные провайдеры','sp.providers.active': 'Активен','sp.providers.more': 'Ещё…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Вспомогательные модели",+ "st.system_one.desc_html": "Дополнительная проверка запланированных наблюдений и завершения задач.",+ "st.system_one.enabled.label": "Включить Jev",+ "st.system_one.api_key.label": "Ключ API TypeSafe",+ "st.system_one.watch.label": "Проверять запланированные наблюдения",+ "st.system_one.completion.label": "Проверять завершение запланированных задач",+ "st.system_one.security_html": "Отправляет задачу и ограниченные данные страницы в TypeSafe. Ключ хранится локально открытым текстом. Использование может быть платным. Strict Secret Mode отключает Jev.",+ "st.system_one.need_key": "Введите ключ API TypeSafe.",+ "st.system_one.uncertain": "Jev: завершение не подтверждено.",+ "st.system_one.clear": "Удалить ключ",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Проверять запланированные наблюдения — Порог вероятности",+ "st.system_one.completion_threshold": "Проверять завершение запланированных задач — Порог вероятности",'st.providers.selected': 'ВЫБРАН','st.providers.select_for_chat': 'Выбрать для чата',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.jsindex d7ec28bfe..654a6a3b8 100644--- a/src/chrome/src/ui/locales/th.js+++ b/src/chrome/src/ui/locales/th.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'ผู้ให้บริการที่ใช้งานอยู่','sp.providers.active': 'ใช้งานอยู่','sp.providers.more': 'เพิ่มเติม…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "โมเดลเสริม",+ "st.system_one.desc_html": "ตรวจสอบเพิ่มเติมสำหรับการเฝ้าดูและการทำงานตามกำหนดเวลา",+ "st.system_one.enabled.label": "เปิดใช้ Jev",+ "st.system_one.api_key.label": "คีย์ API ของ TypeSafe",+ "st.system_one.watch.label": "ตรวจสอบการเฝ้าดูตามกำหนดเวลา",+ "st.system_one.completion.label": "ตรวจสอบการเสร็จสิ้นของงานตามกำหนดเวลา",+ "st.system_one.security_html": "ส่งงานและหลักฐานจากหน้าเว็บแบบจำกัดไปยัง TypeSafe คีย์จะเก็บในเครื่องเป็นข้อความธรรมดาและอาจมีค่าใช้จ่าย Strict Secret Mode จะปิด Jev",+ "st.system_one.need_key": "ป้อนคีย์ API ของ TypeSafe",+ "st.system_one.uncertain": "Jev: ไม่สามารถยืนยันการเสร็จสิ้นได้",+ "st.system_one.clear": "ลบคีย์",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "ตรวจสอบการเฝ้าดูตามกำหนดเวลา — เกณฑ์ความน่าจะเป็น",+ "st.system_one.completion_threshold": "ตรวจสอบการเสร็จสิ้นของงานตามกำหนดเวลา — เกณฑ์ความน่าจะเป็น",'st.providers.selected': 'เลือกแล้ว','st.providers.select_for_chat': 'เลือกสำหรับแชต',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.jsindex 355a69457..b6c8110dd 100644--- a/src/chrome/src/ui/locales/tl.js+++ b/src/chrome/src/ui/locales/tl.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Mga aktibong provider','sp.providers.active': 'Aktibo','sp.providers.more': 'Higit pa…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Mga pantulong na modelo",+ "st.system_one.desc_html": "Dagdag na pagtiyak sa nakaiskedyul na pagsubaybay at pagkumpleto ng gawain.",+ "st.system_one.enabled.label": "Paganahin ang Jev",+ "st.system_one.api_key.label": "TypeSafe API key",+ "st.system_one.watch.label": "Tiyakin ang nakaiskedyul na pagsubaybay",+ "st.system_one.completion.label": "Tiyakin ang pagkumpleto ng nakaiskedyul na gawain",+ "st.system_one.security_html": "Ipinapadala ang gawain at limitadong ebidensiya ng pahina sa TypeSafe. Lokal na nakaimbak ang key bilang plain text at maaaring may bayad ang paggamit. Hindi gumagana ang Jev sa Strict Secret Mode.",+ "st.system_one.need_key": "Maglagay ng TypeSafe API key.",+ "st.system_one.uncertain": "Jev: hindi matiyak ang pagkumpleto.",+ "st.system_one.clear": "Burahin ang key",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Tiyakin ang nakaiskedyul na pagsubaybay — Hangganan ng probabilidad",+ "st.system_one.completion_threshold": "Tiyakin ang pagkumpleto ng nakaiskedyul na gawain — Hangganan ng probabilidad",'st.providers.selected': 'NAPILI','st.providers.select_for_chat': 'Piliin para sa chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.jsindex 0119165ab..400b113f9 100644--- a/src/chrome/src/ui/locales/tr.js+++ b/src/chrome/src/ui/locales/tr.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Etkin sağlayıcılar','sp.providers.active': 'Etkin','sp.providers.more': 'Daha fazla…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Yardımcı modeller",+ "st.system_one.desc_html": "Zamanlanmış izlemeler ve görev tamamlanması için ek doğrulama.",+ "st.system_one.enabled.label": "Jev’i etkinleştir",+ "st.system_one.api_key.label": "TypeSafe API anahtarı",+ "st.system_one.watch.label": "Zamanlanmış izlemeleri doğrula",+ "st.system_one.completion.label": "Zamanlanmış görev tamamlanmasını doğrula",+ "st.system_one.security_html": "Görevi ve sınırlı sayfa kanıtını TypeSafe’e gönderir. Anahtarınız yerelde düz metin olarak saklanır ve kullanım ücretli olabilir. Strict Secret Mode, Jev’i kapatır.",+ "st.system_one.need_key": "Bir TypeSafe API anahtarı girin.",+ "st.system_one.uncertain": "Jev: tamamlanma doğrulanamadı.",+ "st.system_one.clear": "Anahtarı sil",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Zamanlanmış izlemeleri doğrula — Olasılık eşiği",+ "st.system_one.completion_threshold": "Zamanlanmış görev tamamlanmasını doğrula — Olasılık eşiği",'st.providers.selected': 'SEÇİLİ','st.providers.select_for_chat': 'Sohbet için seç',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.jsindex 702c13e59..76522653d 100644--- a/src/chrome/src/ui/locales/uk.js+++ b/src/chrome/src/ui/locales/uk.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Активні провайдери','sp.providers.active': 'Активний','sp.providers.more': 'Більше…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Допоміжні моделі",+ "st.system_one.desc_html": "Додаткова перевірка запланованих спостережень і завершення завдань.",+ "st.system_one.enabled.label": "Увімкнути Jev",+ "st.system_one.api_key.label": "Ключ API TypeSafe",+ "st.system_one.watch.label": "Перевіряти заплановані спостереження",+ "st.system_one.completion.label": "Перевіряти завершення запланованих завдань",+ "st.system_one.security_html": "Надсилає завдання й обмежені дані сторінки до TypeSafe. Ключ зберігається локально відкритим текстом. Використання може бути платним. Strict Secret Mode вимикає Jev.",+ "st.system_one.need_key": "Введіть ключ API TypeSafe.",+ "st.system_one.uncertain": "Jev: завершення не підтверджено.",+ "st.system_one.clear": "Видалити ключ",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Перевіряти заплановані спостереження — Поріг імовірності",+ "st.system_one.completion_threshold": "Перевіряти завершення запланованих завдань — Поріг імовірності",'st.providers.selected': 'ВИБРАНО','st.providers.select_for_chat': 'Вибрати для чату',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.jsindex e5cb7964c..a8f485cfa 100644--- a/src/chrome/src/ui/locales/vi.js+++ b/src/chrome/src/ui/locales/vi.js@@ -978,22 +978,19 @@ export default {'st.captcha.balance_fail': "Không thành công: {error}",'st.captcha.security_html': "<strong>Lưu ý:</strong> khóa API được lưu trữ <strong>trong bản rõ</strong> trong bộ nhớ cục bộ của trình duyệt. CapSolver tính phí tài khoản của bạn cho mỗi lần giải; tác nhân sẽ chỉ gọi nó khi CAPTCHA thực sự chặn một bước (tối đa một lần cho mỗi lần gặp - nó sẽ không thử lại nếu thất bại). Điều khoản dịch vụ của một số trang web nghiêm cấm việc giải CAPTCHA tự động; sử dụng phán đoán của bạn.",- 'st.system_one.desc_html': 'Tùy chọn sử dụng <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> như ý kiến thứ hai cho các tác vụ theo dõi và hoàn tất tác vụ đã lên lịch. Công cụ chỉ đánh giá tác vụ giới hạn và quan sát mới nhất; không bao giờ điều khiển trình duyệt.',- 'st.system_one.enabled.label': 'Bật TypeSafe System One',- 'st.system_one.enabled.desc': 'Bật toàn cục trước khi bật một trong các lớp bảo vệ tác vụ đã lên lịch. Mặc định tắt.',- 'st.system_one.api_key.label': 'Khóa API TypeSafe',- 'st.system_one.watch.label': 'Đánh giá tác vụ theo dõi đã lên lịch',- 'st.system_one.watch.desc': 'Hạ thành một lần thăm dò khi điều kiện hoặc bằng chứng của tác vụ theo dõi có vẻ không chắc chắn.',- 'st.system_one.completion.label': 'Đánh giá hoàn tất tác vụ đã lên lịch',- 'st.system_one.completion.desc': 'Hạ một kết quả thành công quá lạc quan khi bằng chứng hoàn tất có vẻ không chắc chắn.',- 'st.system_one.watch_threshold': 'Ngưỡng tin cậy theo dõi',- 'st.system_one.completion_threshold': 'Ngưỡng tin cậy hoàn tất',- 'st.system_one.save': 'Lưu cài đặt',- 'st.system_one.clear': 'Xóa',- 'st.system_one.saved': 'Đã lưu. TypeSafe System One đã được cấu hình.',- 'st.system_one.cleared': 'Đã xóa.',- 'st.system_one.need_key': 'Nhập khóa API TypeSafe trước khi bật System One.',- 'st.system_one.security_html': '<strong>Quyền riêng tư và chi phí:</strong> tính năng này tắt cho đến khi bạn bật. Tiện ích gửi tác vụ và quan sát mới nhất có giới hạn đến TypeSafe bằng khóa API của bạn. Không gửi ảnh chụp màn hình, âm thanh hoặc thông tin xác thực của nhà cung cấp. Khóa được lưu dạng văn bản thuần trong bộ nhớ cục bộ của trình duyệt; TypeSafe có thể tính phí tài khoản của bạn. Strict Secret Mode sẽ tắt sidecar này.',+ "st.system_one.heading": "Mô hình hỗ trợ",+ "st.system_one.desc_html": "Xác minh bổ sung cho theo dõi định kỳ và hoàn thành tác vụ.",+ "st.system_one.enabled.label": "Bật Jev",+ "st.system_one.api_key.label": "Khóa API TypeSafe",+ "st.system_one.watch.label": "Xác minh theo dõi định kỳ",+ "st.system_one.completion.label": "Xác minh hoàn thành tác vụ đã lên lịch",+ "st.system_one.security_html": "Gửi tác vụ và bằng chứng trang có giới hạn đến TypeSafe. Khóa được lưu cục bộ dưới dạng văn bản thuần và có thể phát sinh phí sử dụng. Strict Secret Mode tắt Jev.",+ "st.system_one.need_key": "Nhập khóa API TypeSafe.",+ "st.system_one.uncertain": "Jev: không thể xác minh việc hoàn thành.",+ "st.system_one.clear": "Xóa khóa",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Xác minh theo dõi định kỳ — Ngưỡng xác suất",+ "st.system_one.completion_threshold": "Xác minh hoàn thành tác vụ đã lên lịch — Ngưỡng xác suất",// --- Chat History page -------------------------------------------------'hist.title': "Lịch sử trò chuyện WebBrain",diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.jsindex c3a8f91dc..c326b08af 100644--- a/src/chrome/src/ui/locales/zh.js+++ b/src/chrome/src/ui/locales/zh.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': '已启用的提供商','sp.providers.active': '已启用','sp.providers.more': '更多…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "辅助模型",+ "st.system_one.desc_html": "为定时监测和任务完成提供额外验证。",+ "st.system_one.enabled.label": "启用 Jev",+ "st.system_one.api_key.label": "TypeSafe API 密钥",+ "st.system_one.watch.label": "验证定时监测",+ "st.system_one.completion.label": "验证定时任务完成情况",+ "st.system_one.security_html": "向 TypeSafe 发送任务及有限的页面证据。密钥以明文保存在本地,使用可能产生费用。Strict Secret Mode 会禁用 Jev。",+ "st.system_one.need_key": "请输入 TypeSafe API 密钥。",+ "st.system_one.uncertain": "Jev:无法确认任务已完成。",+ "st.system_one.clear": "删除密钥",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "验证定时监测 — 概率阈值",+ "st.system_one.completion_threshold": "验证定时任务完成情况 — 概率阈值",'st.providers.selected': '已选择','st.providers.select_for_chat': '选择用于聊天',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/chrome/src/ui/settings.html b/src/chrome/src/ui/settings.htmlindex cf8e95f87..ed7a4654a 100644--- a/src/chrome/src/ui/settings.html+++ b/src/chrome/src/ui/settings.html@@ -1821,13 +1821,21 @@<div class="info-box" style="margin-top:16px;" data-i18n-html="st.captcha.security_html"></div></div>- <div class="provider-card" id="system-one-card">++ </div>+ </details>+ </div>+ </section>++ <section class="tab-panel active" data-panel="providers" role="tabpanel">+ <h2 data-i18n="st.system_one.heading" style="font-size:16px"></h2>+ <div class="provider-card" id="system-one-card">+ <h3 data-i18n="st.system_one.title"></h3><div style="font-size:12px;color:var(--text2);margin-bottom:14px;line-height:1.55;" data-i18n-html="st.system_one.desc_html"></div><div class="setting-row"><div class="setting-info"><div class="setting-label" data-i18n="st.system_one.enabled.label"></div>- <div class="setting-desc" data-i18n="st.system_one.enabled.desc"></div></div><label class="toggle"><input type="checkbox" id="toggle-system-one">@@ -1836,14 +1844,13 @@</div><div class="field">- <label data-i18n="st.system_one.api_key.label"></label>+ <label for="system-one-api-key" data-i18n="st.system_one.api_key.label"></label><input type="password" id="system-one-api-key" placeholder="ts_…" autocomplete="off" spellcheck="false"></div><div class="setting-row"><div class="setting-info"><div class="setting-label" data-i18n="st.system_one.watch.label"></div>- <div class="setting-desc" data-i18n="st.system_one.watch.desc"></div></div><label class="toggle"><input type="checkbox" id="toggle-system-one-watch">@@ -1853,7 +1860,6 @@<div class="setting-row"><div class="setting-info"><div class="setting-label" data-i18n="st.system_one.completion.label"></div>- <div class="setting-desc" data-i18n="st.system_one.completion.desc"></div></div><label class="toggle"><input type="checkbox" id="toggle-system-one-completion">@@ -1861,6 +1867,8 @@</label></div>+ <details class="advanced-settings">+ <summary data-i18n="st.display.advanced"></summary><div class="field"><label for="range-system-one-watch-threshold"><span data-i18n="st.system_one.watch_threshold"></span> <span id="system-one-watch-threshold-value">70%</span></label><input type="range" id="range-system-one-watch-threshold" min="50" max="95" step="5" value="70">@@ -1870,20 +1878,16 @@<input type="range" id="range-system-one-completion-threshold" min="50" max="95" step="5" value="70"></div>+ </details><div class="btn-row">- <button class="btn-primary" id="btn-save-system-one" data-i18n="st.system_one.save"></button>+ <button class="btn-primary" id="btn-save-system-one" data-i18n="st.providers.save"></button>+ <button class="btn-secondary" id="btn-test-system-one" data-i18n="st.providers.test"></button><button class="btn-secondary" id="btn-clear-system-one" data-i18n="st.system_one.clear"></button></div><div class="test-result" id="test-system-one"></div><div class="info-box" style="margin-top:16px;" data-i18n-html="st.system_one.security_html"></div></div>- </div>- </details>- </div>- </section>-- <section class="tab-panel active" data-panel="providers" role="tabpanel"><div id="providers"></div><div class="info-box" data-i18n-html="st.providers.info.html"></div>diff --git a/src/chrome/src/ui/settings.js b/src/chrome/src/ui/settings.jsindex 4ddfce6c1..3e0bd5328 100644--- a/src/chrome/src/ui/settings.js+++ b/src/chrome/src/ui/settings.js@@ -226,6 +226,7 @@ const systemOneWatchThresholdValue = document.getElementById('system-one-watch-tconst systemOneCompletionThresholdRange = document.getElementById('range-system-one-completion-threshold');const systemOneCompletionThresholdValue = document.getElementById('system-one-completion-threshold-value');const btnSaveSystemOne = document.getElementById('btn-save-system-one');+const btnTestSystemOne = document.getElementById('btn-test-system-one');const btnClearSystemOne = document.getElementById('btn-clear-system-one');const systemOneTestResult = document.getElementById('test-system-one');const languageSelect = document.getElementById('select-language');@@ -1722,12 +1723,12 @@ if (btnSaveSystemOne) {await chrome.storage.local.set({typesafeApiKey: key,systemOneEnabled: enabled && isValidTypesafeApiKey(key),- systemOneWatchEnabled: enabled && systemOneWatchToggle?.checked === true,- systemOneCompletionEnabled: enabled && systemOneCompletionToggle?.checked === true,+ systemOneWatchEnabled: systemOneWatchToggle?.checked === true,+ systemOneCompletionEnabled: systemOneCompletionToggle?.checked === true,systemOneWatchThreshold: normalizeSystemOneThreshold(Number(systemOneWatchThresholdRange?.value) / 100),systemOneCompletionThreshold: normalizeSystemOneThreshold(Number(systemOneCompletionThresholdRange?.value) / 100),});- showSystemOneResult('ok', t('st.system_one.saved'));+ showSystemOneResult('ok', t('st.providers.saved'));});}@@ -1745,10 +1746,28 @@ if (btnClearSystemOne) {'systemOneWatchThreshold','systemOneCompletionThreshold',]);- showSystemOneResult('ok', t('st.system_one.cleared'));+ if (systemOneWatchThresholdRange) systemOneWatchThresholdRange.value = '70';+ if (systemOneCompletionThresholdRange) systemOneCompletionThresholdRange.value = '70';+ updateSystemOneThresholdLabels();+ showSystemOneResult('ok', t('st.captcha.cleared'));});}+btnTestSystemOne?.addEventListener('click', async () => {+ const apiKey = normalizeTypesafeApiKey(systemOneApiKeyInput?.value);+ if (!apiKey) { showSystemOneResult('fail', t('st.system_one.need_key')); return; }+ btnTestSystemOne.disabled = true;+ showSystemOneResult('', t('st.providers.testing'));+ try {+ const result = await sendToBackground('test_system_one', { apiKey });+ showSystemOneResult(result?.success ? 'ok' : 'fail', result?.success+ ? t('st.providers.connected', { model: result.model })+ : t('st.providers.failed', { error: result?.error || 'Jev unavailable' }));+ } catch (error) {+ showSystemOneResult('fail', t('st.providers.failed', { error: error.message }));+ } finally { btnTestSystemOne.disabled = false; }+});+// --- Vision Model ---function isWebgpuVisionEnabled() {diff --git a/src/chrome/src/ui/sidepanel.js b/src/chrome/src/ui/sidepanel.jsindex aff78675b..59f68e0c5 100644--- a/src/chrome/src/ui/sidepanel.js+++ b/src/chrome/src/ui/sidepanel.js@@ -3123,6 +3123,7 @@ function scheduledJobMeta(job) {if (job.status === 'completed' && job.lastResult) {parts.push(truncate(String(job.lastResult), 80));}+ if (job.systemOneVerdict?.decision === 'downgrade') parts.push(t('st.system_one.uncertain'));if (job.lastError) {parts.push(truncate(String(job.lastError), 80));}diff --git a/src/firefox/src/agent/agent.js b/src/firefox/src/agent/agent.jsindex 3f7d7e097..845f348b9 100644--- a/src/firefox/src/agent/agent.js+++ b/src/firefox/src/agent/agent.js@@ -1,3 +1,4 @@+import { SYSTEM_ONE_COST_PROVIDER } from './systemone-judge.js';import { firefoxBidi } from '../bidi/client.js';import { SOCIAL_PLATFORMS, socialPublicationApiPlatform, normalizePublicationContract, publicationProgress, exactPublicationText, publicationMediaMatches, publicationContractMessages, publicationAuditMessages, publicationAuditAccepted } from './social-publish-contract.js';import { AGENT_TOOLS, AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_NAMES, getToolsForMode, SYSTEM_PROMPT_ASK, SYSTEM_PROMPT_ACT, SYSTEM_PROMPT_ACT_COMPACT, SYSTEM_PROMPT_ACT_MID, SYSTEM_PROMPT_DEV_APPENDIX } from './tools.js';@@ -5669,6 +5670,8 @@ export class Agent extends LoopDetector {// Claim synchronously before awaiting the external guard so teacher-mode// startup cannot race a run whose persisted teacher-state check is pending.this._runningTabs.add(tabId);+ this._systemOneGenerations ??= new Map();+ this._systemOneGenerations.set(tabId, (this._systemOneGenerations.get(tabId) || 0) + 1);// Reset only when claiming a NEW run, before any asynchronous setup.this.abortFlags.delete(tabId);const controller = new AbortController();@@ -6567,6 +6570,32 @@ export class Agent extends LoopDetector {return { status: reason, reason, ...(code ? { code } : {}), ...detail };}+ systemOneContext(tabId) {+ const generation = this._systemOneGenerations?.get(tabId);+ return { costState: this.currentCostState.get(tabId), runId: this.currentRunId.get(tabId),+ isCurrent: () => this._systemOneGenerations?.get(tabId) === generation };+ }++ async evaluateSystemOne(tabId, client, args, context = this.systemOneContext(tabId)) {+ const costState = context.costState || this.currentCostState.get(tabId) || this._newCostRunState();+ return client.evaluate({ ...args,+ beforeRequest: async () => {+ if (this.strictSecretMode || globalThis.navigator?.onLine === false || context.isCurrent?.() === false) throw new Error('Jev unavailable.');+ const message = await this._checkCostAllowance(SYSTEM_ONE_COST_PROVIDER, costState);+ if (message) throw this._costAllowanceError(message);+ },+ onUsage: async metadata => {+ await this._recordCostUsage(SYSTEM_ONE_COST_PROVIDER, metadata.usage, costState);+ this.recordSystemOneVerdict(tabId, { decision: 'usage', ...metadata }, context);+ },+ });+ }++ recordSystemOneVerdict(tabId, metadata, context = {}) {+ const runId = context.runId || this.currentRunId.get(tabId);+ if (runId) try { trace.recordNote(runId, 0, 'system_one', metadata); } catch {}+ }+async _chatWithCostAllowance(provider, messages, options, costState, requestContext = null) {const linked = this._linkAbortSignals(options?.signal, this._runAbortSignal(requestContext?.tabId));options = { ...options, signal: linked.signal };diff --git a/src/firefox/src/agent/scheduler.js b/src/firefox/src/agent/scheduler.jsindex 318ea1dcc..c26cbd74e 100644--- a/src/firefox/src/agent/scheduler.js+++ b/src/firefox/src/agent/scheduler.js@@ -1,3 +1,4 @@+import { createSystemOneEvidence, systemOneEvidenceState } from './systemone-evidence.js';import {buildCompletionQuestions,buildWatchQuestions,@@ -555,6 +556,7 @@ export function summarizeScheduledJob(job) {target: job.target || null,lastResult: job.lastResult || null,lastOutcome: job.lastOutcome || null,+ systemOneVerdict: job.systemOneVerdict || null,lastError: job.lastError || null,needsUserInput: job.status === 'needs_user_input',clarificationRequired: job.clarificationRequired === true,@@ -1426,44 +1428,66 @@ export class ScheduledJobManager {return `[Scheduled task ${job.id}: ${job.title}]\nThe user explicitly scheduled this future task. Treat this as the user-authored task for this scheduled run.\nTask: ${job.prompt}\nFirst reread the current page/state. If the task is stale, conflicts with newer user messages, or needs user input, stop and explain.`;}- async _shouldDowngradeWithSystemOne(job, result, outcome, runMeta = {}) {- if (outcome !== 'success' || !this.systemOneJudge) return false;+ async _evaluateSystemOne(job, result, outcome, runMeta = {}) {const settings = asObject(runMeta.settings);const isWatch = job.source === 'watch';- const featureEnabled = isWatch ? settings.systemOneWatchEnabled : settings.systemOneCompletionEnabled;- if (settings.systemOneEnabled !== true- || featureEnabled !== true- || !settings.typesafeApiKey- || settings.strictSecretMode === true- || runMeta.sidecarAllowed === false- || runMeta.signal?.aborted) {- return false;- }- const state = {- task: String(job.prompt || job.resumeInstruction || job.reason || '').slice(0, 8000),- latest_observation: String(result || '').slice(0, 2000),- ...(isWatch ? {- baseline: String(job.watch?.lastObservation || '').slice(0, 2000) || null,- } : {}),- };+ const skip = reason => ({ decision: 'skip', reason });+ if (outcome !== 'success') return skip('not_success');+ if (!this.systemOneJudge || settings.systemOneEnabled !== true+ || !(isWatch ? settings.systemOneWatchEnabled : settings.systemOneCompletionEnabled)+ || !settings.typesafeApiKey) return skip('disabled');+ if (settings.strictSecretMode || runMeta.sidecarAllowed === false || runMeta.signal?.aborted) return skip('unavailable');+ const state = systemOneEvidenceState(job.prompt || job.resumeInstruction || job.reason || '', runMeta.evidence, isWatch ? job.watch?.systemOneBaseline : null);+ if (!state) return skip('no_evidence');try {- const verdict = await this.systemOneJudge.evaluate({- apiKey: settings.typesafeApiKey,- state,- questions: isWatch ? buildWatchQuestions() : buildCompletionQuestions(),- signal: runMeta.signal,- });- return shouldDowngradeSuccess(verdict?.answers, {- threshold: isWatch ? settings.systemOneWatchThreshold : settings.systemOneCompletionThreshold,- });+ const args = { apiKey: settings.typesafeApiKey, state,+ questions: isWatch ? buildWatchQuestions() : buildCompletionQuestions(), signal: runMeta.signal };+ const verdict = this.agent.evaluateSystemOne+ ? await this.agent.evaluateSystemOne(job.tabId, this.systemOneJudge, args, runMeta.judgeContext)+ : await this.systemOneJudge.evaluate(args);+ return {+ decision: shouldDowngradeSuccess(verdict.answers, {+ threshold: isWatch ? settings.systemOneWatchThreshold : settings.systemOneCompletionThreshold,+ }) ? 'downgrade' : 'keep',+ reason: 'evidence_judgment', model: verdict.model, latencyMs: verdict.latencyMs,+ usage: verdict.usage, estimatedCostUsd: verdict.estimatedCostUsd,+ };} catch (error) {- if (!runMeta.signal?.aborted) {- console.warn('[WebBrain] TypeSafe System One sidecar failed open:', error);- }- return false;+ return skip(runMeta.signal?.aborted ? 'cancelled' : error?.code === 'WB_COST_ALLOWANCE' ? 'cost_limit' : 'service_unavailable');}}+ async _applySystemOne(job, result, outcome, runMeta) {+ const verdict = await this._evaluateSystemOne(job, result, outcome, runMeta);+ if (runMeta.signal?.aborted || runMeta.judgeContext?.isCurrent?.() === false) return { stop: true };+ if (verdict.reason === 'disabled') return { stop: false, outcome };+ const current = await this._updateJobIf(job.id, prev => (+ ['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false+ ), prev => ({+ systemOneVerdict: verdict,+ ...(prev.source === 'watch' && runMeta.evidence?.observations?.length ? {+ watch: { ...prev.watch, systemOneBaseline: runMeta.evidence.observations.slice(-1) },+ } : {}),+ }));+ if (!current) return { stop: true };+ this.agent.recordSystemOneVerdict?.(job.tabId, verdict, runMeta.judgeContext);+ if (verdict.decision === 'downgrade' && (runMeta.evidence?.sideEffect || current.completedConsequentialAction || current.pendingToolCall)) {+ const waiting = await this._updateJobIf(job.id, prev => (+ prev.executionId === current.executionId && ['running', 'needs_user_input'].includes(prev.status) && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false+ ), () => ({ status: 'needs_user_input', reconciliationRequired: true,+ clarificationRequired: true, clarificationAuthorizationRequired: true,+ lastOutcome: 'partial', lastResult: String(result || '').slice(0, 2000),+ lastError: 'Jev could not verify the completed action. Check its result before running this task again.',+ nextRunAt: null, pendingClarify: null,+ }));+ if (waiting) this._emit(waiting, 'clarification_required');+ return { stop: true };+ }+ return { stop: false, outcome: verdict.decision === 'downgrade' ? 'partial' : outcome };+ }+async _completeWatch(job, result, outcome = null, runMeta = {}) {const lastOutcome = normalizeDoneOutcome(outcome);const observation = String(result || '').slice(0, 2000);@@ -1475,10 +1499,9 @@ export class ScheduledJobManager {&& !!eventKey&& eventKey === job.watch?.lastTriggeredEventKey;let effectiveOutcome = duplicateAlert ? 'partial' : lastOutcome;- if (effectiveOutcome === 'success'- && await this._shouldDowngradeWithSystemOne(job, result, effectiveOutcome, runMeta)) {- effectiveOutcome = 'partial';- }+ const judged = await this._applySystemOne(job, result, effectiveOutcome, runMeta);+ if (judged.stop) return;+ effectiveOutcome = judged.outcome;const freshAlert = effectiveOutcome === 'success'&& job.watch?.beep === true&& watchAlert.armed === true@@ -1507,6 +1530,8 @@ export class ScheduledJobManager {if (keepWatching) {const updated = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => {const nextRunAt = computeNextRunAt(prev, this.now());return {@@ -1562,6 +1587,8 @@ export class ScheduledJobManager {const completed = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => ({status: 'completed',reconciliationRequired: false,@@ -1610,13 +1637,14 @@ export class ScheduledJobManager {return;}let lastOutcome = normalizeDoneOutcome(outcome);- if (lastOutcome === 'success'- && await this._shouldDowngradeWithSystemOne(job, result, lastOutcome, runMeta)) {- lastOutcome = 'partial';- }+ const judged = await this._applySystemOne(job, result, lastOutcome, runMeta);+ if (judged.stop) return;+ lastOutcome = judged.outcome;if (job.kind === 'task' && job.schedule?.type === 'recurring') {const updated = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => {const nextRunAt = computeNextRunAt(prev, this.now());return {@@ -1646,6 +1674,8 @@ export class ScheduledJobManager {}const completed = await this._updateJobIf(job.id, (prev) => (['running', 'needs_user_input'].includes(prev.status)+ && (!runMeta.executionId || prev.executionId === runMeta.executionId)+ && !runMeta.signal?.aborted && runMeta.judgeContext?.isCurrent?.() !== false), (prev) => ({status: 'completed',reconciliationRequired: false,@@ -1844,7 +1874,11 @@ export class ScheduledJobManager {let runStatus = null;let watchAlert = null;let sawFailureLikeUpdate = false;+ let judgeContext = null;+ const evidence = createSystemOneEvidence(this.agent._wrapUntrusted?.bind(this.agent));const onUpdate = (type, data) => {+ judgeContext = this.agent.systemOneContext?.(tabId) || judgeContext;+ evidence.observe(type, data);const doneOutcome = doneOutcomeFromUpdate(type, data);if (doneOutcome) runOutcome = doneOutcome;if (type === 'error' || type === 'attachment_rejected' || type === 'max_steps_reached'@@ -2008,6 +2042,9 @@ export class ScheduledJobManager {: null);await this._complete(running, result, effectiveOutcome, {watchAlert,+ evidence: evidence.snapshot(),+ judgeContext,+ executionId: execution.id,settings,signal: execution.controller.signal,sidecarAllowed: runStatus !== 'cost_limit',diff --git a/src/firefox/src/agent/systemone-evidence.js b/src/firefox/src/agent/systemone-evidence.jsnew file mode 100644index 000000000..274810485--- /dev/null+++ b/src/firefox/src/agent/systemone-evidence.js@@ -0,0 +1,70 @@+import { BROWSER_MUTATION_TOOLS } from './mutation-tools.js';+import { secureRandomBase36Token } from './random-token.js';++// Only these textual observations may leave the browser. Never serialize an+// entire tool result: it can include credentials, request bodies or attachments.+const READS = new Map([+ ['get_accessibility_tree', ['pageContent']], ['read_page', ['text', 'content', 'pageContent']],+ ['verify_form', ['fields', 'verified']], ['chat_observe', ['workflowState', 'newMessages']],+]);+const READ_NAVIGATION = new Set(['navigate', 'go_back', 'go_forward', 'scroll', 'hover', 'highlight_element', 'inspect_event_listeners', 'delegate_research', 'gmail_count_results']);+const SIDE_EFFECTS = new Set([...BROWSER_MUTATION_TOOLS, 'download_files', 'download_file', 'chrome_web_store_publish']);++export function redactSystemOneText(value) {+ return String(value ?? '').replace(/https?:\/\/[^\s"<>]+/gi, raw => {+ try { const url = new URL(raw); return `${url.origin}${url.pathname}`; } catch { return '[url]'; }+ }).replace(/[^\n]*(?:password|passwd|api[_ -]?key|authorization|access[_ -]?token|refresh[_ -]?token|cookie|secret|recovery code)[^\n]*/gi, '[credential omitted]')+ .replace(/\bBearer\s+\S+/gi, '[credential omitted]');+}++export function wrapSystemOneData(value) {+ const id = secureRandomBase36Token(8);+ const text = String(value).replace(/<\/?untrusted_page_content\b[^>]*>/gi, '[markup stripped]');+ return `<untrusted_page_content id="${id}">\n${text}\n</untrusted_page_content id="${id}">`;+}++export function createSystemOneEvidence(wrap = (_name, text) => wrapSystemOneData(text)) {+ let observations = [];+ let sideEffect = false;+ let pendingMutation = null;+ return {+ observe(type, data = {}) {+ const name = data.name;+ const networkWrite = ['fetch_url', 'research_url'].includes(name) && /^(POST|PUT|PATCH|DELETE)$/i.test(data.args?.method || '');+ if (type === 'tool_call' && (SIDE_EFFECTS.has(name) || networkWrite)) {+ observations = [];+ pendingMutation = name;+ }+ if (type !== 'tool_result') return;+ const result = data.result;+ if (pendingMutation === name) {+ if (!READ_NAVIGATION.has(name) && result?.noDispatch !== true && result?.dispatched !== false) sideEffect = true;+ pendingMutation = null;+ }+ if (!READS.has(name) || !result || result.error || result.success === false) return;+ const fields = {};+ for (const key of READS.get(name)) {+ // Nested data is excluded; explicit scalar readback fields are allowed.+ if (typeof result[key] === 'string') fields[key] = redactSystemOneText(result[key]).slice(0, 2500);+ if (typeof result[key] === 'boolean') fields[key] = result[key];+ }+ if (!Object.values(fields).some(v => typeof v === 'string' && v.trim())) return;+ observations.push({ tool: name, data: wrap(name, JSON.stringify(fields)) });+ observations = observations.slice(-2);+ },+ snapshot() { return { observations: observations.slice(), sideEffect: sideEffect || (!!pendingMutation && !READ_NAVIGATION.has(pendingMutation)) }; },+ };+}++export function systemOneEvidenceState(task, evidence, baseline = null) {+ if (!evidence?.observations?.length) return null;+ const state = {+ task: redactSystemOneText(task).slice(0, 4000),+ latest_observation: evidence.observations,+ baseline: Array.isArray(baseline) ? baseline.slice(-1).filter(v => READS.has(v?.tool) && typeof v.data === 'string').map(v => ({ tool: v.tool, data: wrapSystemOneData(redactSystemOneText(v.data).slice(0, 3000)) })) : null,+ };+ if (JSON.stringify(state).length > 16000) state.baseline = null;+ if (JSON.stringify(state).length > 16000) state.latest_observation = evidence.observations.slice(-1);+ if (JSON.stringify(state).length > 16000) return null;+ return state;+}diff --git a/src/firefox/src/agent/systemone-judge.js b/src/firefox/src/agent/systemone-judge.jsindex ed3ca867a..c96e90be7 100644--- a/src/firefox/src/agent/systemone-judge.js+++ b/src/firefox/src/agent/systemone-judge.js@@ -5,7 +5,7 @@// interface. It never performs an action or turns a non-success into success.export const SYSTEM_ONE_API_URL = 'https://api.typesafe.ai/v1/systemone';-export const SYSTEM_ONE_MODEL = 'jev-latest';+export const SYSTEM_ONE_MODEL = 'jev-1.13.0';export const SYSTEM_ONE_API_KEY = 'typesafeApiKey';export const SYSTEM_ONE_ENABLED_KEY = 'systemOneEnabled';export const SYSTEM_ONE_WATCH_ENABLED_KEY = 'systemOneWatchEnabled';@@ -97,8 +97,53 @@ function requestError(status) {}function normalizeAnswerNumber(value) {- const number = Number(value);- return Number.isFinite(number) ? number : null;+ return typeof value === 'number' && Number.isFinite(value) ? value : null;+}++export const SYSTEM_ONE_INPUT_COST_PER_MILLION_USD = 0.042;+export const SYSTEM_ONE_COST_PROVIDER = Object.freeze({+ config: { category: 'cloud', inputCostPerMillionUsd: SYSTEM_ONE_INPUT_COST_PER_MILLION_USD, outputCostPerMillionUsd: 0 },+});++export function validateSystemOneAnswers(answers, questions) {+ if (!isRecord(answers)) throw new Error('Invalid Jev answer map.');+ for (const [id, question] of Object.entries(questions)) {+ const answer = answers[id];+ if (!isRecord(answer) || answer.type !== question.type) throw new Error('Invalid Jev answer type.');+ if (question.type === 'noul') {+ if (!unitNumber(answer.noul)) throw new Error('Invalid Jev probability.');+ continue;+ }+ const keys = question.type === 'choice' ? Object.keys(question.criteria) : question.criteria.map((_, i) => String(i));+ if (!unitNumber(answer.confidence) || !isRecord(answer.probabilities)+ || Object.keys(answer.probabilities).length !== keys.length+ || keys.some(key => !unitNumber(answer.probabilities[key]))+ || Math.abs(keys.reduce((sum, key) => sum + answer.probabilities[key], 0) - 1) > 0.001) {+ throw new Error('Invalid Jev distribution.');+ }+ if (question.type === 'choice') {+ if (!keys.includes(answer.choice) || keys.some(key => answer.probabilities[key] > answer.probabilities[answer.choice] + 1e-6)) throw new Error('Invalid Jev choice.');+ } else {+ const expected = keys.reduce((sum, key) => sum + Number(key) * answer.probabilities[key], 0);+ if (normalizeAnswerNumber(answer.score) == null || answer.score < 0 || answer.score > keys.length - 1+ || Math.abs(expected - answer.score) > 0.02 || !isRecord(answer.legend)+ || keys.some(key => typeof answer.legend[key] !== 'string')) throw new Error('Invalid Jev score.');+ }+ }+ return answers;+}++function unitNumber(value) {+ return normalizeAnswerNumber(value) != null && value >= 0 && value <= 1;+}++function abortable(promise, signal) {+ throwIfAborted(signal);+ return new Promise((resolve, reject) => {+ const abort = () => reject(abortError(signal));+ signal.addEventListener('abort', abort, { once: true });+ Promise.resolve(promise).then(resolve, reject).finally(() => signal.removeEventListener('abort', abort));+ });}export function normalizeTypesafeApiKey(value) {@@ -110,12 +155,8 @@ export function isValidTypesafeApiKey(value) {}export function normalizeSystemOneThreshold(value, fallback = SYSTEM_ONE_DEFAULT_THRESHOLD) {- const number = Number(value);- const safeFallback = Number.isFinite(Number(fallback))- ? Number(fallback)- : SYSTEM_ONE_DEFAULT_THRESHOLD;- const candidate = Number.isFinite(number) ? number : safeFallback;- return Math.max(SYSTEM_ONE_MIN_THRESHOLD, Math.min(SYSTEM_ONE_MAX_THRESHOLD, candidate));+ const valid = n => typeof n === 'number' && Number.isFinite(n) && n >= SYSTEM_ONE_MIN_THRESHOLD && n <= SYSTEM_ONE_MAX_THRESHOLD;+ return valid(value) ? value : valid(fallback) ? fallback : SYSTEM_ONE_DEFAULT_THRESHOLD;}export function buildWatchQuestions() {@@ -170,7 +211,7 @@ export function shouldDowngradeSuccess(answers, { threshold = SYSTEM_ONE_DEFAULTconst completenessAnswer = answers.task_completeness;const probability = normalizeAnswerNumber(conditionAnswer?.noul);const score = normalizeAnswerNumber(completenessAnswer?.score);- if (probability == null || score == null) return false;+ if (!unitNumber(probability) || score == null || score < 0 || score > 2) return false;return probability < normalizeSystemOneThreshold(threshold)|| score < SYSTEM_ONE_MIN_COMPLETENESS_SCORE;}@@ -180,48 +221,57 @@ export function createSystemOneJudge({sleep = defaultSleep,timeoutMs = SYSTEM_ONE_TIMEOUT_MS,maxRetries = SYSTEM_ONE_MAX_RETRIES,+ now = () => Date.now(),} = {}) {if (typeof fetchImpl !== 'function') throw new Error('TypeSafe System One fetch is unavailable.');return {- async evaluate({ apiKey, state, questions, signal } = {}) {+ async evaluate({ apiKey, state, questions, signal, beforeRequest, onUsage } = {}) {const key = normalizeTypesafeApiKey(apiKey);if (!key) throw new Error('TypeSafe System One API key is not configured.');validateState(state);validateQuestions(questions);- const body = { state, model: SYSTEM_ONE_MODEL, questions };- const retries = Math.max(0, Math.floor(Number(maxRetries) || 0));-- for (let attempt = 0; ; attempt += 1) {- throwIfAborted(signal);- const request = requestSignal(signal, timeoutMs);- try {- const response = await fetchImpl(SYSTEM_ONE_API_URL, {+ const started = now();+ const request = requestSignal(signal, Math.max(1, Math.min(5000, Number(timeoutMs) || 5000)));+ const retries = Math.max(0, Math.min(2, Math.floor(Number(maxRetries) || 0)));+ try {+ for (let attempt = 0; ; attempt += 1) {+ throwIfAborted(request.signal);+ if (beforeRequest) await abortable(beforeRequest(), request.signal);+ throwIfAborted(request.signal);+ const response = await abortable(fetchImpl(SYSTEM_ONE_API_URL, {method: 'POST',- headers: {- Authorization: `Bearer ${key}`,- 'Content-Type': 'application/json',- },- body: JSON.stringify(body),+ credentials: 'omit',+ headers: { Authorization: `Bearer ${key}`, 'Content-Type': 'application/json' },+ body: JSON.stringify({ state, model: SYSTEM_ONE_MODEL, questions }),signal: request.signal,- });+ }), request.signal);if (!response?.ok) {const status = Number(response?.status) || 0;if ((status === 429 || status === 529) && attempt < retries) {- request.dispose();- await sleep(SYSTEM_ONE_RETRY_BASE_MS * (2 ** attempt));+ await abortable(sleep(SYSTEM_ONE_RETRY_BASE_MS * (2 ** attempt)), request.signal);continue;}throw requestError(status);}- let result;- try { result = await response.json(); } catch { throw new Error('TypeSafe System One returned invalid JSON.'); }- if (!isRecord(result) || !isRecord(result.answers)) {- throw new Error('TypeSafe System One returned an invalid answer map.');- }- return result;- } finally {- request.dispose();+ const result = await abortable(response.json(), request.signal);+ const usage = result?.usage;+ if (!isRecord(usage) || !Number.isInteger(usage.input_tokens) || usage.input_tokens < 0+ || !Number.isInteger(usage.output_tokens) || usage.output_tokens < 0) throw new Error('Invalid Jev usage.');+ const metadata = {+ model: SYSTEM_ONE_MODEL,+ usage: { input_tokens: usage.input_tokens, output_tokens: usage.output_tokens },+ latencyMs: Math.max(0, now() - started),+ estimatedCostUsd: usage.input_tokens * SYSTEM_ONE_INPUT_COST_PER_MILLION_USD / 1_000_000,+ };+ // Account for billable responses even when the answer contract is invalid.+ if (onUsage) await abortable(onUsage(metadata), request.signal);+ throwIfAborted(request.signal);+ if (result.model !== SYSTEM_ONE_MODEL) throw new Error('Unexpected Jev model version.');+ validateSystemOneAnswers(result.answers, questions);+ return { ...metadata, answers: result.answers };}+ } finally {+ request.dispose();}},};diff --git a/src/firefox/src/background.js b/src/firefox/src/background.jsindex c31a59138..bfd87d27a 100644--- a/src/firefox/src/background.js+++ b/src/firefox/src/background.js@@ -3465,6 +3465,17 @@ async function handleMessage(msg, sender) {return await providerManager.testTranscriptionProvider();}+ case 'test_system_one': {+ await strictSecretModeReady;+ try {+ const result = await agent.evaluateSystemOne(null, createSystemOneJudge({ maxRetries: 0 }), {+ apiKey: msg.apiKey, state: { color: 'blue' },+ questions: { test: { type: 'noul', instructions: 'Is the color blue?' } },+ });+ return { success: true, model: result.model };+ } catch (error) { return { success: false, error: error.message }; }+ }+case 'test_capsolver_balance': {try {const key = String(msg.apiKey || '').trim();diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.jsindex f1077c0ba..da0c57afd 100644--- a/src/firefox/src/ui/locales/ar.js+++ b/src/firefox/src/ui/locales/ar.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'المزوّدون النشطون','sp.providers.active': 'نشط','sp.providers.more': 'المزيد…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "نماذج مساعدة",+ "st.system_one.desc_html": "تحقق إضافي من المراقبة المجدولة وإتمام المهام.",+ "st.system_one.enabled.label": "تفعيل Jev",+ "st.system_one.api_key.label": "مفتاح API لـ TypeSafe",+ "st.system_one.watch.label": "التحقق من المراقبة المجدولة",+ "st.system_one.completion.label": "التحقق من إتمام المهام المجدولة",+ "st.system_one.security_html": "يرسل المهمة وأدلة محدودة من الصفحة إلى TypeSafe. يُحفظ المفتاح محليًا كنص عادي وقد يكون الاستخدام مدفوعًا. يعطّل Strict Secret Mode خدمة Jev.",+ "st.system_one.need_key": "أدخل مفتاح API لـ TypeSafe.",+ "st.system_one.uncertain": "Jev: تعذر التحقق من الإتمام.",+ "st.system_one.clear": "حذف المفتاح",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "التحقق من المراقبة المجدولة — عتبة الاحتمال",+ "st.system_one.completion_threshold": "التحقق من إتمام المهام المجدولة — عتبة الاحتمال",'st.providers.selected': 'محدد','st.providers.select_for_chat': 'تحديد للدردشة',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.jsindex a89ae87bd..c622dec23 100644--- a/src/firefox/src/ui/locales/bn.js+++ b/src/firefox/src/ui/locales/bn.js@@ -957,22 +957,19 @@ export default {'st.captcha.balance_fail': "ব্যর্থ হয়েছে: {error}",'st.captcha.security_html': "<strong>হেড-আপ:</strong> API কী সংরক্ষণ করা হয় <strong>প্লেইনটেক্সট</strong> ব্রাউজার স্থানীয় স্টোরেজে। CapSolver প্রতিটি সমাধানের জন্য আপনার অ্যাকাউন্ট চার্জ করে; এজেন্ট কেবল তখনই এটিকে কল করবে যখন একটি ক্যাপচা প্রকৃতপক্ষে একটি পদক্ষেপকে ব্লক করে (প্রতি এনকাউন্টারে সর্বোচ্চ একবার - এটি ব্যর্থ হলে পুনরায় চেষ্টা করবে না)। কিছু সাইটের পরিষেবার শর্তাবলী স্বয়ংক্রিয় ক্যাপচা সমাধান নিষিদ্ধ করে; আপনার রায় ব্যবহার করুন।",- 'st.system_one.desc_html': 'শিডিউল করা ওয়াচ এবং কাজ সম্পন্ন হওয়ার জন্য দ্বিতীয় মতামত হিসেবে ঐচ্ছিকভাবে <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> ব্যবহার করুন। এটি শুধু সীমাবদ্ধ কাজ ও সর্বশেষ পর্যবেক্ষণ বিচার করে; ব্রাউজার নিয়ন্ত্রণ করে না।',- 'st.system_one.enabled.label': 'TypeSafe System One চালু করুন',- 'st.system_one.enabled.desc': 'শিডিউল করা কাজের যেকোনো গার্ড চালুর আগে এটি সামগ্রিকভাবে অনুমোদন করুন। ডিফল্টে বন্ধ।',- 'st.system_one.api_key.label': 'TypeSafe API key',- 'st.system_one.watch.label': 'শিডিউল করা ওয়াচ বিচার করুন',- 'st.system_one.watch.desc': 'শর্ত বা প্রমাণ অনিশ্চিত মনে হলে ওয়াচের সাফল্যকে পোল হিসেবে নামিয়ে দিন।',- 'st.system_one.completion.label': 'শিডিউল করা কাজ সম্পূর্ণতা বিচার করুন',- 'st.system_one.completion.desc': 'সম্পূর্ণতার প্রমাণ অনিশ্চিত মনে হলে অতিরিক্ত আশাবাদী সাফল্যকে নামিয়ে দিন।',- 'st.system_one.watch_threshold': 'ওয়াচ আস্থার সীমা',- 'st.system_one.completion_threshold': 'সম্পূর্ণতা আস্থার সীমা',- 'st.system_one.save': 'সেটিংস সংরক্ষণ করুন',- 'st.system_one.clear': 'মুছুন',- 'st.system_one.saved': 'সংরক্ষিত। TypeSafe System One কনফিগার করা হয়েছে।',- 'st.system_one.cleared': 'মুছে ফেলা হয়েছে।',- 'st.system_one.need_key': 'System One চালু করার আগে একটি TypeSafe API key দিন।',- 'st.system_one.security_html': '<strong>গোপনীয়তা ও খরচ:</strong> আপনি অনুমতি না দেওয়া পর্যন্ত এই বৈশিষ্ট্য বন্ধ থাকে। এক্সটেনশন আপনার API key ব্যবহার করে কাজ ও সীমাবদ্ধ সর্বশেষ পর্যবেক্ষণ TypeSafe-এ পাঠায়। স্ক্রিনশট, অডিও বা provider credentials পাঠানো হয় না। key ব্রাউজারের local storage-এ plaintext হিসেবে রাখা হয়; TypeSafe আপনার অ্যাকাউন্টে খরচ করতে পারে। Strict Secret Mode এই sidecar বন্ধ করে।',+ "st.system_one.heading": "সহায়ক মডেল",+ "st.system_one.desc_html": "নির্ধারিত পর্যবেক্ষণ ও কাজ সম্পন্ন হওয়ার অতিরিক্ত যাচাই।",+ "st.system_one.enabled.label": "Jev চালু করুন",+ "st.system_one.api_key.label": "TypeSafe API কী",+ "st.system_one.watch.label": "নির্ধারিত পর্যবেক্ষণ যাচাই করুন",+ "st.system_one.completion.label": "নির্ধারিত কাজ সম্পন্ন হওয়া যাচাই করুন",+ "st.system_one.security_html": "কাজ ও পৃষ্ঠার সীমিত প্রমাণ TypeSafe-এ পাঠায়। কী স্থানীয়ভাবে সাধারণ পাঠ্য হিসেবে থাকে এবং ব্যবহারে খরচ হতে পারে। Strict Secret Mode-এ Jev বন্ধ থাকে।",+ "st.system_one.need_key": "TypeSafe API কী লিখুন।",+ "st.system_one.uncertain": "Jev: কাজ সম্পন্ন হওয়া যাচাই করা যায়নি।",+ "st.system_one.clear": "কী মুছুন",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "নির্ধারিত পর্যবেক্ষণ যাচাই করুন — সম্ভাবনার সীমা",+ "st.system_one.completion_threshold": "নির্ধারিত কাজ সম্পন্ন হওয়া যাচাই করুন — সম্ভাবনার সীমা",// --- Chat History page -------------------------------------------------'hist.title': "WebBrain চ্যাট ইতিহাস",diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.jsindex f42b4b10c..cfb6f48e3 100644--- a/src/firefox/src/ui/locales/de.js+++ b/src/firefox/src/ui/locales/de.js@@ -898,22 +898,19 @@ export default {'st.captcha.balance_fail': 'Fehlgeschlagen: {error}','st.captcha.security_html': '<strong>Hinweis:</strong> Der API-Schlüssel wird als Klartext im Browser-Speicher gespeichert...',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Hilfsmodelle",+ "st.system_one.desc_html": "Zusätzliche Prüfung geplanter Überwachungen und Aufgabenabschlüsse.",+ "st.system_one.enabled.label": "Jev aktivieren",+ "st.system_one.api_key.label": "TypeSafe-API-Schlüssel",+ "st.system_one.watch.label": "Geplante Überwachungen prüfen",+ "st.system_one.completion.label": "Abschluss geplanter Aufgaben prüfen",+ "st.system_one.security_html": "Sendet die Aufgabe und begrenzte Seitenbelege an TypeSafe. Der Schlüssel wird lokal im Klartext gespeichert. Die Nutzung kann kostenpflichtig sein. Strict Secret Mode deaktiviert Jev.",+ "st.system_one.need_key": "TypeSafe-API-Schlüssel eingeben.",+ "st.system_one.uncertain": "Jev: Abschluss konnte nicht bestätigt werden.",+ "st.system_one.clear": "Schlüssel löschen",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Geplante Überwachungen prüfen — Wahrscheinlichkeitsschwelle",+ "st.system_one.completion_threshold": "Abschluss geplanter Aufgaben prüfen — Wahrscheinlichkeitsschwelle",// --- Skills settings ---'st.skills.desc_html': 'Aktivierte Skills stehen auf Anfrage in Mid- und Full-Leveln zur Verfügung...','st.skills.name.label': 'Name (optional)',diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.jsindex 5fd8904dc..19744150a 100644--- a/src/firefox/src/ui/locales/en.js+++ b/src/firefox/src/ui/locales/en.js@@ -959,22 +959,19 @@ export default {'st.captcha.balance_fail': 'Failed: {error}','st.captcha.security_html': '<strong>Heads-up:</strong> the API key is stored <strong>in plaintext</strong> in browser local storage. CapSolver charges your account for every solve; the agent will only call it when a CAPTCHA actually blocks a step (max once per encounter — it won\'t retry on failure). Some sites\' terms of service prohibit automated CAPTCHA solving; use your judgement.',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Auxiliary models",+ "st.system_one.desc_html": "Extra verification for scheduled watches and task completion.",+ "st.system_one.enabled.label": "Enable Jev",+ "st.system_one.api_key.label": "TypeSafe API key",+ "st.system_one.watch.label": "Verify scheduled watches",+ "st.system_one.completion.label": "Verify scheduled task completion",+ "st.system_one.security_html": "Sends the task and limited page evidence to TypeSafe. Your key is stored locally in plaintext and usage may cost money. Strict Secret Mode disables Jev.",+ "st.system_one.need_key": "Enter a TypeSafe API key.",+ "st.system_one.uncertain": "Jev: completion could not be verified.",+ "st.system_one.clear": "Delete key",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verify scheduled watches — Probability threshold",+ "st.system_one.completion_threshold": "Verify scheduled task completion — Probability threshold",// --- Chat History page -------------------------------------------------'hist.title': 'WebBrain Chat History',diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.jsindex 14a89a2a2..d2d98b134 100644--- a/src/firefox/src/ui/locales/es.js+++ b/src/firefox/src/ui/locales/es.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Proveedores activos','sp.providers.active': 'Activo','sp.providers.more': 'Más…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Modelos auxiliares",+ "st.system_one.desc_html": "Verificación adicional de seguimientos y tareas programadas.",+ "st.system_one.enabled.label": "Activar Jev",+ "st.system_one.api_key.label": "Clave API de TypeSafe",+ "st.system_one.watch.label": "Verificar seguimientos programados",+ "st.system_one.completion.label": "Verificar tareas programadas completadas",+ "st.system_one.security_html": "Envía la tarea y pruebas limitadas de la página a TypeSafe. La clave se guarda localmente en texto plano. El uso puede tener coste. Strict Secret Mode desactiva Jev.",+ "st.system_one.need_key": "Introduce una clave API de TypeSafe.",+ "st.system_one.uncertain": "Jev: no se pudo verificar la finalización.",+ "st.system_one.clear": "Eliminar clave",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verificar seguimientos programados — Umbral de probabilidad",+ "st.system_one.completion_threshold": "Verificar tareas programadas completadas — Umbral de probabilidad",'st.providers.selected': 'SELECCIONADO','st.providers.select_for_chat': 'Seleccionar para el chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.jsindex b03a1850d..96269dff6 100644--- a/src/firefox/src/ui/locales/fa.js+++ b/src/firefox/src/ui/locales/fa.js@@ -957,22 +957,19 @@ export default {'st.captcha.balance_fail': "ناموفق: {error}",'st.captcha.security_html': "<strong>هدآپ:</strong> کلید API ذخیره می شود <strong>در متن ساده</strong> در حافظه محلی مرورگر CapSolver برای هر حل حساب شما را شارژ می کند. عامل فقط زمانی آن را فراخوانی می کند که یک CAPTCHA در واقع یک مرحله را مسدود کند (حداکثر یک بار در هر برخورد - در صورت شکست مجدداً تلاش نمی کند). شرایط خدمات برخی از سایت ها حل خودکار CAPTCHA را ممنوع می کند. از قضاوت خود استفاده کنید",- 'st.system_one.desc_html': 'بهصورت اختیاری از <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> بهعنوان نظر دوم برای پایشهای زمانبندیشده و تکمیل وظایف استفاده کنید. این ابزار فقط وظیفه محدود و مشاهده اخیر را ارزیابی میکند و هرگز مرورگر را کنترل نمیکند.',- 'st.system_one.enabled.label': 'فعالسازی TypeSafe System One',- 'st.system_one.enabled.desc': 'پیش از فعالکردن هر محافظ وظیفه زمانبندیشده، این گزینه را بهصورت کلی فعال کنید. بهطور پیشفرض خاموش است.',- 'st.system_one.api_key.label': 'کلید API تایپسیف',- 'st.system_one.watch.label': 'ارزیابی پایشهای زمانبندیشده',- 'st.system_one.watch.desc': 'وقتی شرط یا شواهد نامطمئن است، موفقیت پایش را به یک بررسی دورهای تبدیل میکند.',- 'st.system_one.completion.label': 'ارزیابی تکمیل وظایف زمانبندیشده',- 'st.system_one.completion.desc': 'وقتی شواهد تکمیل نامطمئن است، موفقیت خوشبینانه وظیفه را کاهش میدهد.',- 'st.system_one.watch_threshold': 'آستانه اطمینان پایش',- 'st.system_one.completion_threshold': 'آستانه اطمینان تکمیل',- 'st.system_one.save': 'ذخیره تنظیمات',- 'st.system_one.clear': 'پاککردن',- 'st.system_one.saved': 'ذخیره شد. TypeSafe System One پیکربندی شد.',- 'st.system_one.cleared': 'پاک شد.',- 'st.system_one.need_key': 'پیش از فعالکردن System One یک کلید API تایپسیف وارد کنید.',- 'st.system_one.security_html': '<strong>حریم خصوصی و هزینه:</strong> این قابلیت تا زمان انتخاب شما خاموش است. افزونه با استفاده از کلید API شما، وظیفه و یک مشاهده اخیر محدودشده را به TypeSafe میفرستد. تصویر، صدا یا اعتبارنامه ارائهدهنده ارسال نمیشود. کلید بهصورت متن ساده در حافظه محلی مرورگر ذخیره میشود و TypeSafe ممکن است از حساب شما هزینه بگیرد. Strict Secret Mode این sidecar را غیرفعال میکند.',+ "st.system_one.heading": "مدلهای کمکی",+ "st.system_one.desc_html": "بررسی تکمیلی پایشهای زمانبندیشده و تکمیل کارها.",+ "st.system_one.enabled.label": "فعالسازی Jev",+ "st.system_one.api_key.label": "کلید API تایپسیف",+ "st.system_one.watch.label": "بررسی پایشهای زمانبندیشده",+ "st.system_one.completion.label": "بررسی تکمیل کارهای زمانبندیشده",+ "st.system_one.security_html": "کار و شواهد محدود صفحه را به TypeSafe میفرستد. کلید بهصورت متن ساده محلی ذخیره میشود و استفاده ممکن است هزینه داشته باشد. Strict Secret Mode، Jev را غیرفعال میکند.",+ "st.system_one.need_key": "کلید API تایپسیف را وارد کنید.",+ "st.system_one.uncertain": "Jev: تکمیل کار تأیید نشد.",+ "st.system_one.clear": "حذف کلید",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "بررسی پایشهای زمانبندیشده — آستانه احتمال",+ "st.system_one.completion_threshold": "بررسی تکمیل کارهای زمانبندیشده — آستانه احتمال",// --- Chat History page -------------------------------------------------'hist.title': "تاریخچه چت WebBrain",diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.jsindex 364232922..ef5272efb 100644--- a/src/firefox/src/ui/locales/fr.js+++ b/src/firefox/src/ui/locales/fr.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Fournisseurs actifs','sp.providers.active': 'Actif','sp.providers.more': 'Plus…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Modèles auxiliaires",+ "st.system_one.desc_html": "Vérification supplémentaire des surveillances et tâches planifiées.",+ "st.system_one.enabled.label": "Activer Jev",+ "st.system_one.api_key.label": "Clé API TypeSafe",+ "st.system_one.watch.label": "Vérifier les surveillances planifiées",+ "st.system_one.completion.label": "Vérifier la fin des tâches planifiées",+ "st.system_one.security_html": "Envoie la tâche et des éléments limités de la page à TypeSafe. La clé est stockée localement en clair. L’utilisation peut être payante. Strict Secret Mode désactive Jev.",+ "st.system_one.need_key": "Saisissez une clé API TypeSafe.",+ "st.system_one.uncertain": "Jev : fin de tâche non confirmée.",+ "st.system_one.clear": "Supprimer la clé",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Vérifier les surveillances planifiées — Seuil de probabilité",+ "st.system_one.completion_threshold": "Vérifier la fin des tâches planifiées — Seuil de probabilité",'st.providers.selected': 'SÉLECTIONNÉ','st.providers.select_for_chat': 'Sélectionner pour le chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.jsindex 00a61265a..4c7ddecd0 100644--- a/src/firefox/src/ui/locales/he.js+++ b/src/firefox/src/ui/locales/he.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'ספקים פעילים','sp.providers.active': 'פעיל','sp.providers.more': 'עוד…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "מודלים מסייעים",+ "st.system_one.desc_html": "אימות נוסף למעקבים מתוזמנים ולהשלמת משימות.",+ "st.system_one.enabled.label": "הפעלת Jev",+ "st.system_one.api_key.label": "מפתח API של TypeSafe",+ "st.system_one.watch.label": "אימות מעקבים מתוזמנים",+ "st.system_one.completion.label": "אימות השלמת משימות מתוזמנות",+ "st.system_one.security_html": "שולח את המשימה וראיות מוגבלות מהדף אל TypeSafe. המפתח נשמר מקומית כטקסט גלוי והשימוש עשוי להיות בתשלום. Strict Secret Mode משבית את Jev.",+ "st.system_one.need_key": "יש להזין מפתח API של TypeSafe.",+ "st.system_one.uncertain": "Jev: לא ניתן לאמת את ההשלמה.",+ "st.system_one.clear": "מחיקת מפתח",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "אימות מעקבים מתוזמנים — סף הסתברות",+ "st.system_one.completion_threshold": "אימות השלמת משימות מתוזמנות — סף הסתברות",'st.providers.selected': 'נבחר','st.providers.select_for_chat': 'בחירה לצ׳אט',"brand": "WebBrain",diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.jsindex 1c6385732..9047afebd 100644--- a/src/firefox/src/ui/locales/hi.js+++ b/src/firefox/src/ui/locales/hi.js@@ -957,22 +957,19 @@ export default {'st.captcha.balance_fail': "विफल: {error}",'st.captcha.security_html': "<strong>सावधान:</strong> एपीआई कुंजी संग्रहीत है <strong>सादे पाठ में</strong> ब्राउज़र स्थानीय भंडारण में. कैपसॉल्वर प्रत्येक समाधान के लिए आपके खाते से शुल्क लेता है; एजेंट इसे केवल तभी कॉल करेगा जब कैप्चा वास्तव में एक चरण को अवरुद्ध करता है (प्रति मुठभेड़ अधिकतम एक बार - यह विफलता पर पुनः प्रयास नहीं करेगा)। कुछ साइटों की सेवा की शर्तें स्वचालित कैप्चा समाधान पर रोक लगाती हैं; अपने निर्णय का प्रयोग करें.",- 'st.system_one.desc_html': 'शेड्यूल किए गए वॉच और कार्य-पूर्णता के लिए दूसरे मत के रूप में वैकल्पिक रूप से <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> का उपयोग करें। यह केवल सीमित कार्य और नवीनतम निरीक्षण का मूल्यांकन करता है; ब्राउज़र को नियंत्रित नहीं करता।',- 'st.system_one.enabled.label': 'TypeSafe System One सक्षम करें',- 'st.system_one.enabled.desc': 'किसी भी शेड्यूल किए गए सुरक्षा विकल्प को सक्षम करने से पहले इसे वैश्विक रूप से चुनें। डिफ़ॉल्ट रूप से बंद।',- 'st.system_one.api_key.label': 'TypeSafe API key',- 'st.system_one.watch.label': 'शेड्यूल किए गए वॉच का मूल्यांकन करें',- 'st.system_one.watch.desc': 'स्थिति या प्रमाण अनिश्चित होने पर वॉच की सफलता को पोल में बदलें।',- 'st.system_one.completion.label': 'शेड्यूल किए गए कार्य की पूर्णता का मूल्यांकन करें',- 'st.system_one.completion.desc': 'पूर्णता का प्रमाण अनिश्चित होने पर आशावादी कार्य-सफलता को कम करें।',- 'st.system_one.watch_threshold': 'वॉच विश्वास सीमा',- 'st.system_one.completion_threshold': 'पूर्णता विश्वास सीमा',- 'st.system_one.save': 'सेटिंग सहेजें',- 'st.system_one.clear': 'साफ़ करें',- 'st.system_one.saved': 'सहेजा गया। TypeSafe System One कॉन्फ़िगर है।',- 'st.system_one.cleared': 'साफ़ किया गया।',- 'st.system_one.need_key': 'System One सक्षम करने से पहले TypeSafe API key दर्ज करें।',- 'st.system_one.security_html': '<strong>गोपनीयता और लागत:</strong> यह सुविधा आपकी अनुमति तक बंद रहती है। एक्सटेंशन आपकी अपनी API key का उपयोग करके कार्य और सीमित नवीनतम निरीक्षण TypeSafe को भेजता है। स्क्रीनशॉट, ऑडियो या provider credentials नहीं भेजे जाते। key ब्राउज़र local storage में plaintext में रखी जाती है; TypeSafe आपके खाते से शुल्क ले सकता है। Strict Secret Mode इस sidecar को बंद करता है।',+ "st.system_one.heading": "सहायक मॉडल",+ "st.system_one.desc_html": "निर्धारित निगरानी और कार्य पूर्ण होने की अतिरिक्त जाँच।",+ "st.system_one.enabled.label": "Jev चालू करें",+ "st.system_one.api_key.label": "TypeSafe API कुंजी",+ "st.system_one.watch.label": "निर्धारित निगरानी की जाँच करें",+ "st.system_one.completion.label": "निर्धारित कार्य पूर्ण होने की जाँच करें",+ "st.system_one.security_html": "कार्य और पृष्ठ के सीमित प्रमाण TypeSafe को भेजता है। कुंजी स्थानीय रूप से सादे पाठ में रहती है और उपयोग का शुल्क लग सकता है। Strict Secret Mode में Jev बंद रहता है।",+ "st.system_one.need_key": "TypeSafe API कुंजी दर्ज करें।",+ "st.system_one.uncertain": "Jev: कार्य पूर्ण होने की पुष्टि नहीं हुई।",+ "st.system_one.clear": "कुंजी हटाएँ",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "निर्धारित निगरानी की जाँच करें — प्रायिकता सीमा",+ "st.system_one.completion_threshold": "निर्धारित कार्य पूर्ण होने की जाँच करें — प्रायिकता सीमा",// --- Chat History page -------------------------------------------------'hist.title': "WebBrain चैट इतिहास",diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.jsindex 950774469..e0764b4d3 100644--- a/src/firefox/src/ui/locales/id.js+++ b/src/firefox/src/ui/locales/id.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Penyedia aktif','sp.providers.active': 'Aktif','sp.providers.more': 'Lainnya…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Model pendukung",+ "st.system_one.desc_html": "Verifikasi tambahan untuk pemantauan terjadwal dan penyelesaian tugas.",+ "st.system_one.enabled.label": "Aktifkan Jev",+ "st.system_one.api_key.label": "Kunci API TypeSafe",+ "st.system_one.watch.label": "Verifikasi pemantauan terjadwal",+ "st.system_one.completion.label": "Verifikasi penyelesaian tugas terjadwal",+ "st.system_one.security_html": "Mengirim tugas dan bukti halaman terbatas ke TypeSafe. Kunci disimpan lokal sebagai teks biasa dan penggunaan dapat dikenai biaya. Strict Secret Mode menonaktifkan Jev.",+ "st.system_one.need_key": "Masukkan kunci API TypeSafe.",+ "st.system_one.uncertain": "Jev: penyelesaian tidak dapat diverifikasi.",+ "st.system_one.clear": "Hapus kunci",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verifikasi pemantauan terjadwal — Ambang probabilitas",+ "st.system_one.completion_threshold": "Verifikasi penyelesaian tugas terjadwal — Ambang probabilitas",'st.providers.selected': 'DIPILIH','st.providers.select_for_chat': 'Pilih untuk chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.jsindex 78e313edc..91414c86c 100644--- a/src/firefox/src/ui/locales/ja.js+++ b/src/firefox/src/ui/locales/ja.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': '有効なプロバイダー','sp.providers.active': '有効','sp.providers.more': 'その他…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "補助モデル",+ "st.system_one.desc_html": "定期監視と予約タスクの完了を追加検証します。",+ "st.system_one.enabled.label": "Jev を有効にする",+ "st.system_one.api_key.label": "TypeSafe API キー",+ "st.system_one.watch.label": "定期監視を検証",+ "st.system_one.completion.label": "予約タスクの完了を検証",+ "st.system_one.security_html": "タスクと限定的なページ証拠を TypeSafe に送信します。キーはローカルに平文で保存され、利用料金が発生する場合があります。Strict Secret Mode では Jev は無効です。",+ "st.system_one.need_key": "TypeSafe API キーを入力してください。",+ "st.system_one.uncertain": "Jev: 完了を確認できませんでした。",+ "st.system_one.clear": "キーを削除",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "定期監視を検証 — 確率のしきい値",+ "st.system_one.completion_threshold": "予約タスクの完了を検証 — 確率のしきい値",'st.providers.selected': '選択中','st.providers.select_for_chat': 'チャット用に選択',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.jsindex 20b03ba55..0185264cc 100644--- a/src/firefox/src/ui/locales/ko.js+++ b/src/firefox/src/ui/locales/ko.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': '활성 공급자','sp.providers.active': '활성','sp.providers.more': '더 보기…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "보조 모델",+ "st.system_one.desc_html": "예약된 모니터링과 작업 완료를 추가로 검증합니다.",+ "st.system_one.enabled.label": "Jev 활성화",+ "st.system_one.api_key.label": "TypeSafe API 키",+ "st.system_one.watch.label": "예약 모니터링 검증",+ "st.system_one.completion.label": "예약 작업 완료 검증",+ "st.system_one.security_html": "작업과 제한된 페이지 증거를 TypeSafe로 보냅니다. 키는 로컬에 일반 텍스트로 저장되며 사용 요금이 발생할 수 있습니다. Strict Secret Mode에서는 Jev가 비활성화됩니다.",+ "st.system_one.need_key": "TypeSafe API 키를 입력하세요.",+ "st.system_one.uncertain": "Jev: 완료를 확인할 수 없습니다.",+ "st.system_one.clear": "키 삭제",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "예약 모니터링 검증 — 확률 임계값",+ "st.system_one.completion_threshold": "예약 작업 완료 검증 — 확률 임계값",'st.providers.selected': '선택됨','st.providers.select_for_chat': '채팅용으로 선택',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.jsindex 31d4ac781..52860df30 100644--- a/src/firefox/src/ui/locales/ms.js+++ b/src/firefox/src/ui/locales/ms.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Penyedia aktif','sp.providers.active': 'Aktif','sp.providers.more': 'Lagi…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Model bantuan",+ "st.system_one.desc_html": "Pengesahan tambahan bagi pemantauan berjadual dan penyelesaian tugas.",+ "st.system_one.enabled.label": "Dayakan Jev",+ "st.system_one.api_key.label": "Kunci API TypeSafe",+ "st.system_one.watch.label": "Sahkan pemantauan berjadual",+ "st.system_one.completion.label": "Sahkan penyelesaian tugas berjadual",+ "st.system_one.security_html": "Menghantar tugas dan bukti halaman terhad kepada TypeSafe. Kunci disimpan secara setempat sebagai teks biasa dan penggunaan mungkin berbayar. Strict Secret Mode melumpuhkan Jev.",+ "st.system_one.need_key": "Masukkan kunci API TypeSafe.",+ "st.system_one.uncertain": "Jev: penyelesaian tidak dapat disahkan.",+ "st.system_one.clear": "Padam kunci",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Sahkan pemantauan berjadual — Ambang kebarangkalian",+ "st.system_one.completion_threshold": "Sahkan penyelesaian tugas berjadual — Ambang kebarangkalian",'st.providers.selected': 'DIPILIH','st.providers.select_for_chat': 'Pilih untuk sembang',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.jsindex 1ef6f3b10..406b1d5bd 100644--- a/src/firefox/src/ui/locales/nl.js+++ b/src/firefox/src/ui/locales/nl.js@@ -858,22 +858,19 @@ export default {'st.captcha.balance_fail': 'Mislukt: {error}','st.captcha.security_html': '<strong>Let op:</strong> de API-sleutel wordt in platte tekst opgeslagen...',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Hulpmodellen",+ "st.system_one.desc_html": "Extra controle van geplande bewakingen en voltooide taken.",+ "st.system_one.enabled.label": "Jev inschakelen",+ "st.system_one.api_key.label": "TypeSafe-API-sleutel",+ "st.system_one.watch.label": "Geplande bewakingen controleren",+ "st.system_one.completion.label": "Voltooiing van geplande taken controleren",+ "st.system_one.security_html": "Stuurt de taak en beperkt paginabewijs naar TypeSafe. De sleutel wordt lokaal als platte tekst opgeslagen. Gebruik kan geld kosten. Strict Secret Mode schakelt Jev uit.",+ "st.system_one.need_key": "Voer een TypeSafe-API-sleutel in.",+ "st.system_one.uncertain": "Jev: voltooiing kon niet worden bevestigd.",+ "st.system_one.clear": "Sleutel verwijderen",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Geplande bewakingen controleren — Waarschijnlijkheidsdrempel",+ "st.system_one.completion_threshold": "Voltooiing van geplande taken controleren — Waarschijnlijkheidsdrempel",'hist.title': 'WebBrain Chatgeschiedenis','hist.records': '{n} records','hist.record': '{n} record',diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.jsindex 5cc71c929..7d8bb519f 100644--- a/src/firefox/src/ui/locales/pl.js+++ b/src/firefox/src/ui/locales/pl.js@@ -645,22 +645,19 @@ export default {'st.captcha.balance_fail': 'Niepowodzenie: {error}','st.captcha.security_html': '<strong>Uwaga:</strong> klucz API jest przechowywany <strong>w postaci jawnej</strong> w lokalnej pamięci przeglądarki. CapSolver obciąża Twoje konto za każde rozwiązanie; agent wywoła go tylko, gdy CAPTCHA faktycznie zablokuje krok (maksymalnie raz na napotkanie — nie ponawia po niepowodzeniu). Regulaminy niektórych witryn zabraniają automatycznego rozwiązywania CAPTCHA; kieruj się własnym osądem.',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Modele pomocnicze",+ "st.system_one.desc_html": "Dodatkowa weryfikacja zaplanowanego monitorowania i ukończenia zadań.",+ "st.system_one.enabled.label": "Włącz Jev",+ "st.system_one.api_key.label": "Klucz API TypeSafe",+ "st.system_one.watch.label": "Weryfikuj zaplanowane monitorowanie",+ "st.system_one.completion.label": "Weryfikuj ukończenie zaplanowanych zadań",+ "st.system_one.security_html": "Wysyła zadanie i ograniczone dowody ze strony do TypeSafe. Klucz jest przechowywany lokalnie jawnym tekstem. Korzystanie może być płatne. Strict Secret Mode wyłącza Jev.",+ "st.system_one.need_key": "Wprowadź klucz API TypeSafe.",+ "st.system_one.uncertain": "Jev: nie udało się potwierdzić ukończenia.",+ "st.system_one.clear": "Usuń klucz",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Weryfikuj zaplanowane monitorowanie — Próg prawdopodobieństwa",+ "st.system_one.completion_threshold": "Weryfikuj ukończenie zaplanowanych zadań — Próg prawdopodobieństwa",'tr.title': 'Ślady WebBrain','tr.lossless.badge': 'Sensitive debug tier','tr.lossless.warning': 'This run contains full request content. Review it for secrets before exporting or sharing.',diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.jsindex dd7d33d53..2b9d2d59e 100644--- a/src/firefox/src/ui/locales/pt.js+++ b/src/firefox/src/ui/locales/pt.js@@ -957,22 +957,19 @@ export default {'st.captcha.balance_fail': "Falha: {error}",'st.captcha.security_html': "<strong>Atenção:</strong> a chave API é armazenada <strong>em texto simples</strong> no armazenamento local do navegador. CapSolver cobra sua conta por cada solução; o agente só o chamará quando um CAPTCHA realmente bloquear uma etapa (no máximo uma vez por encontro - ele não tentará novamente em caso de falha). Os termos de serviço de alguns sites proíbem a resolução automatizada de CAPTCHA; use seu julgamento.",- 'st.system_one.desc_html': 'Use opcionalmente o <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> como segunda opinião para monitoramentos agendados e conclusão de tarefas. Ele avalia apenas a tarefa limitada e a observação mais recente; nunca controla o navegador.',- 'st.system_one.enabled.label': 'Ativar TypeSafe System One',- 'st.system_one.enabled.desc': 'Ative globalmente antes de habilitar qualquer proteção de tarefa agendada. Desativado por padrão.',- 'st.system_one.api_key.label': 'Chave de API TypeSafe',- 'st.system_one.watch.label': 'Avaliar monitoramentos agendados',- 'st.system_one.watch.desc': 'Rebaixa o sucesso de um monitoramento para uma sondagem quando a condição ou a evidência parece incerta.',- 'st.system_one.completion.label': 'Avaliar conclusão de tarefas agendadas',- 'st.system_one.completion.desc': 'Rebaixa um sucesso otimista quando a evidência de conclusão parece incerta.',- 'st.system_one.watch_threshold': 'Limite de confiança do monitoramento',- 'st.system_one.completion_threshold': 'Limite de confiança da conclusão',- 'st.system_one.save': 'Salvar configurações',- 'st.system_one.clear': 'Limpar',- 'st.system_one.saved': 'Salvo. O TypeSafe System One está configurado.',- 'st.system_one.cleared': 'Limpo.',- 'st.system_one.need_key': 'Insira uma chave de API TypeSafe antes de ativar o System One.',- 'st.system_one.security_html': '<strong>Privacidade e custo:</strong> este recurso fica desativado até você autorizá-lo. A extensão envia a tarefa e uma observação recente limitada ao TypeSafe usando sua própria chave de API. Não envia capturas de tela, áudio nem credenciais de provedores. A chave é armazenada em texto simples no armazenamento local do navegador; o TypeSafe pode cobrar sua conta. O Strict Secret Mode desativa este sidecar.',+ "st.system_one.heading": "Modelos auxiliares",+ "st.system_one.desc_html": "Verificação adicional de monitoramentos e tarefas agendadas.",+ "st.system_one.enabled.label": "Ativar Jev",+ "st.system_one.api_key.label": "Chave de API TypeSafe",+ "st.system_one.watch.label": "Verificar monitoramentos agendados",+ "st.system_one.completion.label": "Verificar conclusão de tarefas agendadas",+ "st.system_one.security_html": "Envia a tarefa e evidências limitadas da página ao TypeSafe. A chave é armazenada localmente em texto simples. O uso pode ter custos. Strict Secret Mode desativa o Jev.",+ "st.system_one.need_key": "Insira uma chave de API TypeSafe.",+ "st.system_one.uncertain": "Jev: não foi possível confirmar a conclusão.",+ "st.system_one.clear": "Excluir chave",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Verificar monitoramentos agendados — Limite de probabilidade",+ "st.system_one.completion_threshold": "Verificar conclusão de tarefas agendadas — Limite de probabilidade",// --- Chat History page -------------------------------------------------'hist.title': "WebBrain Histórico de bate-papo",diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.jsindex e008f1dfa..36f6b2e72 100644--- a/src/firefox/src/ui/locales/ru.js+++ b/src/firefox/src/ui/locales/ru.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Активные провайдеры','sp.providers.active': 'Активен','sp.providers.more': 'Ещё…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Вспомогательные модели",+ "st.system_one.desc_html": "Дополнительная проверка запланированных наблюдений и завершения задач.",+ "st.system_one.enabled.label": "Включить Jev",+ "st.system_one.api_key.label": "Ключ API TypeSafe",+ "st.system_one.watch.label": "Проверять запланированные наблюдения",+ "st.system_one.completion.label": "Проверять завершение запланированных задач",+ "st.system_one.security_html": "Отправляет задачу и ограниченные данные страницы в TypeSafe. Ключ хранится локально открытым текстом. Использование может быть платным. Strict Secret Mode отключает Jev.",+ "st.system_one.need_key": "Введите ключ API TypeSafe.",+ "st.system_one.uncertain": "Jev: завершение не подтверждено.",+ "st.system_one.clear": "Удалить ключ",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Проверять запланированные наблюдения — Порог вероятности",+ "st.system_one.completion_threshold": "Проверять завершение запланированных задач — Порог вероятности",'st.providers.selected': 'ВЫБРАН','st.providers.select_for_chat': 'Выбрать для чата',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.jsindex d95830ce9..99d133bf9 100644--- a/src/firefox/src/ui/locales/th.js+++ b/src/firefox/src/ui/locales/th.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'ผู้ให้บริการที่ใช้งานอยู่','sp.providers.active': 'ใช้งานอยู่','sp.providers.more': 'เพิ่มเติม…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "โมเดลเสริม",+ "st.system_one.desc_html": "ตรวจสอบเพิ่มเติมสำหรับการเฝ้าดูและการทำงานตามกำหนดเวลา",+ "st.system_one.enabled.label": "เปิดใช้ Jev",+ "st.system_one.api_key.label": "คีย์ API ของ TypeSafe",+ "st.system_one.watch.label": "ตรวจสอบการเฝ้าดูตามกำหนดเวลา",+ "st.system_one.completion.label": "ตรวจสอบการเสร็จสิ้นของงานตามกำหนดเวลา",+ "st.system_one.security_html": "ส่งงานและหลักฐานจากหน้าเว็บแบบจำกัดไปยัง TypeSafe คีย์จะเก็บในเครื่องเป็นข้อความธรรมดาและอาจมีค่าใช้จ่าย Strict Secret Mode จะปิด Jev",+ "st.system_one.need_key": "ป้อนคีย์ API ของ TypeSafe",+ "st.system_one.uncertain": "Jev: ไม่สามารถยืนยันการเสร็จสิ้นได้",+ "st.system_one.clear": "ลบคีย์",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "ตรวจสอบการเฝ้าดูตามกำหนดเวลา — เกณฑ์ความน่าจะเป็น",+ "st.system_one.completion_threshold": "ตรวจสอบการเสร็จสิ้นของงานตามกำหนดเวลา — เกณฑ์ความน่าจะเป็น",'st.providers.selected': 'เลือกแล้ว','st.providers.select_for_chat': 'เลือกสำหรับแชต',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.jsindex c3228a883..7c88a469a 100644--- a/src/firefox/src/ui/locales/tl.js+++ b/src/firefox/src/ui/locales/tl.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Mga aktibong provider','sp.providers.active': 'Aktibo','sp.providers.more': 'Higit pa…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Mga pantulong na modelo",+ "st.system_one.desc_html": "Dagdag na pagtiyak sa nakaiskedyul na pagsubaybay at pagkumpleto ng gawain.",+ "st.system_one.enabled.label": "Paganahin ang Jev",+ "st.system_one.api_key.label": "TypeSafe API key",+ "st.system_one.watch.label": "Tiyakin ang nakaiskedyul na pagsubaybay",+ "st.system_one.completion.label": "Tiyakin ang pagkumpleto ng nakaiskedyul na gawain",+ "st.system_one.security_html": "Ipinapadala ang gawain at limitadong ebidensiya ng pahina sa TypeSafe. Lokal na nakaimbak ang key bilang plain text at maaaring may bayad ang paggamit. Hindi gumagana ang Jev sa Strict Secret Mode.",+ "st.system_one.need_key": "Maglagay ng TypeSafe API key.",+ "st.system_one.uncertain": "Jev: hindi matiyak ang pagkumpleto.",+ "st.system_one.clear": "Burahin ang key",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Tiyakin ang nakaiskedyul na pagsubaybay — Hangganan ng probabilidad",+ "st.system_one.completion_threshold": "Tiyakin ang pagkumpleto ng nakaiskedyul na gawain — Hangganan ng probabilidad",'st.providers.selected': 'NAPILI','st.providers.select_for_chat': 'Piliin para sa chat',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.jsindex 28412f2b7..0f203156a 100644--- a/src/firefox/src/ui/locales/tr.js+++ b/src/firefox/src/ui/locales/tr.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Etkin sağlayıcılar','sp.providers.active': 'Etkin','sp.providers.more': 'Daha fazla…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Yardımcı modeller",+ "st.system_one.desc_html": "Zamanlanmış izlemeler ve görev tamamlanması için ek doğrulama.",+ "st.system_one.enabled.label": "Jev’i etkinleştir",+ "st.system_one.api_key.label": "TypeSafe API anahtarı",+ "st.system_one.watch.label": "Zamanlanmış izlemeleri doğrula",+ "st.system_one.completion.label": "Zamanlanmış görev tamamlanmasını doğrula",+ "st.system_one.security_html": "Görevi ve sınırlı sayfa kanıtını TypeSafe’e gönderir. Anahtarınız yerelde düz metin olarak saklanır ve kullanım ücretli olabilir. Strict Secret Mode, Jev’i kapatır.",+ "st.system_one.need_key": "Bir TypeSafe API anahtarı girin.",+ "st.system_one.uncertain": "Jev: tamamlanma doğrulanamadı.",+ "st.system_one.clear": "Anahtarı sil",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Zamanlanmış izlemeleri doğrula — Olasılık eşiği",+ "st.system_one.completion_threshold": "Zamanlanmış görev tamamlanmasını doğrula — Olasılık eşiği",'st.providers.selected': 'SEÇİLİ','st.providers.select_for_chat': 'Sohbet için seç',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.jsindex 2cc8ebc47..547c0c08a 100644--- a/src/firefox/src/ui/locales/uk.js+++ b/src/firefox/src/ui/locales/uk.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': 'Активні провайдери','sp.providers.active': 'Активний','sp.providers.more': 'Більше…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "Допоміжні моделі",+ "st.system_one.desc_html": "Додаткова перевірка запланованих спостережень і завершення завдань.",+ "st.system_one.enabled.label": "Увімкнути Jev",+ "st.system_one.api_key.label": "Ключ API TypeSafe",+ "st.system_one.watch.label": "Перевіряти заплановані спостереження",+ "st.system_one.completion.label": "Перевіряти завершення запланованих завдань",+ "st.system_one.security_html": "Надсилає завдання й обмежені дані сторінки до TypeSafe. Ключ зберігається локально відкритим текстом. Використання може бути платним. Strict Secret Mode вимикає Jev.",+ "st.system_one.need_key": "Введіть ключ API TypeSafe.",+ "st.system_one.uncertain": "Jev: завершення не підтверджено.",+ "st.system_one.clear": "Видалити ключ",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Перевіряти заплановані спостереження — Поріг імовірності",+ "st.system_one.completion_threshold": "Перевіряти завершення запланованих завдань — Поріг імовірності",'st.providers.selected': 'ВИБРАНО','st.providers.select_for_chat': 'Вибрати для чату',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.jsindex 74dd11218..36936759d 100644--- a/src/firefox/src/ui/locales/vi.js+++ b/src/firefox/src/ui/locales/vi.js@@ -957,22 +957,19 @@ export default {'st.captcha.balance_fail': "Không thành công: {error}",'st.captcha.security_html': "<strong>Lưu ý:</strong> khóa API được lưu trữ <strong>trong bản rõ</strong> trong bộ nhớ cục bộ của trình duyệt. CapSolver tính phí tài khoản của bạn cho mỗi lần giải; tác nhân sẽ chỉ gọi nó khi CAPTCHA thực sự chặn một bước (tối đa một lần cho mỗi lần gặp - nó sẽ không thử lại nếu thất bại). Điều khoản dịch vụ của một số trang web nghiêm cấm việc giải CAPTCHA tự động; sử dụng phán đoán của bạn.",- 'st.system_one.desc_html': 'Tùy chọn sử dụng <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> như ý kiến thứ hai cho các tác vụ theo dõi và hoàn tất tác vụ đã lên lịch. Công cụ chỉ đánh giá tác vụ giới hạn và quan sát mới nhất; không bao giờ điều khiển trình duyệt.',- 'st.system_one.enabled.label': 'Bật TypeSafe System One',- 'st.system_one.enabled.desc': 'Bật toàn cục trước khi bật một trong các lớp bảo vệ tác vụ đã lên lịch. Mặc định tắt.',- 'st.system_one.api_key.label': 'Khóa API TypeSafe',- 'st.system_one.watch.label': 'Đánh giá tác vụ theo dõi đã lên lịch',- 'st.system_one.watch.desc': 'Hạ thành một lần thăm dò khi điều kiện hoặc bằng chứng của tác vụ theo dõi có vẻ không chắc chắn.',- 'st.system_one.completion.label': 'Đánh giá hoàn tất tác vụ đã lên lịch',- 'st.system_one.completion.desc': 'Hạ một kết quả thành công quá lạc quan khi bằng chứng hoàn tất có vẻ không chắc chắn.',- 'st.system_one.watch_threshold': 'Ngưỡng tin cậy theo dõi',- 'st.system_one.completion_threshold': 'Ngưỡng tin cậy hoàn tất',- 'st.system_one.save': 'Lưu cài đặt',- 'st.system_one.clear': 'Xóa',- 'st.system_one.saved': 'Đã lưu. TypeSafe System One đã được cấu hình.',- 'st.system_one.cleared': 'Đã xóa.',- 'st.system_one.need_key': 'Nhập khóa API TypeSafe trước khi bật System One.',- 'st.system_one.security_html': '<strong>Quyền riêng tư và chi phí:</strong> tính năng này tắt cho đến khi bạn bật. Tiện ích gửi tác vụ và quan sát mới nhất có giới hạn đến TypeSafe bằng khóa API của bạn. Không gửi ảnh chụp màn hình, âm thanh hoặc thông tin xác thực của nhà cung cấp. Khóa được lưu dạng văn bản thuần trong bộ nhớ cục bộ của trình duyệt; TypeSafe có thể tính phí tài khoản của bạn. Strict Secret Mode sẽ tắt sidecar này.',+ "st.system_one.heading": "Mô hình hỗ trợ",+ "st.system_one.desc_html": "Xác minh bổ sung cho theo dõi định kỳ và hoàn thành tác vụ.",+ "st.system_one.enabled.label": "Bật Jev",+ "st.system_one.api_key.label": "Khóa API TypeSafe",+ "st.system_one.watch.label": "Xác minh theo dõi định kỳ",+ "st.system_one.completion.label": "Xác minh hoàn thành tác vụ đã lên lịch",+ "st.system_one.security_html": "Gửi tác vụ và bằng chứng trang có giới hạn đến TypeSafe. Khóa được lưu cục bộ dưới dạng văn bản thuần và có thể phát sinh phí sử dụng. Strict Secret Mode tắt Jev.",+ "st.system_one.need_key": "Nhập khóa API TypeSafe.",+ "st.system_one.uncertain": "Jev: không thể xác minh việc hoàn thành.",+ "st.system_one.clear": "Xóa khóa",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "Xác minh theo dõi định kỳ — Ngưỡng xác suất",+ "st.system_one.completion_threshold": "Xác minh hoàn thành tác vụ đã lên lịch — Ngưỡng xác suất",// --- Chat History page -------------------------------------------------'hist.title': "Lịch sử trò chuyện WebBrain",diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.jsindex e0a5a1571..bac24870c 100644--- a/src/firefox/src/ui/locales/zh.js+++ b/src/firefox/src/ui/locales/zh.js@@ -37,22 +37,19 @@ export default {'sp.providers.active_group': '已启用的提供商','sp.providers.active': '已启用','sp.providers.more': '更多…',- 'st.system_one.desc_html': 'Optionally use <a href="https://typesafe.ai" target="_blank" style="color:var(--accent);">TypeSafe System One</a> as a second opinion for scheduled watches and task completion. It only judges the bounded task and latest observation; it never controls the browser.',- 'st.system_one.enabled.label': 'Enable TypeSafe System One',- 'st.system_one.enabled.desc': 'Opt in globally before enabling either scheduled-task guard. Off by default.',- 'st.system_one.api_key.label': 'TypeSafe API Key',- 'st.system_one.watch.label': 'Judge scheduled watches',- 'st.system_one.watch.desc': 'Downgrade a watch success to a poll when the condition or evidence looks uncertain.',- 'st.system_one.completion.label': 'Judge scheduled task completion',- 'st.system_one.completion.desc': 'Downgrade an optimistic scheduled-task success when completion evidence looks uncertain.',- 'st.system_one.watch_threshold': 'Watch confidence threshold',- 'st.system_one.completion_threshold': 'Completion confidence threshold',- 'st.system_one.save': 'Save Settings',- 'st.system_one.clear': 'Clear',- 'st.system_one.saved': 'Saved. TypeSafe System One is configured.',- 'st.system_one.cleared': 'Cleared.',- 'st.system_one.need_key': 'Enter a TypeSafe API key before enabling System One.',- 'st.system_one.security_html': '<strong>Privacy and cost:</strong> this feature is off until you opt in. The extension sends the task and a bounded latest observation to TypeSafe using your own API key. It does not send screenshots, audio, or provider credentials. The key is stored in plaintext in browser local storage; TypeSafe may charge your account. Strict Secret Mode disables this sidecar.',+ "st.system_one.heading": "辅助模型",+ "st.system_one.desc_html": "为定时监测和任务完成提供额外验证。",+ "st.system_one.enabled.label": "启用 Jev",+ "st.system_one.api_key.label": "TypeSafe API 密钥",+ "st.system_one.watch.label": "验证定时监测",+ "st.system_one.completion.label": "验证定时任务完成情况",+ "st.system_one.security_html": "向 TypeSafe 发送任务及有限的页面证据。密钥以明文保存在本地,使用可能产生费用。Strict Secret Mode 会禁用 Jev。",+ "st.system_one.need_key": "请输入 TypeSafe API 密钥。",+ "st.system_one.uncertain": "Jev:无法确认任务已完成。",+ "st.system_one.clear": "删除密钥",+ "st.system_one.title": "Jev (TypeSafe)",+ "st.system_one.watch_threshold": "验证定时监测 — 概率阈值",+ "st.system_one.completion_threshold": "验证定时任务完成情况 — 概率阈值",'st.providers.selected': '已选择','st.providers.select_for_chat': '选择用于聊天',// Context compaction + cloud cost + prompt-tier stringsdiff --git a/src/firefox/src/ui/settings.html b/src/firefox/src/ui/settings.htmlindex 1efb17001..0d47a3340 100644--- a/src/firefox/src/ui/settings.html+++ b/src/firefox/src/ui/settings.html@@ -1626,13 +1626,21 @@<div class="info-box" style="margin-top:16px;" data-i18n-html="st.captcha.security_html"></div></div>- <div class="provider-card" id="system-one-card">++ </div>+ </details>+ </div>+ </section>++ <section class="tab-panel active" data-panel="providers" role="tabpanel">+ <h2 data-i18n="st.system_one.heading" style="font-size:16px"></h2>+ <div class="provider-card" id="system-one-card">+ <h3 data-i18n="st.system_one.title"></h3><div style="font-size:12px;color:var(--text2);margin-bottom:14px;line-height:1.55;" data-i18n-html="st.system_one.desc_html"></div><div class="setting-row"><div class="setting-info"><div class="setting-label" data-i18n="st.system_one.enabled.label"></div>- <div class="setting-desc" data-i18n="st.system_one.enabled.desc"></div></div><label class="toggle"><input type="checkbox" id="toggle-system-one">@@ -1641,14 +1649,13 @@</div><div class="field">- <label data-i18n="st.system_one.api_key.label"></label>+ <label for="system-one-api-key" data-i18n="st.system_one.api_key.label"></label><input type="password" id="system-one-api-key" placeholder="ts_…" autocomplete="off" spellcheck="false"></div><div class="setting-row"><div class="setting-info"><div class="setting-label" data-i18n="st.system_one.watch.label"></div>- <div class="setting-desc" data-i18n="st.system_one.watch.desc"></div></div><label class="toggle"><input type="checkbox" id="toggle-system-one-watch">@@ -1658,7 +1665,6 @@<div class="setting-row"><div class="setting-info"><div class="setting-label" data-i18n="st.system_one.completion.label"></div>- <div class="setting-desc" data-i18n="st.system_one.completion.desc"></div></div><label class="toggle"><input type="checkbox" id="toggle-system-one-completion">@@ -1666,6 +1672,8 @@</label></div>+ <details class="advanced-settings">+ <summary data-i18n="st.display.advanced"></summary><div class="field"><label for="range-system-one-watch-threshold"><span data-i18n="st.system_one.watch_threshold"></span> <span id="system-one-watch-threshold-value">70%</span></label><input type="range" id="range-system-one-watch-threshold" min="50" max="95" step="5" value="70">@@ -1675,20 +1683,16 @@<input type="range" id="range-system-one-completion-threshold" min="50" max="95" step="5" value="70"></div>+ </details><div class="btn-row">- <button class="btn-primary" id="btn-save-system-one" data-i18n="st.system_one.save"></button>+ <button class="btn-primary" id="btn-save-system-one" data-i18n="st.providers.save"></button>+ <button class="btn-secondary" id="btn-test-system-one" data-i18n="st.providers.test"></button><button class="btn-secondary" id="btn-clear-system-one" data-i18n="st.system_one.clear"></button></div><div class="test-result" id="test-system-one"></div><div class="info-box" style="margin-top:16px;" data-i18n-html="st.system_one.security_html"></div></div>- </div>- </details>- </div>- </section>-- <section class="tab-panel active" data-panel="providers" role="tabpanel"><div id="providers"></div><div class="info-box" data-i18n-html="st.providers.info.html"></div>diff --git a/src/firefox/src/ui/settings.js b/src/firefox/src/ui/settings.jsindex ace65e32e..d8ac12566 100644--- a/src/firefox/src/ui/settings.js+++ b/src/firefox/src/ui/settings.js@@ -210,6 +210,7 @@ const systemOneWatchThresholdValue = document.getElementById('system-one-watch-tconst systemOneCompletionThresholdRange = document.getElementById('range-system-one-completion-threshold');const systemOneCompletionThresholdValue = document.getElementById('system-one-completion-threshold-value');const btnSaveSystemOne = document.getElementById('btn-save-system-one');+const btnTestSystemOne = document.getElementById('btn-test-system-one');const btnClearSystemOne = document.getElementById('btn-clear-system-one');const systemOneTestResult = document.getElementById('test-system-one');const languageSelect = document.getElementById('select-language');@@ -1461,12 +1462,12 @@ if (btnSaveSystemOne) {await browser.storage.local.set({typesafeApiKey: key,systemOneEnabled: enabled && isValidTypesafeApiKey(key),- systemOneWatchEnabled: enabled && systemOneWatchToggle?.checked === true,- systemOneCompletionEnabled: enabled && systemOneCompletionToggle?.checked === true,+ systemOneWatchEnabled: systemOneWatchToggle?.checked === true,+ systemOneCompletionEnabled: systemOneCompletionToggle?.checked === true,systemOneWatchThreshold: normalizeSystemOneThreshold(Number(systemOneWatchThresholdRange?.value) / 100),systemOneCompletionThreshold: normalizeSystemOneThreshold(Number(systemOneCompletionThresholdRange?.value) / 100),});- showSystemOneResult('ok', t('st.system_one.saved'));+ showSystemOneResult('ok', t('st.providers.saved'));});}@@ -1484,10 +1485,28 @@ if (btnClearSystemOne) {'systemOneWatchThreshold','systemOneCompletionThreshold',]);- showSystemOneResult('ok', t('st.system_one.cleared'));+ if (systemOneWatchThresholdRange) systemOneWatchThresholdRange.value = '70';+ if (systemOneCompletionThresholdRange) systemOneCompletionThresholdRange.value = '70';+ updateSystemOneThresholdLabels();+ showSystemOneResult('ok', t('st.captcha.cleared'));});}+btnTestSystemOne?.addEventListener('click', async () => {+ const apiKey = normalizeTypesafeApiKey(systemOneApiKeyInput?.value);+ if (!apiKey) { showSystemOneResult('fail', t('st.system_one.need_key')); return; }+ btnTestSystemOne.disabled = true;+ showSystemOneResult('', t('st.providers.testing'));+ try {+ const result = await sendToBackground('test_system_one', { apiKey });+ showSystemOneResult(result?.success ? 'ok' : 'fail', result?.success+ ? t('st.providers.connected', { model: result.model })+ : t('st.providers.failed', { error: result?.error || 'Jev unavailable' }));+ } catch (error) {+ showSystemOneResult('fail', t('st.providers.failed', { error: error.message }));+ } finally { btnTestSystemOne.disabled = false; }+});+// --- Vision Model ---function updateMultimodalDetectedProvider(kind) {diff --git a/src/firefox/src/ui/sidepanel.js b/src/firefox/src/ui/sidepanel.jsindex 30a3b4cac..9c062636a 100644--- a/src/firefox/src/ui/sidepanel.js+++ b/src/firefox/src/ui/sidepanel.js@@ -2984,6 +2984,7 @@ function scheduledJobMeta(job) {if (job.status === 'completed' && job.lastResult) {parts.push(truncate(String(job.lastResult), 80));}+ if (job.systemOneVerdict?.decision === 'downgrade') parts.push(t('st.system_one.uncertain'));if (job.lastError) {parts.push(truncate(String(job.lastError), 80));}diff --git a/test/lib/scheduler-harness.mjs b/test/lib/scheduler-harness.mjsnew file mode 100644index 000000000..c7490335b--- /dev/null+++ b/test/lib/scheduler-harness.mjs@@ -0,0 +1,99 @@+export function makeSchedulerHarness(SchedulerMod, opts = {}) {+ const store = {+ [SchedulerMod.SCHEDULED_JOBS_KEY]: opts.jobs ? structuredClone(opts.jobs) : [],+ [SchedulerMod.SCHEDULED_TASKS_ENABLED_KEY]: opts.enabled ?? true,+ [SchedulerMod.SCHEDULED_REQUIRE_CONFIRMATION_KEY]: opts.requireConfirmation ?? true,+ typesafeApiKey: opts.systemOneApiKey ?? '',+ systemOneEnabled: opts.systemOneEnabled ?? false,+ systemOneWatchEnabled: opts.systemOneWatchEnabled ?? false,+ systemOneCompletionEnabled: opts.systemOneCompletionEnabled ?? false,+ systemOneWatchThreshold: opts.systemOneWatchThreshold ?? 0.7,+ systemOneCompletionThreshold: opts.systemOneCompletionThreshold ?? 0.7,+ strictSecretMode: opts.strictSecretMode ?? false,+ };+ const cloneStoredValue = (value) => value == null ? value : structuredClone(value);+ const alarms = new Map();+ const updates = [];+ let currentNow = opts.now ?? Date.UTC(2026, 0, 1, 12, 0, 0);+ const tabs = new Map([[77, { id: 77, url: 'https://example.com/', title: 'Example' }]]);+ let nextTabId = 100;++ const api = {+ storage: {+ local: {+ async get(keys) {+ if (Array.isArray(keys)) {+ return Object.fromEntries(keys.map((key) => [key, cloneStoredValue(store[key])]));+ }+ if (typeof keys === 'string') return { [keys]: cloneStoredValue(store[keys]) };+ return Object.fromEntries(Object.entries(store).map(([key, value]) => [key, cloneStoredValue(value)]));+ },+ async set(values) {+ Object.assign(store, Object.fromEntries(+ Object.entries(values).map(([key, value]) => [key, cloneStoredValue(value)])+ ));+ },+ },+ },+ alarms: {+ async create(name, spec) { alarms.set(name, spec); },+ async clear(name) { return alarms.delete(name); },+ onAlarm: { addListener() {} },+ },+ tabs: {+ async get(tabId) {+ if (!tabs.has(tabId)) throw new Error(`No tab ${tabId}`);+ return tabs.get(tabId);+ },+ async update(tabId, changes) {+ if (!tabs.has(tabId)) throw new Error(`No tab ${tabId}`);+ const tab = { ...tabs.get(tabId), ...changes };+ tabs.set(tabId, tab);+ return tab;+ },+ async create({ url, active }) {+ const tab = { id: nextTabId++, url, active: !!active };+ tabs.set(tab.id, tab);+ return tab;+ },+ async remove(tabId) {+ if (!tabs.has(tabId)) throw new Error(`No tab ${tabId}`);+ tabs.delete(tabId);+ },+ },+ };++ const agent = {+ isRunning: opts.isRunning || (() => false),+ getConversationId: opts.getConversationId || (async () => 'conv-1'),+ requireExplicitClarificationAuthorization: opts.requireExplicitClarificationAuthorization || (async () => {}),+ processMessage: opts.processMessage || (async () => 'scheduled result'),+ abort: opts.abort || (() => {}),+ setScheduledRunPolicy: opts.setScheduledRunPolicy || (() => {}),+ clearScheduledRunPolicy: opts.clearScheduledRunPolicy || (() => {}),+ };++ const manager = new SchedulerMod.ScheduledJobManager({+ api,+ agent,+ loadProviders: async () => {},+ sendUpdate(tabId, type, data) { updates.push({ tabId, type, data }); },+ showIndicator() {},+ hideIndicator() {},+ playWatchAlert: opts.playWatchAlert || (async () => {}),+ ...(opts.systemOneJudge ? { systemOneJudge: opts.systemOneJudge } : {}),+ now: () => currentNow,+ ...(opts.startAlarmKeepAlive ? { startAlarmKeepAlive: opts.startAlarmKeepAlive } : {}),+ });++ return {+ manager,+ alarms,+ tabs,+ updates,+ jobs: () => store[SchedulerMod.SCHEDULED_JOBS_KEY],+ setNow: (value) => { currentNow = value; },+ alarmName: (jobId) => `${SchedulerMod.SCHEDULED_ALARM_PREFIX}${jobId}`,+ };+}+diff --git a/test/run.js b/test/run.jsindex e2de88c55..67d605f57 100644--- a/test/run.js+++ b/test/run.js@@ -1,3 +1,4 @@+import { makeSchedulerHarness } from './lib/scheduler-harness.mjs';/*** WebBrain test runner — pure Node, no framework, no chrome.* APIs.*@@ -53426,10 +53427,10 @@ test('TypeSafe System One judge uses the documented wire contract and retries trstatus: 200,async json() {return {- model: 'jev-latest',+ model: 'jev-1.13.0',answers: {condition_met: { type: 'noul', noul: 0.91 },- task_completeness: { type: 'score', score: 1.8, confidence: 0.88 },+ task_completeness: { type: 'score', score: 1.8, confidence: 0.88, probabilities: { 0: 0, 1: 0.2, 2: 0.8 }, legend: { 0: 'none', 1: 'some', 2: 'clear' } },},usage: { input_tokens: 10, output_tokens: 4 },};@@ -53493,6 +53494,7 @@ test('ScheduledJobManager applies opt-in System One verdicts as a conservative c},},processMessage: async (_tabId, _message, onUpdate) => {+ onUpdate('tool_result', { name: 'get_accessibility_tree', result: { pageContent: 'Build status: pending.' } });onUpdate('tool_result', {name: 'done',result: { done: true, summary: 'The build looks green.', outcome: 'success' },@@ -53517,109 +53519,11 @@ test('ScheduledJobManager applies opt-in System One verdicts as a conservative cassert.equal(calls.length, 1, `${label}: enabled watch should invoke one sidecar judge`);assert.equal(calls[0].apiKey, 'typesafe-test-key');assert.equal(calls[0].state.task, 'When the build is green, report it.');- assert.equal(calls[0].state.latest_observation, 'The build looks green.');+ assert.match(calls[0].state.latest_observation[0].data, /Build status: pending/);+ assert.doesNotMatch(JSON.stringify(calls[0].state), /The build looks green/);}});-function makeSchedulerHarness(SchedulerMod, opts = {}) {- const store = {- [SchedulerMod.SCHEDULED_JOBS_KEY]: opts.jobs ? structuredClone(opts.jobs) : [],- [SchedulerMod.SCHEDULED_TASKS_ENABLED_KEY]: opts.enabled ?? true,- [SchedulerMod.SCHEDULED_REQUIRE_CONFIRMATION_KEY]: opts.requireConfirmation ?? true,- typesafeApiKey: opts.systemOneApiKey ?? '',- systemOneEnabled: opts.systemOneEnabled ?? false,- systemOneWatchEnabled: opts.systemOneWatchEnabled ?? false,- systemOneCompletionEnabled: opts.systemOneCompletionEnabled ?? false,- systemOneWatchThreshold: opts.systemOneWatchThreshold ?? 0.7,- systemOneCompletionThreshold: opts.systemOneCompletionThreshold ?? 0.7,- strictSecretMode: opts.strictSecretMode ?? false,- };- const cloneStoredValue = (value) => value == null ? value : structuredClone(value);- const alarms = new Map();- const updates = [];- let currentNow = opts.now ?? Date.UTC(2026, 0, 1, 12, 0, 0);- const tabs = new Map([[77, { id: 77, url: 'https://example.com/', title: 'Example' }]]);- let nextTabId = 100;-- const api = {- storage: {- local: {- async get(keys) {- if (Array.isArray(keys)) {- return Object.fromEntries(keys.map((key) => [key, cloneStoredValue(store[key])]));- }- if (typeof keys === 'string') return { [keys]: cloneStoredValue(store[keys]) };- return Object.fromEntries(Object.entries(store).map(([key, value]) => [key, cloneStoredValue(value)]));- },- async set(values) {- Object.assign(store, Object.fromEntries(- Object.entries(values).map(([key, value]) => [key, cloneStoredValue(value)])- ));- },- },- },- alarms: {- async create(name, spec) { alarms.set(name, spec); },- async clear(name) { return alarms.delete(name); },- onAlarm: { addListener() {} },- },- tabs: {- async get(tabId) {- if (!tabs.has(tabId)) throw new Error(`No tab ${tabId}`);- return tabs.get(tabId);- },- async update(tabId, changes) {- if (!tabs.has(tabId)) throw new Error(`No tab ${tabId}`);- const tab = { ...tabs.get(tabId), ...changes };- tabs.set(tabId, tab);- return tab;- },- async create({ url, active }) {- const tab = { id: nextTabId++, url, active: !!active };- tabs.set(tab.id, tab);- return tab;- },- async remove(tabId) {- if (!tabs.has(tabId)) throw new Error(`No tab ${tabId}`);- tabs.delete(tabId);- },- },- };-- const agent = {- isRunning: opts.isRunning || (() => false),- getConversationId: opts.getConversationId || (async () => 'conv-1'),- requireExplicitClarificationAuthorization: opts.requireExplicitClarificationAuthorization || (async () => {}),- processMessage: opts.processMessage || (async () => 'scheduled result'),- abort: opts.abort || (() => {}),- setScheduledRunPolicy: opts.setScheduledRunPolicy || (() => {}),- clearScheduledRunPolicy: opts.clearScheduledRunPolicy || (() => {}),- };-- const manager = new SchedulerMod.ScheduledJobManager({- api,- agent,- loadProviders: async () => {},- sendUpdate(tabId, type, data) { updates.push({ tabId, type, data }); },- showIndicator() {},- hideIndicator() {},- playWatchAlert: opts.playWatchAlert || (async () => {}),- ...(opts.systemOneJudge ? { systemOneJudge: opts.systemOneJudge } : {}),- now: () => currentNow,- ...(opts.startAlarmKeepAlive ? { startAlarmKeepAlive: opts.startAlarmKeepAlive } : {}),- });-- return {- manager,- alarms,- tabs,- updates,- jobs: () => store[SchedulerMod.SCHEDULED_JOBS_KEY],- setNow: (value) => { currentNow = value; },- alarmName: (jobId) => `${SchedulerMod.SCHEDULED_ALARM_PREFIX}${jobId}`,- };-}-test('ScheduledJobManager marks alarm executions as independent runs', async () => {const now = Date.UTC(2026, 0, 1, 12, 0, 0);for (const [label, SchedulerMod] of [['chrome', SchedulerCh], ['firefox', SchedulerFx]]) {diff --git a/test/systemone-ui.mjs b/test/systemone-ui.mjsnew file mode 100644index 000000000..20b14e82f--- /dev/null+++ b/test/systemone-ui.mjs@@ -0,0 +1,64 @@+import { chromium, firefox } from 'playwright';+import { createServer } from 'node:http';+import { readFile, mkdir } from 'node:fs/promises';+import { resolve, extname } from 'node:path';+import assert from 'node:assert/strict';+const root = resolve('.');+const server = createServer(async (req, res) => {+ try { const file = resolve(root, '.' + new URL(req.url, 'http://localhost').pathname); if (!file.startsWith(root + '/')) throw Error();+ res.setHeader('Content-Type', ({ '.js': 'text/javascript', '.mjs': 'text/javascript', '.html': 'text/html', '.css': 'text/css', '.svg': 'image/svg+xml' })[extname(file)] || 'text/plain'); res.end(await readFile(file));+ } catch { res.statusCode = 404; res.end(); }+});+await new Promise(r => server.listen(0, '127.0.0.1', r));+const origin = `http://127.0.0.1:${server.address().port}`;+const output = process.env.JEV_UI_OUTPUT || '/tmp/jev-ui-review'; await mkdir(output, { recursive: true });+try {+ for (const [build, engine] of [['chrome', chromium], ['firefox', firefox]]) {+ const browser = await engine.launch();+ try {+ for (const lang of ['en', 'tr']) for (const width of [390, 1280]) {+ const page = await browser.newPage({ viewport: { width, height: 1000 } });+ const errors = []; page.on('pageerror', error => errors.push(error.message));+ await page.addInitScript(({ lang, build }) => {+ localStorage.setItem('wbLocale', lang);+ const data = { wbLocale: lang, typesafeApiKey: '', systemOneEnabled: false, systemOneWatchEnabled: true, systemOneCompletionEnabled: true };+ window.testStore = data; window.testRequests = [];+ const listeners = [];+ const storage = {+ async get(keys) { return keys == null ? { ...data } : Object.fromEntries((Array.isArray(keys) ? keys : typeof keys === 'string' ? [keys] : Object.keys(keys)).map(k => [k, data[k]])); },+ async set(values) { Object.assign(data, values); listeners.forEach(fn => fn(Object.fromEntries(Object.entries(values).map(([k, v]) => [k, { newValue: v }])), 'local')); },+ async remove(keys) { for (const key of Array.isArray(keys) ? keys : [keys]) delete data[key]; },+ };+ window.chrome = window.browser = {+ storage: { local: storage, onChanged: { addListener: fn => listeners.push(fn) } },+ runtime: { getURL: path => `${location.origin}/src/${build}/${path}`, getManifest: () => ({ version: 'test' }), onMessage: { addListener() {} }, sendMessage(msg, callback) {+ window.testRequests.push(msg);+ const result = msg.action === 'get_providers' ? { providers: {}, active: null } : msg.action === 'test_system_one' ? { success: true, model: 'jev-1.13.0' } : {};+ callback?.(result); return Promise.resolve(result);+ } },+ commands: { getAll: async () => [] }, tabs: { create: async () => ({}) },+ };+ }, { lang, build });+ await page.goto(`${origin}/src/${build}/src/ui/settings.html`);+ await page.locator('[data-tab="providers"]').click();+ await page.waitForFunction(() => document.querySelector('#system-one-card h3')?.textContent === 'Jev (TypeSafe)');+ assert.equal(await page.locator('#providers #system-one-card').count(), 0);+ assert.equal(await page.evaluate(() => testRequests.filter(r => r.action === 'test_system_one').length), 0);+ await page.locator('#system-one-api-key').fill('synthetic-test-key');+ await page.locator('#btn-save-system-one').click();+ await page.waitForFunction(() => testStore.typesafeApiKey === 'synthetic-test-key');+ assert.equal(await page.evaluate(() => testStore.systemOneWatchEnabled), true);+ await page.locator('#btn-test-system-one').click();+ await page.waitForFunction(() => testRequests.filter(r => r.action === 'test_system_one').length === 1);+ await page.locator('#system-one-card details').evaluate(el => { el.open = true; });+ await page.screenshot({ path: `${output}/${build}-${lang}-${width}.png`, fullPage: true });+ await page.locator('#btn-clear-system-one').click();+ assert.equal(await page.locator('#range-system-one-watch-threshold').inputValue(), '70');+ assert.equal(await page.locator('#toggle-system-one-watch').isChecked(), false);+ assert.equal(await page.evaluate(() => testStore.typesafeApiKey), undefined);+ assert.deepEqual(errors, []);+ await page.close(); console.log(`${build} ${lang} ${width}: settings save/test/clear passed`);+ }+ } finally { await browser.close(); }+ }+} finally { server.close(); }diff --git a/test/systemone.mjs b/test/systemone.mjsnew file mode 100644index 000000000..ad18223e2--- /dev/null+++ b/test/systemone.mjs@@ -0,0 +1,107 @@+import assert from 'node:assert/strict';+import { test } from 'node:test';+import { makeSchedulerHarness } from './lib/scheduler-harness.mjs';+const deferred = () => { let resolve; const promise = new Promise(r => { resolve = r; }); return { promise, resolve }; };+for (const build of ['chrome', 'firefox']) {+ const mod = await import(`../src/${build}/src/agent/systemone-judge.js`);+ const evidence = await import(`../src/${build}/src/agent/systemone-evidence.js`);+ const scheduler = await import(`../src/${build}/src/agent/scheduler.js`);+ const questions = { p: { type: 'noul', instructions: 'Is it ready?' }, c: { type: 'choice', instructions: 'Choose', criteria: { yes: 'ready', no: 'not ready' } }, s: { type: 'score', instructions: 'Score', criteria: ['none', 'some', 'all'] } };+ const answers = () => ({ p: { type: 'noul', noul: .9 }, c: { type: 'choice', choice: 'yes', confidence: .9, probabilities: { yes: .9, no: .1 } }, s: { type: 'score', score: 1.8, confidence: .9, probabilities: { 0: 0, 1: .2, 2: .8 }, legend: { 0: 'none', 1: 'some', 2: 'all' } } });+ test(`${build}: strict typed answer and threshold contracts`, () => {+ assert.deepEqual(mod.validateSystemOneAnswers(answers(), questions), answers());+ for (const value of [null, '', true, '0.9', NaN, Infinity, -1, 1.1]) {+ const a = answers(); a.p.noul = value;+ assert.throws(() => mod.validateSystemOneAnswers(a, questions));+ }+ for (const patch of [{ choice: 'fake' }, { confidence: null }, { probabilities: { yes: .9 } }, { probabilities: { yes: 1.2, no: -.2 } }, { probabilities: { yes: .1, no: .9 } }]) {+ const a = answers(); Object.assign(a.c, patch); assert.throws(() => mod.validateSystemOneAnswers(a, questions));+ }+ for (const patch of [{ score: null }, { score: 3 }, { score: 0 }, { legend: null }, { type: 'noul' }]) {+ const a = answers(); Object.assign(a.s, patch); assert.throws(() => mod.validateSystemOneAnswers(a, questions));+ }+ for (const value of [null, '', '0.8', false, NaN, .3, 1]) assert.equal(mod.normalizeSystemOneThreshold(value), .7);+ });+ test(`${build}: one deadline covers retry backoff and an uncooperative fetch`, async () => {+ let calls = 0;+ const start = Date.now();+ const judge = mod.createSystemOneJudge({ timeoutMs: 40, fetchImpl: async () => { calls++; return { ok: false, status: 429 }; } });+ await assert.rejects(judge.evaluate({ apiKey: 'test', state: {}, questions }), /timed out/);+ assert.equal(calls, 1); assert.ok(Date.now() - start < 500);+ await assert.rejects(mod.createSystemOneJudge({ timeoutMs: 20, fetchImpl: () => new Promise(() => {}) }).evaluate({ apiKey: 'test', state: {}, questions }), /timed out/);+ });+ test(`${build}: abort interrupts backoff; billable invalid answers are accounted`, async () => {+ const controller = new AbortController(); const entered = deferred(); let calls = 0;+ const judge = mod.createSystemOneJudge({ fetchImpl: async () => { calls++; return { ok: false, status: 529 }; }, sleep: () => { entered.resolve(); return new Promise(() => {}); } });+ const result = judge.evaluate({ apiKey: 'test', state: {}, questions, signal: controller.signal });+ await entered.promise; controller.abort(new Error('cancelled')); await assert.rejects(result, /cancelled/); assert.equal(calls, 1);+ let usage;+ const invalid = mod.createSystemOneJudge({ fetchImpl: async () => ({ ok: true, json: async () => ({ model: mod.SYSTEM_ONE_MODEL, answers: {}, usage: { input_tokens: 1000, output_tokens: 0 } }) }) });+ await assert.rejects(invalid.evaluate({ apiKey: 'test', state: {}, questions, onUsage: m => { usage = m; } }));+ assert.equal(usage.model, 'jev-1.13.0'); assert.equal(usage.estimatedCostUsd, .000042);+ });+ test(`${build}: evidence excludes summary, history, credentials and pre-action observations`, () => {+ const c = evidence.createSystemOneEvidence();+ c.observe('tool_result', { name: 'done', result: { summary: 'Everything succeeded!' } });+ assert.equal(evidence.systemOneEvidenceState('task', c.snapshot()), null);+ c.observe('tool_result', { name: 'get_accessibility_tree', result: { pageContent: 'Before action', screenshot: 'PRIVATE', history: 'PRIVATE' } });+ c.observe('tool_call', { name: 'click_ax', args: { ref_id: 'ref_1' } });+ c.observe('tool_result', { name: 'click_ax', result: { success: true } });+ assert.equal(evidence.systemOneEvidenceState('task', c.snapshot()), null);+ c.observe('tool_result', { name: 'read_page', result: { text: 'After action\npassword=hunter2\nhttps://user:[email protected]/page?token=PRIVATE' } });+ const state = evidence.systemOneEvidenceState('task', c.snapshot());+ assert.equal(c.snapshot().sideEffect, true);+ assert.doesNotMatch(JSON.stringify(state), /Before action|hunter2|PRIVATE|user:pass/);+ assert.match(state.latest_observation[0].data, /untrusted_page_content/);+ assert.ok(JSON.stringify(state).length <= 16000);+ });+ async function setup({ mutate = false, noEvidence = false, judge, recurring = false } = {}) {+ let calls = 0;+ const h = makeSchedulerHarness(scheduler, {+ systemOneEnabled: true, systemOneWatchEnabled: true, systemOneCompletionEnabled: true, systemOneApiKey: 'test',+ systemOneJudge: judge || { evaluate: async () => { calls++; return { answers: { condition_met: { noul: .1 }, task_complete: { noul: .1 }, task_completeness: { score: 0 } } }; } },+ processMessage: async (_tab, _prompt, emit, _mode, _attachments, options) => {+ if (mutate) {+ await options.beforeConsequentialTool({ name: 'click_ax' });+ emit('tool_call', { name: 'click_ax' }); emit('tool_result', { name: 'click_ax', result: { success: true } });+ await options.afterConsequentialTool({ name: 'click_ax', result: { success: true } });+ }+ if (!noEvidence) emit('tool_result', { name: 'get_accessibility_tree', result: { pageContent: 'Status: not confirmed' } });+ emit('tool_result', { name: 'done', result: { done: true, outcome: 'success', summary: 'Succeeded' } });+ return 'Succeeded';+ },+ });+ const created = recurring+ ? await h.manager.createTaskJob({ tabId: 77, args: { title: 'Save record', prompt: 'Save record', mode: 'act', schedule: { type: 'recurring', after_seconds: 0, interval_minutes: 5 }, target: { type: 'current_tab' } }, currentUrl: 'https://example.com/' })+ : await h.manager.createWatchJob({ tabId: 77, args: { prompt: 'Watch status', keep: true, interval_seconds: 60 }, currentUrl: 'https://example.com/' });+ assert.equal(created.success, true);+ return { ...h, id: created.jobId, calls: () => calls, run: () => h.manager.handleAlarm(h.alarmName(created.jobId)) };+ }+ test(`${build}: no evidence skips Jev; read-only downgraded watch keeps polling`, async () => {+ const missing = await setup({ noEvidence: true }); await missing.run();+ assert.equal(missing.calls(), 0); assert.equal(missing.jobs()[0].systemOneVerdict.reason, 'no_evidence');+ const h = await setup(); await h.run();+ assert.equal(h.jobs()[0].status, 'pending'); assert.equal(h.jobs()[0].lastOutcome, 'partial');+ assert.match(h.jobs()[0].watch.systemOneBaseline[0].data, /Status: not confirmed/);+ });+ test(`${build}: uncertain completed actions never automatically repeat, including recurring tasks`, async () => {+ for (const recurring of [false, true]) {+ const h = await setup({ mutate: true, recurring }); await h.run();+ const job = h.jobs()[0]; assert.equal(job.status, 'needs_user_input'); assert.equal(job.reconciliationRequired, true);+ assert.equal(job.completedConsequentialAction.name, 'click_ax'); assert.equal(job.nextRunAt, null);+ await h.run(); assert.equal(h.calls(), 1);+ }+ });+ test(`${build}: cancellation and replaced execution discard a delayed verdict`, async () => {+ for (const cancel of [true, false]) {+ const entered = deferred(); const response = deferred();+ const h = await setup({ judge: { evaluate: async () => { entered.resolve(); return response.promise; } } });+ const running = h.run(); await entered.promise;+ if (cancel) await h.manager.cancelJob(h.id);+ else await h.manager._updateJob(h.id, () => ({ executionId: 'new-execution', lastResult: 'new result' }));+ response.resolve({ answers: { condition_met: { noul: .1 }, task_completeness: { score: 0 } } }); await running;+ const job = h.jobs()[0]; assert.equal(job.systemOneVerdict, undefined);+ assert.equal(cancel ? job.status : job.lastResult, cancel ? 'cancelled' : 'new result');+ }+ });+}