A desktop coding agent with free access to frontier models.
TypeScript
fix: browser asks match computer use
ogsamrat74e249879377
diff --git a/apps/desktop/electron/browser-panel.mjs b/apps/desktop/electron/browser-panel.mjsindex c8104b1f..41e7afbf 100644--- a/apps/desktop/electron/browser-panel.mjs+++ b/apps/desktop/electron/browser-panel.mjs@@ -77,7 +77,7 @@ const BROWSER_SECURITY_PREFERENCES = Object.freeze({webviewTag: false,});-export function createBrowserPanel({ getWindow, remoteDebugPort, onDeepLink, checkPolicy }) {+export function createBrowserPanel({ getWindow, remoteDebugPort, onDeepLink, checkPolicy, permissionMode, actApproval }) {let browserSessionHooksInstalled = false;function installBrowserSessionHooks() {if (browserSessionHooksInstalled) return;@@ -841,6 +841,8 @@ export function createBrowserPanel({ getWindow, remoteDebugPort, onDeepLink, chechanged: (tabId, activity) => { const tab = getBrowserTab(tabId); if (tab) { tab.browserTask = activity; sendBrowserState(); } },siteTools: (args) => webMcpBroker.listTools(args),runSiteTool: (args, options) => webMcpBroker.executeTool(args, options),+ ...(permissionMode ? { mode: permissionMode } : {}),+ ...(actApproval ? { actApproval } : {}),});function scheduleWebMcpToolCountRefresh(tabId) {diff --git a/apps/desktop/electron/browser-panel.test.mjs b/apps/desktop/electron/browser-panel.test.mjsindex c9a9b34f..fe7c89c9 100644--- a/apps/desktop/electron/browser-panel.test.mjs+++ b/apps/desktop/electron/browser-panel.test.mjs@@ -192,6 +192,8 @@ function createPanel(checkPolicy = async (_request) => {}, remoteDebugPort = 0)const panel = createBrowserPanel({getWindow: () => mainWindow, remoteDebugPort, onDeepLink: (urls) => deepLinks.push(...urls),checkPolicy: async (request) => { policies.push(request); await checkPolicy(request); },+ // These journeys cover the per-origin and per-act reviews, which only Careful keeps.+ permissionMode: () => "careful",});panel.registerIpc(ipcMain);const mainContents = mainWindow.webContents;diff --git a/apps/desktop/electron/browser-task.mjs b/apps/desktop/electron/browser-task.mjsindex 57757417..2a9363fb 100644--- a/apps/desktop/electron/browser-task.mjs+++ b/apps/desktop/electron/browser-task.mjs@@ -102,8 +102,45 @@ async function isolated(webContents, fn, ...args) {return webContents.executeJavaScriptInIsolatedWorld(WORLD, [{ code: `(${fn.toString()})(...${JSON.stringify(args)})` }]);}+const MODES = ["careful", "normal", "auto"];+const BROWSER_KEYS = { Enter: "enter", Space: "space", Tab: "tab", Escape: "escape", Backspace: "backspace", ArrowDown: "down", ArrowUp: "up", ArrowLeft: "left", ArrowRight: "right" };++/**+ * One browser act in the computer use rules' terms (shared policy.mjs+ * actApproval): a click or Enter/Space reads the observed control's name, a+ * fill is typing, and a coordinate click or key press falls back to the page+ * title, as on hosts that read no text at the target.+ */+export function browserActInput(mode, action, observed) {+ const element = action.ref ? observed.elements.find((item) => item.ref === action.ref) : null;+ const act = action.type === "fill" ? { type: "type", text: action.text }+ : action.type === "key" ? { type: "key", key: BROWSER_KEYS[action.key] ?? String(action.key ?? "").toLowerCase() }+ : { type: action.type };+ return {+ mode,+ action: act,+ target: element ? { text: element.name, secure: element.sensitive === true } : {},+ window: { title: observed.title ?? "" },+ };+}+export function createBrowserTaskHost({ getTab, tabsFor, ownerOf, activeFor, isVisible, openTab, navigate,- allowed, enabled, confirm, changed, siteTools, runSiteTool }) {+ allowed, enabled, confirm, changed, siteTools, runSiteTool,+ // The chat permission mode, as computer use reads it ("careful" | "normal" | "auto").+ mode = () => "normal",+ // The shared computer use act rules (policy.mjs actApproval, reasons with+ // people-facing `text`); without them every act asks.+ actApproval = () => ({ ask: true, reasons: [] }) }) {+ // Normal and Auto never ask per website for reading or navigation, like+ // computer use; Careful keeps the per-origin asks and asks before every act.+ async function modeNow() {+ try {+ const value = await mode();+ return MODES.includes(value) ? value : "normal";+ } catch {+ return "normal";+ }+ }const states = new Map();const grants = new Map();const pausedSessions = new Set();@@ -138,7 +175,8 @@ export function createBrowserTaskHost({ getTab, tabsFor, ownerOf, activeFor, isVcheckNavigation(scope);if (!await allowed(url.href)) fail("website_blocked", "Your organization does not allow this website.");checkNavigation(scope);- const needsConsent = !scope.origins.has(url.origin);+ const needsConsent = !scope.origins.has(url.origin) && await modeNow() === "careful";+ checkNavigation(scope);// In local auto-approval mode, a first agent open can finish while the// renderer mounts the browser side panel. Manual approval and subsequent// navigations still require the user-visible tab.@@ -205,7 +243,8 @@ export function createBrowserTaskHost({ getTab, tabsFor, ownerOf, activeFor, isVasync function access(sessionId, tab, signal) {const url = browserTaskUrl(tab.view.webContents.getURL());const key = `${sessionId}:${url.origin}`;- if (grants.has(key)) return;+ if (grants.has(key) || await modeNow() !== "careful") return;+ signal.throwIfAborted();if (!isVisible(tab.tabId)) fail("needs_attention", "Select this tab in its conversation's browser panel to review website access, then retry.");publish(tab.tabId, "needs_attention", "Website access");const accepted = await confirm({ tabId: tab.tabId, title: "Allow website access?", message: `Allow this conversation to read ${url.origin}?`, approveLabel: "Allow reading this origin", detail: "For this conversation until desktop restart, it can read pages and site tool descriptions using the built-in browser's signed-in account. Website content is untrusted. Actions that change the page require separate approval.", signal });@@ -260,7 +299,7 @@ export function createBrowserTaskHost({ getTab, tabsFor, ownerOf, activeFor, isVif (!await allowed(url)) fail("website_blocked", "Your organization does not allow this website.");if (revision !== tab.webMcpRevision || url !== tab.view.webContents.getURL()) fail("page_changed", "The page changed during observation. Observe again.");signal.throwIfAborted();- state.observation = { id, at: Date.now(), revision, url, viewport: page.viewport, elements: page.elements, digest };+ state.observation = { id, at: Date.now(), revision, url, title: page.title, viewport: page.viewport, elements: page.elements, digest };return { ok: true, tabId: tab.tabId, observationId: id, url: safeUrl(url), trust: TRUST, ...page, ...(image ? { image } : {}) };}/**@@ -364,11 +403,16 @@ export function createBrowserTaskHost({ getTab, tabsFor, ownerOf, activeFor, isVconst keys = { Enter: "Enter", Tab: "Tab", Escape: "Escape", ArrowDown: "Down", ArrowUp: "Up", ArrowLeft: "Left", ArrowRight: "Right", Backspace: "Backspace", Space: "Space" };if (action.type === "key" && !Object.hasOwn(keys, action.key)) fail("invalid_key", "Use Enter, Tab, Escape, arrows, Backspace or Space. System shortcuts are unavailable.");if (action.type === "scroll" && (!Number.isFinite(action.deltaY) || Math.abs(action.deltaY) > 1200)) fail("invalid_scroll", "Scroll distance must be between -1200 and 1200.");- if (!isVisible(tab.tabId)) fail("needs_attention", "Select this tab in its conversation's browser panel, then retry from a fresh observation.");- publish(tab.tabId, "needs_attention", `Approve ${action.type}`);- const accepted = await confirm({ tabId: tab.tabId, title: "Allow browser action?", message: `Allow ${action.type} on ${new URL(observed.url).origin}?`, detail: `Target: ${observed.elements.find((item) => item.ref === action.ref)?.name || (action.key ? `key ${action.key}` : `position ${action.x}, ${action.y}`)}.${action.type === "fill" ? ` Text to enter: ${action.text}` : ""} This can submit information or change website data. Review your requested task before allowing it.`, signal: controller.signal });+ const decision = await actApproval(browserActInput(await modeNow(), action, observed));controller.signal.throwIfAborted();- if (!accepted) fail("user_denied", "The browser action was not allowed.");+ if (decision.ask) {+ if (!isVisible(tab.tabId)) fail("needs_attention", "This action needs your approval. Select this tab in its conversation's browser panel, then retry from a fresh observation.");+ publish(tab.tabId, "needs_attention", `Approve ${action.type}`);+ const why = (decision.reasons ?? []).map((reason) => reason.text).filter(Boolean).join(" ");+ const accepted = await confirm({ tabId: tab.tabId, title: "Allow browser action?", message: `Allow ${action.type} on ${new URL(observed.url).origin}?`, detail: `${why ? `${why} ` : ""}Target: ${observed.elements.find((item) => item.ref === action.ref)?.name || (action.key ? `key ${action.key}` : `position ${action.x}, ${action.y}`)}.${action.type === "fill" ? ` Text to enter: ${action.text}` : ""} This can submit information or change website data. Review your requested task before allowing it.`, signal: controller.signal });+ controller.signal.throwIfAborted();+ if (!accepted) fail("user_denied", "The browser action was not allowed.");+ }if (!await allowed(observed.url) || observed.revision !== tab.webMcpRevision || observed.url !== tab.view.webContents.getURL()) fail("page_changed", "The page changed or access was blocked while approval was pending. Observe again.");controller.signal.throwIfAborted();if (Date.now() - observed.at > OBSERVATION_MS) fail("stale_observation", "The observation expired while approval was pending. Observe again.");@@ -381,7 +425,7 @@ export function createBrowserTaskHost({ getTab, tabsFor, ownerOf, activeFor, isVthrow error;}state.observation = null; controller.signal.throwIfAborted();- if (!isVisible(tab.tabId)) fail("needs_attention", "The tab is no longer visible. Select it and observe again before acting.");+ if (decision.ask && !isVisible(tab.tabId)) fail("needs_attention", "The tab is no longer visible. Select it and observe again before acting.");publish(tab.tabId, "running", action.type);const contents = tab.view.webContents;dispatched = true;diff --git a/apps/desktop/electron/browser-task.test.mjs b/apps/desktop/electron/browser-task.test.mjsnew file mode 100644index 00000000..bffdef48--- /dev/null+++ b/apps/desktop/electron/browser-task.test.mjs@@ -0,0 +1,179 @@+import assert from "node:assert/strict";+import test from "node:test";++import { browserActInput, createBrowserTaskHost } from "./browser-task.mjs";+import { actApproval, ASK_REASONS } from "../../server/src/computer-use/shared/policy.mjs";++const PAGE_URL = "https://shop.example.com/cart";++function fakeTab(elements, { title = "Example shop" } = {}) {+ let url = PAGE_URL;+ const calls = { inserted: [], keys: [], clicks: 0 };+ const webContents = {+ getURL: () => url,+ getTitle: () => title,+ isDestroyed: () => false,+ stop() {},+ capturePage: async () => ({ resize: () => ({ toPNG: () => Buffer.from("png") }) }),+ insertText: async (text) => { calls.inserted.push(text); },+ sendInputEvent: (event) => { calls.keys.push(event); },+ debugger: { isAttached: () => false, attach() {}, detach() {}, sendCommand: async () => { calls.clicks += 1; } },+ executeJavaScriptInIsolatedWorld: async (_world, [{ code }]) => {+ if (code.startsWith("(function observePage")) {+ return { title, text: "", elements, viewport: { width: 800, height: 600 }, hasPasswordField: false };+ }+ return { x: 10, y: 10 };+ },+ };+ return { tab: { tabId: "t1", view: { webContents }, webMcpRevision: 0 }, calls, setUrl: (next) => { url = next; } };+}++function hostFor({ mode = "normal", visible = false, rules = true, allowedUrl = () => true, elements = [], title } = {}) {+ const { tab, calls, setUrl } = fakeTab(elements, { title });+ const asked = [];+ const navigated = [];+ const host = createBrowserTaskHost({+ getTab: (id) => (id === tab.tabId ? tab : null),+ tabsFor: () => [tab],+ ownerOf: () => "ses_1",+ activeFor: () => tab.tabId,+ isVisible: () => visible,+ openTab: async () => tab,+ navigate: async (_tab, url) => { navigated.push(url); setUrl(url); },+ allowed: async (url) => allowedUrl(url),+ enabled: () => true,+ confirm: async (request) => { asked.push(request); return true; },+ changed: () => {},+ siteTools: async () => ({ ok: true, tools: [] }),+ runSiteTool: async () => ({ ok: true }),+ mode: () => mode,+ ...(rules ? {+ actApproval: (input) => {+ const decision = actApproval(input);+ return { ask: decision.ask, reasons: decision.reasons.map((reason) => ({ ...reason, text: ASK_REASONS[reason.code] })) };+ },+ } : {}),+ });+ const call = (operation, args = {}) => host.request({ sessionId: "ses_1", operation, args: { tabId: tab.tabId, ...args } });+ async function act(action) {+ const observed = await call("observe");+ assert.equal(observed.ok, true, JSON.stringify(observed));+ return call("act", { observationId: observed.observationId, action });+ }+ return { call, act, asked, navigated, calls };+}++const BUTTONS = [+ { ref: "e1", tag: "button", role: null, name: "Next page", disabled: false, sensitive: false, bounds: { x: 0, y: 0, width: 20, height: 20 } },+ { ref: "e2", tag: "button", role: null, name: "Place order", disabled: false, sensitive: false, bounds: { x: 0, y: 0, width: 20, height: 20 } },+ { ref: "e3", tag: "input", role: null, name: "Search", disabled: false, sensitive: false, bounds: { x: 0, y: 0, width: 20, height: 20 } },+];++test("Normal: reading, ordinary clicks and typing run without asks while the tab is off-screen", async () => {+ const { act, asked, calls } = hostFor({ mode: "normal", visible: false, elements: BUTTONS });+ const click = await act({ type: "click", ref: "e1" });+ assert.equal(click.ok, true, JSON.stringify(click));+ const fill = await act({ type: "fill", ref: "e3", text: "blue shoes" });+ assert.equal(fill.ok, true, JSON.stringify(fill));+ const key = await act({ type: "key", key: "Tab" });+ assert.equal(key.ok, true, JSON.stringify(key));+ assert.equal(asked.length, 0);+ assert.equal(calls.clicks, 2);+ assert.deepEqual(calls.inserted, ["blue shoes"]);+});++test("Normal: a buy button asks, and needs the tab on screen to ask", async () => {+ const hidden = hostFor({ mode: "normal", visible: false, elements: BUTTONS });+ const result = await hidden.act({ type: "click", ref: "e2" });+ assert.equal(result.ok, false);+ assert.equal(result.code, "needs_attention");+ assert.equal(result.dispatched, false);++ const shown = hostFor({ mode: "normal", visible: true, elements: BUTTONS });+ const allowed = await shown.act({ type: "click", ref: "e2" });+ assert.equal(allowed.ok, true, JSON.stringify(allowed));+ assert.equal(shown.asked.length, 1);+ assert.match(shown.asked[0].detail, /pays, buys or orders/);+});++test("Normal: credential-looking text asks", async () => {+ const { act, asked } = hostFor({ mode: "normal", visible: true, elements: BUTTONS });+ const result = await act({ type: "fill", ref: "e3", text: "ghp_abcdefghijklmnopqrstuvwxyz0123456789" });+ assert.equal(result.ok, true, JSON.stringify(result));+ assert.equal(asked.length, 1);+ assert.match(asked[0].detail, /password or key/);+});++test("Normal: Enter on a checkout page asks (no text at the key target)", async () => {+ const { act, asked } = hostFor({ mode: "normal", visible: true, elements: BUTTONS, title: "Checkout - Example shop" });+ const result = await act({ type: "key", key: "Enter" });+ assert.equal(result.ok, true, JSON.stringify(result));+ assert.equal(asked.length, 1);+});++test("Normal and Auto: no per-site ask for navigation, even off-screen", async () => {+ for (const mode of ["normal", "auto"]) {+ const { call, asked, navigated } = hostFor({ mode, visible: false });+ const result = await call("navigate", { url: "https://other.example.org/page" });+ assert.equal(result.ok, true, `${mode}: ${JSON.stringify(result)}`);+ assert.deepEqual(navigated, ["https://other.example.org/page"]);+ assert.equal(asked.length, 0);+ }+});++test("Auto: even a buy button runs without asking", async () => {+ const { act, asked } = hostFor({ mode: "auto", visible: false, elements: BUTTONS });+ const result = await act({ type: "click", ref: "e2" });+ assert.equal(result.ok, true, JSON.stringify(result));+ assert.equal(asked.length, 0);+});++test("Careful: site reading, navigation and every act ask", async () => {+ const { call, act, asked } = hostFor({ mode: "careful", visible: true, elements: BUTTONS });+ const click = await act({ type: "click", ref: "e1" });+ assert.equal(click.ok, true, JSON.stringify(click));+ assert.deepEqual(asked.map((item) => item.title), ["Allow website access?", "Allow browser action?"]);+ const nav = await call("navigate", { url: "https://other.example.org/page" });+ assert.equal(nav.ok, true, JSON.stringify(nav));+ assert.equal(asked.at(-1).title, "Allow website navigation?");+});++test("Careful: off-screen reading still needs the tab on screen", async () => {+ const { call, asked } = hostFor({ mode: "careful", visible: false, elements: BUTTONS });+ const result = await call("observe");+ assert.equal(result.ok, false);+ assert.equal(result.code, "needs_attention");+ assert.equal(asked.length, 0);+});++test("Blocked sites stay blocked in every mode", async () => {+ for (const mode of ["normal", "auto"]) {+ const { call } = hostFor({ mode, allowedUrl: (url) => !url.includes("blocked.example") });+ const result = await call("navigate", { url: "https://blocked.example/x" });+ assert.equal(result.ok, false);+ assert.equal(result.code, "website_blocked");+ }+});++test("Without the shared rules every act asks", async () => {+ const { act, asked } = hostFor({ mode: "normal", visible: true, rules: false, elements: BUTTONS });+ const result = await act({ type: "click", ref: "e1" });+ assert.equal(result.ok, true, JSON.stringify(result));+ assert.equal(asked.filter((item) => item.title === "Allow browser action?").length, 1);+});++test("an unknown mode counts as Normal", async () => {+ const { act, asked } = hostFor({ mode: "something", visible: false, elements: BUTTONS });+ const result = await act({ type: "click", ref: "e1" });+ assert.equal(result.ok, true, JSON.stringify(result));+ assert.equal(asked.length, 0);+});++test("browser acts map onto the computer use act shape", () => {+ const observed = { title: "Checkout", elements: BUTTONS };+ assert.deepEqual(browserActInput("normal", { type: "fill", ref: "e3", text: "x" }, observed), {+ mode: "normal", action: { type: "type", text: "x" }, target: { text: "Search", secure: false }, window: { title: "Checkout" },+ });+ assert.deepEqual(browserActInput("normal", { type: "key", key: "Space" }, observed).action, { type: "key", key: "space" });+ assert.deepEqual(browserActInput("normal", { type: "click", x: 1, y: 2 }, observed).target, {});+});diff --git a/apps/desktop/electron/computer-use.mjs b/apps/desktop/electron/computer-use.mjsindex 48d5e45a..ec5e7778 100644--- a/apps/desktop/electron/computer-use.mjs+++ b/apps/desktop/electron/computer-use.mjs@@ -390,7 +390,29 @@ async function openComputerUseSetupApp() {child.unref();}+/** The chat permission mode the built-in browser follows, as computer use reads it. */+function browserPermissionMode() {+ return server?.mode ?? "normal";+}++/**+ * Whether one built-in browser act asks first: the computer use rules+ * (policy.mjs actApproval), reasons with their people-facing text. If the+ * rules cannot load, every act asks.+ */+async function browserActApproval(input) {+ try {+ const { policyModule } = await sharedModules();+ const decision = policyModule.actApproval(input, { sendDelete: server?.setting?.ask_send_delete === true });+ return { ask: decision.ask, reasons: decision.reasons.map((reason) => ({ ...reason, text: policyModule.ASK_REASONS[reason.code] ?? null })) };+ } catch {+ return { ask: true, reasons: [] };+ }+}+export {+ browserActApproval,+ browserPermissionMode,getComputerUseState,computerUseAnswer,computerUseControl,diff --git a/apps/desktop/electron/main.mjs b/apps/desktop/electron/main.mjsindex 11a91c3f..fc031df9 100644--- a/apps/desktop/electron/main.mjs+++ b/apps/desktop/electron/main.mjs@@ -25,6 +25,8 @@ import { createRuntimeManager, createSystemCaCertificateVerifyProc } from "./runimport { installAppRequestSecret } from "./app-request-secret.mjs";import { registerUpdaterIpc } from "./updater.mjs";import {+ browserActApproval,+ browserPermissionMode,checkComputerUsePermissions,getComputerUseMcpCommand,getComputerUseMcpEnvironment,@@ -1181,6 +1183,9 @@ const turnGuard = createTurnGuard({browserPanel = createBrowserPanel({remoteDebugPort,+ // The built-in browser asks like computer use: the same mode and act rules.+ permissionMode: browserPermissionMode,+ actApproval: browserActApproval,getWindow: () => mainWindow,onDeepLink: (urls) => queueDeepLinks(urls),checkPolicy: async (input) => {diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex c36bb5c1..f0c111db 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -27,7 +27,7 @@"prepare:sidecar": "node ./scripts/prepare-sidecar.mjs","pretest": "pnpm --filter @omnirush/headless-threads build","test:omnirush-account": "node --test electron/omnirush-account.test.mjs",- "test": "node --test scripts/prepare-server-constants.test.mjs scripts/verify-update-manifest.test.mjs electron/after-pack-paths.test.mjs electron/agent-context-diagnostics-fetch.test.mjs electron/automation-runner.test.mjs electron/binary-transfer.test.mjs electron/blank-slate-profile.test.mjs electron/blank-slate-profile-isolation.test.mjs electron/brand-app-name.test.mjs electron/brand-icon-darwin.test.mjs electron/brand-icon-windows.test.mjs electron/browser-login-sync.test.mjs electron/browser-panel.test.mjs electron/background-rendering.test.mjs electron/connect-link.test.mjs electron/desktop-distribution.test.mjs electron/dev-profile.test.mjs electron/electron-builder-config.test.mjs electron/linux-desktop-integration.test.mjs electron/linux-password-store.test.mjs electron/logs-folder.test.mjs electron/media-permissions.test.mjs electron/no-bare-external-fetch.test.mjs electron/nuke.test.mjs electron/omnirush-account.test.mjs electron/omnirush-ui-mcp.test.mjs electron/open-external.test.mjs electron/open-local-path.test.mjs electron/process-resilience.test.mjs electron/runtime.test.mjs electron/runtime-ca.test.mjs electron/system-ca-trust.test.mjs electron/external-fetch.test.mjs electron/runtime-chain-repair.test.mjs electron/sentry.test.mjs electron/server-dependency-mirror.test.mjs electron/skill-folder.test.mjs electron/secure-vault-key.test.mjs electron/stdio-errors.test.mjs electron/terminal-sessions.test.mjs electron/ui-control-server.test.mjs electron/updater.test.mjs electron/update-gate.test.mjs electron/quality.test.mjs electron/buildathon.test.mjs electron/build-variant.test.mjs electron/placements-desktop.test.mjs electron/feedback-desktop.test.mjs electron/turn-guard.test.mjs electron/keep-awake.test.mjs electron/computer-use-answers.test.mjs electron/remote-workspace.test.mjs electron/workspace-archive.test.mjs electron/workspace-store.test.mjs electron/start-report.test.mjs electron/start-reset.test.mjs electron/start-store-check.test.mjs electron/app-request-secret.test.mjs",+ "test": "node --test scripts/prepare-server-constants.test.mjs scripts/verify-update-manifest.test.mjs electron/after-pack-paths.test.mjs electron/agent-context-diagnostics-fetch.test.mjs electron/automation-runner.test.mjs electron/binary-transfer.test.mjs electron/blank-slate-profile.test.mjs electron/blank-slate-profile-isolation.test.mjs electron/brand-app-name.test.mjs electron/brand-icon-darwin.test.mjs electron/brand-icon-windows.test.mjs electron/browser-login-sync.test.mjs electron/browser-panel.test.mjs electron/browser-task.test.mjs electron/background-rendering.test.mjs electron/connect-link.test.mjs electron/desktop-distribution.test.mjs electron/dev-profile.test.mjs electron/electron-builder-config.test.mjs electron/linux-desktop-integration.test.mjs electron/linux-password-store.test.mjs electron/logs-folder.test.mjs electron/media-permissions.test.mjs electron/no-bare-external-fetch.test.mjs electron/nuke.test.mjs electron/omnirush-account.test.mjs electron/omnirush-ui-mcp.test.mjs electron/open-external.test.mjs electron/open-local-path.test.mjs electron/process-resilience.test.mjs electron/runtime.test.mjs electron/runtime-ca.test.mjs electron/system-ca-trust.test.mjs electron/external-fetch.test.mjs electron/runtime-chain-repair.test.mjs electron/sentry.test.mjs electron/server-dependency-mirror.test.mjs electron/skill-folder.test.mjs electron/secure-vault-key.test.mjs electron/stdio-errors.test.mjs electron/terminal-sessions.test.mjs electron/ui-control-server.test.mjs electron/updater.test.mjs electron/update-gate.test.mjs electron/quality.test.mjs electron/buildathon.test.mjs electron/build-variant.test.mjs electron/placements-desktop.test.mjs electron/feedback-desktop.test.mjs electron/turn-guard.test.mjs electron/keep-awake.test.mjs electron/computer-use-answers.test.mjs electron/remote-workspace.test.mjs electron/workspace-archive.test.mjs electron/workspace-store.test.mjs electron/start-report.test.mjs electron/start-reset.test.mjs electron/start-store-check.test.mjs electron/app-request-secret.test.mjs","test:core": "node --test scripts/prepare-server-constants.test.mjs electron/workspace-store.test.mjs electron/workspace-archive.test.mjs electron/connect-link.test.mjs electron/open-external.test.mjs electron/open-local-path.test.mjs electron/secure-vault-key.test.mjs electron/process-resilience.test.mjs electron/stdio-errors.test.mjs electron/runtime-ca.test.mjs electron/system-ca-trust.test.mjs electron/external-fetch.test.mjs electron/runtime-chain-repair.test.mjs electron/automation-runner.test.mjs","pretest:core": "pnpm --filter @omnirush/headless-threads build"},