Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
feat: add 2Captcha fallback provider
Emre Sokulluc5281c0cfb25
diff --git a/package.json b/package.jsonindex 81118e46b..74227fb8b 100644--- a/package.json+++ b/package.json@@ -5,7 +5,8 @@"private": true,"type": "module","scripts": {- "test": "npm run test:markdown && npm run test:systemone && npm run test:systemone:fast && node --test test/browser-dialogs.mjs test/capsolver-cloud-broker.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:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && node --test test/profile-sync-stats.mjs && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security",+ "test": "npm run test:markdown && npm run test:systemone && npm run test:systemone:fast && node --test test/browser-dialogs.mjs test/capsolver-cloud-broker.mjs test/captcha-providers.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:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && node --test test/profile-sync-stats.mjs && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security",+ "test:captcha:ui": "node test/captcha-settings-ui.mjs","test:provider-limits": "node test/provider-model-limits.mjs","test:markdown": "node --test test/markdown-render.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",diff --git a/src/chrome/src/agent/agent.js b/src/chrome/src/agent/agent.jsindex 228413696..ff3f6fc60 100644--- a/src/chrome/src/agent/agent.js+++ b/src/chrome/src/agent/agent.js@@ -83,8 +83,8 @@ import { buildTerminalRuntimeEvent, enqueueCloudRuntimeEvent, flushCloudRuntimeOimport { buildShareGenerationItem, enqueueShareGeneration, flushShareOutbox, purgeShareGenerations } from '../trace/webbrain-share-outbox.js';import { normalizeRuntimeTraceConfig } from '../trace/runtime-config.js';import { tracesToMarkdown } from './trace-export.js';-import { solveCaptcha, detectCaptcha, injectToken, captchaParamError, captchaTypesMatch, captchaWebsiteUrl } from './captcha-solver.js';-import { isCapsolverEnabled, normalizeCapsolverApiKey } from './capsolver-config.js';+import { solveCaptchaWithProviders, detectCaptcha, injectToken, captchaParamError, captchaTypesMatch, captchaWebsiteUrl } from './captcha-solver.js';+import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders, captchaProviderSupportsType } from './captcha-provider-config.js';import { captchaChallengeKey, captchaChallengeMatcherOptions, detectChallengeDialog, detectChallengeDialogInPage } from './captcha-gate.js';import { applyCaptchaFrameVisibility } from './captcha-frame-runtime.js';import {@@ -1037,12 +1037,13 @@ export class Agent extends LoopDetector {this.userMemoryRecords = [];this.userMemoryMaxPromptChars = USER_MEMORY_DEFAULT_MAX_PROMPT_CHARS;- // CapSolver integration. A valid saved API key enables the+ // CAPTCHA integration. An explicitly enabled provider enables the// "[CAPTCHA SOLVER]" system-prompt note, which// tells the model to try `solve_captcha` once before falling back to// asking the user. The agent reads the key from chrome.storage.local// at call time so rotating the key doesn't require a restart.this.captchaSolverEnabled = false;+ this.captchaProviderIds = [];this._captchaGateStates = new Map(); // tabId -> { key, status, publicGate, challengeFrameId? }this._cloudflareManagedChallenges = new Map(); // tabId -> sanitized response-backed interstitial statethis._cloudflareManagedChallengeTransitions = new Map(); // tabId -> serialized transition promise@@ -10802,6 +10803,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d&& (publicGate?.solverDisabled === true|| publicGate?.detectionFailed === true+ || (publicGate?.providerUnsupported === true+ && this.captchaProviderIds.some(id => captchaProviderSupportsType(id, publicGate.selectedType))));}@@ -11381,7 +11384,10 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d&& detection?.selected?.visible === true));+ const providerSupportsCandidate = this.captchaProviderIds.some(id =>+ captchaProviderSupportsType(id, detection?.selected?.type));const supported = this.captchaSolverEnabled+ && providerSupportsCandidate&& !detectionFailed&& !detection?.error&& !!detection?.selected@@ -11395,6 +11401,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d...(unsupportedVendors.length ? { unsupportedVendors } : {}),...(detectionFailed ? { detectionFailed: true } : {}),...(!this.captchaSolverEnabled ? { solverDisabled: true } : {}),+ ...(detection?.selected && !providerSupportsCandidate ? { providerUnsupported: true } : {}),...(detection?.error ? { selectionFailed: true } : {}),...(detection?.selected && !selectedCorrelated ? { candidateNotCorrelated: true } : {}),...(languageNeutralFrameTrigger ? { languageNeutralFrameTrigger: true } : {}),@@ -25012,11 +25019,11 @@ If the user has already named or confirmed this exact recipient, do NOT ask agai}// CAPTCHA solver. Only injected when the user has explicitly enabled- // CapSolver — otherwise the default "stop and ask the user" rule in+ // a CAPTCHA provider — otherwise the default "stop and ask the user" rule in// SYSTEM_PROMPT_ACT stands. The note unlocks the solve_captcha tool// path described there.if (this.captchaSolverEnabled) {- prompt += `\n\n[CAPTCHA SOLVER — the user has configured CapSolver. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;+ prompt += `\n\n[CAPTCHA SOLVER — the user has enabled a CAPTCHA solver. When both local providers are enabled, the runtime tries CapSolver first, then 2Captcha on failure or timeout; both may charge. This fallback is internal to one tool call, not permission to call the tool again. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires enabled CapSolver. Unsupported challenges require manual completion. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;}// Ordinary turns get the one-line rendering; the full block is reserved for@@ -35641,18 +35648,10 @@ If the user has already named or confirmed this exact recipient, do NOT ask agaierror,});try {- const stored = await chrome.storage.local.get([- 'capsolverApiKey', 'captchaSolverEnabled',- 'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',- ]);- const apiKey = normalizeCapsolverApiKey(stored.capsolverApiKey);- const useCloudBroker = stored.webbrainCloudManaged === true- && stored.webbrainCloudCapsolverBrokerEnabled === true;- if (stored.captchaSolverEnabled !== true- || (stored.webbrainCloudManaged === true- ? !useCloudBroker- : !isCapsolverEnabled(apiKey, true))) {- return noDispatchFailure('CapSolver is not enabled with a valid API key. Ask the user to save their key in Settings → General → Advanced, or fall back to asking them to solve the captcha manually.');+ const stored = await chrome.storage.local.get(CAPTCHA_SETTINGS_KEYS);+ const providers = getCaptchaProviders(stored);+ if (!providers.length) {+ return noDispatchFailure('No CAPTCHA solver is enabled with a valid API key. Save a CapSolver or 2Captcha key in Settings → General → Advanced, or ask the user to solve the CAPTCHA manually.');}// Use the top-level URL as a fallback. Frame-aware detection below@@ -35677,6 +35676,7 @@ If the user has already named or confirmed this exact recipient, do NOT ask agaiimageBase64,enterprisePayload,recaptchaDataSValue,+ metadata,} = args || {};// Detection notes explain *why* a field is missing (e.g. a v3 widget// that never exposed its action name). Carry it into the failure so@@ -35765,6 +35765,14 @@ If the user has already named or confirmed this exact recipient, do NOT ask agaiif (!pageAction && detected.pageAction) pageAction = detected.pageAction;if (!enterprisePayload && detected.enterprisePayload) enterprisePayload = detected.enterprisePayload;if (!recaptchaDataSValue && detected.recaptchaDataSValue) recaptchaDataSValue = detected.recaptchaDataSValue;+ if (detected.metadata) {+ for (const key of ['action', 'cdata', 'chlPageData']) {+ if (metadata?.[key] && detected.metadata[key] && metadata[key] !== detected.metadata[key]) {+ return noDispatchFailure(`solve_captcha: requested Turnstile ${key} conflicts with the selected widget. Use its detected value or omit metadata.`);+ }+ }+ metadata = { ...detected.metadata, ...metadata };+ }}if (!detected && args?.inject === false && frameUrl) {websiteURL = captchaWebsiteUrl(frameUrl, websiteURL);@@ -35782,6 +35790,7 @@ If the user has already named or confirmed this exact recipient, do NOT ask agai...(enterprisePayload ? { enterprisePayload } : {}),...(recaptchaDataSValue ? { recaptchaDataSValue } : {}),...(imageBase64 ? { body: imageBase64 } : {}),+ ...(type === 'turnstile' && metadata ? { metadata } : {}),};if (type === 'image_to_text') {@@ -35799,15 +35808,22 @@ If the user has already named or confirmed this exact recipient, do NOT ask agaireturn noDispatchFailure(detectionNote ? `${paramError} ${detectionNote}` : paramError);}+ if (!providers.some(provider => captchaProviderSupportsType(provider.id, type))) {+ return {+ ...noDispatchFailure(`No enabled CAPTCHA provider supports ${type}. Ask the user to complete it manually.`),+ manualCompletionRequired: true,+ };+ }+const wantInject = args?.inject !== false && type !== 'image_to_text';if (wantInject && !detected) {return noDispatchFailure(- 'solve_captcha: token injection requires a detected CAPTCHA frame. The explicit type and websiteKey were not sent to CapSolver because no safe injection target could be verified. Retry with `inject: false` to receive the token without page injection, or ask the user to solve the challenge manually.'+ 'solve_captcha: token injection requires a detected CAPTCHA frame. The explicit type and websiteKey were not sent to a CAPTCHA solver because no safe injection target could be verified. Retry with `inject: false` to receive the token without page injection, or ask the user to solve the challenge manually.');}dispatched = true;- const result = await solveCaptcha(apiKey, params, { useCloudBroker });+ const result = await solveCaptchaWithProviders(providers, params);// For non-image types, push the token into the page response field// unless the caller explicitly opted out.@@ -35843,6 +35859,7 @@ If the user has already named or confirmed this exact recipient, do NOT ask agaidispatched: true,type,taskId: result.taskId,+ provider: result.provider,token: result.token,tokenPreview: result.token ? `${String(result.token).slice(0, 24)}…(${String(result.token).length} chars)` : null,selectedFrameId: Number.isInteger(detected?.frameId) ? detected.frameId : null,@@ -35858,7 +35875,7 @@ If the user has already named or confirmed this exact recipient, do NOT ask agai? (injection.calledCallback? 'Token was inserted into the selected frame and its callback was invoked. Wait for the page to react, then verify whether the challenge cleared.': 'Token was inserted into the selected frame, but no unique callback was invoked. Verify page progress before submitting or taking another action; do not request another paid solve.')- : 'CapSolver returned a token, but targeted injection failed. The challenge is not confirmed cleared; do not request another paid solve for the same token.',+ : 'The CAPTCHA solver returned a token, but targeted injection failed. The challenge is not confirmed cleared; do not request another paid solve for the same token.',};} catch (e) {const error = `solve_captcha failed: ${e.message}`;diff --git a/src/chrome/src/agent/captcha-frame-runtime.js b/src/chrome/src/agent/captcha-frame-runtime.jsindex ec9855231..41f640721 100644--- a/src/chrome/src/agent/captcha-frame-runtime.js+++ b/src/chrome/src/agent/captcha-frame-runtime.js@@ -310,6 +310,7 @@ function candidateSummary(candidate) {pageAction: candidate?.pageAction || null,enterprisePayload: candidate?.enterprisePayload || null,recaptchaDataSValue: candidate?.recaptchaDataSValue || null,+ ...(candidate?.metadata ? { metadata: candidate.metadata } : {}),explicitWebsiteKey: candidate?.explicitWebsiteKey === true,callbackName: candidate?.callbackName || null,responseTokenPresent: candidate?.responseTokenPresent === true,@@ -361,6 +362,7 @@ export function selectCaptchaCandidate(candidates, constraints = {}) {'pageAction','enterprisePayload','recaptchaDataSValue',+ 'metadata',];const hasParameterValue = value =>value !== undefined && value !== null && value !== '';@@ -849,9 +851,12 @@ export function detectCaptchaCandidatesInPage(scope = null, matcherOptions = nulfor (const [widgetIndex, host] of turnstileHosts.entries()) {const websiteKey = host.getAttribute('data-sitekey') || host.getAttribute('data-turnstile-sitekey');if (!websiteKey) continue;+ const action = host.getAttribute('data-action');+ const cdata = host.getAttribute('data-cdata');add({type: 'turnstile',websiteKey,+ ...((action || cdata) ? { metadata: { ...(action ? { action } : {}), ...(cdata ? { cdata } : {}) } } : {}),visible: visibleElement(host),normalCheckbox: false,callbackName: host.getAttribute('data-callback') || null,diff --git a/src/chrome/src/agent/captcha-provider-config.js b/src/chrome/src/agent/captcha-provider-config.jsnew file mode 100644index 000000000..5884bba30--- /dev/null+++ b/src/chrome/src/agent/captcha-provider-config.js@@ -0,0 +1,40 @@+import { normalizeCaptchaType } from './captcha-frame-runtime.js';+import { isCapsolverEnabled, normalizeCapsolverApiKey } from './capsolver-config.js';++export const CAPTCHA_SETTINGS_KEYS = [+ 'capsolverApiKey', 'captchaSolverEnabled', 'twoCaptchaApiKey', 'twoCaptchaEnabled',+ 'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',+];++export function normalizeTwoCaptchaApiKey(value) {+ return typeof value === 'string' ? value.trim() : '';+}++export function isValidTwoCaptchaApiKey(value) {+ return /^[a-f0-9]{32}$/i.test(normalizeTwoCaptchaApiKey(value));+}++// This order is also the fallback order. Managed browsers must never use+// personal keys from storage, even if an old/imported configuration has them.+export function getCaptchaProviders(stored = {}) {+ if (stored.webbrainCloudManaged === true) {+ return stored.captchaSolverEnabled === true && stored.webbrainCloudCapsolverBrokerEnabled === true+ ? [{ id: 'capsolver', apiKey: '', useCloudBroker: true }] : [];+ }+ const providers = [];+ if (isCapsolverEnabled(stored.capsolverApiKey, stored.captchaSolverEnabled)) {+ providers.push({ id: 'capsolver', apiKey: normalizeCapsolverApiKey(stored.capsolverApiKey) });+ }+ if (stored.twoCaptchaEnabled === true && isValidTwoCaptchaApiKey(stored.twoCaptchaApiKey)) {+ providers.push({ id: '2captcha', apiKey: normalizeTwoCaptchaApiKey(stored.twoCaptchaApiKey) });+ }+ return providers;+}++// Capabilities describe this integration, rather than every product a service sells.+export function captchaProviderSupportsType(providerId, type) {+ const normalized = normalizeCaptchaType(type);+ if (normalized === 'hcaptcha') return providerId === 'capsolver';+ return ['capsolver', '2captcha'].includes(providerId)+ && ['recaptcha_v2', 'recaptcha_v2_enterprise', 'recaptcha_v3', 'recaptcha_v3_enterprise', 'turnstile', 'image_to_text'].includes(normalized);+}diff --git a/src/chrome/src/agent/captcha-solver.js b/src/chrome/src/agent/captcha-solver.jsindex 03ea69e8e..5397888c0 100644--- a/src/chrome/src/agent/captcha-solver.js+++ b/src/chrome/src/agent/captcha-solver.js@@ -23,6 +23,8 @@ import {selectCaptchaCandidate,} from './captcha-frame-runtime.js';import { buildCaptchaDiagnostics, captchaChallengeMatcherOptions } from './captcha-gate.js';+import { solveWithTwoCaptcha } from './two-captcha.js';+import { captchaProviderSupportsType } from './captcha-provider-config.js';export { captchaTypesMatch, captchaWebsiteUrl, normalizeCaptchaType, selectCaptchaCandidate };@@ -39,6 +41,7 @@ async function postJson(path, body) {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify(body),+ signal: AbortSignal.timeout(30_000),});if (!res.ok) {const text = await res.text().catch(() => '');@@ -263,6 +266,36 @@ export async function solveCaptcha(apiKey, params, { useCloudBroker = false } =return { taskId, solution, ...meta };}+// One tool dispatch, at most one task per enabled provider. Fallback happens+// before token injection; a page/injection failure must not spend another solve.+// A timeout can leave a paid task running upstream; fallback may charge both accounts.+export async function solveCaptchaWithProviders(providers, params) {+ if (!providers.length) throw new Error('No CAPTCHA solver is enabled with a valid API key.');+ const paramError = captchaParamError(params);+ if (paramError) throw new Error(paramError);+ const task = buildTask(params);+ const eligibleProviders = providers.filter(provider => captchaProviderSupportsType(provider.id, params.type));+ if (!eligibleProviders.length) throw new Error(`No enabled provider supports ${params.type}. Ask the user to complete it manually.`);+ const failures = [];+ for (const provider of eligibleProviders) {+ try {+ const result = provider.id === 'capsolver'+ ? await solveCaptcha(provider.apiKey, params, { useCloudBroker: provider.useCloudBroker === true })+ : await (async () => {+ const result = await solveWithTwoCaptcha(provider.apiKey, task);+ return { ...result, ...solutionFor(params.type, result.solution) };+ })();+ if (typeof result.token !== 'string' || !result.token.trim()) {+ throw new Error('No usable solution returned.');+ }+ return { ...result, provider: provider.id };+ } catch (error) {+ failures.push(`${provider.id}: ${error.message}`);+ }+ }+ throw new Error(failures.join(' | '));+}+// ─── Page-side detection ───────────────────────────────────────────────//// Runs the self-contained detector in every frame, then ranks the returneddiff --git a/src/chrome/src/agent/tools.js b/src/chrome/src/agent/tools.jsindex aba02ed4e..6e420d47b 100644--- a/src/chrome/src/agent/tools.js+++ b/src/chrome/src/agent/tools.js@@ -1220,7 +1220,7 @@ export const AGENT_TOOLS = [type: 'function',function: {name: 'solve_captcha',- description: 'Solve a CAPTCHA on the current page using the CapSolver API (available when the user has saved a valid API key in Settings → General → Advanced). The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CapSolver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',+ description: 'Solve a CAPTCHA on the current page using CapSolver or 2Captcha, enabled by saving a key in Settings → General → Advanced. With both enabled, one tool call tries CapSolver first, then 2Captcha on failure or timeout; both may charge. Do not repeat the tool call. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires CapSolver. Unsupported challenges require manual completion before dispatch. The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CAPTCHA solver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',parameters: {type: 'object',properties: {@@ -1241,6 +1241,16 @@ export const AGENT_TOOLS = [isEnterprise: { type: 'boolean', description: 'reCAPTCHA v2/v3 only — true when the widget uses Google reCAPTCHA Enterprise. Auto-detected when omitted.' },pageAction: { type: 'string', description: 'Required for reCAPTCHA v3 — the action name the page uses (e.g. "login", "submit"). Auto-detected from data-action or the loader script when present; pass it explicitly if detection reports it missing.' },minScore: { type: 'number', description: 'reCAPTCHA v3 only — minimum score requested (0.3 is the usual lower bound, 0.7+ is hard).' },+ metadata: {+ type: 'object',+ description: 'Turnstile only. Values observed in the selected widget configuration; never invent them. action and cdata are detected from widget data attributes when present. Full-page managed challenges still require manual completion.',+ properties: {+ action: { type: 'string' },+ cdata: { type: 'string', description: 'The widget cData value.' },+ chlPageData: { type: 'string' },+ },+ additionalProperties: false,+ },imageBase64: { type: 'string', description: 'image_to_text only — base64-encoded image bytes (no data: prefix).' },inject: { type: 'boolean', description: 'After solving, inject the token into the detected frame\'s response field (textarea[name=g-recaptcha-response] etc.) and fire the widget\'s callback. Default true and requires a detected frame target. If the widget cannot be detected but type/websiteKey are known, set false to get only the token without page injection.' },},@@ -2123,7 +2133,7 @@ FORMS — read this:- You do NOT need verify_form for simple interactions: search boxes, single-field forms, or login forms. Use it for multi-field forms where wrong data has consequences (checkout, profile, issue creation, releases, etc.).- AFTER submitting a form, ALWAYS read the page/tree and inspect any injected verification/auto-screenshot context to confirm success BEFORE doing anything else. Do not resume other actions until you verify the submission result. Look for: a success message/toast, the newly created item appearing in a list, or a detail page for the new item. Check that the details (name, price, dates) match what you intended.- NEVER claim you created something unless you see CONFIRMATION on the page. If you see a list of items, check the creation date — if it says "2 months ago" or a past date, that is an EXISTING item, NOT something you just created. Only items with a timestamp from right now are yours.-- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has configured CapSolver (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.+- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has configured CapSolver or 2Captcha (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.MODALS & DIALOGS — read this:- When a modal/dialog is open, treat the rest of the page as unreachable. click({text: ...}) and get_interactive_elements are automatically scoped to the topmost dialog, so queries for buttons behind the overlay will return "no match" — that's intentional.@@ -2305,7 +2315,7 @@ ${BROWSER_TAB_LIMITATION}- fetch_url({url}) / research_url({url}): read OTHER URLs (not the active tab). list_downloads, download_files, download_resource_from_page, read_downloaded_file, upload_file({selector, attachmentId}) or upload_file({selector, downloadId}): file workflows. Use attachmentId for a current user-supplied file; use downloadId for a downloaded file. Use download_files for direct URLs and download_resource_from_page when the resource is attached to a visible page element or a blob: URL. Successful downloads auto-pin each file's downloadId to the scratchpad as an \`[auto]\` line — attach with upload_file({downloadId, selector}) and re-read with read_downloaded_file({downloadId}); no need to recall the path.- download_public_media (if enabled) / download_social_media: one-shot image/video download from supported public social sites; purpose-built download tools should be tried before manual DOM/resource workflows.- verify_form: check a form's field values before submitting. scratchpad_write({text}): pin facts that survive context summarization. progress_update/progress_read: track repeated item/action progress.-- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: once, only when CapSolver is configured.+- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: one tool call, CapSolver first then 2Captcha on failure or timeout when both are enabled; either may charge. Do not repeat the call. hCaptcha requires CapSolver; unsupported provider/type combinations require manual completion.- Recording is user-driven only: tell the user to type \`/record\` or \`/record --full-screen\` instead of trying to start recording yourself; add \`--transcribe\` if they want a Whisper transcript after stop.- done({summary, outcome}): signal completion; use outcome:"success" only after verifying success.diff --git a/src/chrome/src/agent/two-captcha.js b/src/chrome/src/agent/two-captcha.jsnew file mode 100644index 000000000..256b3d056--- /dev/null+++ b/src/chrome/src/agent/two-captcha.js@@ -0,0 +1,82 @@+// 2Captcha API v2: https://2captcha.com/api-docs+const API_BASE = 'https://api.2captcha.com';+const POLL_INTERVAL_MS = 5_000;+const SOLVE_TIMEOUT_MS = 180_000;++async function postJson(path, body, timeoutMs = 30_000) {+ const response = await fetch(`${API_BASE}/${path}`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(body),+ signal: AbortSignal.timeout(timeoutMs),+ });+ if (!response.ok) throw new Error(`2Captcha ${path}: HTTP ${response.status}`);+ const result = await response.json().catch(() => null);+ if (!result || typeof result !== 'object') throw new Error(`2Captcha ${path}: invalid response`);+ if (result.errorId) throw new Error(`2Captcha ${path}: ${result.errorDescription || result.errorCode || 'unknown error'}`);+ return result;+}++export async function getTwoCaptchaBalance(apiKey) {+ if (!apiKey) throw new Error('No 2Captcha API key configured.');+ const result = await postJson('getBalance', { clientKey: apiKey });+ if (!Number.isFinite(Number(result.balance)) || result.balance == null) {+ throw new Error('2Captcha getBalance: missing balance');+ }+ return { balance: Number(result.balance) };+}++// Translate the existing normalized task to 2Captcha's case-sensitive types+// and fields. Never forward CapSolver-specific task names or affiliate IDs.+export function buildTwoCaptchaTask(task) {+ const { websiteURL, websiteKey } = task;+ switch (task.type) {+ case 'ReCaptchaV2TaskProxyLess':+ case 'ReCaptchaV2EnterpriseTaskProxyLess': {+ const enterprise = task.type.includes('Enterprise');+ return {+ type: enterprise ? 'RecaptchaV2EnterpriseTaskProxyless' : 'RecaptchaV2TaskProxyless',+ websiteURL, websiteKey,+ ...(task.isInvisible != null ? { isInvisible: task.isInvisible } : {}),+ ...(task.userAgent ? { userAgent: task.userAgent } : {}),+ ...(enterprise && task.enterprisePayload ? { enterprisePayload: task.enterprisePayload } : {}),+ ...(!enterprise && task.recaptchaDataSValue ? { recaptchaDataSValue: task.recaptchaDataSValue } : {}),+ };+ }+ case 'ReCaptchaV3TaskProxyLess':+ case 'ReCaptchaV3EnterpriseTaskProxyLess':+ return {+ type: 'RecaptchaV3TaskProxyless', websiteURL, websiteKey,+ minScore: task.minScore || 0.3, pageAction: task.pageAction,+ isEnterprise: task.type.includes('Enterprise'),+ };+ case 'AntiTurnstileTaskProxyLess':+ return {+ type: 'TurnstileTaskProxyless', websiteURL, websiteKey,+ ...(task.metadata?.action ? { action: task.metadata.action } : {}),+ ...(task.metadata?.cdata ? { data: task.metadata.cdata } : {}),+ ...(task.metadata?.chlPageData ? { pagedata: task.metadata.chlPageData } : {}),+ };+ case 'ImageToTextTask':+ return { type: 'ImageToTextTask', body: task.body, ...(task.case != null ? { case: task.case } : {}) };+ default:+ // hCaptcha is not listed in the current 2Captcha API v2 documentation.+ throw new Error(`2Captcha does not support this CAPTCHA type in WebBrain: ${task.type}`);+ }+}++export async function solveWithTwoCaptcha(apiKey, task) {+ if (!apiKey) throw new Error('No 2Captcha API key configured.');+ const created = await postJson('createTask', { clientKey: apiKey, task: buildTwoCaptchaTask(task) });+ if (!created.taskId) throw new Error('2Captcha createTask: missing taskId');+ const deadline = Date.now() + SOLVE_TIMEOUT_MS;+ while (Date.now() < deadline) {+ await new Promise(resolve => setTimeout(resolve, POLL_INTERVAL_MS));+ const remaining = deadline - Date.now();+ if (remaining <= 0) break;+ const result = await postJson('getTaskResult', { clientKey: apiKey, taskId: created.taskId }, Math.min(30_000, remaining));+ if (result.status === 'ready') return { taskId: created.taskId, solution: result.solution || {} };+ if (result.status !== 'processing') throw new Error('2Captcha getTaskResult: unexpected status');+ }+ throw new Error('2Captcha: timed out waiting for solution.');+}diff --git a/src/chrome/src/background.js b/src/chrome/src/background.jsindex 70a9e2d04..63537556e 100644--- a/src/chrome/src/background.js+++ b/src/chrome/src/background.js@@ -40,7 +40,8 @@ import {getClaudeOAuthStatus,} from './providers/oauth-claude.js';import { getBalance as capsolverGetBalance } from './agent/captcha-solver.js';-import { isCapsolverEnabled } from './agent/capsolver-config.js';+import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders } from './agent/captcha-provider-config.js';+import { getTwoCaptchaBalance } from './agent/two-captcha.js';import { createSystemOneJudge } from './agent/systemone-judge.js';import { cloudSafeScheduledJob, createCloudRunController } from './cloud-runs.js';import { ensureOffscreen } from './offscreen/ensure.js';@@ -1083,13 +1084,10 @@ const customSkillsReady = loadCustomSkills();// Local browsers require a valid key and explicit consent. Managed Cloud// browsers use the broker flag and never use a CapSolver key from storage.async function loadCaptchaSolver() {- const stored = await chrome.storage.local.get([- 'capsolverApiKey', 'captchaSolverEnabled',- 'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',- ]);- agent.captchaSolverEnabled = stored.webbrainCloudManaged === true- ? stored.captchaSolverEnabled === true && stored.webbrainCloudCapsolverBrokerEnabled === true- : isCapsolverEnabled(stored.capsolverApiKey, stored.captchaSolverEnabled);+ const stored = await chrome.storage.local.get(CAPTCHA_SETTINGS_KEYS);+ const providers = getCaptchaProviders(stored);+ agent.captchaProviderIds = providers.map(provider => provider.id);+ agent.captchaSolverEnabled = providers.length > 0;}loadCaptchaSolver();@@ -1310,10 +1308,11 @@ chrome.storage.onChanged.addListener((changes, areaName) => {refreshPrompts = true;}if (changes.capsolverApiKey || changes.captchaSolverEnabled+ || changes.twoCaptchaApiKey || changes.twoCaptchaEnabled|| changes.webbrainCloudManaged || changes.webbrainCloudCapsolverBrokerEnabled) {loadCaptchaSolver().then(() => agent._refreshSystemPrompts())- .catch((error) => console.warn('[WebBrain] CapSolver setting could not be refreshed', error));+ .catch((error) => console.warn('[WebBrain] CAPTCHA settings could not be refreshed', error));}if (changes.planBeforeActMode || changes.planBeforeAct) {applyPlanBeforeActMode(normalizePlanBeforeActMode({@@ -4090,6 +4089,16 @@ async function handleMessage(msg, sender) {} catch (error) { return { success: false, error: error.message }; }}+ case 'test_two_captcha_balance': {+ try {+ const key = String(msg.apiKey || '').trim();+ if (!key) return { ok: false, error: 'No API key provided' };+ return { ok: true, ...await getTwoCaptchaBalance(key) };+ } catch (e) {+ return { ok: false, error: e.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/config-transfer.js b/src/chrome/src/config-transfer.jsindex 7ea6e1bb2..067ab2df6 100644--- a/src/chrome/src/config-transfer.js+++ b/src/chrome/src/config-transfer.js@@ -78,6 +78,8 @@ export const DEFAULT_CONFIG_SETTINGS = Object.freeze({enableAllPackagedSkills: false,captchaSolverEnabled: false,capsolverApiKey: '',+ twoCaptchaApiKey: '',+ twoCaptchaEnabled: false,systemOneEnabled: false,systemOneWatchEnabled: false,systemOneCompletionEnabled: false,@@ -124,6 +126,7 @@ const BOOLEAN_KEYS = new Set([USER_MEMORY_FORM_CAPTURE_KEY,'enableAllPackagedSkills','captchaSolverEnabled',+ 'twoCaptchaEnabled','systemOneEnabled','systemOneWatchEnabled','systemOneCompletionEnabled',@@ -153,6 +156,7 @@ const STRING_KEYS = new Set(['activeProvider','profileText','capsolverApiKey',+ 'twoCaptchaApiKey','typesafeApiKey',]);const ARRAY_KEYS = new Set([diff --git a/src/chrome/src/ui/i18n.js b/src/chrome/src/ui/i18n.jsindex 011799a83..31c3564c0 100644--- a/src/chrome/src/ui/i18n.js+++ b/src/chrome/src/ui/i18n.js@@ -3,6 +3,7 @@// Works identically in Chrome MV3 and Firefox MV2.import en from './locales/en.js';+import { captchaEnglish, captchaTranslations } from './locales/captcha-copy.mjs';import { safeSocialEnglish, safeSocialTranslations } from './locales/safesocial-copy.mjs';import es from './locales/es.js';import fr from './locales/fr.js';@@ -35,6 +36,8 @@ const DICTS = Object.fromEntries(Object.entries({ en, es, fr, tr, zh, ru, uk, ar...providerGuideEnglish,...pdfViewerEnglish,...safeSocialEnglish,+ ...captchaEnglish,+ ...(captchaTranslations[code] || {}),...(safeSocialTranslations[code] || {}),...(providerGuideTranslations[code] || {}),}]));diff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.jsindex d01156655..4db4de5c5 100644--- a/src/chrome/src/ui/locales/ar.js+++ b/src/chrome/src/ui/locales/ar.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "تم الاتصال! النموذج: {model}","st.transcription.failed": "فشل: {error}","st.transcription.fill_required": "املأ عنوان API الأساسي والنموذج أولًا.",- "st.captcha.desc_html": "دع الوكيل يحلّ اختبارات CAPTCHA تلقائيًا عبر واجهة <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. يدعم reCAPTCHA v2/v3 وhCaptcha وCloudflare Turnstile. يؤدي حفظ مفتاح API صالح إلى تمكين CapSolver تلقائيًا؛ وبدونه، يتوقّف الوكيل ويطلب منك حلّ الاختبار بنفسك. تتقاضى CapSolver رسومًا لكل عملية حلّ (~$0.001–$0.003)؛ تستخدم حسابك ومفتاح API الخاص بك.",- "st.captcha.enabled.label": "تفعيل CapSolver",- "st.captcha.enabled.desc": "عندما يصادف الوكيل اختبار CAPTCHA فإنه يستدعي CapSolver مرّة واحدة قبل اللجوء إلى سؤالك. يتطلّب مفتاح API أدناه.","st.captcha.api_key.label": "مفتاح CapSolver API","st.captcha.save": "حفظ المفتاح","st.captcha.check_balance": "التحقّق من الرصيد",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "أدخل مفتاح CapSolver API صالحًا يبدأ بـ CAP-.","st.captcha.balance_ok": "موافق — الرصيد: {balance}","st.captcha.balance_fail": "فشل: {error}",- "st.captcha.security_html": "<strong>تنبيه:</strong> يُخزَّن مفتاح API <strong>بصيغة نصية واضحة</strong> في التخزين المحلي للمتصفح. تتقاضى CapSolver رسومًا من حسابك عن كل عملية حلّ؛ ولن يستدعيها الوكيل إلا عندما يحجب اختبار CAPTCHA خطوةً فعلًا (مرّة واحدة كحدّ أقصى لكل مواجهة — لن يعيد المحاولة عند الفشل). تحظر شروط خدمة بعض المواقع حلّ اختبارات CAPTCHA آليًا؛ استخدم حسن تقديرك.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'الإجراءات المقترحة',diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.jsindex 343e3aded..edd8dac9b 100644--- a/src/chrome/src/ui/locales/bn.js+++ b/src/chrome/src/ui/locales/bn.js@@ -963,9 +963,6 @@ export default {'st.memory.reason.not_found': "কোনো সংরক্ষিত মেমরি সেই আইডি নেই।",'st.memory.security_html': "<strong>গোপনীয়তা:</strong> ব্যবহারকারীর মেমরি এই ব্রাউজার প্রোফাইলে প্লেইনটেক্সটে সংরক্ষণ করা হয়। সক্রিয় করা হলে, সিস্টেম প্রম্পটের অংশ হিসাবে আপনি যে LLM প্রদানকারীকে কনফিগার করেন সক্রিয় মেমরি রেকর্ডগুলি পাঠানো হয়৷ এখানে পাসওয়ার্ড, API কী, টোকেন, রিকভারি কোড বা সংবেদনশীল গোপনীয়তা সংরক্ষণ করবেন না।",- 'st.captcha.desc_html': "এজেন্টকে <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API-এর মাধ্যমে স্বয়ংক্রিয়ভাবে CAPTCHA সমাধান করতে দিন। এটি reCAPTCHA v2/v3, hCaptcha এবং Cloudflare Turnstile সমর্থন করে। একটি বৈধ API কী সংরক্ষণ করলে CapSolver স্বয়ংক্রিয়ভাবে সক্রিয় হয়; কী না থাকলে এজেন্ট থামে এবং আপনাকে নিজেই CAPTCHA সমাধান করতে বলে। প্রতিটি সমাধানের জন্য CapSolver চার্জ করে (~$0.001–$0.003); আপনি নিজের অ্যাকাউন্ট ও API কী ব্যবহার করেন।",- 'st.captcha.enabled.label': "CapSolver সক্ষম করুন",- 'st.captcha.enabled.desc': "যখন এজেন্ট একটি ক্যাপচা হিট করে তখন এটি আপনাকে জিজ্ঞাসা করার আগে একবার ক্যাপসোলভারকে কল করবে। নীচে একটি API কী প্রয়োজন৷",'st.captcha.api_key.label': "CapSolver API কী",'st.captcha.save': "কী সংরক্ষণ করুন",'st.captcha.check_balance': "ব্যালেন্স চেক করুন",@@ -976,7 +973,6 @@ export default {'st.captcha.need_key': "CAP- দিয়ে শুরু হওয়া একটি বৈধ CapSolver API কী লিখুন।",'st.captcha.balance_ok': "ঠিক আছে — ব্যালেন্স: {balance}",'st.captcha.balance_fail': "ব্যর্থ হয়েছে: {error}",- 'st.captcha.security_html': "<strong>হেড-আপ:</strong> API কী সংরক্ষণ করা হয় <strong>প্লেইনটেক্সট</strong> ব্রাউজার স্থানীয় স্টোরেজে। CapSolver প্রতিটি সমাধানের জন্য আপনার অ্যাকাউন্ট চার্জ করে; এজেন্ট কেবল তখনই এটিকে কল করবে যখন একটি ক্যাপচা প্রকৃতপক্ষে একটি পদক্ষেপকে ব্লক করে (প্রতি এনকাউন্টারে সর্বোচ্চ একবার - এটি ব্যর্থ হলে পুনরায় চেষ্টা করবে না)। কিছু সাইটের পরিষেবার শর্তাবলী স্বয়ংক্রিয় ক্যাপচা সমাধান নিষিদ্ধ করে; আপনার রায় ব্যবহার করুন।","st.system_one.desc_html": "নির্ধারিত পর্যবেক্ষণ ও কাজ সম্পন্ন হওয়ার অতিরিক্ত যাচাই।","st.system_one.enabled.label": "Jev চালু করুন",diff --git a/src/chrome/src/ui/locales/captcha-copy.mjs b/src/chrome/src/ui/locales/captcha-copy.mjsnew file mode 100644index 000000000..6bb0e249e--- /dev/null+++ b/src/chrome/src/ui/locales/captcha-copy.mjs@@ -0,0 +1,233 @@+export const captchaEnglish = {+ "st.captcha.heading": "CAPTCHA solving",+ "st.captcha.order": "Use either provider or both. Save a valid key to enable a provider; Clear disables it. With both enabled, CapSolver runs first, then 2Captcha on failure or timeout.",+ "st.captcha.capsolver_desc": "Automatically solve reCAPTCHA v2/v3, hCaptcha, Turnstile, and image CAPTCHAs with your CapSolver account.",+ "st.captcha.two_desc": "Automatically solve reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs with your 2Captcha account. hCaptcha requires CapSolver.",+ "st.captcha.two_key": "2Captcha API Key",+ "st.captcha.two_need_key": "Enter a valid 2Captcha API key: 32 hexadecimal characters.",+ "st.captcha.two_saved": "Saved. 2Captcha is enabled.",+ "st.captcha.providers_security": "Keys are stored in plaintext in this browser. Each enabled provider may charge for an attempt. Timeout fallback can charge both accounts even if the first task is still running. If neither returns a usable solution, the agent asks you to complete the CAPTCHA manually."+};++export const captchaTranslations = {+ "tr": {+ "st.captcha.heading": "CAPTCHA çözümü",+ "st.captcha.order": "Bir sağlayıcıyı veya ikisini birden kullanın. Geçerli anahtarı kaydetmek etkinleştirir; Temizle devre dışı bırakır. İkisi de etkinse önce CapSolver, hata veya zaman aşımında 2Captcha denenir.",+ "st.captcha.capsolver_desc": "CapSolver hesabınızla reCAPTCHA v2/v3, hCaptcha, Turnstile ve görsel CAPTCHA’ları otomatik çözün.",+ "st.captcha.two_desc": "2Captcha hesabınızla reCAPTCHA v2/v3, Turnstile ve görsel CAPTCHA’ları otomatik çözün. hCaptcha için CapSolver gerekir.",+ "st.captcha.two_key": "2Captcha API anahtarı",+ "st.captcha.two_need_key": "32 onaltılık karakterden oluşan geçerli bir 2Captcha API anahtarı girin.",+ "st.captcha.two_saved": "Kaydedildi. 2Captcha etkin.",+ "st.captcha.providers_security": "Anahtarlar bu tarayıcıda düz metin olarak saklanır. Her etkin sağlayıcı deneme için ücret alabilir. Zaman aşımında diğer sağlayıcıya geçildiğinde ilk görev hâlâ sürse bile iki hesap da ücretlendirilebilir. Kullanılabilir çözüm dönmezse ajan CAPTCHA’yı elle tamamlamanızı ister."+ },+ "es": {+ "st.captcha.heading": "Resolución de CAPTCHA",+ "st.captcha.order": "Usa uno o ambos proveedores. Guarda una clave válida para activar cada uno; Borrar lo desactiva. Si ambos están activos, se prueba CapSolver primero y después 2Captcha si falla o agota el tiempo.",+ "st.captcha.capsolver_desc": "Resuelve automáticamente reCAPTCHA v2/v3, hCaptcha, Turnstile y CAPTCHA de imágenes con tu cuenta de CapSolver.",+ "st.captcha.two_desc": "Resuelve automáticamente reCAPTCHA v2/v3, Turnstile y CAPTCHA de imágenes con tu cuenta de 2Captcha. hCaptcha requiere CapSolver.",+ "st.captcha.two_key": "Clave API de 2Captcha",+ "st.captcha.two_need_key": "Introduce una clave API válida de 2Captcha: 32 caracteres hexadecimales.",+ "st.captcha.two_saved": "Guardado. 2Captcha está activado.",+ "st.captcha.providers_security": "Las claves se guardan como texto sin cifrar en este navegador. Cada proveedor activo puede cobrar por un intento. El cambio por tiempo agotado puede generar cargos en ambas cuentas aunque la primera tarea siga ejecutándose. Si no hay una solución válida, el agente te pide completar el CAPTCHA manualmente."+ },+ "fr": {+ "st.captcha.heading": "Résolution des CAPTCHA",+ "st.captcha.order": "Utilisez un fournisseur ou les deux. Enregistrer une clé valide active le fournisseur ; Effacer le désactive. Si les deux sont actifs, CapSolver est essayé en premier, puis 2Captcha en cas d’échec ou de délai dépassé.",+ "st.captcha.capsolver_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, hCaptcha, Turnstile et CAPTCHA sous forme d’image avec votre compte CapSolver.",+ "st.captcha.two_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, Turnstile et CAPTCHA sous forme d’image avec votre compte 2Captcha. hCaptcha nécessite CapSolver.",+ "st.captcha.two_key": "Clé API 2Captcha",+ "st.captcha.two_need_key": "Saisissez une clé API 2Captcha valide : 32 caractères hexadécimaux.",+ "st.captcha.two_saved": "Enregistré. 2Captcha est activé.",+ "st.captcha.providers_security": "Les clés sont stockées en clair dans ce navigateur. Chaque fournisseur actif peut facturer une tentative. Le basculement après expiration du délai peut facturer les deux comptes même si la première tâche est toujours en cours. Sans solution utilisable, l’agent vous demande de terminer le CAPTCHA manuellement."+ },+ "de": {+ "st.captcha.heading": "CAPTCHA-Lösung",+ "st.captcha.order": "Nutzen Sie einen oder beide Anbieter. Ein gültiger gespeicherter Schlüssel aktiviert den Anbieter; Löschen deaktiviert ihn. Sind beide aktiv, wird zuerst CapSolver versucht, bei Fehler oder Zeitüberschreitung dann 2Captcha.",+ "st.captcha.capsolver_desc": "Lösen Sie reCAPTCHA v2/v3, hCaptcha, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem CapSolver-Konto.",+ "st.captcha.two_desc": "Lösen Sie reCAPTCHA v2/v3, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem 2Captcha-Konto. hCaptcha erfordert CapSolver.",+ "st.captcha.two_key": "2Captcha-API-Schlüssel",+ "st.captcha.two_need_key": "Geben Sie einen gültigen 2Captcha-API-Schlüssel ein: 32 hexadezimale Zeichen.",+ "st.captcha.two_saved": "Gespeichert. 2Captcha ist aktiviert.",+ "st.captcha.providers_security": "Die Schlüssel werden in diesem Browser im Klartext gespeichert. Jeder aktive Anbieter kann einen Versuch berechnen. Beim Wechsel nach einer Zeitüberschreitung können beide Konten belastet werden, auch wenn der erste Auftrag noch läuft. Ohne nutzbare Lösung bittet der Agent Sie, das CAPTCHA manuell abzuschließen."+ },+ "nl": {+ "st.captcha.heading": "CAPTCHA’s oplossen",+ "st.captcha.order": "Gebruik één of beide aanbieders. Een geldige sleutel opslaan schakelt de aanbieder in; Wissen schakelt deze uit. Als beide actief zijn, wordt eerst CapSolver geprobeerd en daarna 2Captcha bij een fout of time-out.",+ "st.captcha.capsolver_desc": "Los reCAPTCHA v2/v3, hCaptcha, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je CapSolver-account.",+ "st.captcha.two_desc": "Los reCAPTCHA v2/v3, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je 2Captcha-account. hCaptcha vereist CapSolver.",+ "st.captcha.two_key": "2Captcha API-sleutel",+ "st.captcha.two_need_key": "Voer een geldige 2Captcha API-sleutel in: 32 hexadecimale tekens.",+ "st.captcha.two_saved": "Opgeslagen. 2Captcha is ingeschakeld.",+ "st.captcha.providers_security": "Sleutels worden als platte tekst in deze browser opgeslagen. Elke actieve aanbieder kan een poging in rekening brengen. Overschakelen na een time-out kan beide accounts belasten, ook als de eerste taak nog loopt. Zonder bruikbare oplossing vraagt de agent je de CAPTCHA handmatig af te ronden."+ },+ "pt": {+ "st.captcha.heading": "Resolução de CAPTCHA",+ "st.captcha.order": "Use um ou ambos os provedores. Salvar uma chave válida ativa o provedor; Limpar o desativa. Com ambos ativos, o CapSolver é tentado primeiro e depois o 2Captcha em caso de falha ou tempo esgotado.",+ "st.captcha.capsolver_desc": "Resolva automaticamente reCAPTCHA v2/v3, hCaptcha, Turnstile e CAPTCHAs de imagem com sua conta CapSolver.",+ "st.captcha.two_desc": "Resolva automaticamente reCAPTCHA v2/v3, Turnstile e CAPTCHAs de imagem com sua conta 2Captcha. hCaptcha exige CapSolver.",+ "st.captcha.two_key": "Chave API do 2Captcha",+ "st.captcha.two_need_key": "Insira uma chave API válida do 2Captcha: 32 caracteres hexadecimais.",+ "st.captcha.two_saved": "Salvo. 2Captcha está ativado.",+ "st.captcha.providers_security": "As chaves são armazenadas em texto simples neste navegador. Cada provedor ativo pode cobrar por uma tentativa. A troca após o tempo esgotado pode gerar cobranças nas duas contas, mesmo que a primeira tarefa ainda esteja em andamento. Sem uma solução utilizável, o agente pede que você conclua o CAPTCHA manualmente."+ },+ "zh": {+ "st.captcha.heading": "CAPTCHA 验证码识别",+ "st.captcha.order": "可使用一个或两个服务商。保存有效密钥即可启用,清除密钥即可停用。两者都启用时,先尝试 CapSolver,失败或超时后再尝试 2Captcha。",+ "st.captcha.capsolver_desc": "使用你的 CapSolver 账户自动识别 reCAPTCHA v2/v3、hCaptcha、Turnstile 和图片验证码。",+ "st.captcha.two_desc": "使用你的 2Captcha 账户自动识别 reCAPTCHA v2/v3、Turnstile 和图片验证码。hCaptcha 需要 CapSolver。",+ "st.captcha.two_key": "2Captcha API 密钥",+ "st.captcha.two_need_key": "请输入有效的 2Captcha API 密钥:32 个十六进制字符。",+ "st.captcha.two_saved": "已保存。2Captcha 已启用。",+ "st.captcha.providers_security": "密钥以明文保存在此浏览器中。每个启用的服务商都可能对尝试收费。超时后切换服务商可能使两个账户都产生费用,即使第一个任务仍在运行。如果没有可用的结果,智能体会请你手动完成验证码。"+ },+ "ja": {+ "st.captcha.heading": "CAPTCHA の解決",+ "st.captcha.order": "一方または両方のサービスを使用できます。有効なキーを保存すると有効になり、クリアすると無効になります。両方が有効な場合、先に CapSolver を試し、失敗またはタイムアウト時に 2Captcha を試します。",+ "st.captcha.capsolver_desc": "CapSolver アカウントで reCAPTCHA v2/v3、hCaptcha、Turnstile、画像 CAPTCHA を自動的に解決します。",+ "st.captcha.two_desc": "2Captcha アカウントで reCAPTCHA v2/v3、Turnstile、画像 CAPTCHA を自動的に解決します。hCaptcha には CapSolver が必要です。",+ "st.captcha.two_key": "2Captcha API キー",+ "st.captcha.two_need_key": "有効な 2Captcha API キーを入力してください。16 進数で 32 文字です。",+ "st.captcha.two_saved": "保存しました。2Captcha は有効です。",+ "st.captcha.providers_security": "キーはこのブラウザーに平文で保存されます。有効な各サービスで試行に料金がかかる場合があります。タイムアウト後の切り替えでは、最初のタスクが実行中でも両方のアカウントに料金が発生することがあります。有効な結果が得られない場合、エージェントは CAPTCHA を手動で完了するよう求めます。"+ },+ "ko": {+ "st.captcha.heading": "CAPTCHA 해결",+ "st.captcha.order": "한 서비스 또는 두 서비스를 모두 사용할 수 있습니다. 유효한 키를 저장하면 활성화되고 지우면 비활성화됩니다. 둘 다 활성화된 경우 CapSolver를 먼저 시도하고 실패하거나 시간이 초과되면 2Captcha를 시도합니다.",+ "st.captcha.capsolver_desc": "CapSolver 계정으로 reCAPTCHA v2/v3, hCaptcha, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다.",+ "st.captcha.two_desc": "2Captcha 계정으로 reCAPTCHA v2/v3, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다. hCaptcha에는 CapSolver가 필요합니다.",+ "st.captcha.two_key": "2Captcha API 키",+ "st.captcha.two_need_key": "유효한 2Captcha API 키를 입력하세요. 32자리 16진수여야 합니다.",+ "st.captcha.two_saved": "저장되었습니다. 2Captcha가 활성화되었습니다.",+ "st.captcha.providers_security": "키는 이 브라우저에 일반 텍스트로 저장됩니다. 활성화된 각 서비스는 시도에 대해 요금을 부과할 수 있습니다. 시간 초과 후 전환하면 첫 작업이 진행 중이어도 두 계정 모두에 요금이 부과될 수 있습니다. 사용 가능한 결과가 없으면 에이전트가 CAPTCHA를 직접 완료하도록 요청합니다."+ },+ "ru": {+ "st.captcha.heading": "Решение CAPTCHA",+ "st.captcha.order": "Используйте один или оба сервиса. Сохранение действительного ключа включает сервис, очистка отключает его. Если включены оба, сначала используется CapSolver, затем 2Captcha при ошибке или тайм-ауте.",+ "st.captcha.capsolver_desc": "Автоматически решайте reCAPTCHA v2/v3, hCaptcha, Turnstile и CAPTCHA с изображениями через свой аккаунт CapSolver.",+ "st.captcha.two_desc": "Автоматически решайте reCAPTCHA v2/v3, Turnstile и CAPTCHA с изображениями через свой аккаунт 2Captcha. Для hCaptcha нужен CapSolver.",+ "st.captcha.two_key": "API-ключ 2Captcha",+ "st.captcha.two_need_key": "Введите действительный API-ключ 2Captcha: 32 шестнадцатеричных символа.",+ "st.captcha.two_saved": "Сохранено. 2Captcha включён.",+ "st.captcha.providers_security": "Ключи хранятся в этом браузере в открытом виде. Каждый включённый сервис может взимать плату за попытку. Переход после тайм-аута может привести к списанию с обоих аккаунтов, даже если первая задача ещё выполняется. Если подходящего решения нет, агент попросит вас пройти CAPTCHA вручную."+ },+ "uk": {+ "st.captcha.heading": "Розв’язання CAPTCHA",+ "st.captcha.order": "Використовуйте один або обидва сервіси. Збереження дійсного ключа вмикає сервіс, очищення вимикає його. Якщо ввімкнено обидва, спочатку використовується CapSolver, а в разі помилки або тайм-ауту — 2Captcha.",+ "st.captcha.capsolver_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, hCaptcha, Turnstile та CAPTCHA із зображеннями через свій обліковий запис CapSolver.",+ "st.captcha.two_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, Turnstile та CAPTCHA із зображеннями через свій обліковий запис 2Captcha. Для hCaptcha потрібен CapSolver.",+ "st.captcha.two_key": "API-ключ 2Captcha",+ "st.captcha.two_need_key": "Введіть дійсний API-ключ 2Captcha: 32 шістнадцяткові символи.",+ "st.captcha.two_saved": "Збережено. 2Captcha ввімкнено.",+ "st.captcha.providers_security": "Ключі зберігаються в цьому браузері відкритим текстом. Кожен увімкнений сервіс може стягувати плату за спробу. Перехід після тайм-ауту може спричинити списання з обох рахунків, навіть якщо перше завдання ще виконується. Якщо придатного рішення немає, агент попросить вас пройти CAPTCHA вручну."+ },+ "pl": {+ "st.captcha.heading": "Rozwiązywanie CAPTCHA",+ "st.captcha.order": "Używaj jednej lub obu usług. Zapisanie prawidłowego klucza włącza usługę, a wyczyszczenie ją wyłącza. Gdy obie są aktywne, najpierw działa CapSolver, a po błędzie lub przekroczeniu czasu — 2Captcha.",+ "st.captcha.capsolver_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, hCaptcha, Turnstile i obrazkowe CAPTCHA za pomocą konta CapSolver.",+ "st.captcha.two_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, Turnstile i obrazkowe CAPTCHA za pomocą konta 2Captcha. hCaptcha wymaga CapSolver.",+ "st.captcha.two_key": "Klucz API 2Captcha",+ "st.captcha.two_need_key": "Wpisz prawidłowy klucz API 2Captcha: 32 znaki szesnastkowe.",+ "st.captcha.two_saved": "Zapisano. 2Captcha jest włączone.",+ "st.captcha.providers_security": "Klucze są przechowywane w tej przeglądarce jawnym tekstem. Każda aktywna usługa może pobrać opłatę za próbę. Przełączenie po przekroczeniu czasu może obciążyć oba konta, nawet gdy pierwsze zadanie nadal trwa. Jeśli nie ma użytecznego rozwiązania, agent poprosi o ręczne ukończenie CAPTCHA."+ },+ "ar": {+ "st.captcha.heading": "حل CAPTCHA",+ "st.captcha.order": "استخدم خدمة واحدة أو الخدمتين. حفظ مفتاح صالح يفعّل الخدمة، ومسحه يعطّلها. عند تفعيل الخدمتين، تُجرّب CapSolver أولاً ثم 2Captcha عند الفشل أو انتهاء المهلة.",+ "st.captcha.capsolver_desc": "حل reCAPTCHA v2/v3 وhCaptcha وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب CapSolver.",+ "st.captcha.two_desc": "حل reCAPTCHA v2/v3 وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب 2Captcha. تتطلب hCaptcha خدمة CapSolver.",+ "st.captcha.two_key": "مفتاح API لخدمة 2Captcha",+ "st.captcha.two_need_key": "أدخل مفتاح API صالحاً لخدمة 2Captcha: 32 رمزاً بالنظام الست عشري.",+ "st.captcha.two_saved": "تم الحفظ. خدمة 2Captcha مفعّلة.",+ "st.captcha.providers_security": "تُحفظ المفاتيح كنص صريح في هذا المتصفح. قد تفرض كل خدمة مفعّلة رسوماً على المحاولة. قد يؤدي الانتقال بعد انتهاء المهلة إلى احتساب رسوم على الحسابين حتى لو كانت المهمة الأولى لا تزال جارية. إذا لم تُرجع أي خدمة حلاً صالحاً، يطلب منك الوكيل إكمال CAPTCHA يدوياً."+ },+ "he": {+ "st.captcha.heading": "פתרון CAPTCHA",+ "st.captcha.order": "אפשר להשתמש בספק אחד או בשניהם. שמירת מפתח תקין מפעילה ספק; ניקוי משבית אותו. כששניהם פעילים, CapSolver נבדק ראשון ולאחר כישלון או פסק זמן נעשה ניסיון עם 2Captcha.",+ "st.captcha.capsolver_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, hCaptcha, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון CapSolver שלך.",+ "st.captcha.two_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון 2Captcha שלך. hCaptcha דורש CapSolver.",+ "st.captcha.two_key": "מפתח API של 2Captcha",+ "st.captcha.two_need_key": "יש להזין מפתח API תקין של 2Captcha: 32 תווים הקסדצימליים.",+ "st.captcha.two_saved": "נשמר. 2Captcha פעיל.",+ "st.captcha.providers_security": "המפתחות נשמרים כטקסט גלוי בדפדפן זה. כל ספק פעיל עשוי לחייב עבור ניסיון. מעבר לאחר פסק זמן עשוי לחייב את שני החשבונות גם אם המשימה הראשונה עדיין פועלת. אם לא מתקבל פתרון שמיש, הסוכן יבקש ממך להשלים את ה-CAPTCHA ידנית."+ },+ "fa": {+ "st.captcha.heading": "حل CAPTCHA",+ "st.captcha.order": "از یک سرویس یا هر دو استفاده کنید. ذخیرهٔ کلید معتبر سرویس را فعال و پاککردن آن غیرفعال میکند. اگر هر دو فعال باشند، ابتدا CapSolver و در صورت خطا یا پایان مهلت، 2Captcha امتحان میشود.",+ "st.captcha.capsolver_desc": "با حساب CapSolver خود reCAPTCHA v2/v3، hCaptcha، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید.",+ "st.captcha.two_desc": "با حساب 2Captcha خود reCAPTCHA v2/v3، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید. hCaptcha به CapSolver نیاز دارد.",+ "st.captcha.two_key": "کلید API سرویس 2Captcha",+ "st.captcha.two_need_key": "یک کلید API معتبر 2Captcha وارد کنید: ۳۲ نویسهٔ شانزدهشانزدهی.",+ "st.captcha.two_saved": "ذخیره شد. 2Captcha فعال است.",+ "st.captcha.providers_security": "کلیدها بهصورت متن ساده در این مرورگر ذخیره میشوند. هر سرویس فعال ممکن است برای تلاش هزینه بگیرد. تغییر سرویس پس از پایان مهلت ممکن است از هر دو حساب هزینه بگیرد، حتی اگر کار اول هنوز در حال اجرا باشد. اگر راهحل قابل استفادهای دریافت نشود، عامل از شما میخواهد CAPTCHA را دستی تکمیل کنید."+ },+ "hi": {+ "st.captcha.heading": "CAPTCHA हल करना",+ "st.captcha.order": "एक या दोनों सेवाओं का उपयोग करें। मान्य कुंजी सहेजने से सेवा सक्रिय होती है; साफ़ करने से बंद होती है। दोनों सक्रिय हों तो पहले CapSolver और विफलता या समय सीमा पूरी होने पर 2Captcha आज़माया जाता है।",+ "st.captcha.capsolver_desc": "अपने CapSolver खाते से reCAPTCHA v2/v3, hCaptcha, Turnstile और चित्र CAPTCHA अपने-आप हल करें।",+ "st.captcha.two_desc": "अपने 2Captcha खाते से reCAPTCHA v2/v3, Turnstile और चित्र CAPTCHA अपने-आप हल करें। hCaptcha के लिए CapSolver चाहिए।",+ "st.captcha.two_key": "2Captcha API कुंजी",+ "st.captcha.two_need_key": "मान्य 2Captcha API कुंजी दर्ज करें: 32 हेक्साडेसिमल वर्ण।",+ "st.captcha.two_saved": "सहेजा गया। 2Captcha सक्रिय है।",+ "st.captcha.providers_security": "कुंजियाँ इस ब्राउज़र में सादे पाठ के रूप में सहेजी जाती हैं। हर सक्रिय सेवा प्रयास के लिए शुल्क ले सकती है। समय सीमा पूरी होने पर दूसरी सेवा आज़माने से दोनों खातों पर शुल्क लग सकता है, भले ही पहला काम अभी चल रहा हो। उपयोग योग्य समाधान न मिलने पर एजेंट आपसे CAPTCHA मैन्युअल रूप से पूरा करने को कहता है।"+ },+ "bn": {+ "st.captcha.heading": "CAPTCHA সমাধান",+ "st.captcha.order": "একটি বা উভয় পরিষেবা ব্যবহার করুন। বৈধ কী সংরক্ষণ করলে পরিষেবা চালু হয়; মুছে ফেললে বন্ধ হয়। উভয়টি চালু থাকলে প্রথমে CapSolver, ব্যর্থ হলে বা সময় শেষ হলে 2Captcha চেষ্টা করা হয়।",+ "st.captcha.capsolver_desc": "আপনার CapSolver অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, hCaptcha, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন।",+ "st.captcha.two_desc": "আপনার 2Captcha অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন। hCaptcha-এর জন্য CapSolver প্রয়োজন।",+ "st.captcha.two_key": "2Captcha API কী",+ "st.captcha.two_need_key": "একটি বৈধ 2Captcha API কী লিখুন: ৩২টি হেক্সাডেসিমেল অক্ষর।",+ "st.captcha.two_saved": "সংরক্ষিত। 2Captcha চালু আছে।",+ "st.captcha.providers_security": "কীগুলি এই ব্রাউজারে সাধারণ পাঠ্য হিসেবে সংরক্ষিত থাকে। প্রতিটি সক্রিয় পরিষেবা চেষ্টার জন্য অর্থ নিতে পারে। সময় শেষ হলে অন্য পরিষেবায় যাওয়ার কারণে প্রথম কাজ চলতে থাকলেও উভয় অ্যাকাউন্টে খরচ হতে পারে। ব্যবহারযোগ্য সমাধান না এলে এজেন্ট আপনাকে CAPTCHA নিজে সম্পূর্ণ করতে বলে।"+ },+ "id": {+ "st.captcha.heading": "Penyelesaian CAPTCHA",+ "st.captcha.order": "Gunakan salah satu atau kedua layanan. Menyimpan kunci valid mengaktifkan layanan; Hapus menonaktifkannya. Jika keduanya aktif, CapSolver dicoba dahulu, lalu 2Captcha jika gagal atau batas waktu habis.",+ "st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun CapSolver Anda.",+ "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun 2Captcha Anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.two_key": "Kunci API 2Captcha",+ "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang valid: 32 karakter heksadesimal.",+ "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa di browser ini. Setiap layanan aktif dapat mengenakan biaya per percobaan. Peralihan setelah batas waktu habis dapat membebani kedua akun meskipun tugas pertama masih berjalan. Jika tidak ada solusi yang dapat digunakan, agen meminta Anda menyelesaikan CAPTCHA secara manual."+ },+ "ms": {+ "st.captcha.heading": "Penyelesaian CAPTCHA",+ "st.captcha.order": "Gunakan satu atau kedua-dua perkhidmatan. Menyimpan kunci sah mengaktifkan perkhidmatan; Kosongkan menyahaktifkannya. Jika kedua-duanya aktif, CapSolver dicuba dahulu, kemudian 2Captcha jika gagal atau tamat masa.",+ "st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile dan CAPTCHA imej secara automatik dengan akaun CapSolver anda.",+ "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile dan CAPTCHA imej secara automatik dengan akaun 2Captcha anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.two_key": "Kunci API 2Captcha",+ "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang sah: 32 aksara perenambelasan.",+ "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa dalam pelayar ini. Setiap perkhidmatan aktif boleh mengenakan caj bagi percubaan. Pertukaran selepas tamat masa boleh mengenakan caj pada kedua-dua akaun walaupun tugas pertama masih berjalan. Jika tiada penyelesaian yang boleh digunakan, ejen meminta anda melengkapkan CAPTCHA secara manual."+ },+ "vi": {+ "st.captcha.heading": "Giải CAPTCHA",+ "st.captcha.order": "Dùng một hoặc cả hai dịch vụ. Lưu khóa hợp lệ để bật dịch vụ; Xóa để tắt. Khi cả hai được bật, CapSolver được thử trước, rồi đến 2Captcha nếu thất bại hoặc hết thời gian chờ.",+ "st.captcha.capsolver_desc": "Tự động giải reCAPTCHA v2/v3, hCaptcha, Turnstile và CAPTCHA hình ảnh bằng tài khoản CapSolver của bạn.",+ "st.captcha.two_desc": "Tự động giải reCAPTCHA v2/v3, Turnstile và CAPTCHA hình ảnh bằng tài khoản 2Captcha của bạn. hCaptcha cần CapSolver.",+ "st.captcha.two_key": "Khóa API 2Captcha",+ "st.captcha.two_need_key": "Nhập khóa API 2Captcha hợp lệ: 32 ký tự thập lục phân.",+ "st.captcha.two_saved": "Đã lưu. 2Captcha đã được bật.",+ "st.captcha.providers_security": "Khóa được lưu dưới dạng văn bản thuần trong trình duyệt này. Mỗi dịch vụ đang bật có thể tính phí cho một lần thử. Việc chuyển dịch vụ sau khi hết thời gian chờ có thể tính phí cả hai tài khoản dù tác vụ đầu vẫn đang chạy. Nếu không có lời giải dùng được, tác nhân sẽ yêu cầu bạn hoàn tất CAPTCHA thủ công."+ },+ "th": {+ "st.captcha.heading": "การแก้ CAPTCHA",+ "st.captcha.order": "ใช้บริการเดียวหรือทั้งสองบริการได้ การบันทึกคีย์ที่ถูกต้องจะเปิดใช้บริการ และการล้างจะปิดใช้ หากเปิดทั้งสอง จะลอง CapSolver ก่อน แล้วจึงลอง 2Captcha เมื่อล้มเหลวหรือหมดเวลา",+ "st.captcha.capsolver_desc": "แก้ reCAPTCHA v2/v3, hCaptcha, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี CapSolver ของคุณ",+ "st.captcha.two_desc": "แก้ reCAPTCHA v2/v3, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี 2Captcha ของคุณ โดย hCaptcha ต้องใช้ CapSolver",+ "st.captcha.two_key": "คีย์ API ของ 2Captcha",+ "st.captcha.two_need_key": "ป้อนคีย์ API ของ 2Captcha ที่ถูกต้อง: อักขระฐานสิบหก 32 ตัว",+ "st.captcha.two_saved": "บันทึกแล้ว เปิดใช้ 2Captcha แล้ว",+ "st.captcha.providers_security": "คีย์จะถูกเก็บเป็นข้อความธรรมดาในเบราว์เซอร์นี้ แต่ละบริการที่เปิดใช้อาจคิดค่าบริการต่อการลอง การเปลี่ยนบริการหลังหมดเวลาอาจทำให้ทั้งสองบัญชีถูกคิดค่าบริการ แม้งานแรกยังทำงานอยู่ หากไม่มีคำตอบที่ใช้ได้ เอเจนต์จะขอให้คุณทำ CAPTCHA ด้วยตนเอง"+ },+ "tl": {+ "st.captcha.heading": "Paglutas ng CAPTCHA",+ "st.captcha.order": "Gamitin ang isa o parehong serbisyo. Ang pag-save ng wastong key ay nagpapagana sa serbisyo; ang pag-clear ay nagdi-disable nito. Kapag parehong aktibo, CapSolver muna, saka 2Captcha kapag nabigo o nag-timeout.",+ "st.captcha.capsolver_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, hCaptcha, Turnstile, at mga CAPTCHA na larawan gamit ang iyong CapSolver account.",+ "st.captcha.two_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, Turnstile, at mga CAPTCHA na larawan gamit ang iyong 2Captcha account. Kailangan ng CapSolver para sa hCaptcha.",+ "st.captcha.two_key": "API key ng 2Captcha",+ "st.captcha.two_need_key": "Maglagay ng wastong API key ng 2Captcha: 32 hexadecimal na character.",+ "st.captcha.two_saved": "Na-save. Naka-enable ang 2Captcha.",+ "st.captcha.providers_security": "Nakaimbak ang mga key bilang plain text sa browser na ito. Maaaring maningil ang bawat aktibong serbisyo para sa isang pagsubok. Ang paglipat pagkatapos ng timeout ay maaaring maningil sa parehong account kahit tumatakbo pa ang unang gawain. Kung walang magagamit na solusyon, hihilingin ng agent na kumpletuhin mo mismo ang CAPTCHA."+ }+};diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.jsindex dda2f21a6..38a78f5f3 100644--- a/src/chrome/src/ui/locales/de.js+++ b/src/chrome/src/ui/locales/de.js@@ -904,9 +904,6 @@ export default {'st.memory.security_html': '<strong>Datenschutz:</strong> Benutzermemorie wird als Klartext in diesem Browser-Profil gespeichert...',// --- CAPTCHA settings ---- 'st.captcha.desc_html': 'Lassen Sie den Agenten CAPTCHAs automatisch über die <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a>-API lösen. Unterstützt reCAPTCHA v2/v3, hCaptcha und Cloudflare Turnstile. Das Speichern eines gültigen API-Schlüssels aktiviert CapSolver automatisch; ohne Schlüssel hält der Agent an und bittet Sie, das CAPTCHA selbst zu lösen. CapSolver berechnet jede Lösung (~$0.001–$0.003); Sie verwenden Ihr eigenes Konto und Ihren eigenen API-Schlüssel.',- 'st.captcha.enabled.label': 'CapSolver aktivieren',- 'st.captcha.enabled.desc': 'Wenn der Agent auf ein CAPTCHA trifft, wird CapSolver einmal aufgerufen, bevor er Sie zur Lösung auffordert.','st.captcha.api_key.label': 'CapSolver API-Schlüssel','st.captcha.save': 'Schlüssel speichern','st.captcha.check_balance': 'Guthaben prüfen',@@ -917,7 +914,6 @@ export default {'st.captcha.need_key': 'Geben Sie einen gültigen CapSolver-API-Schlüssel ein, der mit CAP- beginnt.','st.captcha.balance_ok': 'OK — Guthaben: {balance}','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": "Zusätzliche Prüfung geplanter Überwachungen und Aufgabenabschlüsse.","st.system_one.enabled.label": "Jev aktivieren",diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.jsindex ac6bc84f6..4505c1462 100644--- a/src/chrome/src/ui/locales/en.js+++ b/src/chrome/src/ui/locales/en.js@@ -967,9 +967,6 @@ export default {'st.memory.reason.not_found': 'No saved memory has that ID.','st.memory.security_html': '<strong>Privacy:</strong> user memory is stored in plaintext in this browser profile. When enabled, active memory records are sent to whichever LLM provider you configure as part of the system prompt. Do not store passwords, API keys, tokens, recovery codes, or sensitive secrets here.',- 'st.captcha.desc_html': 'Let the agent solve CAPTCHAs automatically via the <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a> API. Supports reCAPTCHA v2/v3, hCaptcha, and Cloudflare Turnstile. Saving a valid API key enables CapSolver automatically; without one, the agent stops and asks you to solve the captcha yourself. CapSolver charges per solve (~$0.001–$0.003); you bring your own account and API key.',- 'st.captcha.enabled.label': 'Enable CapSolver',- 'st.captcha.enabled.desc': 'When the agent hits a CAPTCHA it will call CapSolver once before falling back to asking you. Requires an API key below.','st.captcha.api_key.label': 'CapSolver API Key','st.captcha.save': 'Save Key','st.captcha.check_balance': 'Check Balance',@@ -980,7 +977,6 @@ export default {'st.captcha.need_key': 'Enter a valid CapSolver API key beginning with CAP-.','st.captcha.balance_ok': 'OK — balance: {balance}','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": "Extra verification for scheduled watches and task completion.","st.system_one.enabled.label": "Enable Jev",diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.jsindex 19f8f23e7..de3d64264 100644--- a/src/chrome/src/ui/locales/es.js+++ b/src/chrome/src/ui/locales/es.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "¡Conectado! Modelo: {model}","st.transcription.failed": "Falló: {error}","st.transcription.fill_required": "Rellena primero la URL base y el modelo.",- "st.captcha.desc_html": "Deja que el agente resuelva CAPTCHAs automáticamente mediante la API de <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Admite reCAPTCHA v2/v3, hCaptcha y Cloudflare Turnstile. Al guardar una clave de API válida, CapSolver se activa automáticamente; sin una, el agente se detiene y te pide que resuelvas el captcha tú mismo. CapSolver cobra por cada resolución (~$0.001–$0.003); utilizas tu propia cuenta y clave de API.",- "st.captcha.enabled.label": "Activar CapSolver",- "st.captcha.enabled.desc": "Cuando el agente se encuentra con un CAPTCHA, llamará a CapSolver una vez antes de recurrir a pedírtelo a ti. Requiere una clave de API más abajo.","st.captcha.api_key.label": "Clave de API de CapSolver","st.captcha.save": "Guardar clave","st.captcha.check_balance": "Consultar saldo",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "Introduce una clave de API de CapSolver válida que empiece por CAP-.","st.captcha.balance_ok": "OK — saldo: {balance}","st.captcha.balance_fail": "Falló: {error}",- "st.captcha.security_html": "<strong>Atención:</strong> la clave de API se guarda <strong>en texto plano</strong> en el almacenamiento local del navegador. CapSolver cobra a tu cuenta por cada resolución; el agente solo la llamará cuando un CAPTCHA bloquee realmente un paso (como máximo una vez por encuentro: no reintentará tras un fallo). Los términos de servicio de algunos sitios prohíben la resolución automatizada de CAPTCHAs; usa tu criterio.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Acciones sugeridas',diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.jsindex 65337c470..de4a67aba 100644--- a/src/chrome/src/ui/locales/fa.js+++ b/src/chrome/src/ui/locales/fa.js@@ -963,9 +963,6 @@ export default {'st.memory.reason.not_found': "هیچ حافظه ذخیره شده ای آن شناسه را ندارد.",'st.memory.security_html': "<strong>حریم خصوصی:</strong> حافظه کاربر به صورت متن ساده در این نمایه مرورگر ذخیره می شود. هنگامی که فعال باشد، سوابق حافظه فعال به هر ارائه دهنده LLM که به عنوان بخشی از درخواست سیستم پیکربندی می کنید ارسال می شود. رمزهای عبور، کلیدهای API، نشانهها، کدهای بازیابی یا اسرار حساس را در اینجا ذخیره نکنید.",- 'st.captcha.desc_html': "به عامل اجازه دهید CAPTCHAها را بهطور خودکار از طریق API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> حل کند. از reCAPTCHA v2/v3، hCaptcha و Cloudflare Turnstile پشتیبانی میکند. با ذخیره یک کلید API معتبر، CapSolver بهطور خودکار فعال میشود؛ بدون کلید، عامل متوقف میشود و از شما میخواهد CAPTCHA را خودتان حل کنید. CapSolver برای هر حل هزینه دریافت میکند (~$0.001–$0.003)؛ از حساب و کلید API خودتان استفاده میکنید.",- 'st.captcha.enabled.label': "CapSolver را فعال کنید",- 'st.captcha.enabled.desc': "هنگامی که عامل به یک CAPTCHA برخورد می کند، قبل از اینکه دوباره از شما بپرسد، یک بار با CapSolver تماس می گیرد. به یک کلید API در زیر نیاز دارد.",'st.captcha.api_key.label': "کلید API CapSolver",'st.captcha.save': "ذخیره کلید",'st.captcha.check_balance': "تعادل را بررسی کنید",@@ -976,7 +973,6 @@ export default {'st.captcha.need_key': "یک کلید API معتبر CapSolver که با CAP- شروع میشود وارد کنید.",'st.captcha.balance_ok': "خوب - تعادل: {balance}",'st.captcha.balance_fail': "ناموفق: {error}",- 'st.captcha.security_html': "<strong>هدآپ:</strong> کلید API ذخیره می شود <strong>در متن ساده</strong> در حافظه محلی مرورگر CapSolver برای هر حل حساب شما را شارژ می کند. عامل فقط زمانی آن را فراخوانی می کند که یک CAPTCHA در واقع یک مرحله را مسدود کند (حداکثر یک بار در هر برخورد - در صورت شکست مجدداً تلاش نمی کند). شرایط خدمات برخی از سایت ها حل خودکار CAPTCHA را ممنوع می کند. از قضاوت خود استفاده کنید","st.system_one.desc_html": "بررسی تکمیلی پایشهای زمانبندیشده و تکمیل کارها.","st.system_one.enabled.label": "فعالسازی Jev",diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.jsindex 95c686859..58844ca0c 100644--- a/src/chrome/src/ui/locales/fr.js+++ b/src/chrome/src/ui/locales/fr.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "Connecté ! Modèle : {model}","st.transcription.failed": "Échec : {error}","st.transcription.fill_required": "Remplissez d'abord l'URL de base et le modèle.",- "st.captcha.desc_html": "Laissez l'agent résoudre les CAPTCHA automatiquement via l'API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Prend en charge reCAPTCHA v2/v3, hCaptcha et Cloudflare Turnstile. L'enregistrement d'une clé API valide active automatiquement CapSolver ; sans clé, l'agent s'arrête et vous demande de résoudre le CAPTCHA vous-même. CapSolver facture chaque résolution (~$0.001–$0.003) ; vous utilisez votre propre compte et votre propre clé API.",- "st.captcha.enabled.label": "Activer CapSolver",- "st.captcha.enabled.desc": "Lorsque l'agent rencontre un CAPTCHA, il appellera CapSolver une fois avant de se rabattre sur une demande de votre part. Nécessite une clé d'API ci-dessous.","st.captcha.api_key.label": "Clé d'API CapSolver","st.captcha.save": "Enregistrer la clé","st.captcha.check_balance": "Vérifier le solde",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "Saisissez une clé API CapSolver valide commençant par CAP-.","st.captcha.balance_ok": "OK — solde : {balance}","st.captcha.balance_fail": "Échec : {error}",- "st.captcha.security_html": "<strong>À noter :</strong> la clé d'API est stockée <strong>en clair</strong> dans le stockage local du navigateur. CapSolver facture votre compte pour chaque résolution ; l'agent ne l'appellera que lorsqu'un CAPTCHA bloque réellement une étape (au plus une fois par rencontre — il ne réessaiera pas en cas d'échec). Les conditions d'utilisation de certains sites interdisent la résolution automatisée de CAPTCHA ; faites preuve de discernement.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Actions suggérées',diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.jsindex 19e71e557..61fb4370f 100644--- a/src/chrome/src/ui/locales/he.js+++ b/src/chrome/src/ui/locales/he.js@@ -860,9 +860,6 @@ export default {"st.memory.reason.invalid_or_sensitive": "לא נשמר: הטקסט ריק לאחר הניקוי או שנראה כי הוא מכיל סוד (סיסמה, מפתח API או אסימון).","st.memory.reason.not_found": "לא נמצא זיכרון שמור עם המזהה הזה.","st.memory.security_html": "<strong>פרטיות:</strong> זיכרון המשתמש נשמר כטקסט גלוי בפרופיל הדפדפן הזה. כאשר הזיכרון מופעל, רשומות פעילות נשלחות לספק ה-LLM שהגדרת כחלק מהנחיית המערכת. אין לשמור כאן סיסמאות, מפתחות API, אסימונים, קודי שחזור או סודות רגישים.",- "st.captcha.desc_html": "אפשר לסוכן לפתור CAPTCHA באופן אוטומטי באמצעות API של <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. נתמכים reCAPTCHA v2/v3, hCaptcha ו-Cloudflare Turnstile. שמירת מפתח API תקין מפעילה את CapSolver אוטומטית; ללא מפתח, הסוכן נעצר ומבקש ממך לפתור את ה-CAPTCHA בעצמך. CapSolver גובה תשלום לכל פתרון (כ-$0.001–$0.003); נעשה שימוש בחשבון ובמפתח API משלך.",- "st.captcha.enabled.label": "הפעל את CapSolver",- "st.captcha.enabled.desc": "כאשר CAPTCHA חוסם את הסוכן, הוא ינסה לפנות ל-CapSolver פעם אחת לפני שיבקש ממך לפתור אותו. נדרש מפתח API למטה.","st.captcha.api_key.label": "מפתח API של CapSolver","st.captcha.save": "שמור מפתח","st.captcha.check_balance": "בדוק יתרה",@@ -873,7 +870,6 @@ export default {"st.captcha.need_key": "יש להזין מפתח API תקין של CapSolver שמתחיל ב-CAP-.","st.captcha.balance_ok": "תקין — יתרה: {balance}","st.captcha.balance_fail": "נכשל: {error}",- "st.captcha.security_html": "<strong>לתשומת לבך:</strong> מפתח ה-API נשמר <strong>כטקסט גלוי</strong> באחסון המקומי של הדפדפן. CapSolver מחייב את החשבון שלך על כל פתרון; הסוכן יפנה אליו רק כאשר CAPTCHA חוסם שלב בפועל, ולכל היותר פעם אחת בכל מפגש. תנאי השימוש של אתרים מסוימים אוסרים פתרון CAPTCHA אוטומטי; הפעל שיקול דעת.","hist.title": "WebBrain היסטוריית צ'אט","hist.records": "{n} רשומות","hist.record": "{n} רְשׁוּמָה",diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.jsindex e51e954c6..6605e5b87 100644--- a/src/chrome/src/ui/locales/hi.js+++ b/src/chrome/src/ui/locales/hi.js@@ -963,9 +963,6 @@ export default {'st.memory.reason.not_found': "किसी भी सहेजी गई मेमोरी में वह आईडी नहीं है।",'st.memory.security_html': "<strong>गोपनीयता:</strong> इस ब्राउज़र प्रोफ़ाइल में उपयोगकर्ता मेमोरी को प्लेनटेक्स्ट में संग्रहीत किया जाता है। सक्षम होने पर, सक्रिय मेमोरी रिकॉर्ड सिस्टम प्रॉम्प्ट के भाग के रूप में आपके द्वारा कॉन्फ़िगर किए गए किसी भी एलएलएम प्रदाता को भेजे जाते हैं। यहां पासवर्ड, एपीआई कुंजी, टोकन, पुनर्प्राप्ति कोड या संवेदनशील रहस्य संग्रहीत न करें।",- 'st.captcha.desc_html': "एजेंट को <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API के माध्यम से CAPTCHA अपने-आप हल करने दें। यह reCAPTCHA v2/v3, hCaptcha और Cloudflare Turnstile का समर्थन करता है। मान्य API कुंजी सहेजने पर CapSolver अपने-आप सक्रिय हो जाता है; कुंजी के बिना एजेंट रुकता है और आपसे CAPTCHA स्वयं हल करने को कहता है। CapSolver हर समाधान के लिए शुल्क लेता है (~$0.001–$0.003); आप अपना खाता और API कुंजी उपयोग करते हैं।",- 'st.captcha.enabled.label': "कैपसॉल्वर सक्षम करें",- 'st.captcha.enabled.desc': "जब एजेंट कैप्चा दबाता है तो वह आपसे पूछने से पहले एक बार कैपसॉल्वर को कॉल करेगा। नीचे एक एपीआई कुंजी की आवश्यकता है।",'st.captcha.api_key.label': "कैपसॉल्वर एपीआई कुंजी",'st.captcha.save': "कुंजी सहेजें",'st.captcha.check_balance': "शेष राशि जांचें",@@ -976,7 +973,6 @@ export default {'st.captcha.need_key': "CAP- से शुरू होने वाली मान्य CapSolver API कुंजी दर्ज करें।",'st.captcha.balance_ok': "ठीक है - संतुलन: {balance}",'st.captcha.balance_fail': "विफल: {error}",- 'st.captcha.security_html': "<strong>सावधान:</strong> एपीआई कुंजी संग्रहीत है <strong>सादे पाठ में</strong> ब्राउज़र स्थानीय भंडारण में. कैपसॉल्वर प्रत्येक समाधान के लिए आपके खाते से शुल्क लेता है; एजेंट इसे केवल तभी कॉल करेगा जब कैप्चा वास्तव में एक चरण को अवरुद्ध करता है (प्रति मुठभेड़ अधिकतम एक बार - यह विफलता पर पुनः प्रयास नहीं करेगा)। कुछ साइटों की सेवा की शर्तें स्वचालित कैप्चा समाधान पर रोक लगाती हैं; अपने निर्णय का प्रयोग करें.","st.system_one.desc_html": "निर्धारित निगरानी और कार्य पूर्ण होने की अतिरिक्त जाँच।","st.system_one.enabled.label": "Jev चालू करें",diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.jsindex d0c0d754e..4f63b26c9 100644--- a/src/chrome/src/ui/locales/id.js+++ b/src/chrome/src/ui/locales/id.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "Terhubung! Model: {model}","st.transcription.failed": "Gagal: {error}","st.transcription.fill_required": "Isi URL dasar dan Model terlebih dahulu.",- "st.captcha.desc_html": "Biarkan agen menyelesaikan CAPTCHA secara otomatis melalui API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Mendukung reCAPTCHA v2/v3, hCaptcha, dan Cloudflare Turnstile. Menyimpan kunci API yang valid akan mengaktifkan CapSolver secara otomatis; tanpa kunci, agen berhenti dan meminta Anda menyelesaikan CAPTCHA sendiri. CapSolver mengenakan biaya per penyelesaian (~$0.001–$0.003); Anda menggunakan akun dan kunci API sendiri.",- "st.captcha.enabled.label": "Aktifkan CapSolver",- "st.captcha.enabled.desc": "Saat agen menemui CAPTCHA, ia akan memanggil CapSolver sekali sebelum kembali bertanya kepada Anda. Memerlukan kunci API di bawah.","st.captcha.api_key.label": "Kunci API CapSolver","st.captcha.save": "Simpan Kunci","st.captcha.check_balance": "Periksa Saldo",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "Masukkan kunci API CapSolver valid yang diawali CAP-.","st.captcha.balance_ok": "OK — saldo: {balance}","st.captcha.balance_fail": "Gagal: {error}",- "st.captcha.security_html": "<strong>Perhatian:</strong> kunci API disimpan <strong>dalam bentuk teks biasa</strong> di penyimpanan lokal peramban. CapSolver menarik biaya akun Anda untuk setiap penyelesaian; agen hanya akan memanggilnya saat CAPTCHA benar-benar memblokir sebuah langkah (maksimal sekali per kejadian — ia tidak akan mengulang saat gagal). Ketentuan layanan beberapa situs melarang penyelesaian CAPTCHA otomatis; gunakan pertimbangan Anda.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Tindakan yang disarankan',diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.jsindex ec91ad59e..368fa2274 100644--- a/src/chrome/src/ui/locales/ja.js+++ b/src/chrome/src/ui/locales/ja.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "接続しました!モデル: {model}","st.transcription.failed": "失敗: {error}","st.transcription.fill_required": "先にベース URL とモデルを入力してください。",- "st.captcha.desc_html": "<a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API を使って、エージェントに CAPTCHA を自動で解かせます。reCAPTCHA v2/v3、hCaptcha、Cloudflare Turnstile に対応しています。有効な API キーを保存すると CapSolver が自動的に有効になります。キーがない場合、エージェントは停止し、CAPTCHA を手動で解くよう求めます。CapSolver は解決ごとに課金します(約 ~$0.001–$0.003)。ご自身のアカウントと API キーを使用します。",- "st.captcha.enabled.label": "CapSolver を有効化",- "st.captcha.enabled.desc": "エージェントが CAPTCHA に遭遇すると、あなたに尋ねる前にまず CapSolver を 1 回呼び出します。下記の API キーが必要です。","st.captcha.api_key.label": "CapSolver API キー","st.captcha.save": "キーを保存","st.captcha.check_balance": "残高を確認",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "CAP- で始まる有効な CapSolver API キーを入力してください。","st.captcha.balance_ok": "OK — 残高: {balance}","st.captcha.balance_fail": "失敗: {error}",- "st.captcha.security_html": "<strong>ご注意:</strong> API キーはブラウザのローカルストレージに<strong>平文</strong>で保存されます。CapSolver は解くたびにあなたのアカウントに課金します。エージェントは CAPTCHA が実際にステップをブロックしたときにのみ呼び出します(1 回の遭遇につき最大 1 回 — 失敗しても再試行はしません)。一部のサイトの利用規約は自動的な CAPTCHA の解決を禁止しています。ご自身の判断でご利用ください。",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'おすすめのアクション',diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.jsindex e779ed039..8c26d3a49 100644--- a/src/chrome/src/ui/locales/ko.js+++ b/src/chrome/src/ui/locales/ko.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "연결됨! 모델: {model}","st.transcription.failed": "실패: {error}","st.transcription.fill_required": "먼저 기본 URL과 모델을 입력하세요.",- "st.captcha.desc_html": "에이전트가 <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API를 통해 CAPTCHA를 자동으로 풀게 합니다. reCAPTCHA v2/v3, hCaptcha, Cloudflare Turnstile을 지원합니다. 유효한 API 키를 저장하면 CapSolver가 자동으로 활성화됩니다. 키가 없으면 에이전트가 멈추고 CAPTCHA를 직접 풀어 달라고 요청합니다. CapSolver는 풀이당 요금을 부과하며(~$0.001–$0.003), 본인의 계정과 API 키를 사용합니다.",- "st.captcha.enabled.label": "CapSolver 사용",- "st.captcha.enabled.desc": "에이전트가 CAPTCHA를 만나면 사용자에게 묻기로 폴백하기 전에 CapSolver를 한 번 호출합니다. 아래에 API 키가 필요합니다.","st.captcha.api_key.label": "CapSolver API 키","st.captcha.save": "키 저장","st.captcha.check_balance": "잔액 확인",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "CAP-로 시작하는 유효한 CapSolver API 키를 입력하세요.","st.captcha.balance_ok": "정상 — 잔액: {balance}","st.captcha.balance_fail": "실패: {error}",- "st.captcha.security_html": "<strong>참고:</strong> API 키는 브라우저 로컬 저장소에 <strong>평문으로</strong> 저장됩니다. CapSolver는 풀이마다 계정에 요금을 부과합니다. 에이전트는 CAPTCHA가 실제로 단계를 막을 때만 이를 호출하며(한 번 만날 때마다 최대 한 번 — 실패해도 재시도하지 않습니다), 일부 사이트의 서비스 약관은 자동 CAPTCHA 풀이를 금지하므로, 판단에 따라 사용하세요.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': '추천 작업',diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.jsindex 5c9e6da1e..b30da3bad 100644--- a/src/chrome/src/ui/locales/ms.js+++ b/src/chrome/src/ui/locales/ms.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "Tersambung! Model: {model}","st.transcription.failed": "Gagal: {error}","st.transcription.fill_required": "Isi URL Asas dan Model terlebih dahulu.",- "st.captcha.desc_html": "Biarkan ejen menyelesaikan CAPTCHA secara automatik melalui API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Menyokong reCAPTCHA v2/v3, hCaptcha dan Cloudflare Turnstile. Menyimpan kunci API yang sah akan mengaktifkan CapSolver secara automatik; tanpa kunci, ejen berhenti dan meminta anda menyelesaikan CAPTCHA sendiri. CapSolver mengenakan bayaran bagi setiap penyelesaian (~$0.001–$0.003); anda menggunakan akaun dan kunci API sendiri.",- "st.captcha.enabled.label": "Dayakan CapSolver",- "st.captcha.enabled.desc": "Apabila ejen menemui CAPTCHA, ia akan memanggil CapSolver sekali sebelum berundur untuk bertanya kepada anda. Memerlukan kunci API di bawah.","st.captcha.api_key.label": "Kunci API CapSolver","st.captcha.save": "Simpan Kunci","st.captcha.check_balance": "Semak Baki",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "Masukkan kunci API CapSolver yang sah dan bermula dengan CAP-.","st.captcha.balance_ok": "OK — baki: {balance}","st.captcha.balance_fail": "Gagal: {error}",- "st.captcha.security_html": "<strong>Perhatian:</strong> kunci API disimpan <strong>sebagai teks biasa</strong> dalam storan tempatan pelayar. CapSolver mengenakan bayaran kepada akaun anda bagi setiap penyelesaian; ejen hanya akan memanggilnya apabila CAPTCHA benar-benar menyekat sesuatu langkah (maksimum sekali setiap pertemuan — ia tidak akan mencuba semula apabila gagal). Sesetengah syarat perkhidmatan laman melarang penyelesaian CAPTCHA automatik; gunakan budi bicara anda.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Tindakan yang dicadangkan',diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.jsindex d79d629bf..1b33eb645 100644--- a/src/chrome/src/ui/locales/nl.js+++ b/src/chrome/src/ui/locales/nl.js@@ -864,9 +864,6 @@ export default {'st.memory.reason.invalid_or_sensitive': 'Niet opgeslagen: de tekst is leeg na opschonen...','st.memory.reason.not_found': 'Geen opgeslagen geheugen heeft die ID.','st.memory.security_html': '<strong>Privacy:</strong> gebruikersgeheugen wordt in platte tekst opgeslagen...',- 'st.captcha.desc_html': 'Laat de agent CAPTCHA\'s automatisch oplossen via de <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a>-API. Ondersteunt reCAPTCHA v2/v3, hCaptcha en Cloudflare Turnstile. Door een geldige API-sleutel op te slaan wordt CapSolver automatisch ingeschakeld; zonder sleutel stopt de agent en vraagt deze u de CAPTCHA zelf op te lossen. CapSolver brengt kosten per oplossing in rekening (~$0.001–$0.003); u gebruikt uw eigen account en API-sleutel.',- 'st.captcha.enabled.label': 'CapSolver inschakelen',- 'st.captcha.enabled.desc': 'Wanneer de agent een CAPTCHA tegenkomt, belt deze één keer CapSolver...','st.captcha.api_key.label': 'CapSolver API-sleutel','st.captcha.save': 'Sleutel opslaan','st.captcha.check_balance': 'Saldo controleren',@@ -877,7 +874,6 @@ export default {'st.captcha.need_key': 'Voer een geldige CapSolver API-sleutel in die met CAP- begint.','st.captcha.balance_ok': 'OK — saldo: {balance}','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": "Extra controle van geplande bewakingen en voltooide taken.","st.system_one.enabled.label": "Jev inschakelen",diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.jsindex 91c14e54e..164c77d38 100644--- a/src/chrome/src/ui/locales/pl.js+++ b/src/chrome/src/ui/locales/pl.js@@ -646,9 +646,6 @@ export default {'st.profile.saved': 'Zapisano.','st.profile.cleared': 'Wyczyszczono.','st.profile.security_html': '<strong>Bezpieczeństwo — przeczytaj to:</strong><br><ul style="margin:6px 0 0 18px;padding:0;line-height:1.55;"><li>Tekst wprowadzony tutaj jest przechowywany <strong>w postaci jawnej</strong> w lokalnej pamięci przeglądarki. <strong>Nie</strong> jest przesyłany do projektu WebBrain — ale <strong>jest</strong> wysyłany do skonfigurowanego dostawcy LLM w każdej turze, jako część promptu systemowego.</li><li><strong>Nie umieszczaj tutaj haseł do ważnych kont</strong> (Google, Apple, iCloud, bankowość, służbowe SSO, główny e-mail). Te konta powinny używać 2FA i i tak nie powinieneś przekazywać ich agentowi.</li><li><strong>Jednorazowe hasło</strong>, którego używasz wielokrotnie do mało istotnych rejestracji (newslettery, darmowe wersje próbne, konta forów) to docelowy przypadek użycia.</li><li>Jeśli ten profil przeglądarki kiedykolwiek zostanie naruszony, atakujący z dostępem do dysku może odczytać ten tekst. Ogranicz go do minimum.</li></ul>',- 'st.captcha.desc_html': 'Pozwól agentowi automatycznie rozwiązywać CAPTCHA przez API <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a>. Obsługuje reCAPTCHA v2/v3, hCaptcha i Cloudflare Turnstile. Zapisanie prawidłowego klucza API automatycznie włącza CapSolver; bez klucza agent zatrzymuje się i prosi o samodzielne rozwiązanie CAPTCHA. CapSolver pobiera opłatę za każde rozwiązanie (~0,001–0,003 USD); używasz własnego konta i klucza API.',- 'st.captcha.enabled.label': 'Włącz CapSolver',- 'st.captcha.enabled.desc': 'Gdy agent natrafi na CAPTCHA, wywoła CapSolver raz, zanim wróci do proszenia Ciebie. Wymaga klucza API poniżej.','st.captcha.api_key.label': 'Klucz API CapSolver','st.captcha.save': 'Zapisz klucz','st.captcha.check_balance': 'Sprawdź saldo',@@ -659,7 +656,6 @@ export default {'st.captcha.need_key': 'Wprowadź prawidłowy klucz API CapSolver zaczynający się od CAP-.','st.captcha.balance_ok': 'OK — saldo: {balance}','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": "Dodatkowa weryfikacja zaplanowanego monitorowania i ukończenia zadań.","st.system_one.enabled.label": "Włącz Jev",diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.jsindex b8c078b1f..60ff49d20 100644--- a/src/chrome/src/ui/locales/pt.js+++ b/src/chrome/src/ui/locales/pt.js@@ -963,9 +963,6 @@ export default {'st.memory.reason.not_found': "Nenhuma memória salva possui esse ID.",'st.memory.security_html': "<strong>Privacidade:</strong> a memória do usuário é armazenada em texto simples neste perfil de navegador. Quando ativado, os registros de memória ativa são enviados para qualquer provedor LLM configurado como parte do prompt do sistema. Não armazene senhas, chaves de API, tokens, códigos de recuperação ou segredos confidenciais aqui.",- 'st.captcha.desc_html': "Deixe o agente resolver CAPTCHAs automaticamente pela API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Suporta reCAPTCHA v2/v3, hCaptcha e Cloudflare Turnstile. Salvar uma chave de API válida ativa o CapSolver automaticamente; sem uma chave, o agente para e pede que você resolva o CAPTCHA. O CapSolver cobra por resolução (~$0,001–$0,003); você usa sua própria conta e chave de API.",- 'st.captcha.enabled.label': "Habilitar CapSolver",- 'st.captcha.enabled.desc': "Quando o agente atingir um CAPTCHA, ele ligará para o CapSolver uma vez antes de voltar a perguntar a você. Requer uma chave de API abaixo.",'st.captcha.api_key.label': "Chave de API CapSolver",'st.captcha.save': "Salvar chave",'st.captcha.check_balance': "Verifique o saldo",@@ -976,7 +973,6 @@ export default {'st.captcha.need_key': "Insira uma chave de API válida do CapSolver que comece com CAP-.",'st.captcha.balance_ok': "OK - saldo: {balance}",'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": "Verificação adicional de monitoramentos e tarefas agendadas.","st.system_one.enabled.label": "Ativar Jev",diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.jsindex fc21b576c..df1de723d 100644--- a/src/chrome/src/ui/locales/ru.js+++ b/src/chrome/src/ui/locales/ru.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "Подключено! Модель: {model}","st.transcription.failed": "Сбой: {error}","st.transcription.fill_required": "Сначала заполните базовый URL и модель.",- "st.captcha.desc_html": "Позвольте агенту автоматически решать CAPTCHA через API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Поддерживает reCAPTCHA v2/v3, hCaptcha и Cloudflare Turnstile. Сохранение действительного API-ключа автоматически включает CapSolver; без ключа агент останавливается и просит вас решить CAPTCHA самостоятельно. CapSolver берёт плату за каждое решение (~$0.001–$0.003); используется ваш аккаунт и API-ключ.",- "st.captcha.enabled.label": "Включить CapSolver",- "st.captcha.enabled.desc": "Когда агент сталкивается с CAPTCHA, он один раз обращается к CapSolver, прежде чем перейти к запросу к вам. Требуется API-ключ ниже.","st.captcha.api_key.label": "API-ключ CapSolver","st.captcha.save": "Сохранить ключ","st.captcha.check_balance": "Проверить баланс",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "Введите действительный API-ключ CapSolver, начинающийся с CAP-.","st.captcha.balance_ok": "ОК — баланс: {balance}","st.captcha.balance_fail": "Сбой: {error}",- "st.captcha.security_html": "<strong>Обратите внимание:</strong> API-ключ хранится <strong>в открытом виде</strong> в локальном хранилище браузера. CapSolver списывает средства с вашего аккаунта за каждое решение; агент обращается к нему только когда CAPTCHA действительно блокирует шаг (максимум один раз за встречу — повторных попыток при сбое не будет). Условия использования некоторых сайтов запрещают автоматическое решение CAPTCHA; действуйте на своё усмотрение.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Рекомендуемые действия',diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.jsindex 87cb25715..7e31faca3 100644--- a/src/chrome/src/ui/locales/th.js+++ b/src/chrome/src/ui/locales/th.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "เชื่อมต่อแล้ว! โมเดล: {model}","st.transcription.failed": "ล้มเหลว: {error}","st.transcription.fill_required": "กรอก URL ฐานและโมเดลก่อน",- "st.captcha.desc_html": "ให้เอเจนต์แก้ CAPTCHA โดยอัตโนมัติผ่าน API ของ <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> รองรับ reCAPTCHA v2/v3, hCaptcha และ Cloudflare Turnstile การบันทึกคีย์ API ที่ถูกต้องจะเปิดใช้ CapSolver โดยอัตโนมัติ หากไม่มีคีย์ เอเจนต์จะหยุดและขอให้คุณแก้ CAPTCHA เอง CapSolver คิดค่าบริการต่อการแก้หนึ่งครั้ง (~$0.001–$0.003) โดยใช้บัญชีและคีย์ API ของคุณเอง",- "st.captcha.enabled.label": "เปิดใช้งาน CapSolver",- "st.captcha.enabled.desc": "เมื่อเอเจนต์เจอ CAPTCHA มันจะเรียก CapSolver หนึ่งครั้งก่อนถอยไปถามคุณ ต้องมีคีย์ API ด้านล่าง","st.captcha.api_key.label": "คีย์ API ของ CapSolver","st.captcha.save": "บันทึกคีย์","st.captcha.check_balance": "ตรวจสอบยอดคงเหลือ",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "กรอกคีย์ API ของ CapSolver ที่ถูกต้องและขึ้นต้นด้วย CAP-","st.captcha.balance_ok": "สำเร็จ — ยอดคงเหลือ: {balance}","st.captcha.balance_fail": "ล้มเหลว: {error}",- "st.captcha.security_html": "<strong>โปรดทราบ:</strong> คีย์ API ถูกเก็บ <strong>เป็นข้อความธรรมดา</strong> ใน local storage ของเบราว์เซอร์ CapSolver คิดเงินจากบัญชีของคุณทุกครั้งที่แก้ เอเจนต์จะเรียกใช้เฉพาะเมื่อ CAPTCHA บล็อกขั้นตอนจริง ๆ เท่านั้น (สูงสุดหนึ่งครั้งต่อการพบหนึ่งครั้ง — จะไม่ลองใหม่เมื่อล้มเหลว) ข้อกำหนดการให้บริการของบางเว็บไซต์ห้ามการแก้ CAPTCHA แบบอัตโนมัติ โปรดใช้วิจารณญาณ",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'การดำเนินการที่แนะนำ',diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.jsindex df9c2b767..97a0e28ef 100644--- a/src/chrome/src/ui/locales/tl.js+++ b/src/chrome/src/ui/locales/tl.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "Konektado! Modelo: {model}","st.transcription.failed": "Nabigo: {error}","st.transcription.fill_required": "Punan muna ang Base URL at Modelo.",- "st.captcha.desc_html": "Hayaan ang ahente na awtomatikong lutasin ang mga CAPTCHA sa pamamagitan ng <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API. Sinusuportahan ang reCAPTCHA v2/v3, hCaptcha, at Cloudflare Turnstile. Awtomatikong pinapagana ang CapSolver kapag nag-save ka ng wastong API key; kung walang key, hihinto ang ahente at hihilingin sa iyong lutasin mismo ang CAPTCHA. Naniningil ang CapSolver sa bawat solve (~$0.001–$0.003); ginagamit mo ang sarili mong account at API key.",- "st.captcha.enabled.label": "I-enable ang CapSolver",- "st.captcha.enabled.desc": "Kapag may naabot na CAPTCHA ang ahente, tatawag ito sa CapSolver nang isang beses bago bumalik sa pagtatanong sa iyo. Kailangan ng API key sa ibaba.","st.captcha.api_key.label": "CapSolver API Key","st.captcha.save": "I-save ang Key","st.captcha.check_balance": "Tingnan ang Balanse",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "Maglagay ng wastong CapSolver API key na nagsisimula sa CAP-.","st.captcha.balance_ok": "OK — balanse: {balance}","st.captcha.balance_fail": "Nabigo: {error}",- "st.captcha.security_html": "<strong>Paalala:</strong> ang API key ay iniimbak <strong>bilang plaintext</strong> sa local storage ng browser. Naniningil ang CapSolver sa iyong account sa bawat solve; tatawag lamang dito ang ahente kapag tunay na hinaharang ng CAPTCHA ang isang hakbang (pinakamarami ay isang beses bawat pagkakataon — hindi ito mag-uulit kapag nabigo). Ang mga terms of service ng ilang site ay nagbabawal sa automated na paglutas ng CAPTCHA; gamitin ang iyong pagpapasya.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Mga iminungkahing aksyon',diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.jsindex e16320bb4..cb6e72dff 100644--- a/src/chrome/src/ui/locales/tr.js+++ b/src/chrome/src/ui/locales/tr.js@@ -649,9 +649,6 @@ export default {"st.transcription.connected": "Bağlandı! Model: {model}","st.transcription.failed": "Başarısız: {error}","st.transcription.fill_required": "Önce Temel URL ve Model alanlarını doldur.",- "st.captcha.desc_html": "Aracının CAPTCHA'ları <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API'si üzerinden otomatik çözmesine izin ver. reCAPTCHA v2/v3, hCaptcha ve Cloudflare Turnstile desteklenir. Geçerli bir API anahtarı kaydedildiğinde CapSolver otomatik olarak etkinleşir; anahtar yoksa aracı durur ve CAPTCHA'yı senin çözmeni ister. CapSolver her çözüm için ücret alır (~$0.001–$0.003); kendi hesabını ve API anahtarını kullanırsın.",- "st.captcha.enabled.label": "CapSolver'ı etkinleştir",- "st.captcha.enabled.desc": "Aracı bir CAPTCHA ile karşılaştığında, sana sormaya geri dönmeden önce bir kez CapSolver'ı çağırır. Aşağıda bir API anahtarı gerektirir.","st.captcha.api_key.label": "CapSolver API Anahtarı","st.captcha.save": "Anahtarı Kaydet","st.captcha.check_balance": "Bakiyeyi Kontrol Et",@@ -662,7 +659,6 @@ export default {"st.captcha.need_key": "CAP- ile başlayan geçerli bir CapSolver API anahtarı gir.","st.captcha.balance_ok": "TAMAM — bakiye: {balance}","st.captcha.balance_fail": "Başarısız: {error}",- "st.captcha.security_html": "<strong>Dikkat:</strong> API anahtarı tarayıcının yerel depolamasında <strong>düz metin olarak</strong> saklanır. CapSolver her çözüm için hesabından ücret alır; aracı yalnızca bir CAPTCHA gerçekten bir adımı engellediğinde onu çağırır (karşılaşma başına en fazla bir kez — başarısızlıkta yeniden denemez). Bazı sitelerin hizmet şartları otomatik CAPTCHA çözmeyi yasaklar; kendi takdirini kullan.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Önerilen işlemler',diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.jsindex 1e84c34a3..0078c60f4 100644--- a/src/chrome/src/ui/locales/uk.js+++ b/src/chrome/src/ui/locales/uk.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "Підключено! Модель: {model}","st.transcription.failed": "Збій: {error}","st.transcription.fill_required": "Спочатку заповніть базовий URL і модель.",- "st.captcha.desc_html": "Дозвольте агенту автоматично розв'язувати CAPTCHA через API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Підтримує reCAPTCHA v2/v3, hCaptcha та Cloudflare Turnstile. Збереження дійсного API-ключа автоматично вмикає CapSolver; без ключа агент зупиняється й просить вас розв'язати CAPTCHA самостійно. CapSolver стягує плату за кожне розв'язання (~$0.001–$0.003); ви використовуєте власний акаунт і API-ключ.",- "st.captcha.enabled.label": "Увімкнути CapSolver",- "st.captcha.enabled.desc": "Коли агент натрапляє на CAPTCHA, він один раз викличе CapSolver, перш ніж повернутися до запиту до вас. Потрібен API-ключ нижче.","st.captcha.api_key.label": "API-ключ CapSolver","st.captcha.save": "Зберегти ключ","st.captcha.check_balance": "Перевірити баланс",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "Введіть дійсний API-ключ CapSolver, що починається з CAP-.","st.captcha.balance_ok": "ОК — баланс: {balance}","st.captcha.balance_fail": "Збій: {error}",- "st.captcha.security_html": "<strong>Зверніть увагу:</strong> API-ключ зберігається <strong>у відкритому вигляді</strong> в локальному сховищі браузера. CapSolver стягує плату з вашого акаунта за кожне розв'язання; агент викличе його лише тоді, коли CAPTCHA справді блокує крок (максимум один раз на зустріч — він не повторюватиме спробу після невдачі). Умови надання послуг деяких сайтів забороняють автоматичне розв'язання CAPTCHA; дійте на власний розсуд.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Рекомендовані дії',diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.jsindex c04b9885f..c0b781d5f 100644--- a/src/chrome/src/ui/locales/vi.js+++ b/src/chrome/src/ui/locales/vi.js@@ -963,9 +963,6 @@ export default {'st.memory.reason.not_found': "Không có bộ nhớ đã lưu nào có ID đó.",'st.memory.security_html': "<strong>Quyền riêng tư:</strong> bộ nhớ người dùng được lưu trữ dưới dạng văn bản gốc trong hồ sơ trình duyệt này. Khi được bật, các bản ghi bộ nhớ hoạt động sẽ được gửi đến bất kỳ nhà cung cấp LLM nào mà bạn định cấu hình như một phần của lời nhắc hệ thống. Không lưu trữ mật khẩu, khóa API, mã thông báo, mã khôi phục hoặc bí mật nhạy cảm ở đây.",- 'st.captcha.desc_html': "Cho phép tác nhân tự động giải CAPTCHA qua API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Hỗ trợ reCAPTCHA v2/v3, hCaptcha và Cloudflare Turnstile. Lưu khóa API hợp lệ sẽ tự động bật CapSolver; nếu không có khóa, tác nhân sẽ dừng và yêu cầu bạn tự giải CAPTCHA. CapSolver tính phí cho mỗi lần giải (~$0,001–$0,003); bạn sử dụng tài khoản và khóa API của riêng mình.",- 'st.captcha.enabled.label': "Kích hoạt CapSolver",- 'st.captcha.enabled.desc': "Khi nhân viên chạm vào CAPTCHA, nó sẽ gọi CapSolver một lần trước khi quay lại hỏi bạn. Yêu cầu khóa API bên dưới.",'st.captcha.api_key.label': "Khóa API CapSolver",'st.captcha.save': "Lưu khóa",'st.captcha.check_balance': "Kiểm tra số dư",@@ -976,7 +973,6 @@ export default {'st.captcha.need_key': "Nhập khóa API CapSolver hợp lệ bắt đầu bằng CAP-.",'st.captcha.balance_ok': "Được rồi — số dư: {balance}",'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": "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",diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.jsindex bac0e4df9..55be94b55 100644--- a/src/chrome/src/ui/locales/zh.js+++ b/src/chrome/src/ui/locales/zh.js@@ -609,9 +609,6 @@ export default {"st.transcription.connected": "连接成功!模型:{model}","st.transcription.failed": "失败:{error}","st.transcription.fill_required": "请先填写基础 URL 和模型。",- "st.captcha.desc_html": "让代理通过 <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API 自动解决 CAPTCHA。支持 reCAPTCHA v2/v3、hCaptcha 和 Cloudflare Turnstile。保存有效的 API 密钥后会自动启用 CapSolver;没有密钥时,代理会停止并请你自行解决 CAPTCHA。CapSolver 按每次解决计费(约 ~$0.001–$0.003);使用你自己的账号和 API 密钥。",- "st.captcha.enabled.label": "启用 CapSolver",- "st.captcha.enabled.desc": "当代理遇到 CAPTCHA 时,会先调用一次 CapSolver,然后再回退到询问你。需要下方的 API 密钥。","st.captcha.api_key.label": "CapSolver API 密钥","st.captcha.save": "保存密钥","st.captcha.check_balance": "查询余额",@@ -622,7 +619,6 @@ export default {"st.captcha.need_key": "请输入以 CAP- 开头的有效 CapSolver API 密钥。","st.captcha.balance_ok": "正常 —— 余额:{balance}","st.captcha.balance_fail": "失败:{error}",- "st.captcha.security_html": "<strong>请注意:</strong>API 密钥以<strong>明文</strong>形式保存在浏览器的本地存储中。CapSolver 会对每次解决向你的账户计费;代理只会在 CAPTCHA 实际阻塞某一步时才调用它(每次遇到最多调用一次 —— 失败后不会重试)。某些站点的服务条款禁止自动解决 CAPTCHA;请自行判断。",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': '建议操作',diff --git a/src/chrome/src/ui/settings.html b/src/chrome/src/ui/settings.htmlindex f1ac29d1d..c47140834 100644--- a/src/chrome/src/ui/settings.html+++ b/src/chrome/src/ui/settings.html@@ -1383,6 +1383,13 @@#safesocial-labels .safesocial-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }#safesocial-labels input { width: auto; margin: 0; flex-shrink: 0; }#safesocial-status { margin-top: 12px; }+ #captcha-heading { font-size: 15px; margin-bottom: 8px; }+ .captcha-description { font-size: 12px; color: var(--text2); line-height: 1.55; margin: 0 0 14px; }+ .captcha-provider { padding: 18px 0; border-top: 1px solid var(--border); }+ .captcha-provider h4 { font-size: 13px; margin: 0 0 8px; }+ .captcha-provider h4 a { color: var(--accent); text-decoration: none; }+ .captcha-provider h4 a:hover { text-decoration: underline; }+ .captcha-provider .btn-row { flex-wrap: wrap; }</style><link rel="stylesheet" href="apocalypse-comm.css"><link rel="stylesheet" href="download-tracker.css">@@ -1805,22 +1812,40 @@</label></div>- <div class="provider-card" id="captcha-card">- <div style="font-size:12px;color:var(--text2);margin-bottom:14px;line-height:1.55;" data-i18n-html="st.captcha.desc_html"></div>+ <div class="provider-card" id="captcha-card" aria-labelledby="captcha-heading">+ <h3 id="captcha-heading" data-i18n="st.captcha.heading"></h3>+ <p class="captcha-description" data-i18n="st.captcha.order"></p>- <div class="field">- <label data-i18n="st.captcha.api_key.label"></label>- <input type="password" id="captcha-api-key" placeholder="CAP-XXXXXXXXXXXXXXXXXXXX" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false">- </div>-- <div class="btn-row">- <button class="btn-primary" id="btn-save-captcha" data-i18n="st.captcha.save"></button>- <button class="btn-secondary" id="btn-test-captcha" data-i18n="st.captcha.check_balance"></button>- <button class="btn-secondary" id="btn-clear-captcha" data-i18n="st.captcha.clear"></button>- </div>- <div class="test-result" id="test-captcha"></div>-- <div class="info-box" style="margin-top:16px;" data-i18n-html="st.captcha.security_html"></div>+ <section class="captcha-provider" aria-labelledby="capsolver-heading">+ <h4 id="capsolver-heading"><a href="https://capsolver.com" target="_blank" rel="noopener noreferrer">CapSolver</a></h4>+ <p class="captcha-description" data-i18n="st.captcha.capsolver_desc"></p>+ <div class="field">+ <label for="captcha-api-key" data-i18n="st.captcha.api_key.label"></label>+ <input type="password" id="captcha-api-key" placeholder="CAP-XXXXXXXXXXXXXXXXXXXX" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-captcha" role="status" aria-live="polite"></div>+ </section>++ <section class="captcha-provider" aria-labelledby="two-captcha-heading">+ <h4 id="two-captcha-heading"><a href="https://2captcha.com" target="_blank" rel="noopener noreferrer">2Captcha</a></h4>+ <p class="captcha-description" data-i18n="st.captcha.two_desc"></p>+ <div class="field">+ <label for="two-captcha-api-key" data-i18n="st.captcha.two_key"></label>+ <input type="password" id="two-captcha-api-key" placeholder="0123456789abcdef0123456789abcdef" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-two-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-two-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-two-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-two-captcha" role="status" aria-live="polite"></div>+ </section>+ <div class="info-box" style="margin-top:16px;" data-i18n="st.captcha.providers_security"></div></div>diff --git a/src/chrome/src/ui/settings.js b/src/chrome/src/ui/settings.jsindex c1d81d93c..4e6ce3e21 100644--- a/src/chrome/src/ui/settings.js+++ b/src/chrome/src/ui/settings.js@@ -40,6 +40,7 @@ import {isValidCapsolverApiKey,normalizeCapsolverApiKey,} from '../agent/capsolver-config.js';+import { isValidTwoCaptchaApiKey, normalizeTwoCaptchaApiKey } from '../agent/captcha-provider-config.js';import {isValidTypesafeApiKey,normalizeSystemOneThreshold,@@ -217,6 +218,11 @@ const btnSaveCaptcha = document.getElementById('btn-save-captcha');const btnTestCaptcha = document.getElementById('btn-test-captcha');const btnClearCaptcha = document.getElementById('btn-clear-captcha');const captchaTestResult = document.getElementById('test-captcha');+const twoCaptchaApiKeyInput = document.getElementById('two-captcha-api-key');+const btnSaveTwoCaptcha = document.getElementById('btn-save-two-captcha');+const btnTestTwoCaptcha = document.getElementById('btn-test-two-captcha');+const btnClearTwoCaptcha = document.getElementById('btn-clear-two-captcha');+const twoCaptchaTestResult = document.getElementById('test-two-captcha');const systemOneApiKeyInput = document.getElementById('system-one-api-key');const systemOneEnabledToggle = document.getElementById('toggle-system-one');const systemOneWatchToggle = document.getElementById('toggle-system-one-watch');@@ -934,12 +940,14 @@ async function init() {if (profileTextArea) profileTextArea.value = profileStored.profileText || '';await loadUserMemorySettings();- // A valid saved key is the CapSolver enable control.- const captchaStored = await chrome.storage.local.get(['capsolverApiKey', 'webbrainCloudManaged']);+ // Saving a valid key enables its provider independently.+ const captchaStored = await chrome.storage.local.get(['capsolverApiKey', 'twoCaptchaApiKey', 'webbrainCloudManaged']);const cloudCaptchaCard = document.getElementById('captcha-card');if (cloudCaptchaCard) cloudCaptchaCard.style.display = captchaStored.webbrainCloudManaged === true ? 'none' : '';if (captchaApiKeyInput) captchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true? '' : (captchaStored.capsolverApiKey || '');+ if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true+ ? '' : (captchaStored.twoCaptchaApiKey || '');await loadCustomSkills();@@ -2439,6 +2447,68 @@ if (btnClearCaptcha) {});}+// --- 2Captcha (independent opt-in and balance check) ---++function showTwoCaptchaResult(className, text, color = '') {+ if (!twoCaptchaTestResult) return;+ twoCaptchaTestResult.className = `test-result show${className ? ` ${className}` : ''}`;+ twoCaptchaTestResult.textContent = text;+ twoCaptchaTestResult.style.color = color || '';+ return twoCaptchaTestResult;+}++function flashTwoCaptchaResult(className, text) {+ const resultEl = showTwoCaptchaResult(className, text);+ if (resultEl) setTimeout(() => resultEl.classList.remove('show'), 3000);+}++if (btnSaveTwoCaptcha) {+ btnSaveTwoCaptcha.addEventListener('click', async () => {+ const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);+ if (!isValidTwoCaptchaApiKey(key)) {+ flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));+ return;+ }+ if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = key;+ // Saving this key opts in to 2Captcha independently of CapSolver.+ await chrome.storage.local.set({+ twoCaptchaApiKey: key,+ twoCaptchaEnabled: true,+ });+ flashTwoCaptchaResult('ok', t('st.captcha.two_saved'));+ });+}++if (btnTestTwoCaptcha) {+ btnTestTwoCaptcha.addEventListener('click', async () => {+ const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);+ if (!isValidTwoCaptchaApiKey(key)) {+ flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));+ return;+ }+ showTwoCaptchaResult('', t('st.captcha.checking'), 'var(--text2)');+ try {+ const res = await sendToBackground('test_two_captcha_balance', { apiKey: key });+ if (res?.ok) {+ flashTwoCaptchaResult('ok', t('st.captcha.balance_ok', { balance: `$${Number(res.balance).toFixed(4)}` }));+ } else {+ flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: res?.error || 'Unknown error' }));+ }+ } catch (e) {+ flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: e.message }));+ }+ });+}++if (btnClearTwoCaptcha) {+ btnClearTwoCaptcha.addEventListener('click', async () => {+ if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = '';+ // Clear only this provider's key and consent.+ await chrome.storage.local.remove(['twoCaptchaApiKey', 'twoCaptchaEnabled']);+ flashTwoCaptchaResult('ok', t('st.captcha.cleared'));+ });+}+// --- Provider Rendering ---// Prompt-tier selector, shown only for local + OpenRouter providers (cloud isdiff --git a/src/firefox/src/agent/agent.js b/src/firefox/src/agent/agent.jsindex b27c55b4c..67e344fdd 100644--- a/src/firefox/src/agent/agent.js+++ b/src/firefox/src/agent/agent.js@@ -78,8 +78,8 @@ import { buildTerminalRuntimeEvent, enqueueCloudRuntimeEvent, flushCloudRuntimeOimport { buildShareGenerationItem, enqueueShareGeneration, flushShareOutbox, purgeShareGenerations } from '../trace/webbrain-share-outbox.js';import { normalizeRuntimeTraceConfig } from '../trace/runtime-config.js';import { tracesToMarkdown } from './trace-export.js';-import { solveCaptcha, detectCaptcha, injectToken, captchaParamError, captchaTypesMatch, captchaWebsiteUrl } from './captcha-solver.js';-import { isCapsolverEnabled, normalizeCapsolverApiKey } from './capsolver-config.js';+import { solveCaptchaWithProviders, detectCaptcha, injectToken, captchaParamError, captchaTypesMatch, captchaWebsiteUrl } from './captcha-solver.js';+import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders, captchaProviderSupportsType } from './captcha-provider-config.js';import { captchaChallengeKey, captchaChallengeMatcherOptions, detectChallengeDialog, detectChallengeDialogInPage } from './captcha-gate.js';import { applyCaptchaFrameVisibility } from './captcha-frame-runtime.js';import {@@ -857,11 +857,12 @@ export class Agent extends LoopDetector {this.userMemoryEnabled = true;this.userMemoryRecords = [];this.userMemoryMaxPromptChars = USER_MEMORY_DEFAULT_MAX_PROMPT_CHARS;- // CapSolver integration. A valid saved API key enables the+ // CAPTCHA integration. An explicitly enabled provider enables the// "[CAPTCHA SOLVER]" system-prompt note telling the// model to try `solve_captcha` once before falling back to asking// the user. The API key is read at call time from browser.storage.this.captchaSolverEnabled = false;+ this.captchaProviderIds = [];this._captchaGateStates = new Map(); // tabId -> { key, status, publicGate, challengeFrameId? }this._cloudflareManagedChallenges = new Map(); // tabId -> sanitized response-backed interstitial statethis._cloudflareManagedChallengeTransitions = new Map(); // tabId -> serialized transition promise@@ -9416,6 +9417,8 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d&& (publicGate?.solverDisabled === true|| publicGate?.detectionFailed === true+ || (publicGate?.providerUnsupported === true+ && this.captchaProviderIds.some(id => captchaProviderSupportsType(id, publicGate.selectedType))));}@@ -9986,7 +9989,10 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d&& detection?.selected?.visible === true));+ const providerSupportsCandidate = this.captchaProviderIds.some(id =>+ captchaProviderSupportsType(id, detection?.selected?.type));const supported = this.captchaSolverEnabled+ && providerSupportsCandidate&& !detectionFailed&& !detection?.error&& !!detection?.selected@@ -10000,6 +10006,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d...(unsupportedVendors.length ? { unsupportedVendors } : {}),...(detectionFailed ? { detectionFailed: true } : {}),...(!this.captchaSolverEnabled ? { solverDisabled: true } : {}),+ ...(detection?.selected && !providerSupportsCandidate ? { providerUnsupported: true } : {}),...(detection?.error ? { selectionFailed: true } : {}),...(detection?.selected && !selectedCorrelated ? { candidateNotCorrelated: true } : {}),...(languageNeutralFrameTrigger ? { languageNeutralFrameTrigger: true } : {}),@@ -22591,7 +22598,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dif (memoryPrompt) prompt += `\n\n${memoryPrompt}`;}if (this.captchaSolverEnabled) {- prompt += `\n\n[CAPTCHA SOLVER — the user has configured CapSolver. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;+ prompt += `\n\n[CAPTCHA SOLVER — the user has enabled a CAPTCHA solver. When both local providers are enabled, the runtime tries CapSolver first, then 2Captcha on failure or timeout; both may charge. This fallback is internal to one tool call, not permission to call the tool again. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires enabled CapSolver. Unsupported challenges require manual completion. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;}// Ordinary turns get the one-line rendering; the full block is reserved for// policies that need the precise wording (translation targets, multilingual@@ -32627,18 +32634,10 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout derror,});try {- const stored = await browser.storage.local.get([- 'capsolverApiKey', 'captchaSolverEnabled',- 'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',- ]);- const apiKey = normalizeCapsolverApiKey(stored.capsolverApiKey);- const useCloudBroker = stored.webbrainCloudManaged === true- && stored.webbrainCloudCapsolverBrokerEnabled === true;- if (stored.captchaSolverEnabled !== true- || (stored.webbrainCloudManaged === true- ? !useCloudBroker- : !isCapsolverEnabled(apiKey, true))) {- return noDispatchFailure('CapSolver is not enabled with a valid API key. Ask the user to save their key in Settings → General → Advanced, or fall back to asking them to solve the captcha manually.');+ const stored = await browser.storage.local.get(CAPTCHA_SETTINGS_KEYS);+ const providers = getCaptchaProviders(stored);+ if (!providers.length) {+ return noDispatchFailure('No CAPTCHA solver is enabled with a valid API key. Save a CapSolver or 2Captcha key in Settings → General → Advanced, or ask the user to solve the CAPTCHA manually.');}let websiteURL = '';@@ -32660,6 +32659,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dimageBase64,enterprisePayload,recaptchaDataSValue,+ metadata,} = args || {};// Detection notes explain *why* a field is missing (e.g. a v3 widget// that never exposed its action name). Carry it into the failure so@@ -32748,6 +32748,14 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dif (!pageAction && detected.pageAction) pageAction = detected.pageAction;if (!enterprisePayload && detected.enterprisePayload) enterprisePayload = detected.enterprisePayload;if (!recaptchaDataSValue && detected.recaptchaDataSValue) recaptchaDataSValue = detected.recaptchaDataSValue;+ if (detected.metadata) {+ for (const key of ['action', 'cdata', 'chlPageData']) {+ if (metadata?.[key] && detected.metadata[key] && metadata[key] !== detected.metadata[key]) {+ return noDispatchFailure(`solve_captcha: requested Turnstile ${key} conflicts with the selected widget. Use its detected value or omit metadata.`);+ }+ }+ metadata = { ...detected.metadata, ...metadata };+ }}if (!detected && args?.inject === false && frameUrl) {websiteURL = captchaWebsiteUrl(frameUrl, websiteURL);@@ -32765,6 +32773,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d...(enterprisePayload ? { enterprisePayload } : {}),...(recaptchaDataSValue ? { recaptchaDataSValue } : {}),...(imageBase64 ? { body: imageBase64 } : {}),+ ...(type === 'turnstile' && metadata ? { metadata } : {}),};if (type === 'image_to_text') {@@ -32782,15 +32791,22 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dreturn noDispatchFailure(detectionNote ? `${paramError} ${detectionNote}` : paramError);}+ if (!providers.some(provider => captchaProviderSupportsType(provider.id, type))) {+ return {+ ...noDispatchFailure(`No enabled CAPTCHA provider supports ${type}. Ask the user to complete it manually.`),+ manualCompletionRequired: true,+ };+ }+const wantInject = args?.inject !== false && type !== 'image_to_text';if (wantInject && !detected) {return noDispatchFailure(- 'solve_captcha: token injection requires a detected CAPTCHA frame. The explicit type and websiteKey were not sent to CapSolver because no safe injection target could be verified. Retry with `inject: false` to receive the token without page injection, or ask the user to solve the challenge manually.'+ 'solve_captcha: token injection requires a detected CAPTCHA frame. The explicit type and websiteKey were not sent to a CAPTCHA solver because no safe injection target could be verified. Retry with `inject: false` to receive the token without page injection, or ask the user to solve the challenge manually.');}dispatched = true;- const result = await solveCaptcha(apiKey, params, { useCloudBroker });+ const result = await solveCaptchaWithProviders(providers, params);let injection = null;if (wantInject && result.fieldName && result.token) {@@ -32824,6 +32840,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout ddispatched: true,type,taskId: result.taskId,+ provider: result.provider,token: result.token,tokenPreview: result.token ? `${String(result.token).slice(0, 24)}…(${String(result.token).length} chars)` : null,selectedFrameId: Number.isInteger(detected?.frameId) ? detected.frameId : null,@@ -32839,7 +32856,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d? (injection.calledCallback? 'Token was inserted into the selected frame and its callback was invoked. Wait for the page to react, then verify whether the challenge cleared.': 'Token was inserted into the selected frame, but no unique callback was invoked. Verify page progress before submitting or taking another action; do not request another paid solve.')- : 'CapSolver returned a token, but targeted injection failed. The challenge is not confirmed cleared; do not request another paid solve for the same token.',+ : 'The CAPTCHA solver returned a token, but targeted injection failed. The challenge is not confirmed cleared; do not request another paid solve for the same token.',};} catch (e) {const error = `solve_captcha failed: ${e.message}`;diff --git a/src/firefox/src/agent/captcha-frame-runtime.js b/src/firefox/src/agent/captcha-frame-runtime.jsindex ec9855231..41f640721 100644--- a/src/firefox/src/agent/captcha-frame-runtime.js+++ b/src/firefox/src/agent/captcha-frame-runtime.js@@ -310,6 +310,7 @@ function candidateSummary(candidate) {pageAction: candidate?.pageAction || null,enterprisePayload: candidate?.enterprisePayload || null,recaptchaDataSValue: candidate?.recaptchaDataSValue || null,+ ...(candidate?.metadata ? { metadata: candidate.metadata } : {}),explicitWebsiteKey: candidate?.explicitWebsiteKey === true,callbackName: candidate?.callbackName || null,responseTokenPresent: candidate?.responseTokenPresent === true,@@ -361,6 +362,7 @@ export function selectCaptchaCandidate(candidates, constraints = {}) {'pageAction','enterprisePayload','recaptchaDataSValue',+ 'metadata',];const hasParameterValue = value =>value !== undefined && value !== null && value !== '';@@ -849,9 +851,12 @@ export function detectCaptchaCandidatesInPage(scope = null, matcherOptions = nulfor (const [widgetIndex, host] of turnstileHosts.entries()) {const websiteKey = host.getAttribute('data-sitekey') || host.getAttribute('data-turnstile-sitekey');if (!websiteKey) continue;+ const action = host.getAttribute('data-action');+ const cdata = host.getAttribute('data-cdata');add({type: 'turnstile',websiteKey,+ ...((action || cdata) ? { metadata: { ...(action ? { action } : {}), ...(cdata ? { cdata } : {}) } } : {}),visible: visibleElement(host),normalCheckbox: false,callbackName: host.getAttribute('data-callback') || null,diff --git a/src/firefox/src/agent/captcha-provider-config.js b/src/firefox/src/agent/captcha-provider-config.jsnew file mode 100644index 000000000..5884bba30--- /dev/null+++ b/src/firefox/src/agent/captcha-provider-config.js@@ -0,0 +1,40 @@+import { normalizeCaptchaType } from './captcha-frame-runtime.js';+import { isCapsolverEnabled, normalizeCapsolverApiKey } from './capsolver-config.js';++export const CAPTCHA_SETTINGS_KEYS = [+ 'capsolverApiKey', 'captchaSolverEnabled', 'twoCaptchaApiKey', 'twoCaptchaEnabled',+ 'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',+];++export function normalizeTwoCaptchaApiKey(value) {+ return typeof value === 'string' ? value.trim() : '';+}++export function isValidTwoCaptchaApiKey(value) {+ return /^[a-f0-9]{32}$/i.test(normalizeTwoCaptchaApiKey(value));+}++// This order is also the fallback order. Managed browsers must never use+// personal keys from storage, even if an old/imported configuration has them.+export function getCaptchaProviders(stored = {}) {+ if (stored.webbrainCloudManaged === true) {+ return stored.captchaSolverEnabled === true && stored.webbrainCloudCapsolverBrokerEnabled === true+ ? [{ id: 'capsolver', apiKey: '', useCloudBroker: true }] : [];+ }+ const providers = [];+ if (isCapsolverEnabled(stored.capsolverApiKey, stored.captchaSolverEnabled)) {+ providers.push({ id: 'capsolver', apiKey: normalizeCapsolverApiKey(stored.capsolverApiKey) });+ }+ if (stored.twoCaptchaEnabled === true && isValidTwoCaptchaApiKey(stored.twoCaptchaApiKey)) {+ providers.push({ id: '2captcha', apiKey: normalizeTwoCaptchaApiKey(stored.twoCaptchaApiKey) });+ }+ return providers;+}++// Capabilities describe this integration, rather than every product a service sells.+export function captchaProviderSupportsType(providerId, type) {+ const normalized = normalizeCaptchaType(type);+ if (normalized === 'hcaptcha') return providerId === 'capsolver';+ return ['capsolver', '2captcha'].includes(providerId)+ && ['recaptcha_v2', 'recaptcha_v2_enterprise', 'recaptcha_v3', 'recaptcha_v3_enterprise', 'turnstile', 'image_to_text'].includes(normalized);+}diff --git a/src/firefox/src/agent/captcha-solver.js b/src/firefox/src/agent/captcha-solver.jsindex ee219e2d2..a3977eb0f 100644--- a/src/firefox/src/agent/captcha-solver.js+++ b/src/firefox/src/agent/captcha-solver.js@@ -20,6 +20,8 @@ import {selectCaptchaCandidate,} from './captcha-frame-runtime.js';import { buildCaptchaDiagnostics, captchaChallengeMatcherOptions } from './captcha-gate.js';+import { solveWithTwoCaptcha } from './two-captcha.js';+import { captchaProviderSupportsType } from './captcha-provider-config.js';export { captchaTypesMatch, captchaWebsiteUrl, normalizeCaptchaType, selectCaptchaCandidate };@@ -34,6 +36,7 @@ async function postJson(path, body) {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify(body),+ signal: AbortSignal.timeout(30_000),});if (!res.ok) {const text = await res.text().catch(() => '');@@ -229,6 +232,36 @@ export async function solveCaptcha(apiKey, params, { useCloudBroker = false } =return { taskId, solution, ...meta };}+// One tool dispatch, at most one task per enabled provider. Fallback happens+// before token injection; a page/injection failure must not spend another solve.+// A timeout can leave a paid task running upstream; fallback may charge both accounts.+export async function solveCaptchaWithProviders(providers, params) {+ if (!providers.length) throw new Error('No CAPTCHA solver is enabled with a valid API key.');+ const paramError = captchaParamError(params);+ if (paramError) throw new Error(paramError);+ const task = buildTask(params);+ const eligibleProviders = providers.filter(provider => captchaProviderSupportsType(provider.id, params.type));+ if (!eligibleProviders.length) throw new Error(`No enabled provider supports ${params.type}. Ask the user to complete it manually.`);+ const failures = [];+ for (const provider of eligibleProviders) {+ try {+ const result = provider.id === 'capsolver'+ ? await solveCaptcha(provider.apiKey, params, { useCloudBroker: provider.useCloudBroker === true })+ : await (async () => {+ const result = await solveWithTwoCaptcha(provider.apiKey, task);+ return { ...result, ...solutionFor(params.type, result.solution) };+ })();+ if (typeof result.token !== 'string' || !result.token.trim()) {+ throw new Error('No usable solution returned.');+ }+ return { ...result, provider: provider.id };+ } catch (error) {+ failures.push(`${provider.id}: ${error.message}`);+ }+ }+ throw new Error(failures.join(' | '));+}+// ─── Page-side helpers (Firefox MV2 executeScript with code string) ──export async function detectCaptcha(tabId, constraints = {}) {diff --git a/src/firefox/src/agent/tools.js b/src/firefox/src/agent/tools.jsindex 5d2d8b4e7..4d8868064 100644--- a/src/firefox/src/agent/tools.js+++ b/src/firefox/src/agent/tools.js@@ -1074,7 +1074,7 @@ export const AGENT_TOOLS = [type: 'function',function: {name: 'solve_captcha',- description: 'Solve a CAPTCHA on the current page using the CapSolver API (available when the user has saved a valid API key in Settings → General → Advanced). The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CapSolver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',+ description: 'Solve a CAPTCHA on the current page using CapSolver or 2Captcha, enabled by saving a key in Settings → General → Advanced. With both enabled, one tool call tries CapSolver first, then 2Captcha on failure or timeout; both may charge. Do not repeat the tool call. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires CapSolver. Unsupported challenges require manual completion before dispatch. The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CAPTCHA solver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',parameters: {type: 'object',properties: {@@ -1095,6 +1095,16 @@ export const AGENT_TOOLS = [isEnterprise: { type: 'boolean', description: 'reCAPTCHA v2/v3 only — true when the widget uses Google reCAPTCHA Enterprise. Auto-detected when omitted.' },pageAction: { type: 'string', description: 'Required for reCAPTCHA v3 — the action name the page uses (e.g. "login", "submit"). Auto-detected from data-action or the loader script when present; pass it explicitly if detection reports it missing.' },minScore: { type: 'number', description: 'reCAPTCHA v3 only — minimum score requested (0.3 is the usual lower bound, 0.7+ is hard).' },+ metadata: {+ type: 'object',+ description: 'Turnstile only. Values observed in the selected widget configuration; never invent them. action and cdata are detected from widget data attributes when present. Full-page managed challenges still require manual completion.',+ properties: {+ action: { type: 'string' },+ cdata: { type: 'string', description: 'The widget cData value.' },+ chlPageData: { type: 'string' },+ },+ additionalProperties: false,+ },imageBase64: { type: 'string', description: 'image_to_text only — base64-encoded image bytes (no data: prefix).' },inject: { type: 'boolean', description: 'After solving, inject the token into the detected frame\'s response field (textarea[name=g-recaptcha-response] etc.) and fire the widget\'s callback. Default true and requires a detected frame target. If the widget cannot be detected but type/websiteKey are known, set false to get only the token without page injection.' },},@@ -1953,7 +1963,7 @@ FORMS — read this:- You do NOT need verify_form for simple interactions: search boxes, single-field forms, or login forms. Use it for multi-field forms where wrong data has consequences (checkout, profile, issue creation, releases, etc.).- AFTER submitting a form, ALWAYS read the page/tree and inspect any injected verification/auto-screenshot context to confirm success BEFORE doing anything else. Do not resume other actions until you verify the submission result. Look for: a success message/toast, the newly created item appearing in a list, or a detail page for the new item. Check that the details (name, price, dates) match what you intended.- NEVER claim you created something unless you see CONFIRMATION on the page. If you see a list of items, check the creation date — if it says "2 months ago" or a past date, that is an EXISTING item, NOT something you just created. Only items with a timestamp from right now are yours.-- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has configured CapSolver (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.+- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has configured CapSolver or 2Captcha (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.MODALS & DIALOGS — read this:- When a modal/dialog is open, treat the rest of the page as unreachable. click({text: ...}) is automatically scoped to the topmost dialog, so text queries for buttons behind the overlay will return "no match" — that's intentional.@@ -2061,7 +2071,7 @@ ${BROWSER_TAB_LIMITATION}- fetch_url({url}) / research_url({url}): read OTHER URLs (not the active tab). list_downloads, download_files, download_resource_from_page, read_downloaded_file, upload_file({selector, attachmentId}) or upload_file({selector, downloadId}): file workflows. Use attachmentId for a current user-supplied file; use downloadId for a downloaded file. Use download_files for direct URLs and download_resource_from_page when the resource is attached to a visible page element or a blob: URL. Successful downloads auto-pin each file's downloadId to the scratchpad as an \`[auto]\` line — attach with upload_file({downloadId, selector}) and re-read with read_downloaded_file({downloadId}); no need to recall the path. Omit both ids to prompt the user to pick a new local file.- download_public_media (if enabled) / download_social_media: one-shot image/video download from supported public social sites; purpose-built download tools should be tried before manual DOM/resource workflows.- verify_form: check a form's field values before submitting. scratchpad_write({text}): pin facts that survive context summarization. progress_update/progress_read: track repeated item/action progress.-- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: once, only when CapSolver is configured.+- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: one tool call, CapSolver first then 2Captcha on failure or timeout when both are enabled; either may charge. Do not repeat the call. hCaptcha requires CapSolver; unsupported provider/type combinations require manual completion.- done({summary, outcome}): signal completion; use outcome:"success" only after verifying success.CHAT IMAGES:diff --git a/src/firefox/src/agent/two-captcha.js b/src/firefox/src/agent/two-captcha.jsnew file mode 100644index 000000000..256b3d056--- /dev/null+++ b/src/firefox/src/agent/two-captcha.js@@ -0,0 +1,82 @@+// 2Captcha API v2: https://2captcha.com/api-docs+const API_BASE = 'https://api.2captcha.com';+const POLL_INTERVAL_MS = 5_000;+const SOLVE_TIMEOUT_MS = 180_000;++async function postJson(path, body, timeoutMs = 30_000) {+ const response = await fetch(`${API_BASE}/${path}`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(body),+ signal: AbortSignal.timeout(timeoutMs),+ });+ if (!response.ok) throw new Error(`2Captcha ${path}: HTTP ${response.status}`);+ const result = await response.json().catch(() => null);+ if (!result || typeof result !== 'object') throw new Error(`2Captcha ${path}: invalid response`);+ if (result.errorId) throw new Error(`2Captcha ${path}: ${result.errorDescription || result.errorCode || 'unknown error'}`);+ return result;+}++export async function getTwoCaptchaBalance(apiKey) {+ if (!apiKey) throw new Error('No 2Captcha API key configured.');+ const result = await postJson('getBalance', { clientKey: apiKey });+ if (!Number.isFinite(Number(result.balance)) || result.balance == null) {+ throw new Error('2Captcha getBalance: missing balance');+ }+ return { balance: Number(result.balance) };+}++// Translate the existing normalized task to 2Captcha's case-sensitive types+// and fields. Never forward CapSolver-specific task names or affiliate IDs.+export function buildTwoCaptchaTask(task) {+ const { websiteURL, websiteKey } = task;+ switch (task.type) {+ case 'ReCaptchaV2TaskProxyLess':+ case 'ReCaptchaV2EnterpriseTaskProxyLess': {+ const enterprise = task.type.includes('Enterprise');+ return {+ type: enterprise ? 'RecaptchaV2EnterpriseTaskProxyless' : 'RecaptchaV2TaskProxyless',+ websiteURL, websiteKey,+ ...(task.isInvisible != null ? { isInvisible: task.isInvisible } : {}),+ ...(task.userAgent ? { userAgent: task.userAgent } : {}),+ ...(enterprise && task.enterprisePayload ? { enterprisePayload: task.enterprisePayload } : {}),+ ...(!enterprise && task.recaptchaDataSValue ? { recaptchaDataSValue: task.recaptchaDataSValue } : {}),+ };+ }+ case 'ReCaptchaV3TaskProxyLess':+ case 'ReCaptchaV3EnterpriseTaskProxyLess':+ return {+ type: 'RecaptchaV3TaskProxyless', websiteURL, websiteKey,+ minScore: task.minScore || 0.3, pageAction: task.pageAction,+ isEnterprise: task.type.includes('Enterprise'),+ };+ case 'AntiTurnstileTaskProxyLess':+ return {+ type: 'TurnstileTaskProxyless', websiteURL, websiteKey,+ ...(task.metadata?.action ? { action: task.metadata.action } : {}),+ ...(task.metadata?.cdata ? { data: task.metadata.cdata } : {}),+ ...(task.metadata?.chlPageData ? { pagedata: task.metadata.chlPageData } : {}),+ };+ case 'ImageToTextTask':+ return { type: 'ImageToTextTask', body: task.body, ...(task.case != null ? { case: task.case } : {}) };+ default:+ // hCaptcha is not listed in the current 2Captcha API v2 documentation.+ throw new Error(`2Captcha does not support this CAPTCHA type in WebBrain: ${task.type}`);+ }+}++export async function solveWithTwoCaptcha(apiKey, task) {+ if (!apiKey) throw new Error('No 2Captcha API key configured.');+ const created = await postJson('createTask', { clientKey: apiKey, task: buildTwoCaptchaTask(task) });+ if (!created.taskId) throw new Error('2Captcha createTask: missing taskId');+ const deadline = Date.now() + SOLVE_TIMEOUT_MS;+ while (Date.now() < deadline) {+ await new Promise(resolve => setTimeout(resolve, POLL_INTERVAL_MS));+ const remaining = deadline - Date.now();+ if (remaining <= 0) break;+ const result = await postJson('getTaskResult', { clientKey: apiKey, taskId: created.taskId }, Math.min(30_000, remaining));+ if (result.status === 'ready') return { taskId: created.taskId, solution: result.solution || {} };+ if (result.status !== 'processing') throw new Error('2Captcha getTaskResult: unexpected status');+ }+ throw new Error('2Captcha: timed out waiting for solution.');+}diff --git a/src/firefox/src/background.js b/src/firefox/src/background.jsindex cc33461a2..871f13731 100644--- a/src/firefox/src/background.js+++ b/src/firefox/src/background.js@@ -39,7 +39,8 @@ import {getClaudeOAuthStatus,} from './providers/oauth-claude.js';import { getBalance as capsolverGetBalance } from './agent/captcha-solver.js';-import { isCapsolverEnabled } from './agent/capsolver-config.js';+import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders } from './agent/captcha-provider-config.js';+import { getTwoCaptchaBalance } from './agent/two-captcha.js';import { createSystemOneJudge } from './agent/systemone-judge.js';import {SELECTION_CONTEXT_SOURCE_GROUNDING,@@ -959,13 +960,10 @@ const customSkillsReady = loadCustomSkills();// Local browsers require a valid key and explicit consent. Managed Cloud// browsers use the broker flag and never use a CapSolver key from storage.async function loadCaptchaSolver() {- const stored = await browser.storage.local.get([- 'capsolverApiKey', 'captchaSolverEnabled',- 'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',- ]);- agent.captchaSolverEnabled = stored.webbrainCloudManaged === true- ? stored.captchaSolverEnabled === true && stored.webbrainCloudCapsolverBrokerEnabled === true- : isCapsolverEnabled(stored.capsolverApiKey, stored.captchaSolverEnabled);+ const stored = await browser.storage.local.get(CAPTCHA_SETTINGS_KEYS);+ const providers = getCaptchaProviders(stored);+ agent.captchaProviderIds = providers.map(provider => provider.id);+ agent.captchaSolverEnabled = providers.length > 0;}loadCaptchaSolver();@@ -1155,10 +1153,11 @@ browser.storage.onChanged.addListener((changes) => {refreshPrompts = true;}if (changes.capsolverApiKey || changes.captchaSolverEnabled+ || changes.twoCaptchaApiKey || changes.twoCaptchaEnabled|| changes.webbrainCloudManaged || changes.webbrainCloudCapsolverBrokerEnabled) {loadCaptchaSolver().then(() => agent._refreshSystemPrompts())- .catch((error) => console.warn('[WebBrain] CapSolver setting could not be refreshed', error));+ .catch((error) => console.warn('[WebBrain] CAPTCHA settings could not be refreshed', error));}if (changes.planBeforeActMode || changes.planBeforeAct) {applyPlanBeforeActMode(normalizePlanBeforeActMode({@@ -3483,6 +3482,16 @@ async function handleMessage(msg, sender) {} catch (error) { return { success: false, error: error.message }; }}+ case 'test_two_captcha_balance': {+ try {+ const key = String(msg.apiKey || '').trim();+ if (!key) return { ok: false, error: 'No API key provided' };+ return { ok: true, ...await getTwoCaptchaBalance(key) };+ } catch (e) {+ return { ok: false, error: e.message };+ }+ }+case 'test_capsolver_balance': {try {const key = String(msg.apiKey || '').trim();diff --git a/src/firefox/src/config-transfer.js b/src/firefox/src/config-transfer.jsindex 7ea6e1bb2..067ab2df6 100644--- a/src/firefox/src/config-transfer.js+++ b/src/firefox/src/config-transfer.js@@ -78,6 +78,8 @@ export const DEFAULT_CONFIG_SETTINGS = Object.freeze({enableAllPackagedSkills: false,captchaSolverEnabled: false,capsolverApiKey: '',+ twoCaptchaApiKey: '',+ twoCaptchaEnabled: false,systemOneEnabled: false,systemOneWatchEnabled: false,systemOneCompletionEnabled: false,@@ -124,6 +126,7 @@ const BOOLEAN_KEYS = new Set([USER_MEMORY_FORM_CAPTURE_KEY,'enableAllPackagedSkills','captchaSolverEnabled',+ 'twoCaptchaEnabled','systemOneEnabled','systemOneWatchEnabled','systemOneCompletionEnabled',@@ -153,6 +156,7 @@ const STRING_KEYS = new Set(['activeProvider','profileText','capsolverApiKey',+ 'twoCaptchaApiKey','typesafeApiKey',]);const ARRAY_KEYS = new Set([diff --git a/src/firefox/src/ui/i18n.js b/src/firefox/src/ui/i18n.jsindex 2851cdfa8..520516ae8 100644--- a/src/firefox/src/ui/i18n.js+++ b/src/firefox/src/ui/i18n.js@@ -3,6 +3,7 @@// Works identically in Chrome MV3 and Firefox MV2.import en from './locales/en.js';+import { captchaEnglish, captchaTranslations } from './locales/captcha-copy.mjs';import { safeSocialEnglish, safeSocialTranslations } from './locales/safesocial-copy.mjs';import es from './locales/es.js';import fr from './locales/fr.js';@@ -33,6 +34,8 @@ const DICTS = Object.fromEntries(Object.entries({ en, es, fr, tr, zh, ru, uk, ar...dict,...providerGuideEnglish,...safeSocialEnglish,+ ...captchaEnglish,+ ...(captchaTranslations[code] || {}),...(safeSocialTranslations[code] || {}),...(providerGuideTranslations[code] || {}),}]));diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.jsindex b073a727c..8d80ef303 100644--- a/src/firefox/src/ui/locales/ar.js+++ b/src/firefox/src/ui/locales/ar.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "تم الاتصال! النموذج: {model}","st.transcription.failed": "فشل: {error}","st.transcription.fill_required": "املأ عنوان API الأساسي والنموذج أولًا.",- "st.captcha.desc_html": "دع الوكيل يحلّ اختبارات CAPTCHA تلقائيًا عبر واجهة <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. يدعم reCAPTCHA v2/v3 وhCaptcha وCloudflare Turnstile. يؤدي حفظ مفتاح API صالح إلى تمكين CapSolver تلقائيًا؛ وبدونه، يتوقّف الوكيل ويطلب منك حلّ الاختبار بنفسك. تتقاضى CapSolver رسومًا لكل عملية حلّ (~$0.001–$0.003)؛ تستخدم حسابك ومفتاح API الخاص بك.",- "st.captcha.enabled.label": "تفعيل CapSolver",- "st.captcha.enabled.desc": "عندما يصادف الوكيل اختبار CAPTCHA فإنه يستدعي CapSolver مرّة واحدة قبل اللجوء إلى سؤالك. يتطلّب مفتاح API أدناه.","st.captcha.api_key.label": "مفتاح CapSolver API","st.captcha.save": "حفظ المفتاح","st.captcha.check_balance": "التحقّق من الرصيد",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "أدخل مفتاح CapSolver API صالحًا يبدأ بـ CAP-.","st.captcha.balance_ok": "موافق — الرصيد: {balance}","st.captcha.balance_fail": "فشل: {error}",- "st.captcha.security_html": "<strong>تنبيه:</strong> يُخزَّن مفتاح API <strong>بصيغة نصية واضحة</strong> في التخزين المحلي للمتصفح. تتقاضى CapSolver رسومًا من حسابك عن كل عملية حلّ؛ ولن يستدعيها الوكيل إلا عندما يحجب اختبار CAPTCHA خطوةً فعلًا (مرّة واحدة كحدّ أقصى لكل مواجهة — لن يعيد المحاولة عند الفشل). تحظر شروط خدمة بعض المواقع حلّ اختبارات CAPTCHA آليًا؛ استخدم حسن تقديرك.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'الإجراءات المقترحة',diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.jsindex ff0115cb8..89d65a4fc 100644--- a/src/firefox/src/ui/locales/bn.js+++ b/src/firefox/src/ui/locales/bn.js@@ -942,9 +942,6 @@ export default {'st.memory.reason.not_found': "কোনো সংরক্ষিত মেমরি সেই আইডি নেই।",'st.memory.security_html': "<strong>গোপনীয়তা:</strong> ব্যবহারকারীর মেমরি এই ব্রাউজার প্রোফাইলে প্লেইনটেক্সটে সংরক্ষণ করা হয়। সক্রিয় করা হলে, সিস্টেম প্রম্পটের অংশ হিসাবে আপনি যে LLM প্রদানকারীকে কনফিগার করেন সক্রিয় মেমরি রেকর্ডগুলি পাঠানো হয়৷ এখানে পাসওয়ার্ড, API কী, টোকেন, রিকভারি কোড বা সংবেদনশীল গোপনীয়তা সংরক্ষণ করবেন না।",- 'st.captcha.desc_html': "এজেন্টকে <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API-এর মাধ্যমে স্বয়ংক্রিয়ভাবে CAPTCHA সমাধান করতে দিন। এটি reCAPTCHA v2/v3, hCaptcha এবং Cloudflare Turnstile সমর্থন করে। একটি বৈধ API কী সংরক্ষণ করলে CapSolver স্বয়ংক্রিয়ভাবে সক্রিয় হয়; কী না থাকলে এজেন্ট থামে এবং আপনাকে নিজেই CAPTCHA সমাধান করতে বলে। প্রতিটি সমাধানের জন্য CapSolver চার্জ করে (~$0.001–$0.003); আপনি নিজের অ্যাকাউন্ট ও API কী ব্যবহার করেন।",- 'st.captcha.enabled.label': "CapSolver সক্ষম করুন",- 'st.captcha.enabled.desc': "যখন এজেন্ট একটি ক্যাপচা হিট করে তখন এটি আপনাকে জিজ্ঞাসা করার আগে একবার ক্যাপসোলভারকে কল করবে। নীচে একটি API কী প্রয়োজন৷",'st.captcha.api_key.label': "CapSolver API কী",'st.captcha.save': "কী সংরক্ষণ করুন",'st.captcha.check_balance': "ব্যালেন্স চেক করুন",@@ -955,7 +952,6 @@ export default {'st.captcha.need_key': "CAP- দিয়ে শুরু হওয়া একটি বৈধ CapSolver API কী লিখুন।",'st.captcha.balance_ok': "ঠিক আছে — ব্যালেন্স: {balance}",'st.captcha.balance_fail': "ব্যর্থ হয়েছে: {error}",- 'st.captcha.security_html': "<strong>হেড-আপ:</strong> API কী সংরক্ষণ করা হয় <strong>প্লেইনটেক্সট</strong> ব্রাউজার স্থানীয় স্টোরেজে। CapSolver প্রতিটি সমাধানের জন্য আপনার অ্যাকাউন্ট চার্জ করে; এজেন্ট কেবল তখনই এটিকে কল করবে যখন একটি ক্যাপচা প্রকৃতপক্ষে একটি পদক্ষেপকে ব্লক করে (প্রতি এনকাউন্টারে সর্বোচ্চ একবার - এটি ব্যর্থ হলে পুনরায় চেষ্টা করবে না)। কিছু সাইটের পরিষেবার শর্তাবলী স্বয়ংক্রিয় ক্যাপচা সমাধান নিষিদ্ধ করে; আপনার রায় ব্যবহার করুন।","st.system_one.desc_html": "নির্ধারিত পর্যবেক্ষণ ও কাজ সম্পন্ন হওয়ার অতিরিক্ত যাচাই।","st.system_one.enabled.label": "Jev চালু করুন",diff --git a/src/firefox/src/ui/locales/captcha-copy.mjs b/src/firefox/src/ui/locales/captcha-copy.mjsnew file mode 100644index 000000000..6bb0e249e--- /dev/null+++ b/src/firefox/src/ui/locales/captcha-copy.mjs@@ -0,0 +1,233 @@+export const captchaEnglish = {+ "st.captcha.heading": "CAPTCHA solving",+ "st.captcha.order": "Use either provider or both. Save a valid key to enable a provider; Clear disables it. With both enabled, CapSolver runs first, then 2Captcha on failure or timeout.",+ "st.captcha.capsolver_desc": "Automatically solve reCAPTCHA v2/v3, hCaptcha, Turnstile, and image CAPTCHAs with your CapSolver account.",+ "st.captcha.two_desc": "Automatically solve reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs with your 2Captcha account. hCaptcha requires CapSolver.",+ "st.captcha.two_key": "2Captcha API Key",+ "st.captcha.two_need_key": "Enter a valid 2Captcha API key: 32 hexadecimal characters.",+ "st.captcha.two_saved": "Saved. 2Captcha is enabled.",+ "st.captcha.providers_security": "Keys are stored in plaintext in this browser. Each enabled provider may charge for an attempt. Timeout fallback can charge both accounts even if the first task is still running. If neither returns a usable solution, the agent asks you to complete the CAPTCHA manually."+};++export const captchaTranslations = {+ "tr": {+ "st.captcha.heading": "CAPTCHA çözümü",+ "st.captcha.order": "Bir sağlayıcıyı veya ikisini birden kullanın. Geçerli anahtarı kaydetmek etkinleştirir; Temizle devre dışı bırakır. İkisi de etkinse önce CapSolver, hata veya zaman aşımında 2Captcha denenir.",+ "st.captcha.capsolver_desc": "CapSolver hesabınızla reCAPTCHA v2/v3, hCaptcha, Turnstile ve görsel CAPTCHA’ları otomatik çözün.",+ "st.captcha.two_desc": "2Captcha hesabınızla reCAPTCHA v2/v3, Turnstile ve görsel CAPTCHA’ları otomatik çözün. hCaptcha için CapSolver gerekir.",+ "st.captcha.two_key": "2Captcha API anahtarı",+ "st.captcha.two_need_key": "32 onaltılık karakterden oluşan geçerli bir 2Captcha API anahtarı girin.",+ "st.captcha.two_saved": "Kaydedildi. 2Captcha etkin.",+ "st.captcha.providers_security": "Anahtarlar bu tarayıcıda düz metin olarak saklanır. Her etkin sağlayıcı deneme için ücret alabilir. Zaman aşımında diğer sağlayıcıya geçildiğinde ilk görev hâlâ sürse bile iki hesap da ücretlendirilebilir. Kullanılabilir çözüm dönmezse ajan CAPTCHA’yı elle tamamlamanızı ister."+ },+ "es": {+ "st.captcha.heading": "Resolución de CAPTCHA",+ "st.captcha.order": "Usa uno o ambos proveedores. Guarda una clave válida para activar cada uno; Borrar lo desactiva. Si ambos están activos, se prueba CapSolver primero y después 2Captcha si falla o agota el tiempo.",+ "st.captcha.capsolver_desc": "Resuelve automáticamente reCAPTCHA v2/v3, hCaptcha, Turnstile y CAPTCHA de imágenes con tu cuenta de CapSolver.",+ "st.captcha.two_desc": "Resuelve automáticamente reCAPTCHA v2/v3, Turnstile y CAPTCHA de imágenes con tu cuenta de 2Captcha. hCaptcha requiere CapSolver.",+ "st.captcha.two_key": "Clave API de 2Captcha",+ "st.captcha.two_need_key": "Introduce una clave API válida de 2Captcha: 32 caracteres hexadecimales.",+ "st.captcha.two_saved": "Guardado. 2Captcha está activado.",+ "st.captcha.providers_security": "Las claves se guardan como texto sin cifrar en este navegador. Cada proveedor activo puede cobrar por un intento. El cambio por tiempo agotado puede generar cargos en ambas cuentas aunque la primera tarea siga ejecutándose. Si no hay una solución válida, el agente te pide completar el CAPTCHA manualmente."+ },+ "fr": {+ "st.captcha.heading": "Résolution des CAPTCHA",+ "st.captcha.order": "Utilisez un fournisseur ou les deux. Enregistrer une clé valide active le fournisseur ; Effacer le désactive. Si les deux sont actifs, CapSolver est essayé en premier, puis 2Captcha en cas d’échec ou de délai dépassé.",+ "st.captcha.capsolver_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, hCaptcha, Turnstile et CAPTCHA sous forme d’image avec votre compte CapSolver.",+ "st.captcha.two_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, Turnstile et CAPTCHA sous forme d’image avec votre compte 2Captcha. hCaptcha nécessite CapSolver.",+ "st.captcha.two_key": "Clé API 2Captcha",+ "st.captcha.two_need_key": "Saisissez une clé API 2Captcha valide : 32 caractères hexadécimaux.",+ "st.captcha.two_saved": "Enregistré. 2Captcha est activé.",+ "st.captcha.providers_security": "Les clés sont stockées en clair dans ce navigateur. Chaque fournisseur actif peut facturer une tentative. Le basculement après expiration du délai peut facturer les deux comptes même si la première tâche est toujours en cours. Sans solution utilisable, l’agent vous demande de terminer le CAPTCHA manuellement."+ },+ "de": {+ "st.captcha.heading": "CAPTCHA-Lösung",+ "st.captcha.order": "Nutzen Sie einen oder beide Anbieter. Ein gültiger gespeicherter Schlüssel aktiviert den Anbieter; Löschen deaktiviert ihn. Sind beide aktiv, wird zuerst CapSolver versucht, bei Fehler oder Zeitüberschreitung dann 2Captcha.",+ "st.captcha.capsolver_desc": "Lösen Sie reCAPTCHA v2/v3, hCaptcha, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem CapSolver-Konto.",+ "st.captcha.two_desc": "Lösen Sie reCAPTCHA v2/v3, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem 2Captcha-Konto. hCaptcha erfordert CapSolver.",+ "st.captcha.two_key": "2Captcha-API-Schlüssel",+ "st.captcha.two_need_key": "Geben Sie einen gültigen 2Captcha-API-Schlüssel ein: 32 hexadezimale Zeichen.",+ "st.captcha.two_saved": "Gespeichert. 2Captcha ist aktiviert.",+ "st.captcha.providers_security": "Die Schlüssel werden in diesem Browser im Klartext gespeichert. Jeder aktive Anbieter kann einen Versuch berechnen. Beim Wechsel nach einer Zeitüberschreitung können beide Konten belastet werden, auch wenn der erste Auftrag noch läuft. Ohne nutzbare Lösung bittet der Agent Sie, das CAPTCHA manuell abzuschließen."+ },+ "nl": {+ "st.captcha.heading": "CAPTCHA’s oplossen",+ "st.captcha.order": "Gebruik één of beide aanbieders. Een geldige sleutel opslaan schakelt de aanbieder in; Wissen schakelt deze uit. Als beide actief zijn, wordt eerst CapSolver geprobeerd en daarna 2Captcha bij een fout of time-out.",+ "st.captcha.capsolver_desc": "Los reCAPTCHA v2/v3, hCaptcha, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je CapSolver-account.",+ "st.captcha.two_desc": "Los reCAPTCHA v2/v3, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je 2Captcha-account. hCaptcha vereist CapSolver.",+ "st.captcha.two_key": "2Captcha API-sleutel",+ "st.captcha.two_need_key": "Voer een geldige 2Captcha API-sleutel in: 32 hexadecimale tekens.",+ "st.captcha.two_saved": "Opgeslagen. 2Captcha is ingeschakeld.",+ "st.captcha.providers_security": "Sleutels worden als platte tekst in deze browser opgeslagen. Elke actieve aanbieder kan een poging in rekening brengen. Overschakelen na een time-out kan beide accounts belasten, ook als de eerste taak nog loopt. Zonder bruikbare oplossing vraagt de agent je de CAPTCHA handmatig af te ronden."+ },+ "pt": {+ "st.captcha.heading": "Resolução de CAPTCHA",+ "st.captcha.order": "Use um ou ambos os provedores. Salvar uma chave válida ativa o provedor; Limpar o desativa. Com ambos ativos, o CapSolver é tentado primeiro e depois o 2Captcha em caso de falha ou tempo esgotado.",+ "st.captcha.capsolver_desc": "Resolva automaticamente reCAPTCHA v2/v3, hCaptcha, Turnstile e CAPTCHAs de imagem com sua conta CapSolver.",+ "st.captcha.two_desc": "Resolva automaticamente reCAPTCHA v2/v3, Turnstile e CAPTCHAs de imagem com sua conta 2Captcha. hCaptcha exige CapSolver.",+ "st.captcha.two_key": "Chave API do 2Captcha",+ "st.captcha.two_need_key": "Insira uma chave API válida do 2Captcha: 32 caracteres hexadecimais.",+ "st.captcha.two_saved": "Salvo. 2Captcha está ativado.",+ "st.captcha.providers_security": "As chaves são armazenadas em texto simples neste navegador. Cada provedor ativo pode cobrar por uma tentativa. A troca após o tempo esgotado pode gerar cobranças nas duas contas, mesmo que a primeira tarefa ainda esteja em andamento. Sem uma solução utilizável, o agente pede que você conclua o CAPTCHA manualmente."+ },+ "zh": {+ "st.captcha.heading": "CAPTCHA 验证码识别",+ "st.captcha.order": "可使用一个或两个服务商。保存有效密钥即可启用,清除密钥即可停用。两者都启用时,先尝试 CapSolver,失败或超时后再尝试 2Captcha。",+ "st.captcha.capsolver_desc": "使用你的 CapSolver 账户自动识别 reCAPTCHA v2/v3、hCaptcha、Turnstile 和图片验证码。",+ "st.captcha.two_desc": "使用你的 2Captcha 账户自动识别 reCAPTCHA v2/v3、Turnstile 和图片验证码。hCaptcha 需要 CapSolver。",+ "st.captcha.two_key": "2Captcha API 密钥",+ "st.captcha.two_need_key": "请输入有效的 2Captcha API 密钥:32 个十六进制字符。",+ "st.captcha.two_saved": "已保存。2Captcha 已启用。",+ "st.captcha.providers_security": "密钥以明文保存在此浏览器中。每个启用的服务商都可能对尝试收费。超时后切换服务商可能使两个账户都产生费用,即使第一个任务仍在运行。如果没有可用的结果,智能体会请你手动完成验证码。"+ },+ "ja": {+ "st.captcha.heading": "CAPTCHA の解決",+ "st.captcha.order": "一方または両方のサービスを使用できます。有効なキーを保存すると有効になり、クリアすると無効になります。両方が有効な場合、先に CapSolver を試し、失敗またはタイムアウト時に 2Captcha を試します。",+ "st.captcha.capsolver_desc": "CapSolver アカウントで reCAPTCHA v2/v3、hCaptcha、Turnstile、画像 CAPTCHA を自動的に解決します。",+ "st.captcha.two_desc": "2Captcha アカウントで reCAPTCHA v2/v3、Turnstile、画像 CAPTCHA を自動的に解決します。hCaptcha には CapSolver が必要です。",+ "st.captcha.two_key": "2Captcha API キー",+ "st.captcha.two_need_key": "有効な 2Captcha API キーを入力してください。16 進数で 32 文字です。",+ "st.captcha.two_saved": "保存しました。2Captcha は有効です。",+ "st.captcha.providers_security": "キーはこのブラウザーに平文で保存されます。有効な各サービスで試行に料金がかかる場合があります。タイムアウト後の切り替えでは、最初のタスクが実行中でも両方のアカウントに料金が発生することがあります。有効な結果が得られない場合、エージェントは CAPTCHA を手動で完了するよう求めます。"+ },+ "ko": {+ "st.captcha.heading": "CAPTCHA 해결",+ "st.captcha.order": "한 서비스 또는 두 서비스를 모두 사용할 수 있습니다. 유효한 키를 저장하면 활성화되고 지우면 비활성화됩니다. 둘 다 활성화된 경우 CapSolver를 먼저 시도하고 실패하거나 시간이 초과되면 2Captcha를 시도합니다.",+ "st.captcha.capsolver_desc": "CapSolver 계정으로 reCAPTCHA v2/v3, hCaptcha, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다.",+ "st.captcha.two_desc": "2Captcha 계정으로 reCAPTCHA v2/v3, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다. hCaptcha에는 CapSolver가 필요합니다.",+ "st.captcha.two_key": "2Captcha API 키",+ "st.captcha.two_need_key": "유효한 2Captcha API 키를 입력하세요. 32자리 16진수여야 합니다.",+ "st.captcha.two_saved": "저장되었습니다. 2Captcha가 활성화되었습니다.",+ "st.captcha.providers_security": "키는 이 브라우저에 일반 텍스트로 저장됩니다. 활성화된 각 서비스는 시도에 대해 요금을 부과할 수 있습니다. 시간 초과 후 전환하면 첫 작업이 진행 중이어도 두 계정 모두에 요금이 부과될 수 있습니다. 사용 가능한 결과가 없으면 에이전트가 CAPTCHA를 직접 완료하도록 요청합니다."+ },+ "ru": {+ "st.captcha.heading": "Решение CAPTCHA",+ "st.captcha.order": "Используйте один или оба сервиса. Сохранение действительного ключа включает сервис, очистка отключает его. Если включены оба, сначала используется CapSolver, затем 2Captcha при ошибке или тайм-ауте.",+ "st.captcha.capsolver_desc": "Автоматически решайте reCAPTCHA v2/v3, hCaptcha, Turnstile и CAPTCHA с изображениями через свой аккаунт CapSolver.",+ "st.captcha.two_desc": "Автоматически решайте reCAPTCHA v2/v3, Turnstile и CAPTCHA с изображениями через свой аккаунт 2Captcha. Для hCaptcha нужен CapSolver.",+ "st.captcha.two_key": "API-ключ 2Captcha",+ "st.captcha.two_need_key": "Введите действительный API-ключ 2Captcha: 32 шестнадцатеричных символа.",+ "st.captcha.two_saved": "Сохранено. 2Captcha включён.",+ "st.captcha.providers_security": "Ключи хранятся в этом браузере в открытом виде. Каждый включённый сервис может взимать плату за попытку. Переход после тайм-аута может привести к списанию с обоих аккаунтов, даже если первая задача ещё выполняется. Если подходящего решения нет, агент попросит вас пройти CAPTCHA вручную."+ },+ "uk": {+ "st.captcha.heading": "Розв’язання CAPTCHA",+ "st.captcha.order": "Використовуйте один або обидва сервіси. Збереження дійсного ключа вмикає сервіс, очищення вимикає його. Якщо ввімкнено обидва, спочатку використовується CapSolver, а в разі помилки або тайм-ауту — 2Captcha.",+ "st.captcha.capsolver_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, hCaptcha, Turnstile та CAPTCHA із зображеннями через свій обліковий запис CapSolver.",+ "st.captcha.two_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, Turnstile та CAPTCHA із зображеннями через свій обліковий запис 2Captcha. Для hCaptcha потрібен CapSolver.",+ "st.captcha.two_key": "API-ключ 2Captcha",+ "st.captcha.two_need_key": "Введіть дійсний API-ключ 2Captcha: 32 шістнадцяткові символи.",+ "st.captcha.two_saved": "Збережено. 2Captcha ввімкнено.",+ "st.captcha.providers_security": "Ключі зберігаються в цьому браузері відкритим текстом. Кожен увімкнений сервіс може стягувати плату за спробу. Перехід після тайм-ауту може спричинити списання з обох рахунків, навіть якщо перше завдання ще виконується. Якщо придатного рішення немає, агент попросить вас пройти CAPTCHA вручну."+ },+ "pl": {+ "st.captcha.heading": "Rozwiązywanie CAPTCHA",+ "st.captcha.order": "Używaj jednej lub obu usług. Zapisanie prawidłowego klucza włącza usługę, a wyczyszczenie ją wyłącza. Gdy obie są aktywne, najpierw działa CapSolver, a po błędzie lub przekroczeniu czasu — 2Captcha.",+ "st.captcha.capsolver_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, hCaptcha, Turnstile i obrazkowe CAPTCHA za pomocą konta CapSolver.",+ "st.captcha.two_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, Turnstile i obrazkowe CAPTCHA za pomocą konta 2Captcha. hCaptcha wymaga CapSolver.",+ "st.captcha.two_key": "Klucz API 2Captcha",+ "st.captcha.two_need_key": "Wpisz prawidłowy klucz API 2Captcha: 32 znaki szesnastkowe.",+ "st.captcha.two_saved": "Zapisano. 2Captcha jest włączone.",+ "st.captcha.providers_security": "Klucze są przechowywane w tej przeglądarce jawnym tekstem. Każda aktywna usługa może pobrać opłatę za próbę. Przełączenie po przekroczeniu czasu może obciążyć oba konta, nawet gdy pierwsze zadanie nadal trwa. Jeśli nie ma użytecznego rozwiązania, agent poprosi o ręczne ukończenie CAPTCHA."+ },+ "ar": {+ "st.captcha.heading": "حل CAPTCHA",+ "st.captcha.order": "استخدم خدمة واحدة أو الخدمتين. حفظ مفتاح صالح يفعّل الخدمة، ومسحه يعطّلها. عند تفعيل الخدمتين، تُجرّب CapSolver أولاً ثم 2Captcha عند الفشل أو انتهاء المهلة.",+ "st.captcha.capsolver_desc": "حل reCAPTCHA v2/v3 وhCaptcha وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب CapSolver.",+ "st.captcha.two_desc": "حل reCAPTCHA v2/v3 وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب 2Captcha. تتطلب hCaptcha خدمة CapSolver.",+ "st.captcha.two_key": "مفتاح API لخدمة 2Captcha",+ "st.captcha.two_need_key": "أدخل مفتاح API صالحاً لخدمة 2Captcha: 32 رمزاً بالنظام الست عشري.",+ "st.captcha.two_saved": "تم الحفظ. خدمة 2Captcha مفعّلة.",+ "st.captcha.providers_security": "تُحفظ المفاتيح كنص صريح في هذا المتصفح. قد تفرض كل خدمة مفعّلة رسوماً على المحاولة. قد يؤدي الانتقال بعد انتهاء المهلة إلى احتساب رسوم على الحسابين حتى لو كانت المهمة الأولى لا تزال جارية. إذا لم تُرجع أي خدمة حلاً صالحاً، يطلب منك الوكيل إكمال CAPTCHA يدوياً."+ },+ "he": {+ "st.captcha.heading": "פתרון CAPTCHA",+ "st.captcha.order": "אפשר להשתמש בספק אחד או בשניהם. שמירת מפתח תקין מפעילה ספק; ניקוי משבית אותו. כששניהם פעילים, CapSolver נבדק ראשון ולאחר כישלון או פסק זמן נעשה ניסיון עם 2Captcha.",+ "st.captcha.capsolver_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, hCaptcha, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון CapSolver שלך.",+ "st.captcha.two_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון 2Captcha שלך. hCaptcha דורש CapSolver.",+ "st.captcha.two_key": "מפתח API של 2Captcha",+ "st.captcha.two_need_key": "יש להזין מפתח API תקין של 2Captcha: 32 תווים הקסדצימליים.",+ "st.captcha.two_saved": "נשמר. 2Captcha פעיל.",+ "st.captcha.providers_security": "המפתחות נשמרים כטקסט גלוי בדפדפן זה. כל ספק פעיל עשוי לחייב עבור ניסיון. מעבר לאחר פסק זמן עשוי לחייב את שני החשבונות גם אם המשימה הראשונה עדיין פועלת. אם לא מתקבל פתרון שמיש, הסוכן יבקש ממך להשלים את ה-CAPTCHA ידנית."+ },+ "fa": {+ "st.captcha.heading": "حل CAPTCHA",+ "st.captcha.order": "از یک سرویس یا هر دو استفاده کنید. ذخیرهٔ کلید معتبر سرویس را فعال و پاککردن آن غیرفعال میکند. اگر هر دو فعال باشند، ابتدا CapSolver و در صورت خطا یا پایان مهلت، 2Captcha امتحان میشود.",+ "st.captcha.capsolver_desc": "با حساب CapSolver خود reCAPTCHA v2/v3، hCaptcha، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید.",+ "st.captcha.two_desc": "با حساب 2Captcha خود reCAPTCHA v2/v3، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید. hCaptcha به CapSolver نیاز دارد.",+ "st.captcha.two_key": "کلید API سرویس 2Captcha",+ "st.captcha.two_need_key": "یک کلید API معتبر 2Captcha وارد کنید: ۳۲ نویسهٔ شانزدهشانزدهی.",+ "st.captcha.two_saved": "ذخیره شد. 2Captcha فعال است.",+ "st.captcha.providers_security": "کلیدها بهصورت متن ساده در این مرورگر ذخیره میشوند. هر سرویس فعال ممکن است برای تلاش هزینه بگیرد. تغییر سرویس پس از پایان مهلت ممکن است از هر دو حساب هزینه بگیرد، حتی اگر کار اول هنوز در حال اجرا باشد. اگر راهحل قابل استفادهای دریافت نشود، عامل از شما میخواهد CAPTCHA را دستی تکمیل کنید."+ },+ "hi": {+ "st.captcha.heading": "CAPTCHA हल करना",+ "st.captcha.order": "एक या दोनों सेवाओं का उपयोग करें। मान्य कुंजी सहेजने से सेवा सक्रिय होती है; साफ़ करने से बंद होती है। दोनों सक्रिय हों तो पहले CapSolver और विफलता या समय सीमा पूरी होने पर 2Captcha आज़माया जाता है।",+ "st.captcha.capsolver_desc": "अपने CapSolver खाते से reCAPTCHA v2/v3, hCaptcha, Turnstile और चित्र CAPTCHA अपने-आप हल करें।",+ "st.captcha.two_desc": "अपने 2Captcha खाते से reCAPTCHA v2/v3, Turnstile और चित्र CAPTCHA अपने-आप हल करें। hCaptcha के लिए CapSolver चाहिए।",+ "st.captcha.two_key": "2Captcha API कुंजी",+ "st.captcha.two_need_key": "मान्य 2Captcha API कुंजी दर्ज करें: 32 हेक्साडेसिमल वर्ण।",+ "st.captcha.two_saved": "सहेजा गया। 2Captcha सक्रिय है।",+ "st.captcha.providers_security": "कुंजियाँ इस ब्राउज़र में सादे पाठ के रूप में सहेजी जाती हैं। हर सक्रिय सेवा प्रयास के लिए शुल्क ले सकती है। समय सीमा पूरी होने पर दूसरी सेवा आज़माने से दोनों खातों पर शुल्क लग सकता है, भले ही पहला काम अभी चल रहा हो। उपयोग योग्य समाधान न मिलने पर एजेंट आपसे CAPTCHA मैन्युअल रूप से पूरा करने को कहता है।"+ },+ "bn": {+ "st.captcha.heading": "CAPTCHA সমাধান",+ "st.captcha.order": "একটি বা উভয় পরিষেবা ব্যবহার করুন। বৈধ কী সংরক্ষণ করলে পরিষেবা চালু হয়; মুছে ফেললে বন্ধ হয়। উভয়টি চালু থাকলে প্রথমে CapSolver, ব্যর্থ হলে বা সময় শেষ হলে 2Captcha চেষ্টা করা হয়।",+ "st.captcha.capsolver_desc": "আপনার CapSolver অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, hCaptcha, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন।",+ "st.captcha.two_desc": "আপনার 2Captcha অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন। hCaptcha-এর জন্য CapSolver প্রয়োজন।",+ "st.captcha.two_key": "2Captcha API কী",+ "st.captcha.two_need_key": "একটি বৈধ 2Captcha API কী লিখুন: ৩২টি হেক্সাডেসিমেল অক্ষর।",+ "st.captcha.two_saved": "সংরক্ষিত। 2Captcha চালু আছে।",+ "st.captcha.providers_security": "কীগুলি এই ব্রাউজারে সাধারণ পাঠ্য হিসেবে সংরক্ষিত থাকে। প্রতিটি সক্রিয় পরিষেবা চেষ্টার জন্য অর্থ নিতে পারে। সময় শেষ হলে অন্য পরিষেবায় যাওয়ার কারণে প্রথম কাজ চলতে থাকলেও উভয় অ্যাকাউন্টে খরচ হতে পারে। ব্যবহারযোগ্য সমাধান না এলে এজেন্ট আপনাকে CAPTCHA নিজে সম্পূর্ণ করতে বলে।"+ },+ "id": {+ "st.captcha.heading": "Penyelesaian CAPTCHA",+ "st.captcha.order": "Gunakan salah satu atau kedua layanan. Menyimpan kunci valid mengaktifkan layanan; Hapus menonaktifkannya. Jika keduanya aktif, CapSolver dicoba dahulu, lalu 2Captcha jika gagal atau batas waktu habis.",+ "st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun CapSolver Anda.",+ "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun 2Captcha Anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.two_key": "Kunci API 2Captcha",+ "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang valid: 32 karakter heksadesimal.",+ "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa di browser ini. Setiap layanan aktif dapat mengenakan biaya per percobaan. Peralihan setelah batas waktu habis dapat membebani kedua akun meskipun tugas pertama masih berjalan. Jika tidak ada solusi yang dapat digunakan, agen meminta Anda menyelesaikan CAPTCHA secara manual."+ },+ "ms": {+ "st.captcha.heading": "Penyelesaian CAPTCHA",+ "st.captcha.order": "Gunakan satu atau kedua-dua perkhidmatan. Menyimpan kunci sah mengaktifkan perkhidmatan; Kosongkan menyahaktifkannya. Jika kedua-duanya aktif, CapSolver dicuba dahulu, kemudian 2Captcha jika gagal atau tamat masa.",+ "st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile dan CAPTCHA imej secara automatik dengan akaun CapSolver anda.",+ "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile dan CAPTCHA imej secara automatik dengan akaun 2Captcha anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.two_key": "Kunci API 2Captcha",+ "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang sah: 32 aksara perenambelasan.",+ "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa dalam pelayar ini. Setiap perkhidmatan aktif boleh mengenakan caj bagi percubaan. Pertukaran selepas tamat masa boleh mengenakan caj pada kedua-dua akaun walaupun tugas pertama masih berjalan. Jika tiada penyelesaian yang boleh digunakan, ejen meminta anda melengkapkan CAPTCHA secara manual."+ },+ "vi": {+ "st.captcha.heading": "Giải CAPTCHA",+ "st.captcha.order": "Dùng một hoặc cả hai dịch vụ. Lưu khóa hợp lệ để bật dịch vụ; Xóa để tắt. Khi cả hai được bật, CapSolver được thử trước, rồi đến 2Captcha nếu thất bại hoặc hết thời gian chờ.",+ "st.captcha.capsolver_desc": "Tự động giải reCAPTCHA v2/v3, hCaptcha, Turnstile và CAPTCHA hình ảnh bằng tài khoản CapSolver của bạn.",+ "st.captcha.two_desc": "Tự động giải reCAPTCHA v2/v3, Turnstile và CAPTCHA hình ảnh bằng tài khoản 2Captcha của bạn. hCaptcha cần CapSolver.",+ "st.captcha.two_key": "Khóa API 2Captcha",+ "st.captcha.two_need_key": "Nhập khóa API 2Captcha hợp lệ: 32 ký tự thập lục phân.",+ "st.captcha.two_saved": "Đã lưu. 2Captcha đã được bật.",+ "st.captcha.providers_security": "Khóa được lưu dưới dạng văn bản thuần trong trình duyệt này. Mỗi dịch vụ đang bật có thể tính phí cho một lần thử. Việc chuyển dịch vụ sau khi hết thời gian chờ có thể tính phí cả hai tài khoản dù tác vụ đầu vẫn đang chạy. Nếu không có lời giải dùng được, tác nhân sẽ yêu cầu bạn hoàn tất CAPTCHA thủ công."+ },+ "th": {+ "st.captcha.heading": "การแก้ CAPTCHA",+ "st.captcha.order": "ใช้บริการเดียวหรือทั้งสองบริการได้ การบันทึกคีย์ที่ถูกต้องจะเปิดใช้บริการ และการล้างจะปิดใช้ หากเปิดทั้งสอง จะลอง CapSolver ก่อน แล้วจึงลอง 2Captcha เมื่อล้มเหลวหรือหมดเวลา",+ "st.captcha.capsolver_desc": "แก้ reCAPTCHA v2/v3, hCaptcha, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี CapSolver ของคุณ",+ "st.captcha.two_desc": "แก้ reCAPTCHA v2/v3, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี 2Captcha ของคุณ โดย hCaptcha ต้องใช้ CapSolver",+ "st.captcha.two_key": "คีย์ API ของ 2Captcha",+ "st.captcha.two_need_key": "ป้อนคีย์ API ของ 2Captcha ที่ถูกต้อง: อักขระฐานสิบหก 32 ตัว",+ "st.captcha.two_saved": "บันทึกแล้ว เปิดใช้ 2Captcha แล้ว",+ "st.captcha.providers_security": "คีย์จะถูกเก็บเป็นข้อความธรรมดาในเบราว์เซอร์นี้ แต่ละบริการที่เปิดใช้อาจคิดค่าบริการต่อการลอง การเปลี่ยนบริการหลังหมดเวลาอาจทำให้ทั้งสองบัญชีถูกคิดค่าบริการ แม้งานแรกยังทำงานอยู่ หากไม่มีคำตอบที่ใช้ได้ เอเจนต์จะขอให้คุณทำ CAPTCHA ด้วยตนเอง"+ },+ "tl": {+ "st.captcha.heading": "Paglutas ng CAPTCHA",+ "st.captcha.order": "Gamitin ang isa o parehong serbisyo. Ang pag-save ng wastong key ay nagpapagana sa serbisyo; ang pag-clear ay nagdi-disable nito. Kapag parehong aktibo, CapSolver muna, saka 2Captcha kapag nabigo o nag-timeout.",+ "st.captcha.capsolver_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, hCaptcha, Turnstile, at mga CAPTCHA na larawan gamit ang iyong CapSolver account.",+ "st.captcha.two_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, Turnstile, at mga CAPTCHA na larawan gamit ang iyong 2Captcha account. Kailangan ng CapSolver para sa hCaptcha.",+ "st.captcha.two_key": "API key ng 2Captcha",+ "st.captcha.two_need_key": "Maglagay ng wastong API key ng 2Captcha: 32 hexadecimal na character.",+ "st.captcha.two_saved": "Na-save. Naka-enable ang 2Captcha.",+ "st.captcha.providers_security": "Nakaimbak ang mga key bilang plain text sa browser na ito. Maaaring maningil ang bawat aktibong serbisyo para sa isang pagsubok. Ang paglipat pagkatapos ng timeout ay maaaring maningil sa parehong account kahit tumatakbo pa ang unang gawain. Kung walang magagamit na solusyon, hihilingin ng agent na kumpletuhin mo mismo ang CAPTCHA."+ }+};diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.jsindex 35cad4ed4..8e25e95d4 100644--- a/src/firefox/src/ui/locales/de.js+++ b/src/firefox/src/ui/locales/de.js@@ -883,9 +883,6 @@ export default {'st.memory.security_html': '<strong>Datenschutz:</strong> Benutzermemorie wird als Klartext in diesem Browser-Profil gespeichert...',// --- CAPTCHA settings ---- 'st.captcha.desc_html': 'Lassen Sie den Agenten CAPTCHAs automatisch über die <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a>-API lösen. Unterstützt reCAPTCHA v2/v3, hCaptcha und Cloudflare Turnstile. Das Speichern eines gültigen API-Schlüssels aktiviert CapSolver automatisch; ohne Schlüssel hält der Agent an und bittet Sie, das CAPTCHA selbst zu lösen. CapSolver berechnet jede Lösung (~$0.001–$0.003); Sie verwenden Ihr eigenes Konto und Ihren eigenen API-Schlüssel.',- 'st.captcha.enabled.label': 'CapSolver aktivieren',- 'st.captcha.enabled.desc': 'Wenn der Agent auf ein CAPTCHA trifft, wird CapSolver einmal aufgerufen, bevor er Sie zur Lösung auffordert.','st.captcha.api_key.label': 'CapSolver API-Schlüssel','st.captcha.save': 'Schlüssel speichern','st.captcha.check_balance': 'Guthaben prüfen',@@ -896,7 +893,6 @@ export default {'st.captcha.need_key': 'Geben Sie einen gültigen CapSolver-API-Schlüssel ein, der mit CAP- beginnt.','st.captcha.balance_ok': 'OK — Guthaben: {balance}','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": "Zusätzliche Prüfung geplanter Überwachungen und Aufgabenabschlüsse.","st.system_one.enabled.label": "Jev aktivieren",diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.jsindex 860499e7d..b8bf93c77 100644--- a/src/firefox/src/ui/locales/en.js+++ b/src/firefox/src/ui/locales/en.js@@ -944,9 +944,6 @@ export default {'st.memory.reason.not_found': 'No saved memory has that ID.','st.memory.security_html': '<strong>Privacy:</strong> user memory is stored in plaintext in this browser profile. When enabled, active memory records are sent to whichever LLM provider you configure as part of the system prompt. Do not store passwords, API keys, tokens, recovery codes, or sensitive secrets here.',- 'st.captcha.desc_html': 'Let the agent solve CAPTCHAs automatically via the <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a> API. Supports reCAPTCHA v2/v3, hCaptcha, and Cloudflare Turnstile. Saving a valid API key enables CapSolver automatically; without one, the agent stops and asks you to solve the captcha yourself. CapSolver charges per solve (~$0.001–$0.003); you bring your own account and API key.',- 'st.captcha.enabled.label': 'Enable CapSolver',- 'st.captcha.enabled.desc': 'When the agent hits a CAPTCHA it will call CapSolver once before falling back to asking you. Requires an API key below.','st.captcha.api_key.label': 'CapSolver API Key','st.captcha.save': 'Save Key','st.captcha.check_balance': 'Check Balance',@@ -957,7 +954,6 @@ export default {'st.captcha.need_key': 'Enter a valid CapSolver API key beginning with CAP-.','st.captcha.balance_ok': 'OK — balance: {balance}','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": "Extra verification for scheduled watches and task completion.","st.system_one.enabled.label": "Enable Jev",diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.jsindex 6e6b76ac7..336cfd20f 100644--- a/src/firefox/src/ui/locales/es.js+++ b/src/firefox/src/ui/locales/es.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "¡Conectado! Modelo: {model}","st.transcription.failed": "Falló: {error}","st.transcription.fill_required": "Rellena primero la URL base y el modelo.",- "st.captcha.desc_html": "Deja que el agente resuelva CAPTCHAs automáticamente mediante la API de <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Admite reCAPTCHA v2/v3, hCaptcha y Cloudflare Turnstile. Al guardar una clave de API válida, CapSolver se activa automáticamente; sin una, el agente se detiene y te pide que resuelvas el captcha tú mismo. CapSolver cobra por cada resolución (~$0.001–$0.003); utilizas tu propia cuenta y clave de API.",- "st.captcha.enabled.label": "Activar CapSolver",- "st.captcha.enabled.desc": "Cuando el agente se encuentra con un CAPTCHA, llamará a CapSolver una vez antes de recurrir a pedírtelo a ti. Requiere una clave de API más abajo.","st.captcha.api_key.label": "Clave de API de CapSolver","st.captcha.save": "Guardar clave","st.captcha.check_balance": "Consultar saldo",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "Introduce una clave de API de CapSolver válida que empiece por CAP-.","st.captcha.balance_ok": "OK — saldo: {balance}","st.captcha.balance_fail": "Falló: {error}",- "st.captcha.security_html": "<strong>Atención:</strong> la clave de API se guarda <strong>en texto plano</strong> en el almacenamiento local del navegador. CapSolver cobra a tu cuenta por cada resolución; el agente solo la llamará cuando un CAPTCHA bloquee realmente un paso (como máximo una vez por encuentro: no reintentará tras un fallo). Los términos de servicio de algunos sitios prohíben la resolución automatizada de CAPTCHAs; usa tu criterio.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Acciones sugeridas',diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.jsindex 17fbd222f..6af89b437 100644--- a/src/firefox/src/ui/locales/fa.js+++ b/src/firefox/src/ui/locales/fa.js@@ -942,9 +942,6 @@ export default {'st.memory.reason.not_found': "هیچ حافظه ذخیره شده ای آن شناسه را ندارد.",'st.memory.security_html': "<strong>حریم خصوصی:</strong> حافظه کاربر به صورت متن ساده در این نمایه مرورگر ذخیره می شود. هنگامی که فعال باشد، سوابق حافظه فعال به هر ارائه دهنده LLM که به عنوان بخشی از درخواست سیستم پیکربندی می کنید ارسال می شود. رمزهای عبور، کلیدهای API، نشانهها، کدهای بازیابی یا اسرار حساس را در اینجا ذخیره نکنید.",- 'st.captcha.desc_html': "به عامل اجازه دهید CAPTCHAها را بهطور خودکار از طریق API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> حل کند. از reCAPTCHA v2/v3، hCaptcha و Cloudflare Turnstile پشتیبانی میکند. با ذخیره یک کلید API معتبر، CapSolver بهطور خودکار فعال میشود؛ بدون کلید، عامل متوقف میشود و از شما میخواهد CAPTCHA را خودتان حل کنید. CapSolver برای هر حل هزینه دریافت میکند (~$0.001–$0.003)؛ از حساب و کلید API خودتان استفاده میکنید.",- 'st.captcha.enabled.label': "CapSolver را فعال کنید",- 'st.captcha.enabled.desc': "هنگامی که عامل به یک CAPTCHA برخورد می کند، قبل از اینکه دوباره از شما بپرسد، یک بار با CapSolver تماس می گیرد. به یک کلید API در زیر نیاز دارد.",'st.captcha.api_key.label': "کلید API CapSolver",'st.captcha.save': "ذخیره کلید",'st.captcha.check_balance': "تعادل را بررسی کنید",@@ -955,7 +952,6 @@ export default {'st.captcha.need_key': "یک کلید API معتبر CapSolver که با CAP- شروع میشود وارد کنید.",'st.captcha.balance_ok': "خوب - تعادل: {balance}",'st.captcha.balance_fail': "ناموفق: {error}",- 'st.captcha.security_html': "<strong>هدآپ:</strong> کلید API ذخیره می شود <strong>در متن ساده</strong> در حافظه محلی مرورگر CapSolver برای هر حل حساب شما را شارژ می کند. عامل فقط زمانی آن را فراخوانی می کند که یک CAPTCHA در واقع یک مرحله را مسدود کند (حداکثر یک بار در هر برخورد - در صورت شکست مجدداً تلاش نمی کند). شرایط خدمات برخی از سایت ها حل خودکار CAPTCHA را ممنوع می کند. از قضاوت خود استفاده کنید","st.system_one.desc_html": "بررسی تکمیلی پایشهای زمانبندیشده و تکمیل کارها.","st.system_one.enabled.label": "فعالسازی Jev",diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.jsindex 692b98c62..5a405ae94 100644--- a/src/firefox/src/ui/locales/fr.js+++ b/src/firefox/src/ui/locales/fr.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "Connecté ! Modèle : {model}","st.transcription.failed": "Échec : {error}","st.transcription.fill_required": "Remplissez d'abord l'URL de base et le modèle.",- "st.captcha.desc_html": "Laissez l'agent résoudre les CAPTCHA automatiquement via l'API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Prend en charge reCAPTCHA v2/v3, hCaptcha et Cloudflare Turnstile. L'enregistrement d'une clé API valide active automatiquement CapSolver ; sans clé, l'agent s'arrête et vous demande de résoudre le CAPTCHA vous-même. CapSolver facture chaque résolution (~$0.001–$0.003) ; vous utilisez votre propre compte et votre propre clé API.",- "st.captcha.enabled.label": "Activer CapSolver",- "st.captcha.enabled.desc": "Lorsque l'agent rencontre un CAPTCHA, il appellera CapSolver une fois avant de se rabattre sur une demande de votre part. Nécessite une clé d'API ci-dessous.","st.captcha.api_key.label": "Clé d'API CapSolver","st.captcha.save": "Enregistrer la clé","st.captcha.check_balance": "Vérifier le solde",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "Saisissez une clé API CapSolver valide commençant par CAP-.","st.captcha.balance_ok": "OK — solde : {balance}","st.captcha.balance_fail": "Échec : {error}",- "st.captcha.security_html": "<strong>À noter :</strong> la clé d'API est stockée <strong>en clair</strong> dans le stockage local du navigateur. CapSolver facture votre compte pour chaque résolution ; l'agent ne l'appellera que lorsqu'un CAPTCHA bloque réellement une étape (au plus une fois par rencontre — il ne réessaiera pas en cas d'échec). Les conditions d'utilisation de certains sites interdisent la résolution automatisée de CAPTCHA ; faites preuve de discernement.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Actions suggérées',diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.jsindex 2c05ff3c3..b99de1738 100644--- a/src/firefox/src/ui/locales/he.js+++ b/src/firefox/src/ui/locales/he.js@@ -832,9 +832,6 @@ export default {"st.memory.reason.invalid_or_sensitive": "לא נשמר: הטקסט ריק לאחר הניקוי או שנראה כי הוא מכיל סוד (סיסמה, מפתח API או אסימון).","st.memory.reason.not_found": "לא נמצא זיכרון שמור עם המזהה הזה.","st.memory.security_html": "<strong>פרטיות:</strong> זיכרון המשתמש נשמר כטקסט גלוי בפרופיל הדפדפן הזה. כאשר הזיכרון מופעל, רשומות פעילות נשלחות לספק ה-LLM שהגדרת כחלק מהנחיית המערכת. אין לשמור כאן סיסמאות, מפתחות API, אסימונים, קודי שחזור או סודות רגישים.",- "st.captcha.desc_html": "אפשר לסוכן לפתור CAPTCHA באופן אוטומטי באמצעות API של <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. נתמכים reCAPTCHA v2/v3, hCaptcha ו-Cloudflare Turnstile. שמירת מפתח API תקין מפעילה את CapSolver אוטומטית; ללא מפתח, הסוכן נעצר ומבקש ממך לפתור את ה-CAPTCHA בעצמך. CapSolver גובה תשלום לכל פתרון (כ-$0.001–$0.003); נעשה שימוש בחשבון ובמפתח API משלך.",- "st.captcha.enabled.label": "הפעל את CapSolver",- "st.captcha.enabled.desc": "כאשר CAPTCHA חוסם את הסוכן, הוא ינסה לפנות ל-CapSolver פעם אחת לפני שיבקש ממך לפתור אותו. נדרש מפתח API למטה.","st.captcha.api_key.label": "מפתח API של CapSolver","st.captcha.save": "שמור מפתח","st.captcha.check_balance": "בדוק יתרה",@@ -845,7 +842,6 @@ export default {"st.captcha.need_key": "יש להזין מפתח API תקין של CapSolver שמתחיל ב-CAP-.","st.captcha.balance_ok": "תקין — יתרה: {balance}","st.captcha.balance_fail": "נכשל: {error}",- "st.captcha.security_html": "<strong>לתשומת לבך:</strong> מפתח ה-API נשמר <strong>כטקסט גלוי</strong> באחסון המקומי של הדפדפן. CapSolver מחייב את החשבון שלך על כל פתרון; הסוכן יפנה אליו רק כאשר CAPTCHA חוסם שלב בפועל, ולכל היותר פעם אחת בכל מפגש. תנאי השימוש של אתרים מסוימים אוסרים פתרון CAPTCHA אוטומטי; הפעל שיקול דעת.","hist.title": "WebBrain היסטוריית צ'אט","hist.records": "{n} רשומות","hist.record": "{n} רְשׁוּמָה",diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.jsindex 9905ecca7..3ce6399f5 100644--- a/src/firefox/src/ui/locales/hi.js+++ b/src/firefox/src/ui/locales/hi.js@@ -942,9 +942,6 @@ export default {'st.memory.reason.not_found': "किसी भी सहेजी गई मेमोरी में वह आईडी नहीं है।",'st.memory.security_html': "<strong>गोपनीयता:</strong> इस ब्राउज़र प्रोफ़ाइल में उपयोगकर्ता मेमोरी को प्लेनटेक्स्ट में संग्रहीत किया जाता है। सक्षम होने पर, सक्रिय मेमोरी रिकॉर्ड सिस्टम प्रॉम्प्ट के भाग के रूप में आपके द्वारा कॉन्फ़िगर किए गए किसी भी एलएलएम प्रदाता को भेजे जाते हैं। यहां पासवर्ड, एपीआई कुंजी, टोकन, पुनर्प्राप्ति कोड या संवेदनशील रहस्य संग्रहीत न करें।",- 'st.captcha.desc_html': "एजेंट को <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API के माध्यम से CAPTCHA अपने-आप हल करने दें। यह reCAPTCHA v2/v3, hCaptcha और Cloudflare Turnstile का समर्थन करता है। मान्य API कुंजी सहेजने पर CapSolver अपने-आप सक्रिय हो जाता है; कुंजी के बिना एजेंट रुकता है और आपसे CAPTCHA स्वयं हल करने को कहता है। CapSolver हर समाधान के लिए शुल्क लेता है (~$0.001–$0.003); आप अपना खाता और API कुंजी उपयोग करते हैं।",- 'st.captcha.enabled.label': "कैपसॉल्वर सक्षम करें",- 'st.captcha.enabled.desc': "जब एजेंट कैप्चा दबाता है तो वह आपसे पूछने से पहले एक बार कैपसॉल्वर को कॉल करेगा। नीचे एक एपीआई कुंजी की आवश्यकता है।",'st.captcha.api_key.label': "कैपसॉल्वर एपीआई कुंजी",'st.captcha.save': "कुंजी सहेजें",'st.captcha.check_balance': "शेष राशि जांचें",@@ -955,7 +952,6 @@ export default {'st.captcha.need_key': "CAP- से शुरू होने वाली मान्य CapSolver API कुंजी दर्ज करें।",'st.captcha.balance_ok': "ठीक है - संतुलन: {balance}",'st.captcha.balance_fail': "विफल: {error}",- 'st.captcha.security_html': "<strong>सावधान:</strong> एपीआई कुंजी संग्रहीत है <strong>सादे पाठ में</strong> ब्राउज़र स्थानीय भंडारण में. कैपसॉल्वर प्रत्येक समाधान के लिए आपके खाते से शुल्क लेता है; एजेंट इसे केवल तभी कॉल करेगा जब कैप्चा वास्तव में एक चरण को अवरुद्ध करता है (प्रति मुठभेड़ अधिकतम एक बार - यह विफलता पर पुनः प्रयास नहीं करेगा)। कुछ साइटों की सेवा की शर्तें स्वचालित कैप्चा समाधान पर रोक लगाती हैं; अपने निर्णय का प्रयोग करें.","st.system_one.desc_html": "निर्धारित निगरानी और कार्य पूर्ण होने की अतिरिक्त जाँच।","st.system_one.enabled.label": "Jev चालू करें",diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.jsindex ffb29b091..46fbae77c 100644--- a/src/firefox/src/ui/locales/id.js+++ b/src/firefox/src/ui/locales/id.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "Terhubung! Model: {model}","st.transcription.failed": "Gagal: {error}","st.transcription.fill_required": "Isi URL dasar dan Model terlebih dahulu.",- "st.captcha.desc_html": "Biarkan agen menyelesaikan CAPTCHA secara otomatis melalui API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Mendukung reCAPTCHA v2/v3, hCaptcha, dan Cloudflare Turnstile. Menyimpan kunci API yang valid akan mengaktifkan CapSolver secara otomatis; tanpa kunci, agen berhenti dan meminta Anda menyelesaikan CAPTCHA sendiri. CapSolver mengenakan biaya per penyelesaian (~$0.001–$0.003); Anda menggunakan akun dan kunci API sendiri.",- "st.captcha.enabled.label": "Aktifkan CapSolver",- "st.captcha.enabled.desc": "Saat agen menemui CAPTCHA, ia akan memanggil CapSolver sekali sebelum kembali bertanya kepada Anda. Memerlukan kunci API di bawah.","st.captcha.api_key.label": "Kunci API CapSolver","st.captcha.save": "Simpan Kunci","st.captcha.check_balance": "Periksa Saldo",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "Masukkan kunci API CapSolver valid yang diawali CAP-.","st.captcha.balance_ok": "OK — saldo: {balance}","st.captcha.balance_fail": "Gagal: {error}",- "st.captcha.security_html": "<strong>Perhatian:</strong> kunci API disimpan <strong>dalam bentuk teks biasa</strong> di penyimpanan lokal peramban. CapSolver menarik biaya akun Anda untuk setiap penyelesaian; agen hanya akan memanggilnya saat CAPTCHA benar-benar memblokir sebuah langkah (maksimal sekali per kejadian — ia tidak akan mengulang saat gagal). Ketentuan layanan beberapa situs melarang penyelesaian CAPTCHA otomatis; gunakan pertimbangan Anda.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Tindakan yang disarankan',diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.jsindex 1e1c55ae5..8b1f33691 100644--- a/src/firefox/src/ui/locales/ja.js+++ b/src/firefox/src/ui/locales/ja.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "接続しました!モデル: {model}","st.transcription.failed": "失敗: {error}","st.transcription.fill_required": "先にベース URL とモデルを入力してください。",- "st.captcha.desc_html": "<a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API を使って、エージェントに CAPTCHA を自動で解かせます。reCAPTCHA v2/v3、hCaptcha、Cloudflare Turnstile に対応しています。有効な API キーを保存すると CapSolver が自動的に有効になります。キーがない場合、エージェントは停止し、CAPTCHA を手動で解くよう求めます。CapSolver は解決ごとに課金します(約 ~$0.001–$0.003)。ご自身のアカウントと API キーを使用します。",- "st.captcha.enabled.label": "CapSolver を有効化",- "st.captcha.enabled.desc": "エージェントが CAPTCHA に遭遇すると、あなたに尋ねる前にまず CapSolver を 1 回呼び出します。下記の API キーが必要です。","st.captcha.api_key.label": "CapSolver API キー","st.captcha.save": "キーを保存","st.captcha.check_balance": "残高を確認",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "CAP- で始まる有効な CapSolver API キーを入力してください。","st.captcha.balance_ok": "OK — 残高: {balance}","st.captcha.balance_fail": "失敗: {error}",- "st.captcha.security_html": "<strong>ご注意:</strong> API キーはブラウザのローカルストレージに<strong>平文</strong>で保存されます。CapSolver は解くたびにあなたのアカウントに課金します。エージェントは CAPTCHA が実際にステップをブロックしたときにのみ呼び出します(1 回の遭遇につき最大 1 回 — 失敗しても再試行はしません)。一部のサイトの利用規約は自動的な CAPTCHA の解決を禁止しています。ご自身の判断でご利用ください。",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'おすすめのアクション',diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.jsindex ec940ad2f..0686e9a0d 100644--- a/src/firefox/src/ui/locales/ko.js+++ b/src/firefox/src/ui/locales/ko.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "연결됨! 모델: {model}","st.transcription.failed": "실패: {error}","st.transcription.fill_required": "먼저 기본 URL과 모델을 입력하세요.",- "st.captcha.desc_html": "에이전트가 <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API를 통해 CAPTCHA를 자동으로 풀게 합니다. reCAPTCHA v2/v3, hCaptcha, Cloudflare Turnstile을 지원합니다. 유효한 API 키를 저장하면 CapSolver가 자동으로 활성화됩니다. 키가 없으면 에이전트가 멈추고 CAPTCHA를 직접 풀어 달라고 요청합니다. CapSolver는 풀이당 요금을 부과하며(~$0.001–$0.003), 본인의 계정과 API 키를 사용합니다.",- "st.captcha.enabled.label": "CapSolver 사용",- "st.captcha.enabled.desc": "에이전트가 CAPTCHA를 만나면 사용자에게 묻기로 폴백하기 전에 CapSolver를 한 번 호출합니다. 아래에 API 키가 필요합니다.","st.captcha.api_key.label": "CapSolver API 키","st.captcha.save": "키 저장","st.captcha.check_balance": "잔액 확인",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "CAP-로 시작하는 유효한 CapSolver API 키를 입력하세요.","st.captcha.balance_ok": "정상 — 잔액: {balance}","st.captcha.balance_fail": "실패: {error}",- "st.captcha.security_html": "<strong>참고:</strong> API 키는 브라우저 로컬 저장소에 <strong>평문으로</strong> 저장됩니다. CapSolver는 풀이마다 계정에 요금을 부과합니다. 에이전트는 CAPTCHA가 실제로 단계를 막을 때만 이를 호출하며(한 번 만날 때마다 최대 한 번 — 실패해도 재시도하지 않습니다), 일부 사이트의 서비스 약관은 자동 CAPTCHA 풀이를 금지하므로, 판단에 따라 사용하세요.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': '추천 작업',diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.jsindex 3c555ec2d..63e409a77 100644--- a/src/firefox/src/ui/locales/ms.js+++ b/src/firefox/src/ui/locales/ms.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "Tersambung! Model: {model}","st.transcription.failed": "Gagal: {error}","st.transcription.fill_required": "Isi URL Asas dan Model terlebih dahulu.",- "st.captcha.desc_html": "Biarkan ejen menyelesaikan CAPTCHA secara automatik melalui API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Menyokong reCAPTCHA v2/v3, hCaptcha dan Cloudflare Turnstile. Menyimpan kunci API yang sah akan mengaktifkan CapSolver secara automatik; tanpa kunci, ejen berhenti dan meminta anda menyelesaikan CAPTCHA sendiri. CapSolver mengenakan bayaran bagi setiap penyelesaian (~$0.001–$0.003); anda menggunakan akaun dan kunci API sendiri.",- "st.captcha.enabled.label": "Dayakan CapSolver",- "st.captcha.enabled.desc": "Apabila ejen menemui CAPTCHA, ia akan memanggil CapSolver sekali sebelum berundur untuk bertanya kepada anda. Memerlukan kunci API di bawah.","st.captcha.api_key.label": "Kunci API CapSolver","st.captcha.save": "Simpan Kunci","st.captcha.check_balance": "Semak Baki",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "Masukkan kunci API CapSolver yang sah dan bermula dengan CAP-.","st.captcha.balance_ok": "OK — baki: {balance}","st.captcha.balance_fail": "Gagal: {error}",- "st.captcha.security_html": "<strong>Perhatian:</strong> kunci API disimpan <strong>sebagai teks biasa</strong> dalam storan tempatan pelayar. CapSolver mengenakan bayaran kepada akaun anda bagi setiap penyelesaian; ejen hanya akan memanggilnya apabila CAPTCHA benar-benar menyekat sesuatu langkah (maksimum sekali setiap pertemuan — ia tidak akan mencuba semula apabila gagal). Sesetengah syarat perkhidmatan laman melarang penyelesaian CAPTCHA automatik; gunakan budi bicara anda.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Tindakan yang dicadangkan',diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.jsindex b3f065ced..2780f68a9 100644--- a/src/firefox/src/ui/locales/nl.js+++ b/src/firefox/src/ui/locales/nl.js@@ -843,9 +843,6 @@ export default {'st.memory.reason.invalid_or_sensitive': 'Niet opgeslagen: de tekst is leeg na opschonen...','st.memory.reason.not_found': 'Geen opgeslagen geheugen heeft die ID.','st.memory.security_html': '<strong>Privacy:</strong> gebruikersgeheugen wordt in platte tekst opgeslagen...',- 'st.captcha.desc_html': 'Laat de agent CAPTCHA\'s automatisch oplossen via de <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a>-API. Ondersteunt reCAPTCHA v2/v3, hCaptcha en Cloudflare Turnstile. Door een geldige API-sleutel op te slaan wordt CapSolver automatisch ingeschakeld; zonder sleutel stopt de agent en vraagt deze u de CAPTCHA zelf op te lossen. CapSolver brengt kosten per oplossing in rekening (~$0.001–$0.003); u gebruikt uw eigen account en API-sleutel.',- 'st.captcha.enabled.label': 'CapSolver inschakelen',- 'st.captcha.enabled.desc': 'Wanneer de agent een CAPTCHA tegenkomt, belt deze één keer CapSolver...','st.captcha.api_key.label': 'CapSolver API-sleutel','st.captcha.save': 'Sleutel opslaan','st.captcha.check_balance': 'Saldo controleren',@@ -856,7 +853,6 @@ export default {'st.captcha.need_key': 'Voer een geldige CapSolver API-sleutel in die met CAP- begint.','st.captcha.balance_ok': 'OK — saldo: {balance}','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": "Extra controle van geplande bewakingen en voltooide taken.","st.system_one.enabled.label": "Jev inschakelen",diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.jsindex 942aae174..8fae39226 100644--- a/src/firefox/src/ui/locales/pl.js+++ b/src/firefox/src/ui/locales/pl.js@@ -630,9 +630,6 @@ export default {'st.profile.saved': 'Zapisano.','st.profile.cleared': 'Wyczyszczono.','st.profile.security_html': '<strong>Bezpieczeństwo — przeczytaj to:</strong><br><ul style="margin:6px 0 0 18px;padding:0;line-height:1.55;"><li>Tekst wprowadzony tutaj jest przechowywany <strong>w postaci jawnej</strong> w lokalnej pamięci przeglądarki. <strong>Nie</strong> jest przesyłany do projektu WebBrain — ale <strong>jest</strong> wysyłany do skonfigurowanego dostawcy LLM w każdej turze, jako część promptu systemowego.</li><li><strong>Nie umieszczaj tutaj haseł do ważnych kont</strong> (Google, Apple, iCloud, bankowość, służbowe SSO, główny e-mail). Te konta powinny używać 2FA i i tak nie powinieneś przekazywać ich agentowi.</li><li><strong>Jednorazowe hasło</strong>, którego używasz wielokrotnie do mało istotnych rejestracji (newslettery, darmowe wersje próbne, konta forów) to docelowy przypadek użycia.</li><li>Jeśli ten profil przeglądarki kiedykolwiek zostanie naruszony, atakujący z dostępem do dysku może odczytać ten tekst. Ogranicz go do minimum.</li></ul>',- 'st.captcha.desc_html': 'Pozwól agentowi automatycznie rozwiązywać CAPTCHA przez API <a href="https://capsolver.com" target="_blank" style="color:var(--accent);">CapSolver</a>. Obsługuje reCAPTCHA v2/v3, hCaptcha i Cloudflare Turnstile. Zapisanie prawidłowego klucza API automatycznie włącza CapSolver; bez klucza agent zatrzymuje się i prosi o samodzielne rozwiązanie CAPTCHA. CapSolver pobiera opłatę za każde rozwiązanie (~0,001–0,003 USD); używasz własnego konta i klucza API.',- 'st.captcha.enabled.label': 'Włącz CapSolver',- 'st.captcha.enabled.desc': 'Gdy agent natrafi na CAPTCHA, wywoła CapSolver raz, zanim wróci do proszenia Ciebie. Wymaga klucza API poniżej.','st.captcha.api_key.label': 'Klucz API CapSolver','st.captcha.save': 'Zapisz klucz','st.captcha.check_balance': 'Sprawdź saldo',@@ -643,7 +640,6 @@ export default {'st.captcha.need_key': 'Wprowadź prawidłowy klucz API CapSolver zaczynający się od CAP-.','st.captcha.balance_ok': 'OK — saldo: {balance}','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": "Dodatkowa weryfikacja zaplanowanego monitorowania i ukończenia zadań.","st.system_one.enabled.label": "Włącz Jev",diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.jsindex 9a6d50804..928f405fa 100644--- a/src/firefox/src/ui/locales/pt.js+++ b/src/firefox/src/ui/locales/pt.js@@ -942,9 +942,6 @@ export default {'st.memory.reason.not_found': "Nenhuma memória salva possui esse ID.",'st.memory.security_html': "<strong>Privacidade:</strong> a memória do usuário é armazenada em texto simples neste perfil de navegador. Quando ativado, os registros de memória ativa são enviados para qualquer provedor LLM configurado como parte do prompt do sistema. Não armazene senhas, chaves de API, tokens, códigos de recuperação ou segredos confidenciais aqui.",- 'st.captcha.desc_html': "Deixe o agente resolver CAPTCHAs automaticamente pela API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Suporta reCAPTCHA v2/v3, hCaptcha e Cloudflare Turnstile. Salvar uma chave de API válida ativa o CapSolver automaticamente; sem uma chave, o agente para e pede que você resolva o CAPTCHA. O CapSolver cobra por resolução (~$0,001–$0,003); você usa sua própria conta e chave de API.",- 'st.captcha.enabled.label': "Habilitar CapSolver",- 'st.captcha.enabled.desc': "Quando o agente atingir um CAPTCHA, ele ligará para o CapSolver uma vez antes de voltar a perguntar a você. Requer uma chave de API abaixo.",'st.captcha.api_key.label': "Chave de API CapSolver",'st.captcha.save': "Salvar chave",'st.captcha.check_balance': "Verifique o saldo",@@ -955,7 +952,6 @@ export default {'st.captcha.need_key': "Insira uma chave de API válida do CapSolver que comece com CAP-.",'st.captcha.balance_ok': "OK - saldo: {balance}",'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": "Verificação adicional de monitoramentos e tarefas agendadas.","st.system_one.enabled.label": "Ativar Jev",diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.jsindex f77112b74..71dcc17cc 100644--- a/src/firefox/src/ui/locales/ru.js+++ b/src/firefox/src/ui/locales/ru.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "Подключено! Модель: {model}","st.transcription.failed": "Сбой: {error}","st.transcription.fill_required": "Сначала заполните базовый URL и модель.",- "st.captcha.desc_html": "Позвольте агенту автоматически решать CAPTCHA через API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Поддерживает reCAPTCHA v2/v3, hCaptcha и Cloudflare Turnstile. Сохранение действительного API-ключа автоматически включает CapSolver; без ключа агент останавливается и просит вас решить CAPTCHA самостоятельно. CapSolver берёт плату за каждое решение (~$0.001–$0.003); используется ваш аккаунт и API-ключ.",- "st.captcha.enabled.label": "Включить CapSolver",- "st.captcha.enabled.desc": "Когда агент сталкивается с CAPTCHA, он один раз обращается к CapSolver, прежде чем перейти к запросу к вам. Требуется API-ключ ниже.","st.captcha.api_key.label": "API-ключ CapSolver","st.captcha.save": "Сохранить ключ","st.captcha.check_balance": "Проверить баланс",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "Введите действительный API-ключ CapSolver, начинающийся с CAP-.","st.captcha.balance_ok": "ОК — баланс: {balance}","st.captcha.balance_fail": "Сбой: {error}",- "st.captcha.security_html": "<strong>Обратите внимание:</strong> API-ключ хранится <strong>в открытом виде</strong> в локальном хранилище браузера. CapSolver списывает средства с вашего аккаунта за каждое решение; агент обращается к нему только когда CAPTCHA действительно блокирует шаг (максимум один раз за встречу — повторных попыток при сбое не будет). Условия использования некоторых сайтов запрещают автоматическое решение CAPTCHA; действуйте на своё усмотрение.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Рекомендуемые действия',diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.jsindex 8ae956728..967ff2334 100644--- a/src/firefox/src/ui/locales/th.js+++ b/src/firefox/src/ui/locales/th.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "เชื่อมต่อแล้ว! โมเดล: {model}","st.transcription.failed": "ล้มเหลว: {error}","st.transcription.fill_required": "กรอก URL ฐานและโมเดลก่อน",- "st.captcha.desc_html": "ให้เอเจนต์แก้ CAPTCHA โดยอัตโนมัติผ่าน API ของ <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> รองรับ reCAPTCHA v2/v3, hCaptcha และ Cloudflare Turnstile การบันทึกคีย์ API ที่ถูกต้องจะเปิดใช้ CapSolver โดยอัตโนมัติ หากไม่มีคีย์ เอเจนต์จะหยุดและขอให้คุณแก้ CAPTCHA เอง CapSolver คิดค่าบริการต่อการแก้หนึ่งครั้ง (~$0.001–$0.003) โดยใช้บัญชีและคีย์ API ของคุณเอง",- "st.captcha.enabled.label": "เปิดใช้งาน CapSolver",- "st.captcha.enabled.desc": "เมื่อเอเจนต์เจอ CAPTCHA มันจะเรียก CapSolver หนึ่งครั้งก่อนถอยไปถามคุณ ต้องมีคีย์ API ด้านล่าง","st.captcha.api_key.label": "คีย์ API ของ CapSolver","st.captcha.save": "บันทึกคีย์","st.captcha.check_balance": "ตรวจสอบยอดคงเหลือ",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "กรอกคีย์ API ของ CapSolver ที่ถูกต้องและขึ้นต้นด้วย CAP-","st.captcha.balance_ok": "สำเร็จ — ยอดคงเหลือ: {balance}","st.captcha.balance_fail": "ล้มเหลว: {error}",- "st.captcha.security_html": "<strong>โปรดทราบ:</strong> คีย์ API ถูกเก็บ <strong>เป็นข้อความธรรมดา</strong> ใน local storage ของเบราว์เซอร์ CapSolver คิดเงินจากบัญชีของคุณทุกครั้งที่แก้ เอเจนต์จะเรียกใช้เฉพาะเมื่อ CAPTCHA บล็อกขั้นตอนจริง ๆ เท่านั้น (สูงสุดหนึ่งครั้งต่อการพบหนึ่งครั้ง — จะไม่ลองใหม่เมื่อล้มเหลว) ข้อกำหนดการให้บริการของบางเว็บไซต์ห้ามการแก้ CAPTCHA แบบอัตโนมัติ โปรดใช้วิจารณญาณ",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'การดำเนินการที่แนะนำ',diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.jsindex 1a75a20f2..9c8b3afd6 100644--- a/src/firefox/src/ui/locales/tl.js+++ b/src/firefox/src/ui/locales/tl.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "Konektado! Modelo: {model}","st.transcription.failed": "Nabigo: {error}","st.transcription.fill_required": "Punan muna ang Base URL at Modelo.",- "st.captcha.desc_html": "Hayaan ang ahente na awtomatikong lutasin ang mga CAPTCHA sa pamamagitan ng <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API. Sinusuportahan ang reCAPTCHA v2/v3, hCaptcha, at Cloudflare Turnstile. Awtomatikong pinapagana ang CapSolver kapag nag-save ka ng wastong API key; kung walang key, hihinto ang ahente at hihilingin sa iyong lutasin mismo ang CAPTCHA. Naniningil ang CapSolver sa bawat solve (~$0.001–$0.003); ginagamit mo ang sarili mong account at API key.",- "st.captcha.enabled.label": "I-enable ang CapSolver",- "st.captcha.enabled.desc": "Kapag may naabot na CAPTCHA ang ahente, tatawag ito sa CapSolver nang isang beses bago bumalik sa pagtatanong sa iyo. Kailangan ng API key sa ibaba.","st.captcha.api_key.label": "CapSolver API Key","st.captcha.save": "I-save ang Key","st.captcha.check_balance": "Tingnan ang Balanse",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "Maglagay ng wastong CapSolver API key na nagsisimula sa CAP-.","st.captcha.balance_ok": "OK — balanse: {balance}","st.captcha.balance_fail": "Nabigo: {error}",- "st.captcha.security_html": "<strong>Paalala:</strong> ang API key ay iniimbak <strong>bilang plaintext</strong> sa local storage ng browser. Naniningil ang CapSolver sa iyong account sa bawat solve; tatawag lamang dito ang ahente kapag tunay na hinaharang ng CAPTCHA ang isang hakbang (pinakamarami ay isang beses bawat pagkakataon — hindi ito mag-uulit kapag nabigo). Ang mga terms of service ng ilang site ay nagbabawal sa automated na paglutas ng CAPTCHA; gamitin ang iyong pagpapasya.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Mga iminungkahing aksyon',diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.jsindex 8c7739266..6bad98aae 100644--- a/src/firefox/src/ui/locales/tr.js+++ b/src/firefox/src/ui/locales/tr.js@@ -633,9 +633,6 @@ export default {"st.transcription.connected": "Bağlandı! Model: {model}","st.transcription.failed": "Başarısız: {error}","st.transcription.fill_required": "Önce Temel URL ve Model alanlarını doldur.",- "st.captcha.desc_html": "Aracının CAPTCHA'ları <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API'si üzerinden otomatik çözmesine izin ver. reCAPTCHA v2/v3, hCaptcha ve Cloudflare Turnstile desteklenir. Geçerli bir API anahtarı kaydedildiğinde CapSolver otomatik olarak etkinleşir; anahtar yoksa aracı durur ve CAPTCHA'yı senin çözmeni ister. CapSolver her çözüm için ücret alır (~$0.001–$0.003); kendi hesabını ve API anahtarını kullanırsın.",- "st.captcha.enabled.label": "CapSolver'ı etkinleştir",- "st.captcha.enabled.desc": "Aracı bir CAPTCHA ile karşılaştığında, sana sormaya geri dönmeden önce bir kez CapSolver'ı çağırır. Aşağıda bir API anahtarı gerektirir.","st.captcha.api_key.label": "CapSolver API Anahtarı","st.captcha.save": "Anahtarı Kaydet","st.captcha.check_balance": "Bakiyeyi Kontrol Et",@@ -646,7 +643,6 @@ export default {"st.captcha.need_key": "CAP- ile başlayan geçerli bir CapSolver API anahtarı gir.","st.captcha.balance_ok": "TAMAM — bakiye: {balance}","st.captcha.balance_fail": "Başarısız: {error}",- "st.captcha.security_html": "<strong>Dikkat:</strong> API anahtarı tarayıcının yerel depolamasında <strong>düz metin olarak</strong> saklanır. CapSolver her çözüm için hesabından ücret alır; aracı yalnızca bir CAPTCHA gerçekten bir adımı engellediğinde onu çağırır (karşılaşma başına en fazla bir kez — başarısızlıkta yeniden denemez). Bazı sitelerin hizmet şartları otomatik CAPTCHA çözmeyi yasaklar; kendi takdirini kullan.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Önerilen işlemler',diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.jsindex 1a66ff607..9625d76d4 100644--- a/src/firefox/src/ui/locales/uk.js+++ b/src/firefox/src/ui/locales/uk.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "Підключено! Модель: {model}","st.transcription.failed": "Збій: {error}","st.transcription.fill_required": "Спочатку заповніть базовий URL і модель.",- "st.captcha.desc_html": "Дозвольте агенту автоматично розв'язувати CAPTCHA через API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Підтримує reCAPTCHA v2/v3, hCaptcha та Cloudflare Turnstile. Збереження дійсного API-ключа автоматично вмикає CapSolver; без ключа агент зупиняється й просить вас розв'язати CAPTCHA самостійно. CapSolver стягує плату за кожне розв'язання (~$0.001–$0.003); ви використовуєте власний акаунт і API-ключ.",- "st.captcha.enabled.label": "Увімкнути CapSolver",- "st.captcha.enabled.desc": "Коли агент натрапляє на CAPTCHA, він один раз викличе CapSolver, перш ніж повернутися до запиту до вас. Потрібен API-ключ нижче.","st.captcha.api_key.label": "API-ключ CapSolver","st.captcha.save": "Зберегти ключ","st.captcha.check_balance": "Перевірити баланс",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "Введіть дійсний API-ключ CapSolver, що починається з CAP-.","st.captcha.balance_ok": "ОК — баланс: {balance}","st.captcha.balance_fail": "Збій: {error}",- "st.captcha.security_html": "<strong>Зверніть увагу:</strong> API-ключ зберігається <strong>у відкритому вигляді</strong> в локальному сховищі браузера. CapSolver стягує плату з вашого акаунта за кожне розв'язання; агент викличе його лише тоді, коли CAPTCHA справді блокує крок (максимум один раз на зустріч — він не повторюватиме спробу після невдачі). Умови надання послуг деяких сайтів забороняють автоматичне розв'язання CAPTCHA; дійте на власний розсуд.",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': 'Рекомендовані дії',diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.jsindex 200a7b6cc..3d89df044 100644--- a/src/firefox/src/ui/locales/vi.js+++ b/src/firefox/src/ui/locales/vi.js@@ -942,9 +942,6 @@ export default {'st.memory.reason.not_found': "Không có bộ nhớ đã lưu nào có ID đó.",'st.memory.security_html': "<strong>Quyền riêng tư:</strong> bộ nhớ người dùng được lưu trữ dưới dạng văn bản gốc trong hồ sơ trình duyệt này. Khi được bật, các bản ghi bộ nhớ hoạt động sẽ được gửi đến bất kỳ nhà cung cấp LLM nào mà bạn định cấu hình như một phần của lời nhắc hệ thống. Không lưu trữ mật khẩu, khóa API, mã thông báo, mã khôi phục hoặc bí mật nhạy cảm ở đây.",- 'st.captcha.desc_html': "Cho phép tác nhân tự động giải CAPTCHA qua API <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a>. Hỗ trợ reCAPTCHA v2/v3, hCaptcha và Cloudflare Turnstile. Lưu khóa API hợp lệ sẽ tự động bật CapSolver; nếu không có khóa, tác nhân sẽ dừng và yêu cầu bạn tự giải CAPTCHA. CapSolver tính phí cho mỗi lần giải (~$0,001–$0,003); bạn sử dụng tài khoản và khóa API của riêng mình.",- 'st.captcha.enabled.label': "Kích hoạt CapSolver",- 'st.captcha.enabled.desc': "Khi nhân viên chạm vào CAPTCHA, nó sẽ gọi CapSolver một lần trước khi quay lại hỏi bạn. Yêu cầu khóa API bên dưới.",'st.captcha.api_key.label': "Khóa API CapSolver",'st.captcha.save': "Lưu khóa",'st.captcha.check_balance': "Kiểm tra số dư",@@ -955,7 +952,6 @@ export default {'st.captcha.need_key': "Nhập khóa API CapSolver hợp lệ bắt đầu bằng CAP-.",'st.captcha.balance_ok': "Được rồi — số dư: {balance}",'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": "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",diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.jsindex 990494942..bf5f910be 100644--- a/src/firefox/src/ui/locales/zh.js+++ b/src/firefox/src/ui/locales/zh.js@@ -593,9 +593,6 @@ export default {"st.transcription.connected": "连接成功!模型:{model}","st.transcription.failed": "失败:{error}","st.transcription.fill_required": "请先填写基础 URL 和模型。",- "st.captcha.desc_html": "让代理通过 <a href=\"https://capsolver.com\" target=\"_blank\" style=\"color:var(--accent);\">CapSolver</a> API 自动解决 CAPTCHA。支持 reCAPTCHA v2/v3、hCaptcha 和 Cloudflare Turnstile。保存有效的 API 密钥后会自动启用 CapSolver;没有密钥时,代理会停止并请你自行解决 CAPTCHA。CapSolver 按每次解决计费(约 ~$0.001–$0.003);使用你自己的账号和 API 密钥。",- "st.captcha.enabled.label": "启用 CapSolver",- "st.captcha.enabled.desc": "当代理遇到 CAPTCHA 时,会先调用一次 CapSolver,然后再回退到询问你。需要下方的 API 密钥。","st.captcha.api_key.label": "CapSolver API 密钥","st.captcha.save": "保存密钥","st.captcha.check_balance": "查询余额",@@ -606,7 +603,6 @@ export default {"st.captcha.need_key": "请输入以 CAP- 开头的有效 CapSolver API 密钥。","st.captcha.balance_ok": "正常 —— 余额:{balance}","st.captcha.balance_fail": "失败:{error}",- "st.captcha.security_html": "<strong>请注意:</strong>API 密钥以<strong>明文</strong>形式保存在浏览器的本地存储中。CapSolver 会对每次解决向你的账户计费;代理只会在 CAPTCHA 实际阻塞某一步时才调用它(每次遇到最多调用一次 —— 失败后不会重试)。某些站点的服务条款禁止自动解决 CAPTCHA;请自行判断。",// --- Scheduled tasks & scratchpad (added) ---'sp.recommended.title': '建议操作',diff --git a/src/firefox/src/ui/settings.html b/src/firefox/src/ui/settings.htmlindex 5301982f4..74753ee8b 100644--- a/src/firefox/src/ui/settings.html+++ b/src/firefox/src/ui/settings.html@@ -1223,6 +1223,13 @@#safesocial-labels .safesocial-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }#safesocial-labels input { width: auto; margin: 0; flex-shrink: 0; }#safesocial-status { margin-top: 12px; }+ #captcha-heading { font-size: 15px; margin-bottom: 8px; }+ .captcha-description { font-size: 12px; color: var(--text2); line-height: 1.55; margin: 0 0 14px; }+ .captcha-provider { padding: 18px 0; border-top: 1px solid var(--border); }+ .captcha-provider h4 { font-size: 13px; margin: 0 0 8px; }+ .captcha-provider h4 a { color: var(--accent); text-decoration: none; }+ .captcha-provider h4 a:hover { text-decoration: underline; }+ .captcha-provider .btn-row { flex-wrap: wrap; }</style><link rel="stylesheet" href="apocalypse-comm.css"><link rel="stylesheet" href="download-tracker.css">@@ -1610,22 +1617,40 @@<button type="button" id="firefox-bidi-connect" class="btn-secondary" data-i18n="st.bidi.test">Test connection</button><p id="firefox-bidi-status" role="status"></p></div>- <div class="provider-card" id="captcha-card">- <div style="font-size:12px;color:var(--text2);margin-bottom:14px;line-height:1.55;" data-i18n-html="st.captcha.desc_html"></div>-- <div class="field">- <label data-i18n="st.captcha.api_key.label"></label>- <input type="password" id="captcha-api-key" placeholder="CAP-XXXXXXXXXXXXXXXXXXXX" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false">- </div>-- <div class="btn-row">- <button class="btn-primary" id="btn-save-captcha" data-i18n="st.captcha.save"></button>- <button class="btn-secondary" id="btn-test-captcha" data-i18n="st.captcha.check_balance"></button>- <button class="btn-secondary" id="btn-clear-captcha" data-i18n="st.captcha.clear"></button>- </div>- <div class="test-result" id="test-captcha"></div>-- <div class="info-box" style="margin-top:16px;" data-i18n-html="st.captcha.security_html"></div>+ <div class="provider-card" id="captcha-card" aria-labelledby="captcha-heading">+ <h3 id="captcha-heading" data-i18n="st.captcha.heading"></h3>+ <p class="captcha-description" data-i18n="st.captcha.order"></p>++ <section class="captcha-provider" aria-labelledby="capsolver-heading">+ <h4 id="capsolver-heading"><a href="https://capsolver.com" target="_blank" rel="noopener noreferrer">CapSolver</a></h4>+ <p class="captcha-description" data-i18n="st.captcha.capsolver_desc"></p>+ <div class="field">+ <label for="captcha-api-key" data-i18n="st.captcha.api_key.label"></label>+ <input type="password" id="captcha-api-key" placeholder="CAP-XXXXXXXXXXXXXXXXXXXX" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-captcha" role="status" aria-live="polite"></div>+ </section>++ <section class="captcha-provider" aria-labelledby="two-captcha-heading">+ <h4 id="two-captcha-heading"><a href="https://2captcha.com" target="_blank" rel="noopener noreferrer">2Captcha</a></h4>+ <p class="captcha-description" data-i18n="st.captcha.two_desc"></p>+ <div class="field">+ <label for="two-captcha-api-key" data-i18n="st.captcha.two_key"></label>+ <input type="password" id="two-captcha-api-key" placeholder="0123456789abcdef0123456789abcdef" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-two-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-two-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-two-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-two-captcha" role="status" aria-live="polite"></div>+ </section>+ <div class="info-box" style="margin-top:16px;" data-i18n="st.captcha.providers_security"></div></div>diff --git a/src/firefox/src/ui/settings.js b/src/firefox/src/ui/settings.jsindex 98904fbf5..26aa14978 100644--- a/src/firefox/src/ui/settings.js+++ b/src/firefox/src/ui/settings.js@@ -41,6 +41,7 @@ import {isValidCapsolverApiKey,normalizeCapsolverApiKey,} from '../agent/capsolver-config.js';+import { isValidTwoCaptchaApiKey, normalizeTwoCaptchaApiKey } from '../agent/captcha-provider-config.js';import {isValidTypesafeApiKey,normalizeSystemOneThreshold,@@ -201,6 +202,11 @@ const btnSaveCaptcha = document.getElementById('btn-save-captcha');const btnTestCaptcha = document.getElementById('btn-test-captcha');const btnClearCaptcha = document.getElementById('btn-clear-captcha');const captchaTestResult = document.getElementById('test-captcha');+const twoCaptchaApiKeyInput = document.getElementById('two-captcha-api-key');+const btnSaveTwoCaptcha = document.getElementById('btn-save-two-captcha');+const btnTestTwoCaptcha = document.getElementById('btn-test-two-captcha');+const btnClearTwoCaptcha = document.getElementById('btn-clear-two-captcha');+const twoCaptchaTestResult = document.getElementById('test-two-captcha');const systemOneApiKeyInput = document.getElementById('system-one-api-key');const systemOneEnabledToggle = document.getElementById('toggle-system-one');const systemOneWatchToggle = document.getElementById('toggle-system-one-watch');@@ -696,12 +702,14 @@ async function init() {if (profileTextArea) profileTextArea.value = profileStored.profileText || '';await loadUserMemorySettings();- // A valid saved key is the CapSolver enable control.- const captchaStored = await browser.storage.local.get(['capsolverApiKey', 'webbrainCloudManaged']);+ // Saving a valid key enables its provider independently.+ const captchaStored = await browser.storage.local.get(['capsolverApiKey', 'twoCaptchaApiKey', 'webbrainCloudManaged']);const cloudCaptchaCard = document.getElementById('captcha-card');if (cloudCaptchaCard) cloudCaptchaCard.style.display = captchaStored.webbrainCloudManaged === true ? 'none' : '';if (captchaApiKeyInput) captchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true? '' : (captchaStored.capsolverApiKey || '');+ if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true+ ? '' : (captchaStored.twoCaptchaApiKey || '');await loadCustomSkills();@@ -2037,6 +2045,68 @@ if (btnClearCaptcha) {});}+// --- 2Captcha (independent opt-in and balance check) ---++function showTwoCaptchaResult(className, text, color = '') {+ if (!twoCaptchaTestResult) return;+ twoCaptchaTestResult.className = `test-result show${className ? ` ${className}` : ''}`;+ twoCaptchaTestResult.textContent = text;+ twoCaptchaTestResult.style.color = color || '';+ return twoCaptchaTestResult;+}++function flashTwoCaptchaResult(className, text) {+ const resultEl = showTwoCaptchaResult(className, text);+ if (resultEl) setTimeout(() => resultEl.classList.remove('show'), 3000);+}++if (btnSaveTwoCaptcha) {+ btnSaveTwoCaptcha.addEventListener('click', async () => {+ const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);+ if (!isValidTwoCaptchaApiKey(key)) {+ flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));+ return;+ }+ if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = key;+ // Saving this key opts in to 2Captcha independently of CapSolver.+ await browser.storage.local.set({+ twoCaptchaApiKey: key,+ twoCaptchaEnabled: true,+ });+ flashTwoCaptchaResult('ok', t('st.captcha.two_saved'));+ });+}++if (btnTestTwoCaptcha) {+ btnTestTwoCaptcha.addEventListener('click', async () => {+ const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);+ if (!isValidTwoCaptchaApiKey(key)) {+ flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));+ return;+ }+ showTwoCaptchaResult('', t('st.captcha.checking'), 'var(--text2)');+ try {+ const res = await sendToBackground('test_two_captcha_balance', { apiKey: key });+ if (res?.ok) {+ flashTwoCaptchaResult('ok', t('st.captcha.balance_ok', { balance: `$${Number(res.balance).toFixed(4)}` }));+ } else {+ flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: res?.error || 'Unknown error' }));+ }+ } catch (e) {+ flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: e.message }));+ }+ });+}++if (btnClearTwoCaptcha) {+ btnClearTwoCaptcha.addEventListener('click', async () => {+ if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = '';+ // Clear only this provider's key and consent.+ await browser.storage.local.remove(['twoCaptchaApiKey', 'twoCaptchaEnabled']);+ flashTwoCaptchaResult('ok', t('st.captcha.cleared'));+ });+}+// --- Provider Rendering ---// Prompt-tier selector, shown only for local + OpenRouter providers (cloud isdiff --git a/test/captcha-providers.mjs b/test/captcha-providers.mjsnew file mode 100644index 000000000..7cf6a385d--- /dev/null+++ b/test/captcha-providers.mjs@@ -0,0 +1,179 @@+import test from 'node:test';+import assert from 'node:assert/strict';+import { readdir, readFile } from 'node:fs/promises';++const capKey = 'CAP-0123456789abcdefghij';+const twoKey = '0123456789abcdef0123456789abcdef';+const enabled = { capsolverApiKey: capKey, captchaSolverEnabled: true, twoCaptchaApiKey: twoKey, twoCaptchaEnabled: true };+const params = { type: 'turnstile', websiteURL: 'https://example.com/signup', websiteKey: 'site-key' };++function mockApi(t, respond) {+ const calls = [];+ let now = 1000;+ t.mock.method(Date, 'now', () => now);+ t.mock.method(globalThis, 'setTimeout', (callback, delay) => { now += delay; callback(); });+ t.mock.method(globalThis, 'fetch', async (url, options) => {+ const call = { url, body: JSON.parse(options.body), signal: options.signal };+ calls.push(call);+ return Response.json(await respond(call, calls.length));+ });+ return calls;+}++for (const build of ['chrome', 'firefox']) {+ const config = await import(`../src/${build}/src/agent/captcha-provider-config.js`);+ const solver = await import(`../src/${build}/src/agent/captcha-solver.js`);+ const two = await import(`../src/${build}/src/agent/two-captcha.js`);+ const transfer = await import(`../src/${build}/src/config-transfer.js`);++ test(`${build}: every supported locale translates the live CAPTCHA card keys`, async () => {+ const { captchaEnglish, captchaTranslations } = await import(`../src/${build}/src/ui/locales/captcha-copy.mjs`);+ const base = new URL(`../src/${build}/src/ui/locales/`, import.meta.url);+ const locales = (await readdir(base)).filter(name => name.endsWith('.js')).map(name => name.slice(0, -3));+ const markup = await readFile(new URL('../settings.html', base), 'utf8');+ const settings = await readFile(new URL('../settings.js', base), 'utf8');+ const keys = Object.keys(captchaEnglish).sort();+ for (const key of keys) assert.ok(markup.includes(key) || settings.includes(key), `${key}: unused copy`);+ for (const lang of locales) {+ const copy = lang === 'en' ? captchaEnglish : captchaTranslations[lang];+ assert.ok(copy, `${lang}: missing translation`);+ assert.deepEqual(Object.keys(copy).sort(), keys, `${lang}: incomplete translation`);+ for (const key of keys) assert.ok(copy[key].trim().length > 0, `${lang}/${key}: empty translation`);+ assert.match(copy['st.captcha.two_desc'], /hCaptcha.*CapSolver|CapSolver.*hCaptcha/, lang);+ const legacy = (await import(new URL(`${lang}.js`, base))).default;+ for (const key of ['desc_html', 'security_html', 'enabled.label', 'enabled.desc']) {+ assert.equal(legacy[`st.captcha.${key}`], undefined, `${lang}: stale copy retained`);+ }+ }+ });++ test(`${build}: unsupported providers are skipped without creating paid hCaptcha tasks`, async t => {+ const calls = mockApi(t, () => ({ errorId: 12, errorCode: 'ERROR_CAPTCHA_UNSOLVABLE' }));+ await assert.rejects(solver.solveCaptchaWithProviders(config.getCaptchaProviders({ ...enabled, captchaSolverEnabled: false }), { ...params, type: 'hcaptcha' }), /No enabled provider supports hcaptcha/);+ assert.equal(calls.length, 0);+ await assert.rejects(solver.solveCaptchaWithProviders(config.getCaptchaProviders(enabled), { ...params, type: 'hcaptcha' }), /ERROR_CAPTCHA_UNSOLVABLE/);+ assert.equal(calls.length, 1);+ assert.equal(calls[0].url, 'https://api.capsolver.com/createTask');+ });++ test(`${build}: independent consent, validation, order, and managed isolation`, () => {+ assert.deepEqual(config.getCaptchaProviders({}), []);+ assert.deepEqual(config.getCaptchaProviders({ capsolverApiKey: capKey, twoCaptchaApiKey: twoKey }), []);+ assert.deepEqual(config.getCaptchaProviders(enabled).map(p => p.id), ['capsolver', '2captcha']);+ assert.deepEqual(config.getCaptchaProviders({ ...enabled, captchaSolverEnabled: false }).map(p => p.id), ['2captcha']);+ assert.deepEqual(config.getCaptchaProviders({ ...enabled, twoCaptchaEnabled: false }).map(p => p.id), ['capsolver']);+ assert.deepEqual(config.getCaptchaProviders({ ...enabled, twoCaptchaApiKey: 'invalid', capsolverApiKey: 'invalid' }), []);+ assert.equal(config.isValidTwoCaptchaApiKey(` ${twoKey.toUpperCase()} `), true);+ for (const key of ['', 'g'.repeat(32), 'a'.repeat(31), 'a'.repeat(33)]) assert.equal(config.isValidTwoCaptchaApiKey(key), false);+ assert.deepEqual(config.getCaptchaProviders({ ...enabled, webbrainCloudManaged: true }), []);+ assert.deepEqual(config.getCaptchaProviders({ ...enabled, webbrainCloudManaged: true, webbrainCloudCapsolverBrokerEnabled: true }), [+ { id: 'capsolver', apiKey: '', useCloudBroker: true },+ ]);+ });++ test(`${build}: config round trip preserves each opt-in; key-only imports stay disabled`, () => {+ for (const settings of [enabled, { ...enabled, captchaSolverEnabled: false }, { ...enabled, twoCaptchaEnabled: false }]) {+ const exported = transfer.createConfigExport(settings);+ const imported = transfer.parseConfigImport(JSON.stringify(exported)).settings;+ assert.deepEqual(config.getCaptchaProviders(imported), config.getCaptchaProviders(settings));+ }+ const imported = transfer.parseConfigImport(JSON.stringify({ schema: transfer.CONFIG_SCHEMA, settings: { twoCaptchaApiKey: twoKey } })).settings;+ assert.equal(imported.twoCaptchaEnabled, false);+ assert.deepEqual(config.getCaptchaProviders(imported), []);+ });++ test(`${build}: CapSolver success stops before 2Captcha`, async t => {+ const calls = mockApi(t, ({ url }) => url.endsWith('/createTask') ? { taskId: 'cap-task' } : { status: 'ready', solution: { token: 'cap-token' } });+ const result = await solver.solveCaptchaWithProviders(config.getCaptchaProviders(enabled), params);+ assert.equal(result.provider, 'capsolver');+ assert.equal(result.token, 'cap-token');+ assert.equal(calls.length, 2);+ assert.ok(calls.every(call => call.url.startsWith('https://api.capsolver.com/')));+ });++ for (const failure of ['api-error', 'network-timeout', 'missing-token', 'poll-timeout']) {+ test(`${build}: ${failure} falls back once to 2Captcha with its own key/task`, async t => {+ const calls = mockApi(t, ({ url, body }) => {+ if (url.startsWith('https://api.capsolver.com')) {+ assert.equal(body.clientKey, capKey);+ if (failure === 'api-error') return { errorId: 1, errorCode: 'ERROR_ZERO_BALANCE' };+ if (failure === 'network-timeout') throw new Error('Request timed out');+ return url.endsWith('/createTask') ? { taskId: 'cap-task' }+ : failure === 'poll-timeout' ? { status: 'processing' } : { status: 'ready', solution: {} };+ }+ assert.equal(body.clientKey, twoKey);+ assert.equal(body.appId, undefined);+ if (url.endsWith('/createTask')) {+ assert.deepEqual(body.task, { type: 'TurnstileTaskProxyless', websiteURL: params.websiteURL, websiteKey: params.websiteKey });+ return { taskId: 123 };+ }+ assert.equal(body.taskId, 123);+ return { status: 'ready', solution: { token: 'two-token' } };+ });+ const result = await solver.solveCaptchaWithProviders(config.getCaptchaProviders(enabled), params);+ assert.equal(result.provider, '2captcha');+ assert.equal(result.fieldName, 'cf-turnstile-response');+ assert.equal(result.token, 'two-token');+ assert.equal(calls.filter(call => call.url === 'https://api.2captcha.com/createTask').length, 1);+ assert.ok(calls.findIndex(call => call.url.includes('2captcha')) > 0);+ });+ }++ test(`${build}: 2Captcha alone polls processing tasks and returns image text`, async t => {+ const calls = mockApi(t, ({ url }, n) => {+ assert.ok(url.startsWith('https://api.2captcha.com/'));+ return n === 1 ? { taskId: 123 } : n === 2 ? { status: 'processing' } : { status: 'ready', solution: { text: 'readable' } };+ });+ const result = await solver.solveCaptchaWithProviders(config.getCaptchaProviders({ ...enabled, captchaSolverEnabled: false }), { type: 'image_to_text', body: 'base64-image' });+ assert.equal(result.token, 'readable');+ assert.equal(result.fieldName, null);+ assert.equal(calls.length, 3);+ assert.deepEqual(calls[0].body.task, { type: 'ImageToTextTask', body: 'base64-image' });+ });++ test(`${build}: both failures stop, while disabled providers receive no requests`, async t => {+ const calls = mockApi(t, () => ({ errorId: 12, errorCode: 'ERROR_CAPTCHA_UNSOLVABLE' }));+ await assert.rejects(solver.solveCaptchaWithProviders(config.getCaptchaProviders(enabled), params), /capsolver:.*2captcha:/);+ assert.equal(calls.length, 2);+ await assert.rejects(solver.solveCaptchaWithProviders([], params), /No CAPTCHA solver/);+ assert.equal(calls.length, 2);+ });++ test(`${build}: invalid v3 parameters fail before a paid dispatch`, async t => {+ const calls = mockApi(t, () => { throw new Error('must not dispatch'); });+ await assert.rejects(solver.solveCaptchaWithProviders(config.getCaptchaProviders(enabled), { ...params, type: 'recaptcha_v3' }), /pageAction/);+ assert.equal(calls.length, 0);+ });++ test(`${build}: 2Captcha task mapping covers reCAPTCHA variants and Turnstile data`, () => {+ const task = overrides => two.buildTwoCaptchaTask(solver.buildTask({ ...params, ...overrides }));+ assert.equal(task({ type: 'recaptcha_v2' }).type, 'RecaptchaV2TaskProxyless');+ assert.deepEqual(task({ type: 'recaptcha_v2_enterprise', enterprisePayload: { s: 'opaque' }, isInvisible: true }), {+ type: 'RecaptchaV2EnterpriseTaskProxyless', websiteURL: params.websiteURL, websiteKey: params.websiteKey, enterprisePayload: { s: 'opaque' }, isInvisible: true,+ });+ assert.deepEqual(task({ type: 'recaptcha_v3_enterprise', pageAction: 'login', minScore: 0.9 }), {+ type: 'RecaptchaV3TaskProxyless', websiteURL: params.websiteURL, websiteKey: params.websiteKey, pageAction: 'login', minScore: 0.9, isEnterprise: true,+ });+ assert.equal(task({ type: 'recaptcha_v3', pageAction: 'login' }).minScore, 0.3);+ assert.deepEqual(task({ metadata: { action: 'login', cdata: 'opaque', chlPageData: 'page' } }), {+ type: 'TurnstileTaskProxyless', websiteURL: params.websiteURL, websiteKey: params.websiteKey, action: 'login', data: 'opaque', pagedata: 'page',+ });+ assert.throws(() => task({ type: 'hcaptcha' }), /does not support/);+ });++ test(`${build}: balance check uses 2Captcha and surfaces API errors`, async t => {+ const calls = mockApi(t, (_, n) => n === 1 ? { balance: 1.25 } : { errorId: 1, errorCode: 'ERROR_KEY_DOES_NOT_EXIST' });+ assert.deepEqual(await two.getTwoCaptchaBalance(twoKey), { balance: 1.25 });+ assert.equal(calls[0].url, 'https://api.2captcha.com/getBalance');+ assert.deepEqual(calls[0].body, { clientKey: twoKey });+ await assert.rejects(two.getTwoCaptchaBalance(twoKey), /ERROR_KEY_DOES_NOT_EXIST/);+ });++ test(`${build}: managed broker failure never falls back to personal keys`, async t => {+ const calls = mockApi(t, () => { throw new Error('broker unavailable'); });+ await assert.rejects(solver.solveCaptchaWithProviders(config.getCaptchaProviders({ ...enabled, webbrainCloudManaged: true, webbrainCloudCapsolverBrokerEnabled: true }), params), /broker unavailable/);+ assert.equal(calls.length, 1);+ assert.equal(calls[0].url, 'http://127.0.0.1:17373/capsolver/solve');+ assert.equal(calls[0].body.clientKey, undefined);+ });+}diff --git a/test/captcha-settings-ui.mjs b/test/captcha-settings-ui.mjsnew file mode 100644index 000000000..2ec392f37--- /dev/null+++ b/test/captcha-settings-ui.mjs@@ -0,0 +1,100 @@+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 output = process.env.CAPTCHA_UI_OUTPUT || '/tmp/webbrain-captcha-review';+await mkdir(output, { recursive: true });+const mime = { '.js': 'text/javascript', '.mjs': 'text/javascript', '.html': 'text/html', '.css': 'text/css', '.wasm': 'application/wasm', '.png': 'image/png' };+const server = createServer(async (req, res) => {+ try {+ const path = new URL(req.url, 'http://localhost').pathname;+ const file = resolve(root, '.' + path);+ if (!file.startsWith(root + '/')) throw Error('outside root');+ res.setHeader('Content-Type', mime[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}`;+try {+ for (const [build, engine] of [['chrome', chromium], ['firefox', firefox]]) {+ const browser = await engine.launch();+ try {+ for (const lang of ['en', 'tr', 'de', 'zh', 'ar']) for (const width of [390, 1280]) {+ const page = await browser.newPage({ viewport: { width, height: 1000 } });+ const errors = []; page.on('pageerror', e => errors.push(e.message));+ page.setDefaultTimeout(10_000);+ await page.addInitScript(({ build, lang }) => {+ localStorage.setItem('wbLocale', lang);+ const data = JSON.parse(sessionStorage.getItem('captchaTestStore') || '{}'); data.wbLocale = lang; const listeners = [];+ window.testRequests = []; window.testStore = data;+ 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); sessionStorage.setItem('captchaTestStore', JSON.stringify(data)); 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]; sessionStorage.setItem('captchaTestStore', JSON.stringify(data)); },+ };+ window.chrome = window.browser = {+ storage: { local: storage, onChanged: { addListener: fn => listeners.push(fn) } },+ runtime: { getURL: path => `${location.origin}/src/${build}/${path}`, getManifest: () => ({ version: '36.7.5' }), onMessage: { addListener() {} }, sendMessage(msg, callback) {+ testRequests.push(msg);+ const result = msg.action === 'get_providers' ? { providers: {}, active: '' }+ : msg.action === 'test_two_captcha_balance' || msg.action === 'test_capsolver_balance' ? { ok: !window.failBalance, balance: 2.5, error: window.failBalance ? 'Synthetic balance failure' : undefined }+ : {};+ callback?.(result); return Promise.resolve(result);+ } }, commands: { getAll: async () => [] }, tabs: { create: async () => ({}) },+ };+ }, { build, lang });++ const openSettings = async () => {+ await page.goto(`${origin}/src/${build}/src/ui/settings.html#display`);+ await page.reload();+ await page.waitForFunction(() => testRequests.some(r => r.action === 'get_providers'));+ await page.locator('details.advanced-settings').first().locator('summary').click();+ };+ await openSettings();+ const card = page.locator('#captcha-card');+ await card.scrollIntoViewIfNeeded();+ assert.equal(await card.locator('section').count(), 2);+ assert.equal(await card.evaluate(el => el.textContent.includes('st.captcha.')), false);+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), undefined);+ await card.screenshot({ path: `${output}/${build}-${lang}-${width}.png` });+ assert.equal(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth), true);+ await page.locator('#two-captcha-api-key').fill('invalid');+ await page.locator('#btn-save-two-captcha').click();+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), undefined);+ assert.ok(await page.locator('#test-two-captcha').evaluate(el => el.classList.contains('fail')));+ const key = '0123456789abcdef0123456789abcdef';+ await page.locator('#two-captcha-api-key').fill(key);+ await page.locator('#btn-test-two-captcha').click();+ await page.waitForFunction(() => document.querySelector('#test-two-captcha').textContent.includes('2.5000'));+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), undefined, 'balance check is not consent');+ await page.locator('#btn-save-two-captcha').click();+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), true);+ assert.equal(await page.evaluate(() => testStore.captchaSolverEnabled), undefined);+ await page.locator('#captcha-api-key').fill('CAP-0123456789abcdefghij');+ await page.locator('#btn-save-captcha').click();+ assert.equal(await page.evaluate(() => testStore.captchaSolverEnabled), true);+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), true);+ await page.locator('#btn-clear-captcha').click();+ assert.equal(await page.evaluate(() => testStore.captchaSolverEnabled), undefined);+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), true);+ await openSettings();+ assert.equal(await page.locator('#two-captcha-api-key').inputValue(), key);+ assert.equal(await page.locator('#captcha-api-key').inputValue(), '');+ await page.evaluate(() => { window.failBalance = true; });+ await page.locator('#btn-test-two-captcha').click();+ await page.waitForFunction(() => document.querySelector('#test-two-captcha').textContent.includes('Synthetic balance failure'));+ await page.locator('#btn-clear-two-captcha').click();+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), undefined);+ assert.equal(await page.evaluate(() => testStore.twoCaptchaApiKey), undefined);+ await page.evaluate(() => chrome.storage.local.set({ webbrainCloudManaged: true }));+ await openSettings();+ assert.equal(await card.isVisible(), false, 'managed settings keep broker-only UI');+ assert.deepEqual(errors, []);+ await page.close();+ console.log(`PASS ${build} ${lang} ${width}: settings, validation, independent consent, persistence, balance, and managed mode`);+ }+ } finally { await browser.close(); }+ }+} finally { server.closeAllConnections(); await new Promise(resolve => server.close(resolve)); }diff --git a/test/run.js b/test/run.jsindex 3a1686bb5..9c9907df0 100644--- a/test/run.js+++ b/test/run.js@@ -19850,6 +19850,7 @@ test('mutation batch invokes CAPTCHA preflight before dispatch when no gate exisconst executed = [];let preflightCalls = 0;agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._persist = () => {};agent.executeTool = async (_tabId, name) => {executed.push(name);@@ -45721,11 +45722,10 @@ test('saving a valid CapSolver key opts in without overriding legacy opt-outs',);assert.ok(- background.includes(`const stored = await ${api}.storage.local.get([`)- && background.includes('isCapsolverEnabled(stored.capsolverApiKey, stored.captchaSolverEnabled)')- && background.includes('stored.webbrainCloudManaged === true')- && background.includes('stored.webbrainCloudCapsolverBrokerEnabled === true'),- `${label}: background startup should require consent and a valid key or managed Cloud broker`,+ background.includes(`const stored = await ${api}.storage.local.get(CAPTCHA_SETTINGS_KEYS)`)+ && background.includes('getCaptchaProviders(stored)')+ && background.includes('agent.captchaProviderIds = providers.map(provider => provider.id)'),+ `${label}: startup should use the shared consent-aware provider selection`,);assert.match(background,@@ -45733,11 +45733,11 @@ test('saving a valid CapSolver key opts in without overriding legacy opt-outs',`${label}: key, consent, or broker changes should refresh CapSolver availability immediately`,);assert.ok(- agent.includes(`const stored = await ${api}.storage.local.get([`)- && agent.includes('stored.captchaSolverEnabled !== true')- && agent.includes('!isCapsolverEnabled(apiKey, true)')- && agent.includes('const result = await solveCaptcha(apiKey, params, { useCloudBroker });'),- `${label}: solve_captcha should revalidate consent and the direct key when the Cloud broker is absent`,+ agent.includes(`const stored = await ${api}.storage.local.get(CAPTCHA_SETTINGS_KEYS)`)+ && agent.includes('const providers = getCaptchaProviders(stored)')+ && agent.includes('if (!providers.length)')+ && agent.includes('const result = await solveCaptchaWithProviders(providers, params);'),+ `${label}: solve_captcha should revalidate enabled providers on each call`,);assert.equal(capsolverConfig.normalizeCapsolverApiKey(' CAP-0123456789abcdefghij '), 'CAP-0123456789abcdefghij');@@ -45777,16 +45777,11 @@ test('config import preserves CapSolver consent independently from a saved key',}});-test('all locales explain CapSolver auto-enablement and key validation', async () => {+test('all locales retain CapSolver save feedback and key validation', async () => {for (const browser of ['chrome', 'firefox']) {const localeDir = path.join(ROOT, `src/${browser}/src/ui/locales`);for (const filename of fs.readdirSync(localeDir).filter((name) => name.endsWith('.js'))) {const locale = (await import(pathToFileURL(path.join(localeDir, filename)).href)).default;- assert.match(- locale['st.captcha.desc_html'],- /CapSolver/,- `${browser}/${filename}: CapSolver description missing`,- );assert.match(locale['st.captcha.saved'],/CapSolver/,@@ -121793,6 +121788,89 @@ async function detectCaptchaDetailsOnFakePage(build, nodes) {});}++test('CAPTCHA providers: hCaptcha routes directly to manual completion with 2Captcha alone', async () => {+ for (const [build, AgentClass] of [['chrome', AgentCh], ['firefox', AgentFx]]) {+ const nodes = [captchaEl('div', { role: 'dialog', innerText: 'Security verification' }, [+ captchaEl('h2', { textContent: 'Security verification' }),+ captchaEl('div', { class: 'h-captcha', 'data-sitekey': 'HCAPTCHA_KEY' }),+ ])];+ await withCaptchaFakePage(build, nodes, async () => {+ const agent = new AgentClass({});+ agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['2captcha'];+ agent._currentUrl = async () => 'https://example.test/form';+ const observation = await agent._observeCaptchaChallenge(1, 'get_accessibility_tree', {+ pageContent: 'dialog "Security verification" [ref_100]\n button "Continue" [ref_3]',+ });+ assert.equal(observation.gate?.status, 'manual_required', build);+ assert.equal(observation.gate?.providerUnsupported, true, build);+ assert.equal(observation.gate?.solveAttempted, undefined, build);+ assert.equal(agent._captchaGateBlockResult(1, 'click_ax')?.manualCompletionRequired, true, build);+ assert.equal(agent._shouldRetryCaptchaManualGate(agent._captchaGateStates.get(1)), false, build);++ const api = build === 'chrome' ? globalThis.chrome : globalThis.browser;+ api.storage = { local: { get: async () => ({ twoCaptchaEnabled: true, twoCaptchaApiKey: 'a'.repeat(32) }) } };+ api.tabs = { ...api.tabs, get: async () => ({ url: 'https://example.test/form' }) };+ const originalFetch = globalThis.fetch;+ const calls = [];+ globalThis.fetch = async (...args) => { calls.push(args); throw Error('must not dispatch'); };+ try {+ const result = await agent._executeToolImpl(1, 'solve_captcha', { inject: false });+ assert.equal(result.dispatched, false, `${build}: ${result.error}`);+ assert.equal(result.manualCompletionRequired, true, build);+ assert.equal(calls.length, 0, build);+ } finally { globalThis.fetch = originalFetch; }++ agent.captchaProviderIds = ['capsolver', '2captcha'];+ assert.equal(agent._shouldRetryCaptchaManualGate(agent._captchaGateStates.get(1)), true, build);+ const refreshed = await agent._captchaMutationPreflight(1, 'click_ax');+ assert.equal(refreshed?.status, 'solve_required', `${build}: enabling a capable provider should refresh the gate`);+ });+ }+});++test('CAPTCHA providers: real Turnstile detection reaches the 2Captcha request with widget metadata', async () => {+ for (const [build, AgentClass] of [['chrome', AgentCh], ['firefox', AgentFx]]) {+ const nodes = [captchaEl('div', {+ class: 'cf-turnstile', 'data-sitekey': 'TURNSTILE_KEY',+ 'data-action': 'signup', 'data-cdata': 'widget-data',+ })];+ await withCaptchaFakePage(build, nodes, async () => {+ const api = build === 'chrome' ? globalThis.chrome : globalThis.browser;+ api.storage = { local: { get: async () => ({ twoCaptchaEnabled: true, twoCaptchaApiKey: 'a'.repeat(32) }) } };+ api.tabs = { ...api.tabs, get: async () => ({ url: 'https://example.test/form' }) };+ const originalFetch = globalThis.fetch;+ const originalTimeout = globalThis.setTimeout;+ const calls = [];+ globalThis.setTimeout = (callback, delay, ...args) => originalTimeout(callback, delay === 5000 ? 0 : delay, ...args);+ globalThis.fetch = async (url, options) => {+ calls.push({ url, body: JSON.parse(options.body) });+ return Response.json(url.endsWith('/createTask') ? { taskId: 123 } : { status: 'ready', solution: { token: 'solved-token' } });+ };+ try {+ const agent = new AgentClass({});+ const result = await agent._executeToolImpl(1, 'solve_captcha', { inject: false, metadata: { chlPageData: 'observed-page-data' } });+ assert.equal(result.success, true, `${build}: ${result.error}`);+ assert.equal(result.provider, '2captcha', build);+ assert.equal(calls[0].url, 'https://api.2captcha.com/createTask');+ assert.deepEqual(calls[0].body.task, {+ type: 'TurnstileTaskProxyless', websiteURL: 'https://example.test/form', websiteKey: 'TURNSTILE_KEY',+ action: 'signup', data: 'widget-data', pagedata: 'observed-page-data',+ }, build);+ const beforeConflict = calls.length;+ const conflict = await agent._executeToolImpl(1, 'solve_captcha', { inject: false, metadata: { action: 'another-widget' } });+ assert.equal(conflict.dispatched, false, build);+ assert.match(conflict.error, /conflicts with the selected widget/, build);+ assert.equal(calls.length, beforeConflict, build);+ } finally {+ globalThis.fetch = originalFetch;+ globalThis.setTimeout = originalTimeout;+ }+ });+ }+});+test('challenge-dialog routing detects supported widgets and diagnoses unsupported Arkose frames', async () => {for (const [build, AgentClass] of [['chrome', AgentCh], ['firefox', AgentFx]]) {const supportedNodes = [@@ -121811,6 +121889,7 @@ test('challenge-dialog routing detects supported widgets and diagnoses unsupportawait withCaptchaFakePage(build, supportedNodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const result = {pageContent: 'dialog "Security verification" [ref_100]\n button "Dismiss" [ref_101]\nbutton "Continue" [ref_3]',@@ -121840,11 +121919,13 @@ test('challenge-dialog routing detects supported widgets and diagnoses unsupportassert.equal(disabledObservation.gate?.status, 'manual_required', `${build}: disabled solver did not fail closed`);assert.equal(disabledObservation.gate?.solverDisabled, true, `${build}: disabled-solver reason missing`);disabledAgent.captchaSolverEnabled = true;+ disabledAgent.captchaProviderIds = ['capsolver'];const enabledGate = await disabledAgent._captchaMutationPreflight(2, 'click_ax');assert.equal(enabledGate?.status, 'solve_required', `${build}: enabling the solver did not re-evaluate the manual gate before mutation`);const transientAgent = new AgentClass({});transientAgent.captchaSolverEnabled = true;+ transientAgent.captchaProviderIds = ['capsolver'];transientAgent._currentUrl = async () => 'https://example.test/signup';transientAgent._captchaGateStates.set(3, {key: 'https://example.test/signup\nsecurity verification',@@ -121907,6 +121988,7 @@ test('challenge-dialog routing detects supported widgets and diagnoses unsupportawait withCaptchaFakePage(build, invisibleV3Nodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const observed = await agent._observeCaptchaChallenge(1, 'get_accessibility_tree', {pageContent: 'dialog "Verify that you\u2019re a human" [ref_150]\n button "Dismiss" [ref_151]',@@ -121929,6 +122011,7 @@ test('challenge-dialog routing detects supported widgets and diagnoses unsupportawait withCaptchaFakePage(build, unrelatedV3Nodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const observed = await agent._observeCaptchaChallenge(1, 'get_accessibility_tree', {pageContent: 'dialog "Security verification" [ref_170]\n heading "Use your passkey" [ref_171]',@@ -121957,6 +122040,7 @@ test('challenge-dialog routing detects supported widgets and diagnoses unsupportawait withCaptchaFakePage(build, unrelatedVisibleNodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const observed = await agent._observeCaptchaChallenge(1, 'get_accessibility_tree', {pageContent: 'dialog "Security verification" [ref_180]\n heading "Use your passkey" [ref_181]',@@ -121992,6 +122076,7 @@ test('challenge-dialog routing detects supported widgets and diagnoses unsupportawait withCaptchaFakePage(build, arkoseNodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const result = {pageContent: 'dialog "Security verification" [ref_200]\n button "Dismiss" [ref_201]\nbutton "Continue" [ref_3]',@@ -122062,6 +122147,7 @@ test('language-neutral CAPTCHA challenge frames arm the gate without matching diawait withCaptchaFakePage(build, example.nodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const observed = await agent._observeCaptchaChallenge(1,@@ -122117,6 +122203,7 @@ test('language-neutral CAPTCHA challenge frames arm the gate without matching diconst preflightAgent = new AgentClass({});preflightAgent.captchaSolverEnabled = true;+ preflightAgent.captchaProviderIds = ['capsolver'];preflightAgent._currentUrl = async () => 'https://example.test/signup';const preflight = await preflightAgent._captchaMutationPreflight(2, 'click_ax');assert.equal(@@ -122185,6 +122272,7 @@ test('language-neutral CAPTCHA challenge frames arm the gate without matching di], async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const observed = await agent._observeCaptchaChallenge(3,@@ -122215,6 +122303,7 @@ test('language-neutral CAPTCHA challenge frames arm the gate without matching di], async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const observed = await agent._observeCaptchaChallenge(5,@@ -122258,6 +122347,7 @@ test('post-solve CAPTCHA gates consume only the correlated response token and reawait withCaptchaFakePage(build, nodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const initial = await agent._observeCaptchaChallenge(1,@@ -122511,6 +122601,7 @@ test('enabled CAPTCHA gate performs a read-only dialog preflight before the firsawait withCaptchaFakePage(build, nodes, async () => {const agent = new AgentClass({});agent.captchaSolverEnabled = true;+ agent.captchaProviderIds = ['capsolver'];agent._currentUrl = async () => 'https://example.test/signup';const gate = await agent._captchaMutationPreflight(1, 'click_ax');assert.equal(gate?.status, 'solve_required', `${build}: first mutation bypassed read-only dialog detection`);