From 9018816362175bfe454a4a078f6e22b209b482d4 Mon Sep 17 00:00:00 2001 From: Alexander Clarke Date: Fri, 4 Dec 2026 09:08:48 +0000 Subject: [PATCH 1/4] Desktop: end setup when OpenBot's page says the window's code traded, not before OpenBot's page at /desktop/signed-in now tells Desktop when it traded the window's code for its session (window_signed_in), the same way it tells it when the trade fails (window_sign_in_failed). Desktop still saves the connection before the trade, for the page and for Sign in again, but ends setup and counts openbot_connect completed only once the page says the trade worked. A failed trade, a quit while the trade runs, or a quit at Sign in again after a first setup's failed trade is now setup_abandoned, not a connection. A page from an older OpenBot never sends window_signed_in. It goes on to the sign-in's next page only after a good trade, so while a trade waits the window loading that path is taken as the trade done, with the same events as before. No timeout and no API change. --- .../components/desktop/window-signed-in.tsx | 5 +- app/src/lib/auth/window-session.ts | 14 +- app/src/lib/desktop/window-sign-in.ts | 28 ++ app/tests/desktop-window-sign-in.test.tsx | 66 ++- desktop/TELEMETRY.md | 6 +- desktop/src-tauri/build.rs | 3 +- .../src-tauri/gen/schemas/acl-manifests.json | 2 +- .../src-tauri/gen/schemas/desktop-schema.json | 12 + .../src-tauri/gen/schemas/macOS-schema.json | 12 + .../src/connected/fake_openbot_tests.rs | 10 +- desktop/src-tauri/src/connected/window.rs | 3 +- desktop/src-tauri/src/connected_ipc_tests.rs | 1 + desktop/src-tauri/src/desktop_connected.rs | 240 ++++++++-- desktop/src-tauri/src/desktop_page.rs | 27 +- desktop/src-tauri/src/window_ipc_tests.rs | 439 +++++++++++++++++- desktop/src/ConnectToOpenBot.tsx | 5 +- desktop/src/fakeNative/pageRegistry.ts | 1 + 17 files changed, 796 insertions(+), 78 deletions(-) diff --git a/app/src/components/desktop/window-signed-in.tsx b/app/src/components/desktop/window-signed-in.tsx index 77de62818d..8e464f3f58 100644 --- a/app/src/components/desktop/window-signed-in.tsx +++ b/app/src/components/desktop/window-signed-in.tsx @@ -15,8 +15,9 @@ export const WINDOW_SIGN_IN_FAILED_LINE = * the page the sign-in was for (`lib/auth/window-session.ts`). * * While it does, it draws what the signed-in gate draws while its checks run (`AppFrameSkeleton`): - * the app's empty frame for somebody who was signed in here before, else nothing. When the sign-in - * didn't finish it tells Desktop, which shows its own connect screen and says why. Until then, or in + * the app's empty frame for somebody who was signed in here before, else nothing. Signed in, it tells + * Desktop before going on (`finishWindowSignIn`). When the sign-in didn't finish it tells Desktop, + * which shows its own connect screen and says why. Until then, or in * a browser, it says so in the frame `/desktop-return` and `OpenFromApp` use, with the way to sign in * again. */ diff --git a/app/src/lib/auth/window-session.ts b/app/src/lib/auth/window-session.ts index 84c4c0a2cd..8ddb5fd464 100644 --- a/app/src/lib/auth/window-session.ts +++ b/app/src/lib/auth/window-session.ts @@ -1,5 +1,8 @@ import { tryClient } from "@/lib/client"; -import type { WindowSignInFailure } from "@/lib/desktop/window-sign-in"; +import { + tellDesktopSignedIn, + type WindowSignInFailure, +} from "@/lib/desktop/window-sign-in"; import { signInReturnPath } from "./resume"; /** @@ -84,8 +87,8 @@ let once: Promise | null = null; /** * Take the fragment and swap its code, once per page however often the page is drawn: the code is - * spent by the first try. Signed in, the window goes on to `next`, replacing this page in the - * history. + * spent by the first try. Signed in, the page tells Desktop (`window_signed_in`), and the window + * goes on to `next`, replacing this page in the history. */ export function finishWindowSignIn(): Promise { once ??= (async (): Promise => { @@ -93,7 +96,10 @@ export function finishWindowSignIn(): Promise { if (!code || !codeVerifier) return { signedIn: false, reason: "invalid_code" }; const answer = await redeemWindowSignIn(code, codeVerifier); - if (answer.signedIn) windowSessionDeps.go(next); + if (answer.signedIn) { + await tellDesktopSignedIn(); + windowSessionDeps.go(next); + } return answer; })(); return once; diff --git a/app/src/lib/desktop/window-sign-in.ts b/app/src/lib/desktop/window-sign-in.ts index 48a4913d5e..12608004ec 100644 --- a/app/src/lib/desktop/window-sign-in.ts +++ b/app/src/lib/desktop/window-sign-in.ts @@ -142,3 +142,31 @@ export async function tellDesktopSignInFailed( return false; } } + +/** How long the page waits for Desktop to take `window_signed_in` before it goes on regardless. */ +export const SIGNED_IN_TELL_WAIT_MS = 3_000; + +/** + * Tell Desktop the window's sign-in finished (`window_signed_in`), before the window goes on to the + * app, as it is told when it didn't (`tellDesktopSignInFailed`): Desktop ends setup with the + * connection then, not before. Answers whether Desktop heard it; outside Desktop nobody does, and a + * Desktop from before the command refuses it (it counted the connection before the trade). Never + * waits longer than `SIGNED_IN_TELL_WAIT_MS`, so a Desktop that doesn't answer never holds the + * window here; Desktop then takes the window going on to the app as the same news. + */ +export async function tellDesktopSignedIn(): Promise { + if (desktopShell() === null) return false; + let timer: ReturnType | undefined; + const waited = new Promise((resolve) => { + timer = setTimeout(() => resolve(false), SIGNED_IN_TELL_WAIT_MS); + }); + const told = invokeDesktop("window_signed_in").then( + () => true, + () => false, + ); + try { + return await Promise.race([told, waited]); + } finally { + clearTimeout(timer); + } +} diff --git a/app/tests/desktop-window-sign-in.test.tsx b/app/tests/desktop-window-sign-in.test.tsx index d2666b05c5..3db6e1b902 100644 --- a/app/tests/desktop-window-sign-in.test.tsx +++ b/app/tests/desktop-window-sign-in.test.tsx @@ -24,8 +24,10 @@ import { test } from "./renderer-crash"; * * - `/desktop/signed-in#code=…&code_verifier=…&next=…`: the fragment is read and gone from the * address before anything is asked, the code and verifier are posted from the page's own origin, - * and the window goes on to `next` only when it is a path on this app. A refused code tells - * Desktop (`window_sign_in_failed`) and says the sign-in didn't finish. + * and the window goes on to `next` only when it is a path on this app, once it told Desktop the + * code traded (`window_signed_in`). A refused code tells Desktop (`window_sign_in_failed`) and + * says the sign-in didn't finish. A Desktop without `window_signed_in`, or one that doesn't + * answer it, never holds the window there. * - The sign-in screen inside Desktop asks Desktop to sign in in the person's browser * (`sign_in_with_browser`). A desktop app without the command signs in as it always did. * - OpenBot refusing the window (401) goes to the sign-in screen, as in a browser, and never asks @@ -66,9 +68,14 @@ const NEW_DESKTOP = [ "sign_out", "sign_in_with_browser", "window_sign_in_failed", + "window_signed_in", "open_in_browser", "sign_in_refused", ]; +/** A Desktop with cookie mode from before the page said the code traded (`window_signed_in`). */ +const COOKIE_DESKTOP_BEFORE_TRADED = NEW_DESKTOP.filter( + (command) => command !== "window_signed_in", +); /** A Desktop from before cookie mode. */ const OLDER_DESKTOP = ["connection", "sign_out"]; @@ -373,6 +380,8 @@ async function inWindow( commands?: string[] | null; /** Commands the desktop app has but refuses, with what it says (`: `). */ refusals?: Record; + /** Commands the desktop app has and never answers. */ + unanswered?: string[]; signedIn?: boolean; prepare?: (openbot: FakeOpenBot) => void; /** Something answering in OpenBot's place before the window opens, a captive portal say. */ @@ -406,9 +415,11 @@ async function inWindow( ({ commands, refusals, + unanswered, }: { commands: string[] | null; refusals: Record; + unanswered: string[]; }) => { // How long the tab's history was when it first opened this OpenBot, kept across its pages. if (sessionStorage.getItem("test-history-start") === null) @@ -433,6 +444,7 @@ async function inWindow( // The command's own refusal, in Desktop's words. const refusal = refusals[name]; if (refusal !== undefined) throw refusal; + if (unanswered.includes(name)) return new Promise(() => {}); if (name === "connection") return { mode: "connected", address: "https://my.open.bot" }; return null; @@ -442,6 +454,7 @@ async function inWindow( { commands: options.commands === undefined ? NEW_DESKTOP : options.commands, refusals: options.refusals ?? {}, + unanswered: options.unanswered ?? [], }, ); openbot.keepCookie = () => @@ -569,6 +582,49 @@ describe.skipIf(!asked)( // Replaced, never pushed: back doesn't return to the page with the code. expect(await historyAdded(page)).toBe(0); expect(named(calls, "window_sign_in_failed")).toEqual([]); + // Desktop is told the code traded, once, after the trade and before the app asks + // anything: setup ends there, not before. + expect(named(calls, "window_signed_in")).toEqual([ + { name: "window_signed_in", args: null }, + ]); + const told = openbot.order.indexOf("desktop:window_signed_in"); + expect(told).toBeGreaterThan( + openbot.order.indexOf("/api/auth/window/session"), + ); + expect(told).toBeLessThan(openbot.order.indexOf(ME)); + }, + ); + }, 240_000); + + test(`a Desktop from before window_signed_in still goes on to next, in ${engine}`, async () => { + await inWindow( + { + engine, + path: fragment("/channel/c_1"), + commands: COOKIE_DESKTOP_BEFORE_TRADED, + }, + async (page, openbot, calls) => { + await conversation(page); + expect(landed(page)).toBe("/channel/c_1"); + expect(openbot.asked("/api/auth/window/session")).toHaveLength(1); + // Asked, refused in Tauri's words, and the window went on regardless. + expect(named(calls, "window_signed_in")).toHaveLength(1); + expect(named(calls, "window_sign_in_failed")).toEqual([]); + }, + ); + }, 240_000); + + test(`a Desktop that doesn't answer window_signed_in never holds the window, in ${engine}`, async () => { + await inWindow( + { + engine, + path: fragment("/channel/c_1"), + unanswered: ["window_signed_in"], + }, + async (page, _openbot, calls) => { + await conversation(page); + expect(landed(page)).toBe("/channel/c_1"); + expect(named(calls, "window_signed_in")).toHaveLength(1); }, ); }, 240_000); @@ -611,8 +667,10 @@ describe.skipIf(!asked)( args: { reason: "invalid_code" }, }, ]); - // Not signed in, so the app behind the gate was never asked for. + // Not signed in, so the app behind the gate was never asked for, and Desktop was never + // told the code traded. expect(openbot.asked(ME)).toEqual([]); + expect(named(calls, "window_signed_in")).toEqual([]); await expect( page.getByRole("link", { name: "Sign in" }).getAttribute("href"), ).resolves.toBe("/sign"); @@ -660,6 +718,7 @@ describe.skipIf(!asked)( expect(named(calls, "window_sign_in_failed")).toEqual([ { name: "window_sign_in_failed", args: { reason: "refused" } }, ]); + expect(named(calls, "window_signed_in")).toEqual([]); }, ); }, 240_000); @@ -673,6 +732,7 @@ describe.skipIf(!asked)( .waitFor(); expect(openbot.asked("/api/auth/window/session")).toEqual([]); expect(named(calls, "window_sign_in_failed")).toHaveLength(1); + expect(named(calls, "window_signed_in")).toEqual([]); }, ); }, 240_000); diff --git a/desktop/TELEMETRY.md b/desktop/TELEMETRY.md index 98f849f27f..1ca9987ddc 100644 --- a/desktop/TELEMETRY.md +++ b/desktop/TELEMETRY.md @@ -64,9 +64,9 @@ For `model_chosen`, providers are `openai`, `anthropic`, `google`, `xai`, `cloud `ui_stalled` is a setup window that stopped taking what the desktop sends it. While the setup, start or update screens show, the page invokes `setup_heartbeat` every five seconds, and as soon as a row's progress reaches it, with the highest progress number it has taken (`setup:progress` carries one). The heartbeat is never awaited and runs off the window's thread. Progress left untaken for over 30 seconds while the window is shown, not minimised and, on macOS, not covered is a stall. The Desktop log says `[ui] the window has not answered for 31s during start_machine` when it is noticed and `[ui] the window stopped answering for 42s during start_machine` when it ends, and that end sends one `ui_stalled` with `stalled_seconds` and `step`, the setup row the desktop was reporting, by the same names as `failing_step`. It ends when the page catches up, the window leaves the screen, the window loads another page, or OpenBot quits. A page that has just loaded counts what was sent before it listened as taken, and a page that sends no heartbeat (OpenBot itself) is not watched. -`setup_abandoned` is setup ending before activation, or before a connection to an OpenBot that runs elsewhere is kept: Quit during setup, or, on the next launch, a crash. The app keeps a connection in three ways. Connect through the relay keeps it once signed in and that OpenBot answered, just before `openbot_connect` `completed` is counted when the window named the screen it was pressed on (`screen`). The window's own sign-in keeps it once the browser sign-in came back, just before the window trades its code for its session at that OpenBot. Move to Cloud keeps it once the move is saved. Keeping it closes any setup session still open, whether or not a `completed` was sent, and nothing starts one while it is kept. +`setup_abandoned` is setup ending before activation, or before a connection to an OpenBot that runs elsewhere is kept: Quit during setup, or, on the next launch, a crash. The app keeps a connection in three ways. Connect through the relay keeps it once signed in and that OpenBot answered, just before `openbot_connect` `completed` is counted when the window named the screen it was pressed on (`screen`). The window's own sign-in keeps it once OpenBot's page says it traded the window's code for its session at that OpenBot, the way it says when the trade fails; a page from an older OpenBot says only when it fails, and there the window going on from that page to the app is taken as the same. That connection is saved before the trade, for the page and for Sign in again, but not kept until then: a quit while the trade runs, or after a trade that failed on a first setup, is `setup_abandoned`. A crash then is not, since the next launch finds the connection saved (see below). Move to Cloud keeps it once the move is saved. Keeping it closes any setup session still open, whether or not a `completed` was sent, and nothing starts one while it is kept. -`step_viewed` still counts each launch, and the first screen whenever it shows again, while a connection is kept, but neither a quit nor a crash then sends `setup_abandoned`, even after a Sign in again that started, failed or was cancelled. The first screen shows again for Sign in again once a sign-in ended, at launch or while OpenBot shows, or once the window's own sign-in was let go (OpenBot's page could not trade its code, or that OpenBot no longer signs the window in); for a saved OpenBot that cannot be reached; and for Use this computer in Settings. A setup session the last run left open (a crash, or an earlier version, which started one at every launch) is closed without a `setup_abandoned` by a launch that finds the connection kept. +`step_viewed` still counts each launch, and the first screen whenever it shows again, while a connection is kept or saved, but once one was kept neither a quit nor a crash sends `setup_abandoned`, even after a Sign in again that started, failed or was cancelled. The first screen shows again for Sign in again once a sign-in ended, at launch or while OpenBot shows, or once the window's own sign-in was let go (OpenBot's page could not trade its code, or that OpenBot no longer signs the window in); for a saved OpenBot that cannot be reached; and for Use this computer in Settings. A setup session the last run left open (a crash, or an earlier version, which started one at every launch) is closed without a `setup_abandoned` by a launch that finds the connection kept. `setup_abandoned` was also sent for a quit or a crash of a connected app by releases before this rule, at `welcome` or `connect_openbot`, and one that such a release recorded on quit but had not yet sent is still sent after the update, so compare `setup_abandoned` from before and after the rule by `openbot_version` (the app version every event carries). @@ -78,7 +78,7 @@ For `model_chosen`, providers are `openai`, `anthropic`, `google`, `xai`, `cloud `business_opened` is OpenBot for Business's booker coming on screen because it was picked: on the first screen (`welcome`) or in Move to Cloud (`move_to_cloud`), once for each place each time the setup window's page loads (coming back to setup from OpenBot loads it again), however often it is picked again there. `business_booked` is a call booked in its calendar, said by Calendly from its own origin and the calendar's frame. The window sends both, with the place and nothing else: never the time booked or anything typed into the calendar. The calendar's address carries the same place as `utm_content` beside `utm_source=openbot_app` and `utm_medium=in_app`, which Calendly keeps on the booking, so a booking and these events name the same screen. -`openbot_connect` is the first screen's connection to an OpenBot that runs elsewhere, by the screen it was made on: OpenBot Cloud's sign-in (`cloud`) or a company's OpenBot by its address (`connect_openbot`). It counts that screen whenever it shows: on a first setup, and on a later launch that shows it again, such as a saved connection whose sign-in ended (Sign in again) or the choice of where OpenBot runs made again from Settings. Shown again once a connection is kept, its `step_viewed` starts no setup session (see `setup_abandoned`). The window sends `started` when the person presses Sign in, Connect, Try again or Sign in again, then `failed` when the address check or the browser sign-in fails, or `cancelled` when the person presses Cancel. The desktop itself sends `completed` once signed in and the window has gone to that OpenBot: through the relay, once that OpenBot is shown; through the window's own sign-in, once the window goes to the page that trades its code, so before the trade. Each ending has `duration_ms` from the press, and the outcomes are `sign_in`'s. A Cancel pressed just as the sign-in completes can give `cancelled` and then `completed` for one go: it did connect. `completed` also ends the setup session, as `activated` does for OpenBot on this computer, so a quit afterwards is not `setup_abandoned`; it is not `activated`, since nothing started here. Move to Cloud signs in its own way and never sends it. Opening a connection again with the sign-in this computer already has sends nothing, and a sign-in left behind when the screen goes says nothing when it ends. Never the address, its host or the sentence about what went wrong. It is not `sign_in`, which stays the Account step's CopilotKit sign-in. +`openbot_connect` is the first screen's connection to an OpenBot that runs elsewhere, by the screen it was made on: OpenBot Cloud's sign-in (`cloud`) or a company's OpenBot by its address (`connect_openbot`). It counts that screen whenever it shows: on a first setup, and on a later launch that shows it again, such as a saved connection whose sign-in ended (Sign in again) or the choice of where OpenBot runs made again from Settings. Shown again once a connection is kept, its `step_viewed` starts no setup session (see `setup_abandoned`). The window sends `started` when the person presses Sign in, Connect, Try again or Sign in again, then `failed` when the address check or the browser sign-in fails, or `cancelled` when the person presses Cancel. The desktop itself sends `completed` once signed in and the window has gone to that OpenBot: through the relay, once that OpenBot is shown; through the window's own sign-in, once OpenBot's page says it traded the window's code (with a page from an older OpenBot, which does not say so, once the window goes on from that page to the app), so after the trade, and never for a trade that failed. Releases before this rule counted it when the window went to that page, before the trade, so a trade that then failed was still `completed`: compare from before and after by `openbot_version`. Each ending has `duration_ms` from the press, and the outcomes are `sign_in`'s. A Cancel pressed just as the sign-in completes can give `cancelled` and then `completed` for one go: it did connect. `completed` also ends the setup session, as `activated` does for OpenBot on this computer, so a quit afterwards is not `setup_abandoned`; it is not `activated`, since nothing started here. Move to Cloud signs in its own way and never sends it. Opening a connection again with the sign-in this computer already has sends nothing, and a sign-in left behind when the screen goes says nothing when it ends. Never the address, its host or the sentence about what went wrong. It is not `sign_in`, which stays the Account step's CopilotKit sign-in. `engine_measured` is what the Account step's check measured of the engine local setup runs on, too small or not: `resources` as `setup_failed` carries it for an engine too small, CPUs in thousandths and memory and free disk in MiB, against what setup needs. Sent by the desktop itself, never by the window, once a launch and again only when the engine's CPUs or memory change (a Podman machine made bigger). Free disk is sent with them, but a change in it alone, as the downloads fill the disk, sends nothing new. Every install that goes through the Account step runs that check, so each one whose engine answers it sends one; an engine not known yet, or one that does not answer, is not measured and sends nothing, and neither does a reinstall that goes straight to Install. Nothing is kept while usage data is off, so turning it on again in the same launch still sends the size. OpenBot Cloud and a company's OpenBot run nothing on this computer, so a connection never sends it. Never the engine's name, a drive, a path or a hostname. diff --git a/desktop/src-tauri/build.rs b/desktop/src-tauri/build.rs index 699831c199..783cefa7cc 100644 --- a/desktop/src-tauri/build.rs +++ b/desktop/src-tauri/build.rs @@ -106,10 +106,11 @@ fn main() { // has really ended, and keeps it unless OpenBot itself refused it. "sign_in_refused", // The window signed in at OpenBot's own origin: its sign-in screen signs in in - // the person's browser, and its page says when the code didn't trade for the + // the person's browser, and its page says whether the code traded for the // window's session cookie. See `src/connected/window.rs`. "sign_in_with_browser", "window_sign_in_failed", + "window_signed_in", // The window's own page opens one of its own addresses (a hosted sign-in // renewal) in the person's browser. Its own origin only. "open_in_browser", diff --git a/desktop/src-tauri/gen/schemas/acl-manifests.json b/desktop/src-tauri/gen/schemas/acl-manifests.json index 8f5e7574a7..7c84e9c66a 100644 --- a/desktop/src-tauri/gen/schemas/acl-manifests.json +++ b/desktop/src-tauri/gen/schemas/acl-manifests.json @@ -1 +1 @@ -{"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-data-store":{"identifier":"allow-remove-data-store","description":"Enables the remove_data_store command without any pre-configured scope.","commands":{"allow":["remove_data_store"],"deny":[]}},"allow-remove-listener":{"identifier":"allow-remove-listener","description":"Enables the remove_listener command without any pre-configured scope.","commands":{"allow":["remove_listener"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-set-dock-visibility":{"identifier":"allow-set-dock-visibility","description":"Enables the set_dock_visibility command without any pre-configured scope.","commands":{"allow":["set_dock_visibility"],"deny":[]}},"allow-supports-multiple-windows":{"identifier":"allow-supports-multiple-windows","description":"Enables the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":["supports_multiple_windows"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-bundle-type":{"identifier":"deny-bundle-type","description":"Denies the bundle_type command without any pre-configured scope.","commands":{"allow":[],"deny":["bundle_type"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-fetch-data-store-identifiers":{"identifier":"deny-fetch-data-store-identifiers","description":"Denies the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_data_store_identifiers"]}},"deny-identifier":{"identifier":"deny-identifier","description":"Denies the identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["identifier"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-data-store":{"identifier":"deny-remove-data-store","description":"Denies the remove_data_store command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_data_store"]}},"deny-remove-listener":{"identifier":"deny-remove-listener","description":"Denies the remove_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_listener"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-set-dock-visibility":{"identifier":"deny-set-dock-visibility","description":"Denies the set_dock_visibility command without any pre-configured scope.","commands":{"allow":[],"deny":["set_dock_visibility"]}},"deny-supports-multiple-windows":{"identifier":"deny-supports-multiple-windows","description":"Denies the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["supports_multiple_windows"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-icon-with-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-icon-with-as-template":{"identifier":"allow-set-icon-with-as-template","description":"Enables the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_with_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-icon-with-as-template":{"identifier":"deny-set-icon-with-as-template","description":"Denies the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_with_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-auto-resize":{"identifier":"allow-set-webview-auto-resize","description":"Enables the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":["set_webview_auto_resize"],"deny":[]}},"allow-set-webview-background-color":{"identifier":"allow-set-webview-background-color","description":"Enables the set_webview_background_color command without any pre-configured scope.","commands":{"allow":["set_webview_background_color"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-auto-resize":{"identifier":"deny-set-webview-auto-resize","description":"Denies the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_auto_resize"]}},"deny-set-webview-background-color":{"identifier":"deny-set-webview-background-color","description":"Denies the set_webview_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_background_color"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-is-always-on-top","allow-activity-name","allow-scene-identifier","allow-internal-toggle-maximize"]},"permissions":{"allow-activity-name":{"identifier":"allow-activity-name","description":"Enables the activity_name command without any pre-configured scope.","commands":{"allow":["activity_name"],"deny":[]}},"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-always-on-top":{"identifier":"allow-is-always-on-top","description":"Enables the is_always_on_top command without any pre-configured scope.","commands":{"allow":["is_always_on_top"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-scene-identifier":{"identifier":"allow-scene-identifier","description":"Enables the scene_identifier command without any pre-configured scope.","commands":{"allow":["scene_identifier"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-background-color":{"identifier":"allow-set-background-color","description":"Enables the set_background_color command without any pre-configured scope.","commands":{"allow":["set_background_color"],"deny":[]}},"allow-set-badge-count":{"identifier":"allow-set-badge-count","description":"Enables the set_badge_count command without any pre-configured scope.","commands":{"allow":["set_badge_count"],"deny":[]}},"allow-set-badge-label":{"identifier":"allow-set-badge-label","description":"Enables the set_badge_label command without any pre-configured scope.","commands":{"allow":["set_badge_label"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-focusable":{"identifier":"allow-set-focusable","description":"Enables the set_focusable command without any pre-configured scope.","commands":{"allow":["set_focusable"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-fullscreen-on-monitor":{"identifier":"allow-set-fullscreen-on-monitor","description":"Enables the set_fullscreen_on_monitor command without any pre-configured scope.","commands":{"allow":["set_fullscreen_on_monitor"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-overlay-icon":{"identifier":"allow-set-overlay-icon","description":"Enables the set_overlay_icon command without any pre-configured scope.","commands":{"allow":["set_overlay_icon"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-simple-fullscreen":{"identifier":"allow-set-simple-fullscreen","description":"Enables the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":["set_simple_fullscreen"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-activity-name":{"identifier":"deny-activity-name","description":"Denies the activity_name command without any pre-configured scope.","commands":{"allow":[],"deny":["activity_name"]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-always-on-top":{"identifier":"deny-is-always-on-top","description":"Denies the is_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["is_always_on_top"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-scene-identifier":{"identifier":"deny-scene-identifier","description":"Denies the scene_identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["scene_identifier"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-background-color":{"identifier":"deny-set-background-color","description":"Denies the set_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_background_color"]}},"deny-set-badge-count":{"identifier":"deny-set-badge-count","description":"Denies the set_badge_count command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_count"]}},"deny-set-badge-label":{"identifier":"deny-set-badge-label","description":"Denies the set_badge_label command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_label"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-focusable":{"identifier":"deny-set-focusable","description":"Denies the set_focusable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focusable"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-fullscreen-on-monitor":{"identifier":"deny-set-fullscreen-on-monitor","description":"Denies the set_fullscreen_on_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen_on_monitor"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-overlay-icon":{"identifier":"deny-set-overlay-icon","description":"Denies the set_overlay_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_overlay_icon"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-simple-fullscreen":{"identifier":"deny-set-simple-fullscreen","description":"Denies the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_simple_fullscreen"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"deep-link":{"default_permission":{"identifier":"default","description":"Allows reading the opened deep link via the get_current command","permissions":["allow-get-current"]},"permissions":{"allow-get-current":{"identifier":"allow-get-current","description":"Enables the get_current command without any pre-configured scope.","commands":{"allow":["get_current"],"deny":[]}},"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"deny-get-current":{"identifier":"deny-get-current","description":"Denies the get_current command without any pre-configured scope.","commands":{"allow":[],"deny":["get_current"]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"log":{"default_permission":{"identifier":"default","description":"Allows the log command","permissions":["allow-log"]},"permissions":{"allow-log":{"identifier":"allow-log","description":"Enables the log command without any pre-configured scope.","commands":{"allow":["log"],"deny":[]}},"deny-log":{"identifier":"deny-log","description":"Denies the log command without any pre-configured scope.","commands":{"allow":[],"deny":["log"]}}},"permission_sets":{},"global_scope_schema":null},"notification":{"default_permission":{"identifier":"default","description":"This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n","permissions":["allow-is-permission-granted","allow-request-permission","allow-notify","allow-register-action-types","allow-register-listener","allow-remove-listener","allow-cancel","allow-get-pending","allow-remove-active","allow-get-active","allow-check-permissions","allow-show","allow-batch","allow-list-channels","allow-delete-channel","allow-create-channel","allow-permission-state"]},"permissions":{"allow-batch":{"identifier":"allow-batch","description":"Enables the batch command without any pre-configured scope.","commands":{"allow":["batch"],"deny":[]}},"allow-cancel":{"identifier":"allow-cancel","description":"Enables the cancel command without any pre-configured scope.","commands":{"allow":["cancel"],"deny":[]}},"allow-check-permissions":{"identifier":"allow-check-permissions","description":"Enables the check_permissions command without any pre-configured scope.","commands":{"allow":["check_permissions"],"deny":[]}},"allow-create-channel":{"identifier":"allow-create-channel","description":"Enables the create_channel command without any pre-configured scope.","commands":{"allow":["create_channel"],"deny":[]}},"allow-delete-channel":{"identifier":"allow-delete-channel","description":"Enables the delete_channel command without any pre-configured scope.","commands":{"allow":["delete_channel"],"deny":[]}},"allow-get-active":{"identifier":"allow-get-active","description":"Enables the get_active command without any pre-configured scope.","commands":{"allow":["get_active"],"deny":[]}},"allow-get-pending":{"identifier":"allow-get-pending","description":"Enables the get_pending command without any pre-configured scope.","commands":{"allow":["get_pending"],"deny":[]}},"allow-is-permission-granted":{"identifier":"allow-is-permission-granted","description":"Enables the is_permission_granted command without any pre-configured scope.","commands":{"allow":["is_permission_granted"],"deny":[]}},"allow-list-channels":{"identifier":"allow-list-channels","description":"Enables the list_channels command without any pre-configured scope.","commands":{"allow":["list_channels"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-permission-state":{"identifier":"allow-permission-state","description":"Enables the permission_state command without any pre-configured scope.","commands":{"allow":["permission_state"],"deny":[]}},"allow-register-action-types":{"identifier":"allow-register-action-types","description":"Enables the register_action_types command without any pre-configured scope.","commands":{"allow":["register_action_types"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-active":{"identifier":"allow-remove-active","description":"Enables the remove_active command without any pre-configured scope.","commands":{"allow":["remove_active"],"deny":[]}},"allow-remove-listener":{"identifier":"allow-remove-listener","description":"Enables the remove_listener command without any pre-configured scope.","commands":{"allow":["remove_listener"],"deny":[]}},"allow-request-permission":{"identifier":"allow-request-permission","description":"Enables the request_permission command without any pre-configured scope.","commands":{"allow":["request_permission"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"deny-batch":{"identifier":"deny-batch","description":"Denies the batch command without any pre-configured scope.","commands":{"allow":[],"deny":["batch"]}},"deny-cancel":{"identifier":"deny-cancel","description":"Denies the cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel"]}},"deny-check-permissions":{"identifier":"deny-check-permissions","description":"Denies the check_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["check_permissions"]}},"deny-create-channel":{"identifier":"deny-create-channel","description":"Denies the create_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["create_channel"]}},"deny-delete-channel":{"identifier":"deny-delete-channel","description":"Denies the delete_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_channel"]}},"deny-get-active":{"identifier":"deny-get-active","description":"Denies the get_active command without any pre-configured scope.","commands":{"allow":[],"deny":["get_active"]}},"deny-get-pending":{"identifier":"deny-get-pending","description":"Denies the get_pending command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pending"]}},"deny-is-permission-granted":{"identifier":"deny-is-permission-granted","description":"Denies the is_permission_granted command without any pre-configured scope.","commands":{"allow":[],"deny":["is_permission_granted"]}},"deny-list-channels":{"identifier":"deny-list-channels","description":"Denies the list_channels command without any pre-configured scope.","commands":{"allow":[],"deny":["list_channels"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-permission-state":{"identifier":"deny-permission-state","description":"Denies the permission_state command without any pre-configured scope.","commands":{"allow":[],"deny":["permission_state"]}},"deny-register-action-types":{"identifier":"deny-register-action-types","description":"Denies the register_action_types command without any pre-configured scope.","commands":{"allow":[],"deny":["register_action_types"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-active":{"identifier":"deny-remove-active","description":"Denies the remove_active command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_active"]}},"deny-remove-listener":{"identifier":"deny-remove-listener","description":"Denies the remove_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_listener"]}},"deny-request-permission":{"identifier":"deny-request-permission","description":"Denies the request_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_permission"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}}},"permission_sets":{},"global_scope_schema":null},"openbot-desktop":{"default_permission":null,"permissions":{"allow-ai-connection":{"identifier":"allow-ai-connection","description":"Enables the ai_connection command without any pre-configured scope.","commands":{"allow":["ai_connection"],"deny":[]}},"allow-ai-providers":{"identifier":"allow-ai-providers","description":"Enables the ai_providers command without any pre-configured scope.","commands":{"allow":["ai_providers"],"deny":[]}},"allow-appearance":{"identifier":"allow-appearance","description":"Enables the appearance command without any pre-configured scope.","commands":{"allow":["appearance"],"deny":[]}},"allow-await-sign-in-redirect":{"identifier":"allow-await-sign-in-redirect","description":"Enables the await_sign_in_redirect command without any pre-configured scope.","commands":{"allow":["await_sign_in_redirect"],"deny":[]}},"allow-begin-plan-sign-in":{"identifier":"allow-begin-plan-sign-in","description":"Enables the begin_plan_sign_in command without any pre-configured scope.","commands":{"allow":["begin_plan_sign_in"],"deny":[]}},"allow-begin-provider-sign-in":{"identifier":"allow-begin-provider-sign-in","description":"Enables the begin_provider_sign_in command without any pre-configured scope.","commands":{"allow":["begin_provider_sign_in"],"deny":[]}},"allow-begin-sign-in-redirect":{"identifier":"allow-begin-sign-in-redirect","description":"Enables the begin_sign_in_redirect command without any pre-configured scope.","commands":{"allow":["begin_sign_in_redirect"],"deny":[]}},"allow-cancel-plan-sign-in":{"identifier":"allow-cancel-plan-sign-in","description":"Enables the cancel_plan_sign_in command without any pre-configured scope.","commands":{"allow":["cancel_plan_sign_in"],"deny":[]}},"allow-cancel-provider-sign-in":{"identifier":"allow-cancel-provider-sign-in","description":"Enables the cancel_provider_sign_in command without any pre-configured scope.","commands":{"allow":["cancel_provider_sign_in"],"deny":[]}},"allow-cancel-sign-in-redirect":{"identifier":"allow-cancel-sign-in-redirect","description":"Enables the cancel_sign_in_redirect command without any pre-configured scope.","commands":{"allow":["cancel_sign_in_redirect"],"deny":[]}},"allow-change-ai-connection":{"identifier":"allow-change-ai-connection","description":"Enables the change_ai_connection command without any pre-configured scope.","commands":{"allow":["change_ai_connection"],"deny":[]}},"allow-change-connection":{"identifier":"allow-change-connection","description":"Enables the change_connection command without any pre-configured scope.","commands":{"allow":["change_connection"],"deny":[]}},"allow-check-update":{"identifier":"allow-check-update","description":"Enables the check_update command without any pre-configured scope.","commands":{"allow":["check_update"],"deny":[]}},"allow-connection":{"identifier":"allow-connection","description":"Enables the connection command without any pre-configured scope.","commands":{"allow":["connection"],"deny":[]}},"allow-dismiss-update":{"identifier":"allow-dismiss-update","description":"Enables the dismiss_update command without any pre-configured scope.","commands":{"allow":["dismiss_update"],"deny":[]}},"allow-finish-plan-sign-in":{"identifier":"allow-finish-plan-sign-in","description":"Enables the finish_plan_sign_in command without any pre-configured scope.","commands":{"allow":["finish_plan_sign_in"],"deny":[]}},"allow-finish-provider-sign-in":{"identifier":"allow-finish-provider-sign-in","description":"Enables the finish_provider_sign_in command without any pre-configured scope.","commands":{"allow":["finish_provider_sign_in"],"deny":[]}},"allow-install-update":{"identifier":"allow-install-update","description":"Enables the install_update command without any pre-configured scope.","commands":{"allow":["install_update"],"deny":[]}},"allow-intelligence":{"identifier":"allow-intelligence","description":"Enables the intelligence command without any pre-configured scope.","commands":{"allow":["intelligence"],"deny":[]}},"allow-move-to-cloud":{"identifier":"allow-move-to-cloud","description":"Enables the move_to_cloud command without any pre-configured scope.","commands":{"allow":["move_to_cloud"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-onepassword-available":{"identifier":"allow-onepassword-available","description":"Enables the onepassword_available command without any pre-configured scope.","commands":{"allow":["onepassword_available"],"deny":[]}},"allow-onepassword-fill":{"identifier":"allow-onepassword-fill","description":"Enables the onepassword_fill command without any pre-configured scope.","commands":{"allow":["onepassword_fill"],"deny":[]}},"allow-open-in-browser":{"identifier":"allow-open-in-browser","description":"Enables the open_in_browser command without any pre-configured scope.","commands":{"allow":["open_in_browser"],"deny":[]}},"allow-open-logs":{"identifier":"allow-open-logs","description":"Enables the open_logs command without any pre-configured scope.","commands":{"allow":["open_logs"],"deny":[]}},"allow-prepare-ai-connection":{"identifier":"allow-prepare-ai-connection","description":"Enables the prepare_ai_connection command without any pre-configured scope.","commands":{"allow":["prepare_ai_connection"],"deny":[]}},"allow-quit":{"identifier":"allow-quit","description":"Enables the quit command without any pre-configured scope.","commands":{"allow":["quit"],"deny":[]}},"allow-record-problem":{"identifier":"allow-record-problem","description":"Enables the record_problem command without any pre-configured scope.","commands":{"allow":["record_problem"],"deny":[]}},"allow-restart":{"identifier":"allow-restart","description":"Enables the restart command without any pre-configured scope.","commands":{"allow":["restart"],"deny":[]}},"allow-save-logs":{"identifier":"allow-save-logs","description":"Enables the save_logs command without any pre-configured scope.","commands":{"allow":["save_logs"],"deny":[]}},"allow-set-organization":{"identifier":"allow-set-organization","description":"Enables the set_organization command without any pre-configured scope.","commands":{"allow":["set_organization"],"deny":[]}},"allow-set-usage-data":{"identifier":"allow-set-usage-data","description":"Enables the set_usage_data command without any pre-configured scope.","commands":{"allow":["set_usage_data"],"deny":[]}},"allow-settle-ai-connection":{"identifier":"allow-settle-ai-connection","description":"Enables the settle_ai_connection command without any pre-configured scope.","commands":{"allow":["settle_ai_connection"],"deny":[]}},"allow-show-download":{"identifier":"allow-show-download","description":"Enables the show_download command without any pre-configured scope.","commands":{"allow":["show_download"],"deny":[]}},"allow-sign-in-refused":{"identifier":"allow-sign-in-refused","description":"Enables the sign_in_refused command without any pre-configured scope.","commands":{"allow":["sign_in_refused"],"deny":[]}},"allow-sign-in-with-browser":{"identifier":"allow-sign-in-with-browser","description":"Enables the sign_in_with_browser command without any pre-configured scope.","commands":{"allow":["sign_in_with_browser"],"deny":[]}},"allow-sign-out":{"identifier":"allow-sign-out","description":"Enables the sign_out command without any pre-configured scope.","commands":{"allow":["sign_out"],"deny":[]}},"allow-speech-abort":{"identifier":"allow-speech-abort","description":"Enables the speech_abort command without any pre-configured scope.","commands":{"allow":["speech_abort"],"deny":[]}},"allow-speech-available":{"identifier":"allow-speech-available","description":"Enables the speech_available command without any pre-configured scope.","commands":{"allow":["speech_available"],"deny":[]}},"allow-speech-start":{"identifier":"allow-speech-start","description":"Enables the speech_start command without any pre-configured scope.","commands":{"allow":["speech_start"],"deny":[]}},"allow-speech-stop":{"identifier":"allow-speech-stop","description":"Enables the speech_stop command without any pre-configured scope.","commands":{"allow":["speech_stop"],"deny":[]}},"allow-status":{"identifier":"allow-status","description":"Enables the status command without any pre-configured scope.","commands":{"allow":["status"],"deny":[]}},"allow-stop":{"identifier":"allow-stop","description":"Enables the stop command without any pre-configured scope.","commands":{"allow":["stop"],"deny":[]}},"allow-update-offer":{"identifier":"allow-update-offer","description":"Enables the update_offer command without any pre-configured scope.","commands":{"allow":["update_offer"],"deny":[]}},"allow-usage-data":{"identifier":"allow-usage-data","description":"Enables the usage_data command without any pre-configured scope.","commands":{"allow":["usage_data"],"deny":[]}},"allow-window-sign-in-failed":{"identifier":"allow-window-sign-in-failed","description":"Enables the window_sign_in_failed command without any pre-configured scope.","commands":{"allow":["window_sign_in_failed"],"deny":[]}},"allow-zoom":{"identifier":"allow-zoom","description":"Enables the zoom command without any pre-configured scope.","commands":{"allow":["zoom"],"deny":[]}},"deny-ai-connection":{"identifier":"deny-ai-connection","description":"Denies the ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["ai_connection"]}},"deny-ai-providers":{"identifier":"deny-ai-providers","description":"Denies the ai_providers command without any pre-configured scope.","commands":{"allow":[],"deny":["ai_providers"]}},"deny-appearance":{"identifier":"deny-appearance","description":"Denies the appearance command without any pre-configured scope.","commands":{"allow":[],"deny":["appearance"]}},"deny-await-sign-in-redirect":{"identifier":"deny-await-sign-in-redirect","description":"Denies the await_sign_in_redirect command without any pre-configured scope.","commands":{"allow":[],"deny":["await_sign_in_redirect"]}},"deny-begin-plan-sign-in":{"identifier":"deny-begin-plan-sign-in","description":"Denies the begin_plan_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_plan_sign_in"]}},"deny-begin-provider-sign-in":{"identifier":"deny-begin-provider-sign-in","description":"Denies the begin_provider_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_provider_sign_in"]}},"deny-begin-sign-in-redirect":{"identifier":"deny-begin-sign-in-redirect","description":"Denies the begin_sign_in_redirect command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_sign_in_redirect"]}},"deny-cancel-plan-sign-in":{"identifier":"deny-cancel-plan-sign-in","description":"Denies the cancel_plan_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel_plan_sign_in"]}},"deny-cancel-provider-sign-in":{"identifier":"deny-cancel-provider-sign-in","description":"Denies the cancel_provider_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel_provider_sign_in"]}},"deny-cancel-sign-in-redirect":{"identifier":"deny-cancel-sign-in-redirect","description":"Denies the cancel_sign_in_redirect command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel_sign_in_redirect"]}},"deny-change-ai-connection":{"identifier":"deny-change-ai-connection","description":"Denies the change_ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["change_ai_connection"]}},"deny-change-connection":{"identifier":"deny-change-connection","description":"Denies the change_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["change_connection"]}},"deny-check-update":{"identifier":"deny-check-update","description":"Denies the check_update command without any pre-configured scope.","commands":{"allow":[],"deny":["check_update"]}},"deny-connection":{"identifier":"deny-connection","description":"Denies the connection command without any pre-configured scope.","commands":{"allow":[],"deny":["connection"]}},"deny-dismiss-update":{"identifier":"deny-dismiss-update","description":"Denies the dismiss_update command without any pre-configured scope.","commands":{"allow":[],"deny":["dismiss_update"]}},"deny-finish-plan-sign-in":{"identifier":"deny-finish-plan-sign-in","description":"Denies the finish_plan_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["finish_plan_sign_in"]}},"deny-finish-provider-sign-in":{"identifier":"deny-finish-provider-sign-in","description":"Denies the finish_provider_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["finish_provider_sign_in"]}},"deny-install-update":{"identifier":"deny-install-update","description":"Denies the install_update command without any pre-configured scope.","commands":{"allow":[],"deny":["install_update"]}},"deny-intelligence":{"identifier":"deny-intelligence","description":"Denies the intelligence command without any pre-configured scope.","commands":{"allow":[],"deny":["intelligence"]}},"deny-move-to-cloud":{"identifier":"deny-move-to-cloud","description":"Denies the move_to_cloud command without any pre-configured scope.","commands":{"allow":[],"deny":["move_to_cloud"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-onepassword-available":{"identifier":"deny-onepassword-available","description":"Denies the onepassword_available command without any pre-configured scope.","commands":{"allow":[],"deny":["onepassword_available"]}},"deny-onepassword-fill":{"identifier":"deny-onepassword-fill","description":"Denies the onepassword_fill command without any pre-configured scope.","commands":{"allow":[],"deny":["onepassword_fill"]}},"deny-open-in-browser":{"identifier":"deny-open-in-browser","description":"Denies the open_in_browser command without any pre-configured scope.","commands":{"allow":[],"deny":["open_in_browser"]}},"deny-open-logs":{"identifier":"deny-open-logs","description":"Denies the open_logs command without any pre-configured scope.","commands":{"allow":[],"deny":["open_logs"]}},"deny-prepare-ai-connection":{"identifier":"deny-prepare-ai-connection","description":"Denies the prepare_ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["prepare_ai_connection"]}},"deny-quit":{"identifier":"deny-quit","description":"Denies the quit command without any pre-configured scope.","commands":{"allow":[],"deny":["quit"]}},"deny-record-problem":{"identifier":"deny-record-problem","description":"Denies the record_problem command without any pre-configured scope.","commands":{"allow":[],"deny":["record_problem"]}},"deny-restart":{"identifier":"deny-restart","description":"Denies the restart command without any pre-configured scope.","commands":{"allow":[],"deny":["restart"]}},"deny-save-logs":{"identifier":"deny-save-logs","description":"Denies the save_logs command without any pre-configured scope.","commands":{"allow":[],"deny":["save_logs"]}},"deny-set-organization":{"identifier":"deny-set-organization","description":"Denies the set_organization command without any pre-configured scope.","commands":{"allow":[],"deny":["set_organization"]}},"deny-set-usage-data":{"identifier":"deny-set-usage-data","description":"Denies the set_usage_data command without any pre-configured scope.","commands":{"allow":[],"deny":["set_usage_data"]}},"deny-settle-ai-connection":{"identifier":"deny-settle-ai-connection","description":"Denies the settle_ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["settle_ai_connection"]}},"deny-show-download":{"identifier":"deny-show-download","description":"Denies the show_download command without any pre-configured scope.","commands":{"allow":[],"deny":["show_download"]}},"deny-sign-in-refused":{"identifier":"deny-sign-in-refused","description":"Denies the sign_in_refused command without any pre-configured scope.","commands":{"allow":[],"deny":["sign_in_refused"]}},"deny-sign-in-with-browser":{"identifier":"deny-sign-in-with-browser","description":"Denies the sign_in_with_browser command without any pre-configured scope.","commands":{"allow":[],"deny":["sign_in_with_browser"]}},"deny-sign-out":{"identifier":"deny-sign-out","description":"Denies the sign_out command without any pre-configured scope.","commands":{"allow":[],"deny":["sign_out"]}},"deny-speech-abort":{"identifier":"deny-speech-abort","description":"Denies the speech_abort command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_abort"]}},"deny-speech-available":{"identifier":"deny-speech-available","description":"Denies the speech_available command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_available"]}},"deny-speech-start":{"identifier":"deny-speech-start","description":"Denies the speech_start command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_start"]}},"deny-speech-stop":{"identifier":"deny-speech-stop","description":"Denies the speech_stop command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_stop"]}},"deny-status":{"identifier":"deny-status","description":"Denies the status command without any pre-configured scope.","commands":{"allow":[],"deny":["status"]}},"deny-stop":{"identifier":"deny-stop","description":"Denies the stop command without any pre-configured scope.","commands":{"allow":[],"deny":["stop"]}},"deny-update-offer":{"identifier":"deny-update-offer","description":"Denies the update_offer command without any pre-configured scope.","commands":{"allow":[],"deny":["update_offer"]}},"deny-usage-data":{"identifier":"deny-usage-data","description":"Denies the usage_data command without any pre-configured scope.","commands":{"allow":[],"deny":["usage_data"]}},"deny-window-sign-in-failed":{"identifier":"deny-window-sign-in-failed","description":"Denies the window_sign_in_failed command without any pre-configured scope.","commands":{"allow":[],"deny":["window_sign_in_failed"]}},"deny-zoom":{"identifier":"deny-zoom","description":"Denies the zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["zoom"]}}},"permission_sets":{},"global_scope_schema":null},"openbot-intelligence":{"default_permission":null,"permissions":{"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-watch":{"identifier":"allow-watch","description":"Enables the watch command without any pre-configured scope.","commands":{"allow":["watch"],"deny":[]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-watch":{"identifier":"deny-watch","description":"Denies the watch command without any pre-configured scope.","commands":{"allow":[],"deny":["watch"]}}},"permission_sets":{},"global_scope_schema":null},"opener":{"default_permission":{"identifier":"default","description":"This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer","permissions":["allow-open-url","allow-reveal-item-in-dir","allow-default-urls"]},"permissions":{"allow-default-urls":{"identifier":"allow-default-urls","description":"This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"url":"mailto:*"},{"url":"tel:*"},{"url":"http://*"},{"url":"https://*"}]}},"allow-open-path":{"identifier":"allow-open-path","description":"Enables the open_path command without any pre-configured scope.","commands":{"allow":["open_path"],"deny":[]}},"allow-open-url":{"identifier":"allow-open-url","description":"Enables the open_url command without any pre-configured scope.","commands":{"allow":["open_url"],"deny":[]}},"allow-reveal-item-in-dir":{"identifier":"allow-reveal-item-in-dir","description":"Enables the reveal_item_in_dir command without any pre-configured scope.","commands":{"allow":["reveal_item_in_dir"],"deny":[]}},"deny-open-path":{"identifier":"deny-open-path","description":"Denies the open_path command without any pre-configured scope.","commands":{"allow":[],"deny":["open_path"]}},"deny-open-url":{"identifier":"deny-open-url","description":"Denies the open_url command without any pre-configured scope.","commands":{"allow":[],"deny":["open_url"]}},"deny-reveal-item-in-dir":{"identifier":"deny-reveal-item-in-dir","description":"Denies the reveal_item_in_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["reveal_item_in_dir"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"properties":{"app":{"allOf":[{"$ref":"#/definitions/Application"}],"description":"An application to open this url with, for example: firefox."},"url":{"description":"A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"}},"required":["url"],"type":"object"},{"properties":{"app":{"allOf":[{"$ref":"#/definitions/Application"}],"description":"An application to open this path with, for example: xdg-open."},"path":{"description":"A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"}},"required":["path"],"type":"object"}],"definitions":{"Application":{"anyOf":[{"description":"Open in default application.","type":"null"},{"description":"If true, allow open with any application.","type":"boolean"},{"description":"Allow specific application to open with.","type":"string"}],"description":"Opener scope application."}},"description":"Opener scope entry.","title":"OpenerScopeEntry"}},"updater":{"default_permission":{"identifier":"default","description":"This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n","permissions":["allow-check","allow-download","allow-install","allow-download-and-install"]},"permissions":{"allow-check":{"identifier":"allow-check","description":"Enables the check command without any pre-configured scope.","commands":{"allow":["check"],"deny":[]}},"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-download-and-install":{"identifier":"allow-download-and-install","description":"Enables the download_and_install command without any pre-configured scope.","commands":{"allow":["download_and_install"],"deny":[]}},"allow-install":{"identifier":"allow-install","description":"Enables the install command without any pre-configured scope.","commands":{"allow":["install"],"deny":[]}},"deny-check":{"identifier":"deny-check","description":"Denies the check command without any pre-configured scope.","commands":{"allow":[],"deny":["check"]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-download-and-install":{"identifier":"deny-download-and-install","description":"Denies the download_and_install command without any pre-configured scope.","commands":{"allow":[],"deny":["download_and_install"]}},"deny-install":{"identifier":"deny-install","description":"Denies the install command without any pre-configured scope.","commands":{"allow":[],"deny":["install"]}}},"permission_sets":{},"global_scope_schema":null},"window-state":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-filename","allow-restore-state","allow-save-window-state"]},"permissions":{"allow-filename":{"identifier":"allow-filename","description":"Enables the filename command without any pre-configured scope.","commands":{"allow":["filename"],"deny":[]}},"allow-restore-state":{"identifier":"allow-restore-state","description":"Enables the restore_state command without any pre-configured scope.","commands":{"allow":["restore_state"],"deny":[]}},"allow-save-window-state":{"identifier":"allow-save-window-state","description":"Enables the save_window_state command without any pre-configured scope.","commands":{"allow":["save_window_state"],"deny":[]}},"deny-filename":{"identifier":"deny-filename","description":"Denies the filename command without any pre-configured scope.","commands":{"allow":[],"deny":["filename"]}},"deny-restore-state":{"identifier":"deny-restore-state","description":"Denies the restore_state command without any pre-configured scope.","commands":{"allow":[],"deny":["restore_state"]}},"deny-save-window-state":{"identifier":"deny-save-window-state","description":"Denies the save_window_state command without any pre-configured scope.","commands":{"allow":[],"deny":["save_window_state"]}}},"permission_sets":{},"global_scope_schema":null}} \ No newline at end of file +{"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-data-store":{"identifier":"allow-remove-data-store","description":"Enables the remove_data_store command without any pre-configured scope.","commands":{"allow":["remove_data_store"],"deny":[]}},"allow-remove-listener":{"identifier":"allow-remove-listener","description":"Enables the remove_listener command without any pre-configured scope.","commands":{"allow":["remove_listener"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-set-dock-visibility":{"identifier":"allow-set-dock-visibility","description":"Enables the set_dock_visibility command without any pre-configured scope.","commands":{"allow":["set_dock_visibility"],"deny":[]}},"allow-supports-multiple-windows":{"identifier":"allow-supports-multiple-windows","description":"Enables the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":["supports_multiple_windows"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-bundle-type":{"identifier":"deny-bundle-type","description":"Denies the bundle_type command without any pre-configured scope.","commands":{"allow":[],"deny":["bundle_type"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-fetch-data-store-identifiers":{"identifier":"deny-fetch-data-store-identifiers","description":"Denies the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_data_store_identifiers"]}},"deny-identifier":{"identifier":"deny-identifier","description":"Denies the identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["identifier"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-data-store":{"identifier":"deny-remove-data-store","description":"Denies the remove_data_store command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_data_store"]}},"deny-remove-listener":{"identifier":"deny-remove-listener","description":"Denies the remove_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_listener"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-set-dock-visibility":{"identifier":"deny-set-dock-visibility","description":"Denies the set_dock_visibility command without any pre-configured scope.","commands":{"allow":[],"deny":["set_dock_visibility"]}},"deny-supports-multiple-windows":{"identifier":"deny-supports-multiple-windows","description":"Denies the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["supports_multiple_windows"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-icon-with-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-icon-with-as-template":{"identifier":"allow-set-icon-with-as-template","description":"Enables the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_with_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-icon-with-as-template":{"identifier":"deny-set-icon-with-as-template","description":"Denies the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_with_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-auto-resize":{"identifier":"allow-set-webview-auto-resize","description":"Enables the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":["set_webview_auto_resize"],"deny":[]}},"allow-set-webview-background-color":{"identifier":"allow-set-webview-background-color","description":"Enables the set_webview_background_color command without any pre-configured scope.","commands":{"allow":["set_webview_background_color"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-auto-resize":{"identifier":"deny-set-webview-auto-resize","description":"Denies the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_auto_resize"]}},"deny-set-webview-background-color":{"identifier":"deny-set-webview-background-color","description":"Denies the set_webview_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_background_color"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-is-always-on-top","allow-activity-name","allow-scene-identifier","allow-internal-toggle-maximize"]},"permissions":{"allow-activity-name":{"identifier":"allow-activity-name","description":"Enables the activity_name command without any pre-configured scope.","commands":{"allow":["activity_name"],"deny":[]}},"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-always-on-top":{"identifier":"allow-is-always-on-top","description":"Enables the is_always_on_top command without any pre-configured scope.","commands":{"allow":["is_always_on_top"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-scene-identifier":{"identifier":"allow-scene-identifier","description":"Enables the scene_identifier command without any pre-configured scope.","commands":{"allow":["scene_identifier"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-background-color":{"identifier":"allow-set-background-color","description":"Enables the set_background_color command without any pre-configured scope.","commands":{"allow":["set_background_color"],"deny":[]}},"allow-set-badge-count":{"identifier":"allow-set-badge-count","description":"Enables the set_badge_count command without any pre-configured scope.","commands":{"allow":["set_badge_count"],"deny":[]}},"allow-set-badge-label":{"identifier":"allow-set-badge-label","description":"Enables the set_badge_label command without any pre-configured scope.","commands":{"allow":["set_badge_label"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-focusable":{"identifier":"allow-set-focusable","description":"Enables the set_focusable command without any pre-configured scope.","commands":{"allow":["set_focusable"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-fullscreen-on-monitor":{"identifier":"allow-set-fullscreen-on-monitor","description":"Enables the set_fullscreen_on_monitor command without any pre-configured scope.","commands":{"allow":["set_fullscreen_on_monitor"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-overlay-icon":{"identifier":"allow-set-overlay-icon","description":"Enables the set_overlay_icon command without any pre-configured scope.","commands":{"allow":["set_overlay_icon"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-simple-fullscreen":{"identifier":"allow-set-simple-fullscreen","description":"Enables the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":["set_simple_fullscreen"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-activity-name":{"identifier":"deny-activity-name","description":"Denies the activity_name command without any pre-configured scope.","commands":{"allow":[],"deny":["activity_name"]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-always-on-top":{"identifier":"deny-is-always-on-top","description":"Denies the is_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["is_always_on_top"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-scene-identifier":{"identifier":"deny-scene-identifier","description":"Denies the scene_identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["scene_identifier"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-background-color":{"identifier":"deny-set-background-color","description":"Denies the set_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_background_color"]}},"deny-set-badge-count":{"identifier":"deny-set-badge-count","description":"Denies the set_badge_count command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_count"]}},"deny-set-badge-label":{"identifier":"deny-set-badge-label","description":"Denies the set_badge_label command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_label"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-focusable":{"identifier":"deny-set-focusable","description":"Denies the set_focusable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focusable"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-fullscreen-on-monitor":{"identifier":"deny-set-fullscreen-on-monitor","description":"Denies the set_fullscreen_on_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen_on_monitor"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-overlay-icon":{"identifier":"deny-set-overlay-icon","description":"Denies the set_overlay_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_overlay_icon"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-simple-fullscreen":{"identifier":"deny-set-simple-fullscreen","description":"Denies the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_simple_fullscreen"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"deep-link":{"default_permission":{"identifier":"default","description":"Allows reading the opened deep link via the get_current command","permissions":["allow-get-current"]},"permissions":{"allow-get-current":{"identifier":"allow-get-current","description":"Enables the get_current command without any pre-configured scope.","commands":{"allow":["get_current"],"deny":[]}},"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"deny-get-current":{"identifier":"deny-get-current","description":"Denies the get_current command without any pre-configured scope.","commands":{"allow":[],"deny":["get_current"]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"log":{"default_permission":{"identifier":"default","description":"Allows the log command","permissions":["allow-log"]},"permissions":{"allow-log":{"identifier":"allow-log","description":"Enables the log command without any pre-configured scope.","commands":{"allow":["log"],"deny":[]}},"deny-log":{"identifier":"deny-log","description":"Denies the log command without any pre-configured scope.","commands":{"allow":[],"deny":["log"]}}},"permission_sets":{},"global_scope_schema":null},"notification":{"default_permission":{"identifier":"default","description":"This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n","permissions":["allow-is-permission-granted","allow-request-permission","allow-notify","allow-register-action-types","allow-register-listener","allow-remove-listener","allow-cancel","allow-get-pending","allow-remove-active","allow-get-active","allow-check-permissions","allow-show","allow-batch","allow-list-channels","allow-delete-channel","allow-create-channel","allow-permission-state"]},"permissions":{"allow-batch":{"identifier":"allow-batch","description":"Enables the batch command without any pre-configured scope.","commands":{"allow":["batch"],"deny":[]}},"allow-cancel":{"identifier":"allow-cancel","description":"Enables the cancel command without any pre-configured scope.","commands":{"allow":["cancel"],"deny":[]}},"allow-check-permissions":{"identifier":"allow-check-permissions","description":"Enables the check_permissions command without any pre-configured scope.","commands":{"allow":["check_permissions"],"deny":[]}},"allow-create-channel":{"identifier":"allow-create-channel","description":"Enables the create_channel command without any pre-configured scope.","commands":{"allow":["create_channel"],"deny":[]}},"allow-delete-channel":{"identifier":"allow-delete-channel","description":"Enables the delete_channel command without any pre-configured scope.","commands":{"allow":["delete_channel"],"deny":[]}},"allow-get-active":{"identifier":"allow-get-active","description":"Enables the get_active command without any pre-configured scope.","commands":{"allow":["get_active"],"deny":[]}},"allow-get-pending":{"identifier":"allow-get-pending","description":"Enables the get_pending command without any pre-configured scope.","commands":{"allow":["get_pending"],"deny":[]}},"allow-is-permission-granted":{"identifier":"allow-is-permission-granted","description":"Enables the is_permission_granted command without any pre-configured scope.","commands":{"allow":["is_permission_granted"],"deny":[]}},"allow-list-channels":{"identifier":"allow-list-channels","description":"Enables the list_channels command without any pre-configured scope.","commands":{"allow":["list_channels"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-permission-state":{"identifier":"allow-permission-state","description":"Enables the permission_state command without any pre-configured scope.","commands":{"allow":["permission_state"],"deny":[]}},"allow-register-action-types":{"identifier":"allow-register-action-types","description":"Enables the register_action_types command without any pre-configured scope.","commands":{"allow":["register_action_types"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-active":{"identifier":"allow-remove-active","description":"Enables the remove_active command without any pre-configured scope.","commands":{"allow":["remove_active"],"deny":[]}},"allow-remove-listener":{"identifier":"allow-remove-listener","description":"Enables the remove_listener command without any pre-configured scope.","commands":{"allow":["remove_listener"],"deny":[]}},"allow-request-permission":{"identifier":"allow-request-permission","description":"Enables the request_permission command without any pre-configured scope.","commands":{"allow":["request_permission"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"deny-batch":{"identifier":"deny-batch","description":"Denies the batch command without any pre-configured scope.","commands":{"allow":[],"deny":["batch"]}},"deny-cancel":{"identifier":"deny-cancel","description":"Denies the cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel"]}},"deny-check-permissions":{"identifier":"deny-check-permissions","description":"Denies the check_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["check_permissions"]}},"deny-create-channel":{"identifier":"deny-create-channel","description":"Denies the create_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["create_channel"]}},"deny-delete-channel":{"identifier":"deny-delete-channel","description":"Denies the delete_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_channel"]}},"deny-get-active":{"identifier":"deny-get-active","description":"Denies the get_active command without any pre-configured scope.","commands":{"allow":[],"deny":["get_active"]}},"deny-get-pending":{"identifier":"deny-get-pending","description":"Denies the get_pending command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pending"]}},"deny-is-permission-granted":{"identifier":"deny-is-permission-granted","description":"Denies the is_permission_granted command without any pre-configured scope.","commands":{"allow":[],"deny":["is_permission_granted"]}},"deny-list-channels":{"identifier":"deny-list-channels","description":"Denies the list_channels command without any pre-configured scope.","commands":{"allow":[],"deny":["list_channels"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-permission-state":{"identifier":"deny-permission-state","description":"Denies the permission_state command without any pre-configured scope.","commands":{"allow":[],"deny":["permission_state"]}},"deny-register-action-types":{"identifier":"deny-register-action-types","description":"Denies the register_action_types command without any pre-configured scope.","commands":{"allow":[],"deny":["register_action_types"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-active":{"identifier":"deny-remove-active","description":"Denies the remove_active command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_active"]}},"deny-remove-listener":{"identifier":"deny-remove-listener","description":"Denies the remove_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_listener"]}},"deny-request-permission":{"identifier":"deny-request-permission","description":"Denies the request_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_permission"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}}},"permission_sets":{},"global_scope_schema":null},"openbot-desktop":{"default_permission":null,"permissions":{"allow-ai-connection":{"identifier":"allow-ai-connection","description":"Enables the ai_connection command without any pre-configured scope.","commands":{"allow":["ai_connection"],"deny":[]}},"allow-ai-providers":{"identifier":"allow-ai-providers","description":"Enables the ai_providers command without any pre-configured scope.","commands":{"allow":["ai_providers"],"deny":[]}},"allow-appearance":{"identifier":"allow-appearance","description":"Enables the appearance command without any pre-configured scope.","commands":{"allow":["appearance"],"deny":[]}},"allow-await-sign-in-redirect":{"identifier":"allow-await-sign-in-redirect","description":"Enables the await_sign_in_redirect command without any pre-configured scope.","commands":{"allow":["await_sign_in_redirect"],"deny":[]}},"allow-begin-plan-sign-in":{"identifier":"allow-begin-plan-sign-in","description":"Enables the begin_plan_sign_in command without any pre-configured scope.","commands":{"allow":["begin_plan_sign_in"],"deny":[]}},"allow-begin-provider-sign-in":{"identifier":"allow-begin-provider-sign-in","description":"Enables the begin_provider_sign_in command without any pre-configured scope.","commands":{"allow":["begin_provider_sign_in"],"deny":[]}},"allow-begin-sign-in-redirect":{"identifier":"allow-begin-sign-in-redirect","description":"Enables the begin_sign_in_redirect command without any pre-configured scope.","commands":{"allow":["begin_sign_in_redirect"],"deny":[]}},"allow-cancel-plan-sign-in":{"identifier":"allow-cancel-plan-sign-in","description":"Enables the cancel_plan_sign_in command without any pre-configured scope.","commands":{"allow":["cancel_plan_sign_in"],"deny":[]}},"allow-cancel-provider-sign-in":{"identifier":"allow-cancel-provider-sign-in","description":"Enables the cancel_provider_sign_in command without any pre-configured scope.","commands":{"allow":["cancel_provider_sign_in"],"deny":[]}},"allow-cancel-sign-in-redirect":{"identifier":"allow-cancel-sign-in-redirect","description":"Enables the cancel_sign_in_redirect command without any pre-configured scope.","commands":{"allow":["cancel_sign_in_redirect"],"deny":[]}},"allow-change-ai-connection":{"identifier":"allow-change-ai-connection","description":"Enables the change_ai_connection command without any pre-configured scope.","commands":{"allow":["change_ai_connection"],"deny":[]}},"allow-change-connection":{"identifier":"allow-change-connection","description":"Enables the change_connection command without any pre-configured scope.","commands":{"allow":["change_connection"],"deny":[]}},"allow-check-update":{"identifier":"allow-check-update","description":"Enables the check_update command without any pre-configured scope.","commands":{"allow":["check_update"],"deny":[]}},"allow-connection":{"identifier":"allow-connection","description":"Enables the connection command without any pre-configured scope.","commands":{"allow":["connection"],"deny":[]}},"allow-dismiss-update":{"identifier":"allow-dismiss-update","description":"Enables the dismiss_update command without any pre-configured scope.","commands":{"allow":["dismiss_update"],"deny":[]}},"allow-finish-plan-sign-in":{"identifier":"allow-finish-plan-sign-in","description":"Enables the finish_plan_sign_in command without any pre-configured scope.","commands":{"allow":["finish_plan_sign_in"],"deny":[]}},"allow-finish-provider-sign-in":{"identifier":"allow-finish-provider-sign-in","description":"Enables the finish_provider_sign_in command without any pre-configured scope.","commands":{"allow":["finish_provider_sign_in"],"deny":[]}},"allow-install-update":{"identifier":"allow-install-update","description":"Enables the install_update command without any pre-configured scope.","commands":{"allow":["install_update"],"deny":[]}},"allow-intelligence":{"identifier":"allow-intelligence","description":"Enables the intelligence command without any pre-configured scope.","commands":{"allow":["intelligence"],"deny":[]}},"allow-move-to-cloud":{"identifier":"allow-move-to-cloud","description":"Enables the move_to_cloud command without any pre-configured scope.","commands":{"allow":["move_to_cloud"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-onepassword-available":{"identifier":"allow-onepassword-available","description":"Enables the onepassword_available command without any pre-configured scope.","commands":{"allow":["onepassword_available"],"deny":[]}},"allow-onepassword-fill":{"identifier":"allow-onepassword-fill","description":"Enables the onepassword_fill command without any pre-configured scope.","commands":{"allow":["onepassword_fill"],"deny":[]}},"allow-open-in-browser":{"identifier":"allow-open-in-browser","description":"Enables the open_in_browser command without any pre-configured scope.","commands":{"allow":["open_in_browser"],"deny":[]}},"allow-open-logs":{"identifier":"allow-open-logs","description":"Enables the open_logs command without any pre-configured scope.","commands":{"allow":["open_logs"],"deny":[]}},"allow-prepare-ai-connection":{"identifier":"allow-prepare-ai-connection","description":"Enables the prepare_ai_connection command without any pre-configured scope.","commands":{"allow":["prepare_ai_connection"],"deny":[]}},"allow-quit":{"identifier":"allow-quit","description":"Enables the quit command without any pre-configured scope.","commands":{"allow":["quit"],"deny":[]}},"allow-record-problem":{"identifier":"allow-record-problem","description":"Enables the record_problem command without any pre-configured scope.","commands":{"allow":["record_problem"],"deny":[]}},"allow-restart":{"identifier":"allow-restart","description":"Enables the restart command without any pre-configured scope.","commands":{"allow":["restart"],"deny":[]}},"allow-save-logs":{"identifier":"allow-save-logs","description":"Enables the save_logs command without any pre-configured scope.","commands":{"allow":["save_logs"],"deny":[]}},"allow-set-organization":{"identifier":"allow-set-organization","description":"Enables the set_organization command without any pre-configured scope.","commands":{"allow":["set_organization"],"deny":[]}},"allow-set-usage-data":{"identifier":"allow-set-usage-data","description":"Enables the set_usage_data command without any pre-configured scope.","commands":{"allow":["set_usage_data"],"deny":[]}},"allow-settle-ai-connection":{"identifier":"allow-settle-ai-connection","description":"Enables the settle_ai_connection command without any pre-configured scope.","commands":{"allow":["settle_ai_connection"],"deny":[]}},"allow-show-download":{"identifier":"allow-show-download","description":"Enables the show_download command without any pre-configured scope.","commands":{"allow":["show_download"],"deny":[]}},"allow-sign-in-refused":{"identifier":"allow-sign-in-refused","description":"Enables the sign_in_refused command without any pre-configured scope.","commands":{"allow":["sign_in_refused"],"deny":[]}},"allow-sign-in-with-browser":{"identifier":"allow-sign-in-with-browser","description":"Enables the sign_in_with_browser command without any pre-configured scope.","commands":{"allow":["sign_in_with_browser"],"deny":[]}},"allow-sign-out":{"identifier":"allow-sign-out","description":"Enables the sign_out command without any pre-configured scope.","commands":{"allow":["sign_out"],"deny":[]}},"allow-speech-abort":{"identifier":"allow-speech-abort","description":"Enables the speech_abort command without any pre-configured scope.","commands":{"allow":["speech_abort"],"deny":[]}},"allow-speech-available":{"identifier":"allow-speech-available","description":"Enables the speech_available command without any pre-configured scope.","commands":{"allow":["speech_available"],"deny":[]}},"allow-speech-start":{"identifier":"allow-speech-start","description":"Enables the speech_start command without any pre-configured scope.","commands":{"allow":["speech_start"],"deny":[]}},"allow-speech-stop":{"identifier":"allow-speech-stop","description":"Enables the speech_stop command without any pre-configured scope.","commands":{"allow":["speech_stop"],"deny":[]}},"allow-status":{"identifier":"allow-status","description":"Enables the status command without any pre-configured scope.","commands":{"allow":["status"],"deny":[]}},"allow-stop":{"identifier":"allow-stop","description":"Enables the stop command without any pre-configured scope.","commands":{"allow":["stop"],"deny":[]}},"allow-update-offer":{"identifier":"allow-update-offer","description":"Enables the update_offer command without any pre-configured scope.","commands":{"allow":["update_offer"],"deny":[]}},"allow-usage-data":{"identifier":"allow-usage-data","description":"Enables the usage_data command without any pre-configured scope.","commands":{"allow":["usage_data"],"deny":[]}},"allow-window-sign-in-failed":{"identifier":"allow-window-sign-in-failed","description":"Enables the window_sign_in_failed command without any pre-configured scope.","commands":{"allow":["window_sign_in_failed"],"deny":[]}},"allow-window-signed-in":{"identifier":"allow-window-signed-in","description":"Enables the window_signed_in command without any pre-configured scope.","commands":{"allow":["window_signed_in"],"deny":[]}},"allow-zoom":{"identifier":"allow-zoom","description":"Enables the zoom command without any pre-configured scope.","commands":{"allow":["zoom"],"deny":[]}},"deny-ai-connection":{"identifier":"deny-ai-connection","description":"Denies the ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["ai_connection"]}},"deny-ai-providers":{"identifier":"deny-ai-providers","description":"Denies the ai_providers command without any pre-configured scope.","commands":{"allow":[],"deny":["ai_providers"]}},"deny-appearance":{"identifier":"deny-appearance","description":"Denies the appearance command without any pre-configured scope.","commands":{"allow":[],"deny":["appearance"]}},"deny-await-sign-in-redirect":{"identifier":"deny-await-sign-in-redirect","description":"Denies the await_sign_in_redirect command without any pre-configured scope.","commands":{"allow":[],"deny":["await_sign_in_redirect"]}},"deny-begin-plan-sign-in":{"identifier":"deny-begin-plan-sign-in","description":"Denies the begin_plan_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_plan_sign_in"]}},"deny-begin-provider-sign-in":{"identifier":"deny-begin-provider-sign-in","description":"Denies the begin_provider_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_provider_sign_in"]}},"deny-begin-sign-in-redirect":{"identifier":"deny-begin-sign-in-redirect","description":"Denies the begin_sign_in_redirect command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_sign_in_redirect"]}},"deny-cancel-plan-sign-in":{"identifier":"deny-cancel-plan-sign-in","description":"Denies the cancel_plan_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel_plan_sign_in"]}},"deny-cancel-provider-sign-in":{"identifier":"deny-cancel-provider-sign-in","description":"Denies the cancel_provider_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel_provider_sign_in"]}},"deny-cancel-sign-in-redirect":{"identifier":"deny-cancel-sign-in-redirect","description":"Denies the cancel_sign_in_redirect command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel_sign_in_redirect"]}},"deny-change-ai-connection":{"identifier":"deny-change-ai-connection","description":"Denies the change_ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["change_ai_connection"]}},"deny-change-connection":{"identifier":"deny-change-connection","description":"Denies the change_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["change_connection"]}},"deny-check-update":{"identifier":"deny-check-update","description":"Denies the check_update command without any pre-configured scope.","commands":{"allow":[],"deny":["check_update"]}},"deny-connection":{"identifier":"deny-connection","description":"Denies the connection command without any pre-configured scope.","commands":{"allow":[],"deny":["connection"]}},"deny-dismiss-update":{"identifier":"deny-dismiss-update","description":"Denies the dismiss_update command without any pre-configured scope.","commands":{"allow":[],"deny":["dismiss_update"]}},"deny-finish-plan-sign-in":{"identifier":"deny-finish-plan-sign-in","description":"Denies the finish_plan_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["finish_plan_sign_in"]}},"deny-finish-provider-sign-in":{"identifier":"deny-finish-provider-sign-in","description":"Denies the finish_provider_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["finish_provider_sign_in"]}},"deny-install-update":{"identifier":"deny-install-update","description":"Denies the install_update command without any pre-configured scope.","commands":{"allow":[],"deny":["install_update"]}},"deny-intelligence":{"identifier":"deny-intelligence","description":"Denies the intelligence command without any pre-configured scope.","commands":{"allow":[],"deny":["intelligence"]}},"deny-move-to-cloud":{"identifier":"deny-move-to-cloud","description":"Denies the move_to_cloud command without any pre-configured scope.","commands":{"allow":[],"deny":["move_to_cloud"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-onepassword-available":{"identifier":"deny-onepassword-available","description":"Denies the onepassword_available command without any pre-configured scope.","commands":{"allow":[],"deny":["onepassword_available"]}},"deny-onepassword-fill":{"identifier":"deny-onepassword-fill","description":"Denies the onepassword_fill command without any pre-configured scope.","commands":{"allow":[],"deny":["onepassword_fill"]}},"deny-open-in-browser":{"identifier":"deny-open-in-browser","description":"Denies the open_in_browser command without any pre-configured scope.","commands":{"allow":[],"deny":["open_in_browser"]}},"deny-open-logs":{"identifier":"deny-open-logs","description":"Denies the open_logs command without any pre-configured scope.","commands":{"allow":[],"deny":["open_logs"]}},"deny-prepare-ai-connection":{"identifier":"deny-prepare-ai-connection","description":"Denies the prepare_ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["prepare_ai_connection"]}},"deny-quit":{"identifier":"deny-quit","description":"Denies the quit command without any pre-configured scope.","commands":{"allow":[],"deny":["quit"]}},"deny-record-problem":{"identifier":"deny-record-problem","description":"Denies the record_problem command without any pre-configured scope.","commands":{"allow":[],"deny":["record_problem"]}},"deny-restart":{"identifier":"deny-restart","description":"Denies the restart command without any pre-configured scope.","commands":{"allow":[],"deny":["restart"]}},"deny-save-logs":{"identifier":"deny-save-logs","description":"Denies the save_logs command without any pre-configured scope.","commands":{"allow":[],"deny":["save_logs"]}},"deny-set-organization":{"identifier":"deny-set-organization","description":"Denies the set_organization command without any pre-configured scope.","commands":{"allow":[],"deny":["set_organization"]}},"deny-set-usage-data":{"identifier":"deny-set-usage-data","description":"Denies the set_usage_data command without any pre-configured scope.","commands":{"allow":[],"deny":["set_usage_data"]}},"deny-settle-ai-connection":{"identifier":"deny-settle-ai-connection","description":"Denies the settle_ai_connection command without any pre-configured scope.","commands":{"allow":[],"deny":["settle_ai_connection"]}},"deny-show-download":{"identifier":"deny-show-download","description":"Denies the show_download command without any pre-configured scope.","commands":{"allow":[],"deny":["show_download"]}},"deny-sign-in-refused":{"identifier":"deny-sign-in-refused","description":"Denies the sign_in_refused command without any pre-configured scope.","commands":{"allow":[],"deny":["sign_in_refused"]}},"deny-sign-in-with-browser":{"identifier":"deny-sign-in-with-browser","description":"Denies the sign_in_with_browser command without any pre-configured scope.","commands":{"allow":[],"deny":["sign_in_with_browser"]}},"deny-sign-out":{"identifier":"deny-sign-out","description":"Denies the sign_out command without any pre-configured scope.","commands":{"allow":[],"deny":["sign_out"]}},"deny-speech-abort":{"identifier":"deny-speech-abort","description":"Denies the speech_abort command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_abort"]}},"deny-speech-available":{"identifier":"deny-speech-available","description":"Denies the speech_available command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_available"]}},"deny-speech-start":{"identifier":"deny-speech-start","description":"Denies the speech_start command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_start"]}},"deny-speech-stop":{"identifier":"deny-speech-stop","description":"Denies the speech_stop command without any pre-configured scope.","commands":{"allow":[],"deny":["speech_stop"]}},"deny-status":{"identifier":"deny-status","description":"Denies the status command without any pre-configured scope.","commands":{"allow":[],"deny":["status"]}},"deny-stop":{"identifier":"deny-stop","description":"Denies the stop command without any pre-configured scope.","commands":{"allow":[],"deny":["stop"]}},"deny-update-offer":{"identifier":"deny-update-offer","description":"Denies the update_offer command without any pre-configured scope.","commands":{"allow":[],"deny":["update_offer"]}},"deny-usage-data":{"identifier":"deny-usage-data","description":"Denies the usage_data command without any pre-configured scope.","commands":{"allow":[],"deny":["usage_data"]}},"deny-window-sign-in-failed":{"identifier":"deny-window-sign-in-failed","description":"Denies the window_sign_in_failed command without any pre-configured scope.","commands":{"allow":[],"deny":["window_sign_in_failed"]}},"deny-window-signed-in":{"identifier":"deny-window-signed-in","description":"Denies the window_signed_in command without any pre-configured scope.","commands":{"allow":[],"deny":["window_signed_in"]}},"deny-zoom":{"identifier":"deny-zoom","description":"Denies the zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["zoom"]}}},"permission_sets":{},"global_scope_schema":null},"openbot-intelligence":{"default_permission":null,"permissions":{"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-watch":{"identifier":"allow-watch","description":"Enables the watch command without any pre-configured scope.","commands":{"allow":["watch"],"deny":[]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-watch":{"identifier":"deny-watch","description":"Denies the watch command without any pre-configured scope.","commands":{"allow":[],"deny":["watch"]}}},"permission_sets":{},"global_scope_schema":null},"opener":{"default_permission":{"identifier":"default","description":"This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer","permissions":["allow-open-url","allow-reveal-item-in-dir","allow-default-urls"]},"permissions":{"allow-default-urls":{"identifier":"allow-default-urls","description":"This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"url":"mailto:*"},{"url":"tel:*"},{"url":"http://*"},{"url":"https://*"}]}},"allow-open-path":{"identifier":"allow-open-path","description":"Enables the open_path command without any pre-configured scope.","commands":{"allow":["open_path"],"deny":[]}},"allow-open-url":{"identifier":"allow-open-url","description":"Enables the open_url command without any pre-configured scope.","commands":{"allow":["open_url"],"deny":[]}},"allow-reveal-item-in-dir":{"identifier":"allow-reveal-item-in-dir","description":"Enables the reveal_item_in_dir command without any pre-configured scope.","commands":{"allow":["reveal_item_in_dir"],"deny":[]}},"deny-open-path":{"identifier":"deny-open-path","description":"Denies the open_path command without any pre-configured scope.","commands":{"allow":[],"deny":["open_path"]}},"deny-open-url":{"identifier":"deny-open-url","description":"Denies the open_url command without any pre-configured scope.","commands":{"allow":[],"deny":["open_url"]}},"deny-reveal-item-in-dir":{"identifier":"deny-reveal-item-in-dir","description":"Denies the reveal_item_in_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["reveal_item_in_dir"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"properties":{"app":{"allOf":[{"$ref":"#/definitions/Application"}],"description":"An application to open this url with, for example: firefox."},"url":{"description":"A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"}},"required":["url"],"type":"object"},{"properties":{"app":{"allOf":[{"$ref":"#/definitions/Application"}],"description":"An application to open this path with, for example: xdg-open."},"path":{"description":"A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"}},"required":["path"],"type":"object"}],"definitions":{"Application":{"anyOf":[{"description":"Open in default application.","type":"null"},{"description":"If true, allow open with any application.","type":"boolean"},{"description":"Allow specific application to open with.","type":"string"}],"description":"Opener scope application."}},"description":"Opener scope entry.","title":"OpenerScopeEntry"}},"updater":{"default_permission":{"identifier":"default","description":"This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n","permissions":["allow-check","allow-download","allow-install","allow-download-and-install"]},"permissions":{"allow-check":{"identifier":"allow-check","description":"Enables the check command without any pre-configured scope.","commands":{"allow":["check"],"deny":[]}},"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-download-and-install":{"identifier":"allow-download-and-install","description":"Enables the download_and_install command without any pre-configured scope.","commands":{"allow":["download_and_install"],"deny":[]}},"allow-install":{"identifier":"allow-install","description":"Enables the install command without any pre-configured scope.","commands":{"allow":["install"],"deny":[]}},"deny-check":{"identifier":"deny-check","description":"Denies the check command without any pre-configured scope.","commands":{"allow":[],"deny":["check"]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-download-and-install":{"identifier":"deny-download-and-install","description":"Denies the download_and_install command without any pre-configured scope.","commands":{"allow":[],"deny":["download_and_install"]}},"deny-install":{"identifier":"deny-install","description":"Denies the install command without any pre-configured scope.","commands":{"allow":[],"deny":["install"]}}},"permission_sets":{},"global_scope_schema":null},"window-state":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-filename","allow-restore-state","allow-save-window-state"]},"permissions":{"allow-filename":{"identifier":"allow-filename","description":"Enables the filename command without any pre-configured scope.","commands":{"allow":["filename"],"deny":[]}},"allow-restore-state":{"identifier":"allow-restore-state","description":"Enables the restore_state command without any pre-configured scope.","commands":{"allow":["restore_state"],"deny":[]}},"allow-save-window-state":{"identifier":"allow-save-window-state","description":"Enables the save_window_state command without any pre-configured scope.","commands":{"allow":["save_window_state"],"deny":[]}},"deny-filename":{"identifier":"deny-filename","description":"Denies the filename command without any pre-configured scope.","commands":{"allow":[],"deny":["filename"]}},"deny-restore-state":{"identifier":"deny-restore-state","description":"Denies the restore_state command without any pre-configured scope.","commands":{"allow":[],"deny":["restore_state"]}},"deny-save-window-state":{"identifier":"deny-save-window-state","description":"Denies the save_window_state command without any pre-configured scope.","commands":{"allow":[],"deny":["save_window_state"]}}},"permission_sets":{},"global_scope_schema":null}} \ No newline at end of file diff --git a/desktop/src-tauri/gen/schemas/desktop-schema.json b/desktop/src-tauri/gen/schemas/desktop-schema.json index 4cd7bec835..9865ef9a04 100644 --- a/desktop/src-tauri/gen/schemas/desktop-schema.json +++ b/desktop/src-tauri/gen/schemas/desktop-schema.json @@ -3008,6 +3008,12 @@ "const": "openbot-desktop:allow-window-sign-in-failed", "markdownDescription": "Enables the window_sign_in_failed command without any pre-configured scope." }, + { + "description": "Enables the window_signed_in command without any pre-configured scope.", + "type": "string", + "const": "openbot-desktop:allow-window-signed-in", + "markdownDescription": "Enables the window_signed_in command without any pre-configured scope." + }, { "description": "Enables the zoom command without any pre-configured scope.", "type": "string", @@ -3290,6 +3296,12 @@ "const": "openbot-desktop:deny-window-sign-in-failed", "markdownDescription": "Denies the window_sign_in_failed command without any pre-configured scope." }, + { + "description": "Denies the window_signed_in command without any pre-configured scope.", + "type": "string", + "const": "openbot-desktop:deny-window-signed-in", + "markdownDescription": "Denies the window_signed_in command without any pre-configured scope." + }, { "description": "Denies the zoom command without any pre-configured scope.", "type": "string", diff --git a/desktop/src-tauri/gen/schemas/macOS-schema.json b/desktop/src-tauri/gen/schemas/macOS-schema.json index 4cd7bec835..9865ef9a04 100644 --- a/desktop/src-tauri/gen/schemas/macOS-schema.json +++ b/desktop/src-tauri/gen/schemas/macOS-schema.json @@ -3008,6 +3008,12 @@ "const": "openbot-desktop:allow-window-sign-in-failed", "markdownDescription": "Enables the window_sign_in_failed command without any pre-configured scope." }, + { + "description": "Enables the window_signed_in command without any pre-configured scope.", + "type": "string", + "const": "openbot-desktop:allow-window-signed-in", + "markdownDescription": "Enables the window_signed_in command without any pre-configured scope." + }, { "description": "Enables the zoom command without any pre-configured scope.", "type": "string", @@ -3290,6 +3296,12 @@ "const": "openbot-desktop:deny-window-sign-in-failed", "markdownDescription": "Denies the window_sign_in_failed command without any pre-configured scope." }, + { + "description": "Denies the window_signed_in command without any pre-configured scope.", + "type": "string", + "const": "openbot-desktop:deny-window-signed-in", + "markdownDescription": "Denies the window_signed_in command without any pre-configured scope." + }, { "description": "Denies the zoom command without any pre-configured scope.", "type": "string", diff --git a/desktop/src-tauri/src/connected/fake_openbot_tests.rs b/desktop/src-tauri/src/connected/fake_openbot_tests.rs index f5eff446bb..4bf2886407 100644 --- a/desktop/src-tauri/src/connected/fake_openbot_tests.rs +++ b/desktop/src-tauri/src/connected/fake_openbot_tests.rs @@ -242,8 +242,9 @@ pub const WINDOW_SIGN_IN_PATH: &str = "/api/auth/window/sign-in"; pub const WINDOW_SESSION_PATH: &str = "/api/auth/window/session"; /// The page OpenBot serves at `/desktop/signed-in`, as the web app's route does it: the fragment -/// read and taken off the address, the code traded for the session cookie on the same origin, and -/// on to `next`; or, refused, the desktop told why (`window_sign_in_failed`). +/// read and taken off the address, the code traded for the session cookie on the same origin, the +/// desktop told so (`window_signed_in`), and on to `next`; or, refused, the desktop told why +/// (`window_sign_in_failed`). const SIGNED_IN_PAGE: &str = r#"OpenBot "#; diff --git a/desktop/src-tauri/src/connected/window.rs b/desktop/src-tauri/src/connected/window.rs index d07d0abb93..387c51076f 100644 --- a/desktop/src-tauri/src/connected/window.rs +++ b/desktop/src-tauri/src/connected/window.rs @@ -13,7 +13,8 @@ always has: its own sign-in and the relay. one-time code. 2. The window goes to `/desktop/signed-in` on that origin, with the code and its verifier in the address's fragment, which never reaches a server or a log (`signed_in_address`). OpenBot's page - there trades them for its session cookie, and goes on to the app. + there trades them for its session cookie, tells the app how that went (`window_signed_in` or + `window_sign_in_failed`), and goes on to the app. Outside the window (1Password, About, Move to OpenBot Cloud) the app reads that cookie from the window's store and sends it with the window's `Origin` (`WindowCredentials`). Nothing here keeps or diff --git a/desktop/src-tauri/src/connected_ipc_tests.rs b/desktop/src-tauri/src/connected_ipc_tests.rs index 1c41550bb1..e84ac9a069 100644 --- a/desktop/src-tauri/src/connected_ipc_tests.rs +++ b/desktop/src-tauri/src/connected_ipc_tests.rs @@ -947,6 +947,7 @@ mod connected_ipc { "set_organization", "sign_in_with_browser", "window_sign_in_failed", + "window_signed_in", "open_in_browser", ] { assert!(build.contains(&format!("\"{command}\",")), "{command}"); diff --git a/desktop/src-tauri/src/desktop_connected.rs b/desktop/src-tauri/src/desktop_connected.rs index ff462b166c..250ad2656c 100644 --- a/desktop/src-tauri/src/desktop_connected.rs +++ b/desktop/src-tauri/src/desktop_connected.rs @@ -62,6 +62,9 @@ pub struct State { /// The OpenBot the window shows at its own origin, signed in with its own session cookie /// (`connected::window`). None while it shows none that way. window: Mutex>, + /// The window's code on its way to OpenBot's page, which has not said yet that it traded it + /// (`Trade`). None once it said either way, and whenever the window is shown anew. + trade: Mutex>, /// Page loads on the window's origin: how many the main window started, and the latest one /// whose page answered (`page_alive`). A load the page never answers from is a window that /// sits on the webview's own error page (`watch_window_load`). @@ -92,6 +95,38 @@ struct WindowShowing { window: WindowSignIn, } +/** +The window sent to OpenBot's page with a code to trade for its session (`connect_window_now`), and +what is counted once the page says it did (`trade_done`): setup on this computer ends then, and +Connect from the first screen is counted `completed`. Nothing is counted while it waits, so a quit +before then is `setup_abandoned`, and nothing is counted for a trade the page says failed +(`window_sign_in_failed_now`). +*/ +struct Trade { + /// The window's origin, where the page that may say so is. + origin: String, + /// The path of the page the window goes on to once the trade worked: how a page from an older + /// OpenBot says it worked, since it says only when the trade fails (`older_page_traded`). + next_path: String, + /// Connect from the first screen, to count `completed` for. None for any other sign-in. + counted: Option, +} + +/// Connect pressed on the first screen (`connect_to_openbot`): the screen, what the window had +/// waited since the press, and when the shell was asked. +pub struct ConnectCount { + pub screen: openbot_desktop_lib::telemetry::ConnectScreen, + pub waited_ms: Option, + pub asked: std::time::Instant, +} + +/// How Connect ended once it worked: counted now, or once OpenBot's page says it traded the window's +/// code (`Trade`). +enum Settled { + Now, + OnceTraded, +} + struct SignedInAs { address: String, email: String, @@ -154,23 +189,33 @@ fn keep( app: &tauri::AppHandle, chosen: &choice::Choice, ) -> Result<(), Problem> { - let written = config_dir(app) - .ok_or_else(|| "the app has no configuration folder".to_owned()) - .and_then(|dir| choice::write(&dir, chosen).map_err(|error| error.to_string())); - // Connected is first kept once a connection worked, or once the window's own sign-in came - // back from the browser: setup on this computer ended with it, whether or not the connection - // was counted (`openbot_connect` `completed`, Move to Cloud). An organization switch - // (`set_organization_now`) and a window sign-in let go (`forget_window_sign_in`) keep a choice - // that was already connected, so setup had already ended, and ending it again changes nothing. - if written.is_ok() && chosen.mode == choice::Mode::Connected { + save_choice(app, chosen)?; + // Connected is first kept once a connection worked: setup on this computer ended with it, + // whether or not the connection was counted (`openbot_connect` `completed`, Move to Cloud). An + // organization switch (`set_organization_now`) keeps a choice that was already connected, so + // setup had already ended, and ending it again changes nothing. The window's own sign-in saves + // its choice before OpenBot's page trades the code, and setup ends once the page says it did + // (`trade_done`). + if chosen.mode == choice::Mode::Connected { crate::desktop_telemetry::setup_ended(app); } - written.map_err(|detail| { - Problem::with( - "OpenBot couldn't save your choice on this computer. Try again.", - detail, - ) - }) + Ok(()) +} + +/// The choice written to `connection.json`, and nothing else: setup is not said to have ended. +fn save_choice( + app: &tauri::AppHandle, + chosen: &choice::Choice, +) -> Result<(), Problem> { + config_dir(app) + .ok_or_else(|| "the app has no configuration folder".to_owned()) + .and_then(|dir| choice::write(&dir, chosen).map_err(|error| error.to_string())) + .map_err(|detail| { + Problem::with( + "OpenBot couldn't save your choice on this computer. Try again.", + detail, + ) + }) } /// Whether the app is connected to an OpenBot that runs elsewhere: it shows one now, or the choice @@ -208,8 +253,10 @@ the choice on record is to be connected, which is first kept only once a connect (`connect_now`, and the move to OpenBot Cloud's `keep_moved_choice`) or, for the window's own sign-in, once the browser sign-in came back, just before the page trades its code (`connect_window_now`). The first screen shown in that state (Sign in again, or the choice asked -for again from Settings) is shown again, not a setup starting. False with no shell state, as in a -test of the telemetry command alone. +for again from Settings) is shown again, not a setup starting. That last choice is saved before +setup ends, which waits for the page to say the trade worked (`Trade`): a first setup whose trade +failed shows Sign in again as shown again, and its setup session stays open, so a quit there is +`setup_abandoned`. False with no shell state, as in a test of the telemetry command alone. */ pub fn setup_ended_with_connection(app: &tauri::AppHandle) -> bool { app.try_state::().is_some() && chosen(app).mode == choice::Mode::Connected @@ -648,7 +695,8 @@ pub async fn check_openbot_address(address: String) -> Result /// /// `screen` is the first screen's way that asked, and `waited_ms` how long since the person /// pressed its button: a connection that works is counted `completed` here, in usage data, since -/// the window has moved on to OpenBot by the time this answers it. +/// the window has moved on to OpenBot by the time this answers it. Through the window's own +/// sign-in it is counted once OpenBot's page says it traded the window's code (`Trade`). #[tauri::command] pub async fn connect_to_openbot( app: tauri::AppHandle, @@ -663,9 +711,16 @@ pub async fn connect_to_openbot( let opened = Arc::new(std::sync::atomic::AtomicBool::new(false)); let opening = opened.clone(); let forward = app.clone(); - let connected = blocking(move || connect_now(&app, &address, &opening)).await; + let counted = screen.map(|screen| ConnectCount { + screen, + waited_ms, + asked, + }); + let connected = blocking(move || connect_now(&app, &address, &opening, counted)).await; + let counted_now = matches!(connected, Ok(Settled::Now)); + let connected = connected.map(|_| ()); openbot_desktop_lib::logging::outcome("connect", asked, &connected); - if let (Ok(()), Some(screen)) = (&connected, screen) { + if let (true, Some(screen)) = (counted_now, screen) { crate::desktop_telemetry::connected(&forward, screen, waited_ms, asked.elapsed()); } come_forward_after_sign_in( @@ -934,7 +989,7 @@ pub fn sign_in_with_browser_now( )); }; let metadata = probe_saved(address)?; - connect_window_now(app, address, &metadata, opened, &next) + connect_window_now(app, address, &metadata, opened, &next, None) } /** @@ -1011,7 +1066,8 @@ impl WindowRefusal { /** OpenBot's page could not trade the code for the window's session: the window holds none. Its sign-in is let go here, and the setup window shows the first screen at that address, saying why, -with Sign in again. +with Sign in again. The trade waiting is dropped uncounted (`stop_window`): setup has not ended, and +Connect is not counted `completed`. */ pub fn window_sign_in_failed_now( app: &tauri::AppHandle, @@ -1054,6 +1110,7 @@ pub fn watch_window_load( if window_origin(app).as_deref() != Some(url.origin().ascii_serialization().as_str()) { return; } + older_page_traded(app, url); let load = { let shell = state(app); let mut loads = shell.connected.loads.lock().unwrap(); @@ -1194,11 +1251,13 @@ fn connect_now( app: &tauri::AppHandle, typed: &str, opened: &std::sync::atomic::AtomicBool, -) -> Result<(), Problem> { + counted: Option, +) -> Result { let (address, metadata) = address::check(typed)?; // That OpenBot signs the window in itself: no relay, and no token of this app's. if metadata.window.is_some() { - return connect_window_now(app, &address, &metadata, opened, "/"); + return connect_window_now(app, &address, &metadata, opened, "/", counted) + .map(|()| Settled::OnceTraded); } let attempt = Arc::new(sign_in::Attempt::default()); if let Some(earlier) = state(app) @@ -1250,7 +1309,7 @@ fn connect_now( stop_relay(app); let _ = session.sign_out(keep_browser); } - shown + shown.map(|()| Settled::Now) } /** @@ -1261,10 +1320,11 @@ The person signs in in their browser, which comes back with a one-time code. The window signs in as anybody: an OpenBot on this computer is stopped, as Connect stops it; the window's session there, if it holds one, is ended at OpenBot and its cookies deleted (OpenBot refuses to put another person in a window that is signed in, and the person may be another); and -a sign-in of this app's own at that address, which the relay showed, is let go. The choice is kept +a sign-in of this app's own at that address, which the relay showed, is let go. The choice is saved as the window's sign-in, and the window goes to OpenBot's own page, which trades the code for the -session cookie and goes on to `next`. Should it fail there, the page says so -(`window_sign_in_failed`). +session cookie and goes on to `next`. The page says how the trade went: it worked +(`window_signed_in`), and only then does setup end, with Connect from the first screen (`counted`) +counted `completed`; or it failed (`window_sign_in_failed`), and nothing is counted (`Trade`). */ fn connect_window_now( app: &tauri::AppHandle, @@ -1272,6 +1332,7 @@ fn connect_window_now( metadata: &address::Metadata, opened: &std::sync::atomic::AtomicBool, next: &str, + counted: Option, ) -> Result<(), Problem> { let Some(window) = metadata.window.clone() else { return Err(Kind::TooOld.problem( @@ -1308,16 +1369,113 @@ fn connect_window_now( ); } } - keep(app, &choice::window_signed_in_at(address, &window.origin))?; + // Saved for the window's own commands and for Sign in again should the trade fail; setup ends + // once the page says it worked (`trade_done`). + save_choice(app, &choice::window_signed_in_at(address, &window.origin))?; log::info!("[connect] the window signs in at {host}"); + let trade = Trade { + origin: window.origin.clone(), + next_path: path_of(next), + counted, + }; show_window_at( app, address, &window, &window::signed_in_address(&window, &code, next), + Some(trade), ) } +/// The path of `next`, a path on the window's origin with perhaps a query or a fragment. +fn path_of(next: &str) -> String { + let end = next.find(['?', '#']).unwrap_or(next.len()); + next[..end].to_owned() +} + +/** +OpenBot's page traded the window's code for its session: setup on this computer ends with the +connection (`desktop_telemetry::setup_ended`), and Connect from the first screen is counted +`completed`, from the person's press. `why` is for the log. +*/ +fn trade_done(app: &tauri::AppHandle, trade: Trade, why: &str) { + log::info!( + "[connect] the window signed in at {}: {why}", + openbot_desktop_lib::connected::host_of(&trade.origin) + ); + crate::desktop_telemetry::setup_ended(app); + if let Some(counted) = trade.counted { + crate::desktop_telemetry::connected( + app, + counted.screen, + counted.waited_ms, + counted.asked.elapsed(), + ); + } +} + +/// The trade waiting at `origin`, taken: whatever says how it went says it once. +fn take_trade(app: &tauri::AppHandle, origin: &str) -> Option { + let shell = state(app); + let mut waiting = shell.connected.trade.lock().unwrap(); + if waiting.as_ref().is_some_and(|trade| trade.origin == origin) { + waiting.take() + } else { + None + } +} + +/** +OpenBot's page at `/desktop/signed-in` traded the code for the window's session +(`window_signed_in`), asked from `from`, a page on the window's origin. Setup ends, and Connect is +counted (`trade_done`). Said again, or with no trade waiting (a sign-in this app did not send the +window to), it changes nothing. +*/ +pub fn window_signed_in_now( + app: &tauri::AppHandle, + from: Option<&tauri::Url>, +) -> Result<(), String> { + let origin = window_origin(app); + let asked_from = from.map(|from| from.origin().ascii_serialization()); + let Some(origin) = origin.filter(|origin| asked_from.as_deref() == Some(origin.as_str())) + else { + return Err("asked from a page that is not the window's origin".into()); + }; + match take_trade(app, &origin) { + Some(trade) => trade_done(app, trade, "its page said so"), + None => log::info!("[connect] the window's page said it signed in, with no code waiting"), + } + Ok(()) +} + +/** +A page from an older OpenBot says only when the trade fails. When it works, that page goes on to +`next` (`location.replace`), and nothing else takes the window there from that page: a load of +`url` at that path on the window's origin, while the trade waits, is the trade done, as before +setup waited for the page (`trade_done`). +*/ +fn older_page_traded(app: &tauri::AppHandle, url: &tauri::Url) { + if url.path() == window::SIGNED_IN_PATH { + return; + } + let origin = url.origin().ascii_serialization(); + let shell = state(app); + let trade = { + let mut waiting = shell.connected.trade.lock().unwrap(); + let went_on = waiting + .as_ref() + .is_some_and(|trade| trade.origin == origin && trade.next_path == url.path()); + if went_on { + waiting.take() + } else { + None + } + }; + if let Some(trade) = trade { + trade_done(app, trade, "its page went on without saying so"); + } +} + /// A sign-in waiting for the browser, kept for Cancel in place of any earlier one, which is /// cancelled. fn begin_attempt(app: &tauri::AppHandle) -> Arc { @@ -1349,13 +1507,15 @@ fn end_attempt(app: &tauri::AppHandle, attempt: &Arc( app: &tauri::AppHandle, address: &str, window: &WindowSignIn, to: &str, + trade: Option, ) -> Result<(), Problem> { stop_relay(app); stop_window(app); @@ -1363,6 +1523,7 @@ fn show_window_at( address: address.to_owned(), window: window.clone(), }); + *state(app).connected.trade.lock().unwrap() = trade; crate::trust_window_origin(app, &window.origin); crate::refresh_menus(app); learn_account( @@ -1380,8 +1541,10 @@ fn show_window_at( Ok(()) } -/// The window no longer shows OpenBot at its own origin: its pages there are no longer OpenBot's. +/// The window no longer shows OpenBot at its own origin: its pages there are no longer OpenBot's, +/// and a trade waiting there is dropped uncounted. fn stop_window(app: &tauri::AppHandle) { + state(app).connected.trade.lock().unwrap().take(); let showing = state(app).connected.window.lock().unwrap().take(); if let Some(showing) = showing { forget_origin(app, &showing.window.origin); @@ -1531,16 +1694,17 @@ fn show_window_saved( "the metadata no longer names the window's sign-in at its origin", )); }; - show_window_at(app, address, &window, &format!("{origin}/")) + show_window_at(app, address, &window, &format!("{origin}/"), None) } /// The window's sign-in no longer on record: the address stays, and the next launch asks the -/// person to sign in. Its cookies are left to whoever asked. +/// person to sign in. Its cookies are left to whoever asked. Setup is not said to end: it ended +/// already, or, for a first setup whose trade failed, it has not. fn forget_window_sign_in(app: &tauri::AppHandle) { stop_window(app); let mut chosen = chosen(app); if chosen.window.take().is_some() { - if let Err(problem) = keep(app, &chosen) { + if let Err(problem) = save_choice(app, &chosen) { log::warn!( "[connect] could not forget the window's sign-in: {}", problem.detail.unwrap_or(problem.said) @@ -1960,7 +2124,13 @@ pub fn connect_at_launch_for_test(app: &tauri::AppHandle, let shown = if signed_in { show_connected_now(&app) } else { - connect_now(&app, &address, &std::sync::atomic::AtomicBool::new(false)) + connect_now( + &app, + &address, + &std::sync::atomic::AtomicBool::new(false), + None, + ) + .map(|_| ()) }; openbot_desktop_lib::logging::outcome( "connect test launch", diff --git a/desktop/src-tauri/src/desktop_page.rs b/desktop/src-tauri/src/desktop_page.rs index ccd2eb1a97..5ca6c9ac57 100644 --- a/desktop/src-tauri/src/desktop_page.rs +++ b/desktop/src-tauri/src/desktop_page.rs @@ -73,12 +73,13 @@ pub const PLUGIN: &str = "openbot-desktop"; pub const QUIT_SHORTCUT_PAGE: &str = include_str!("quit-shortcut.js"); /// The permissions a page needs for every command here. -pub const PERMISSIONS: [&str; 47] = [ +pub const PERMISSIONS: [&str; 48] = [ "openbot-desktop:allow-connection", "openbot-desktop:allow-sign-out", "openbot-desktop:allow-sign-in-refused", "openbot-desktop:allow-sign-in-with-browser", "openbot-desktop:allow-window-sign-in-failed", + "openbot-desktop:allow-window-signed-in", "openbot-desktop:allow-open-in-browser", "openbot-desktop:allow-change-connection", "openbot-desktop:allow-set-organization", @@ -295,6 +296,27 @@ pub async fn window_sign_in_failed( .map_err(|error| error.to_string())? } +/** +OpenBot's page at `/desktop/signed-in` traded the code for the window's session, and says so before +it goes on to the app, as it says when the trade fails (`window_sign_in_failed`). Setup ends with the +connection then, and Connect from the first screen is counted `completed` +(`desktop_connected::window_signed_in_now`). Refused from a page off the window's origin. A page from +an older OpenBot never says it, and the desktop takes the window going on to the app as the same +news. +*/ +#[tauri::command] +pub async fn window_signed_in( + app: tauri::AppHandle, + webview: tauri::Webview, +) -> Result<(), String> { + let from = webview.url().ok(); + tauri::async_runtime::spawn_blocking(move || { + crate::desktop_connected::window_signed_in_now(&app, from.as_ref()) + }) + .await + .map_err(|error| error.to_string())? +} + /** OpenBot refused the page as not signed in (a 401 from `/api/me`): whether the sign-in has really ended is decided here, where the sign-in is (`desktop_connected::sign_in_refused_now`). Never a @@ -774,6 +796,7 @@ pub fn plugin() -> tauri::plugin::TauriPlugin { sign_in_refused, sign_in_with_browser, window_sign_in_failed, + window_signed_in, open_in_browser, change_connection, set_organization, @@ -817,7 +840,7 @@ mod tests { /// The two 1Password commands are the page's own, each with its permission, listed once. #[test] fn the_page_may_ask_the_two_1password_commands() { - assert_eq!(super::PERMISSIONS.len(), 47); + assert_eq!(super::PERMISSIONS.len(), 48); for permission in [ "openbot-desktop:allow-onepassword-available", "openbot-desktop:allow-onepassword-fill", diff --git a/desktop/src-tauri/src/window_ipc_tests.rs b/desktop/src-tauri/src/window_ipc_tests.rs index d837d31cf6..7981b252af 100644 --- a/desktop/src-tauri/src/window_ipc_tests.rs +++ b/desktop/src-tauri/src/window_ipc_tests.rs @@ -193,6 +193,7 @@ fn window_shell() -> Connected { .invoke_handler(tauri::generate_handler![ desktop_page::sign_in_with_browser, desktop_page::window_sign_in_failed, + desktop_page::window_signed_in, desktop_page::open_in_browser, desktop_page::sign_out, desktop_page::sign_in_refused @@ -740,19 +741,272 @@ fn an_older_openbot_and_a_sign_in_from_before_go_on_through_the_relay() { ); } +/// Where OpenBot's page trades the window's code: the window's address once Connect sent it there. +fn signed_in_page(address: &str) -> String { + format!("{address}{}", openbot_desktop_lib::connected::window::SIGNED_IN_PATH) +} + +/// OpenBot's page at `/desktop/signed-in` says it traded the window's code (`window_signed_in`). +fn page_says_it_traded(shell: &Connected, address: &str) { + assert_eq!( + shell.ask(&signed_in_page(address), "plugin:openbot-desktop|window_signed_in"), + Ok(serde_json::Value::Null) + ); +} + +/// The window loads `path` on the OpenBot at `address`, as the webview reports each page load +/// (`on_page_load`, through `watch_window_load`). +fn window_loads(shell: &Connected, address: &str, path: &str) { + let url: tauri::Url = format!("{address}{path}").parse().unwrap(); + desktop_connected::watch_window_load(shell.handle(), &url, false); +} + +/** +Connect pressed on the first screen, at an OpenBot that signs the window in itself, as the window +asks it: when `named`, after its own `started` and with the screen and its wait; otherwise with the +address alone. The window goes to OpenBot's page with its code, and nothing more is counted until +that page says how the trade went. What it adds to usage data: the window's `started` when named. +*/ +fn connect_through_the_window( + shell: &Connected, + address: &str, + named: bool, +) -> Vec { + connect_through_the_window_from( + shell, + address, + named.then_some(openbot_desktop_lib::telemetry::ConnectScreen::ConnectOpenbot), + ) +} + +/// `connect_through_the_window`, pressed on `screen` (OpenBot Cloud's sign-in, or a company's +/// OpenBot by its address), or with the address alone. +fn connect_through_the_window_from( + shell: &Connected, + address: &str, + screen: Option, +) -> Vec { + use openbot_desktop_lib::telemetry::{ConnectOutcome, EventData}; + let named = screen.is_some(); + let before = queued(shell).len(); + let mut asked = serde_json::json!({ "address": address }); + if let Some(screen) = screen { + let name = serde_json::to_value(screen).unwrap(); + window_says( + shell, + &serde_json::json!({ + "kind": "openbot_connect", "screen": name, "outcome": "started" + }), + ); + asked["screen"] = name; + asked["waitedMs"] = 400.into(); + } + shell + .ask_with(SETUP, "connect_to_openbot", asked) + .expect("connected"); + assert_eq!( + shell.window.url().unwrap().path(), + openbot_desktop_lib::connected::window::SIGNED_IN_PATH, + "the window is at the page that trades its code" + ); + assert_eq!( + choice::read(&shell.config).window_origin(), + Some(address), + "the choice is saved before the trade" + ); + let added: Vec = queued(shell)[before..].to_vec(); + let expected: Vec = screen + .map(|screen| EventData::OpenbotConnect { + screen, + outcome: ConnectOutcome::Started, + duration_ms: None, + }) + .into_iter() + .collect(); + assert_eq!(added, expected, "named {named}: nothing counted before the trade"); + expected +} + +/// The shell's `completed` for Connect from the address screen, last in usage data, from the press +/// (the window's 400 ms, then the sign-in and the trade). +fn completed_last(shell: &Connected) -> openbot_desktop_lib::telemetry::EventData { + completed_last_from( + shell, + openbot_desktop_lib::telemetry::ConnectScreen::ConnectOpenbot, + ) +} + +/// `completed_last`, for Connect pressed on `screen`. +fn completed_last_from( + shell: &Connected, + screen: openbot_desktop_lib::telemetry::ConnectScreen, +) -> openbot_desktop_lib::telemetry::EventData { + use openbot_desktop_lib::telemetry::{ConnectOutcome, EventData}; + let took = queued(shell).last().and_then(|event| match event { + EventData::OpenbotConnect { + outcome: ConnectOutcome::Completed, + duration_ms, + .. + } => *duration_ms, + _ => None, + }); + assert!(took.is_some_and(|ms| ms >= 400), "{:?}", queued(shell)); + EventData::OpenbotConnect { + screen, + outcome: ConnectOutcome::Completed, + duration_ms: took, + } +} + +/** +Setup ends with a connection through the window's own sign-in once OpenBot's page says it traded the +window's code (`window_signed_in`), not before: Connect, named, is counted `completed` then, from the +press, by the screen it was pressed on (a company's OpenBot by its address, or OpenBot Cloud's +sign-in), and a quit afterwards is not `setup_abandoned`, nor is the next launch. Said again, or +followed by the window going on to the app, it is counted once. Connect asked without the screen, +the defensive case, ends setup the same way and counts nothing. +*/ +#[test] +fn a_window_sign_in_ends_setup_once_the_page_says_it_traded_the_code() { + use openbot_desktop_lib::telemetry::{ConnectScreen, EventData, Step}; + for screen in [ + Some(ConnectScreen::ConnectOpenbot), + Some(ConnectScreen::Cloud), + None, + ] { + let named = format!("{screen:?}"); + let data = temp_root("openbot-window-sign-in-traded"); + let address = window_stand_in(WindowStand::new(true)); + let shell = window_shell(); + let (_browser, _opened) = approving_browser(); + desktop_telemetry::initialize_for_test(shell.handle(), data.to_path_buf()); + window_says( + &shell, + &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), + ); + let mut shown = vec![ + EventData::StepViewed { + step: Step::Welcome, + }, + EventData::StepViewed { + step: Step::ConnectOpenbot, + }, + ]; + shown.extend(connect_through_the_window_from(&shell, &address, screen)); + + page_says_it_traded(&shell, &address); + if let Some(screen) = screen { + shown.push(completed_last_from(&shell, screen)); + } + assert_eq!(queued(&shell), shown, "{named}: once the page said so"); + // Said again, and the window going on to the app: nothing more. + page_says_it_traded(&shell, &address); + window_loads(&shell, &address, "/"); + assert_eq!(queued(&shell), shown, "{named}: counted once"); + quit_and_relaunch_without_abandonment(shell, &data, shown, &named); + } +} + +/** +Sign in again after a first setup's trade failed: Connect again from the same screen, and once +OpenBot's page says this trade worked, setup ends and Connect is counted `completed` for this go, +with no `setup_abandoned` on quit or at the next launch. +*/ +#[test] +fn sign_in_again_after_a_failed_trade_ends_setup_once_the_page_says_it_traded() { + use openbot_desktop_lib::telemetry::{EventData, Step}; + let data = temp_root("openbot-window-sign-in-again"); + let address = window_stand_in(WindowStand::new(true)); + let shell = window_shell(); + let (_browser, _opened) = approving_browser(); + desktop_telemetry::initialize_for_test(shell.handle(), data.to_path_buf()); + window_says( + &shell, + &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), + ); + let mut shown = vec![ + EventData::StepViewed { + step: Step::Welcome, + }, + EventData::StepViewed { + step: Step::ConnectOpenbot, + }, + ]; + shown.extend(connect_through_the_window(&shell, &address, true)); + shell + .ask_with( + &signed_in_page(&address), + "plugin:openbot-desktop|window_sign_in_failed", + serde_json::json!({ "reason": "refused" }), + ) + .expect("put back"); + window_says( + &shell, + &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), + ); + shown.push(EventData::StepViewed { + step: Step::ConnectOpenbot, + }); + shown.extend(connect_through_the_window(&shell, &address, true)); + page_says_it_traded(&shell, &address); + shown.push(completed_last(&shell)); + assert_eq!(queued(&shell), shown); + quit_and_relaunch_without_abandonment(shell, &data, shown, "signed in again"); +} + +/** +The window shown anew while a trade waits (the setup window opening the saved connection, as it +does after a page load that never arrived): that trade's page is gone, so the trade is dropped, and +neither the window loading home nor a late word from a page counts it. Setup has not ended: a quit +is `setup_abandoned`. +*/ +#[test] +fn the_window_shown_anew_drops_a_waiting_trade() { + use openbot_desktop_lib::telemetry::{EventData, Step}; + let data = temp_root("openbot-window-shown-anew"); + let address = window_stand_in(WindowStand::new(true)); + let shell = window_shell(); + let (_browser, _opened) = approving_browser(); + desktop_telemetry::initialize_for_test(shell.handle(), data.to_path_buf()); + window_says( + &shell, + &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), + ); + let mut shown = vec![ + EventData::StepViewed { + step: Step::Welcome, + }, + EventData::StepViewed { + step: Step::ConnectOpenbot, + }, + ]; + shown.extend(connect_through_the_window(&shell, &address, true)); + shell + .ask(SETUP, "show_connected") + .expect("shown again at its own origin"); + window_loads(&shell, &address, "/"); + page_says_it_traded(&shell, &address); + assert_eq!(queued(&shell), shown, "nothing counted"); + desktop_telemetry::shutdown(shell.handle()); + shown.push(EventData::SetupAbandoned { + step: Step::ConnectOpenbot, + }); + assert_eq!(queued(&shell), shown); + drop(shell); + let _ = std::fs::remove_dir_all(&data); +} + /** -Setup ends with a connection through the window's own sign-in too (`connect_window_now` keeps the -choice), and a first screen the window's sign-in puts back (the page could not trade its code: -Sign in again, the choice still connected) starts no setup session: no `setup_abandoned` on quit, -or at the next launch. Connect is asked as the window asks it, with the screen named (then counted -`started` and `completed` before the trade) and, the defensive case, without -(`connect_from_the_first_screen`). +OpenBot's page could not trade the window's code (`window_sign_in_failed`, which every page says): +Sign in again comes up at that address with the choice still connected, nothing is counted +`completed`, and setup has not ended, so a quit there is `setup_abandoned`, at the screen the setup +was on, and the next launch says it no more. A page that then says it traded changes nothing. */ #[test] -fn a_window_sign_in_ends_setup_and_its_sign_in_again_is_not_abandoned() { +fn a_window_sign_in_whose_trade_failed_is_abandoned_on_quit() { use openbot_desktop_lib::telemetry::{EventData, Step}; for named in [true, false] { - let data = temp_root("openbot-window-sign-in-not-abandoned"); + let data = temp_root("openbot-window-trade-failed"); let address = window_stand_in(WindowStand::new(true)); let shell = window_shell(); let (_browser, _opened) = approving_browser(); @@ -761,24 +1015,110 @@ fn a_window_sign_in_ends_setup_and_its_sign_in_again_is_not_abandoned() { &shell, &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), ); - let connected = connect_from_the_first_screen(&shell, &address, named); - assert_eq!( - choice::read(&shell.config).window_origin(), - Some(address.as_str()) - ); + let mut shown = vec![ + EventData::StepViewed { + step: Step::Welcome, + }, + EventData::StepViewed { + step: Step::ConnectOpenbot, + }, + ]; + shown.extend(connect_through_the_window(&shell, &address, named)); shell .ask_with( - &format!("{address}/desktop/signed-in"), + &signed_in_page(&address), "plugin:openbot-desktop|window_sign_in_failed", serde_json::json!({ "reason": "invalid_code" }), ) .expect("put back"); assert_eq!(shell.window.url().unwrap().as_str(), SETUP); - assert_eq!( - choice::read(&shell.config).connected_to(), - Some(address.as_str()), - "named {named}: the choice kept" + let kept = choice::read(&shell.config); + assert_eq!(kept.connected_to(), Some(address.as_str()), "the choice kept"); + assert_eq!(kept.window, None, "the window's sign-in let go"); + // Too late, and off the window's origin now: refused, and nothing counted. + assert!(shell + .ask(&signed_in_page(&address), "plugin:openbot-desktop|window_signed_in") + .is_err()); + window_says( + &shell, + &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), ); + // Sign in again is the same screen, said again only after another event (the window's + // `started`): the same screen twice in a row is said once. + if named { + shown.push(EventData::StepViewed { + step: Step::ConnectOpenbot, + }); + } + assert_eq!(queued(&shell), shown, "named {named}: no completed"); + + desktop_telemetry::shutdown(shell.handle()); + shown.push(EventData::SetupAbandoned { + step: Step::ConnectOpenbot, + }); + assert_eq!(queued(&shell), shown, "named {named}: on quit"); + let next = relaunched(&shell, &data); + shown.push(EventData::StepViewed { + step: Step::Welcome, + }); + assert_eq!(queued(&next), shown, "named {named}: next launch"); + drop(next); + drop(shell); + let _ = std::fs::remove_dir_all(&data); + } +} + +/** +Quit while OpenBot's page is still trading the window's code, before it said how it went: setup has +not ended, so the quit is `setup_abandoned` at the screen the setup was on, and Connect is not +counted `completed`. +*/ +#[test] +fn a_quit_before_the_page_says_it_traded_is_abandoned() { + use openbot_desktop_lib::telemetry::{EventData, Step}; + let data = temp_root("openbot-window-quit-before-trade"); + let address = window_stand_in(WindowStand::new(true)); + let shell = window_shell(); + let (_browser, _opened) = approving_browser(); + desktop_telemetry::initialize_for_test(shell.handle(), data.to_path_buf()); + window_says( + &shell, + &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), + ); + let mut shown = vec![ + EventData::StepViewed { + step: Step::Welcome, + }, + EventData::StepViewed { + step: Step::ConnectOpenbot, + }, + ]; + shown.extend(connect_through_the_window(&shell, &address, true)); + desktop_telemetry::shutdown(shell.handle()); + shown.push(EventData::SetupAbandoned { + step: Step::ConnectOpenbot, + }); + assert_eq!(queued(&shell), shown); + drop(shell); + let _ = std::fs::remove_dir_all(&data); +} + +/** +A page from an older OpenBot says only when the trade fails: when it works, it goes on to the page +the sign-in was for (home, for Connect) and says nothing. The window loading that page while the +trade waits ends setup and counts Connect `completed`, as before setup waited for the page: the same +events, and no `setup_abandoned` on quit or at the next launch. The trade's own page loading, or a +load anywhere else, is not it. +*/ +#[test] +fn an_older_page_that_goes_on_without_saying_ends_setup_as_before() { + use openbot_desktop_lib::telemetry::{EventData, Step}; + for named in [true, false] { + let data = temp_root("openbot-window-older-page"); + let address = window_stand_in(WindowStand::new(true)); + let shell = window_shell(); + let (_browser, _opened) = approving_browser(); + desktop_telemetry::initialize_for_test(shell.handle(), data.to_path_buf()); window_says( &shell, &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), @@ -791,14 +1131,69 @@ fn a_window_sign_in_ends_setup_and_its_sign_in_again_is_not_abandoned() { step: Step::ConnectOpenbot, }, ]; - shown.extend(connected); - shown.push(EventData::StepViewed { - step: Step::ConnectOpenbot, - }); + shown.extend(connect_through_the_window(&shell, &address, named)); + window_loads( + &shell, + &address, + openbot_desktop_lib::connected::window::SIGNED_IN_PATH, + ); + window_loads(&shell, &address, "/sign"); + assert_eq!(queued(&shell), shown, "named {named}: not yet"); + window_loads(&shell, &address, "/"); + if named { + shown.push(completed_last(&shell)); + } + assert_eq!(queued(&shell), shown, "named {named}: went on"); quit_and_relaunch_without_abandonment(shell, &data, shown, &format!("named {named}")); } } +/** +`window_signed_in` is the page's own, asked from the window's origin: the setup window, another +host, another port and a window with no OpenBot at its own origin are refused, and nothing is +counted for them. +*/ +#[test] +fn only_the_windows_own_page_says_it_traded() { + use openbot_desktop_lib::telemetry::{ConnectOutcome, EventData}; + let data = temp_root("openbot-window-signed-in-origin"); + let address = window_stand_in(WindowStand::new(true)); + let shell = window_shell(); + let (_browser, _opened) = approving_browser(); + desktop_telemetry::initialize_for_test(shell.handle(), data.to_path_buf()); + let say = |from: &str| shell.ask(from, "plugin:openbot-desktop|window_signed_in"); + assert!(say(&signed_in_page(&address)).is_err(), "no window signed in"); + connect_through_the_window(&shell, &address, true); + let port = reqwest::Url::parse(&address).unwrap().port().unwrap(); + for elsewhere in [ + SETUP.to_owned(), + "https://evil.example/desktop/signed-in".to_owned(), + format!("http://127.0.0.1:{}/desktop/signed-in", port + 1), + format!("http://localhost:{port}/desktop/signed-in"), + ] { + assert!(say(&elsewhere).is_err(), "{elsewhere}"); + } + let completed = |shell: &Connected| { + queued(shell) + .iter() + .filter(|event| { + matches!( + event, + EventData::OpenbotConnect { + outcome: ConnectOutcome::Completed, + .. + } + ) + }) + .count() + }; + assert_eq!(completed(&shell), 0); + page_says_it_traded(&shell, &address); + assert_eq!(completed(&shell), 1); + drop(shell); + let _ = std::fs::remove_dir_all(&data); +} + /** A launch whose saved window sign-in that OpenBot no longer publishes (`show_window_saved`) lets the window's sign-in go and puts Sign in again up, the choice still connected: that screen starts diff --git a/desktop/src/ConnectToOpenBot.tsx b/desktop/src/ConnectToOpenBot.tsx index 08656be994..2d6cc153e0 100644 --- a/desktop/src/ConnectToOpenBot.tsx +++ b/desktop/src/ConnectToOpenBot.tsx @@ -177,6 +177,8 @@ export function useConnectToOpenBot({ address: checked.address, // The shell counts a connection that worked, since this page has gone to OpenBot by // the time it answers: which screen asked, and how long since the button was pressed. + // Through the window's own sign-in, it counts once OpenBot's page says it traded the + // window's code (`window_signed_in`). ...(screen && startedAt.current !== null ? { screen, @@ -186,7 +188,8 @@ export function useConnectToOpenBot({ }); if (!current()) return; waiting.current = false; - // Signed in: the shell is showing that OpenBot in this window, and has counted it. + // Signed in: the shell is showing that OpenBot in this window, and has counted it, or + // counts it once OpenBot's page there signed the window in. startedAt.current = null; setPhase("opening"); } catch (error) { diff --git a/desktop/src/fakeNative/pageRegistry.ts b/desktop/src/fakeNative/pageRegistry.ts index c011596bb5..ee8177a33d 100644 --- a/desktop/src/fakeNative/pageRegistry.ts +++ b/desktop/src/fakeNative/pageRegistry.ts @@ -58,6 +58,7 @@ export const PAGE_COMMANDS = [ "plugin:openbot-desktop|update_offer", "plugin:openbot-desktop|usage_data", "plugin:openbot-desktop|window_sign_in_failed", + "plugin:openbot-desktop|window_signed_in", "plugin:openbot-desktop|zoom", ] as const; From ae324204e7c7ada6765e3115cd29842dd71f834d Mon Sep 17 00:00:00 2001 From: Alexander Clarke Date: Fri, 4 Dec 2026 09:27:50 +0000 Subject: [PATCH 2/4] Desktop: count a failed trade as failed, take any page an older OpenBot goes on to as a good trade Review follow-ups to the success signal: - A trade OpenBot's page says failed is now counted openbot_connect failed by the desktop, from the press, so the window's started always has an ending: the window that pressed Connect has gone to OpenBot's page. - A page from an older OpenBot leaves the trade's page only once the trade worked, so a load of any page on the window's origin but that one ends the trade, wherever the page went or a redirect took it, not only the exact path Desktop sent. It is counted on a thread of its own, off the webview's page-load handler. - window_signed_in is refused from any page but /desktop/signed-in. - Tests for a crash while the trade runs (closed by the next launch, as before), a late word after the window went on (counted once), and the window shown anew. The real-app test checks the page's word reached the desktop. Stale comments that said setup ends before the trade are fixed. --- app/tests/desktop-window-sign-in.test.tsx | 11 +- desktop/TELEMETRY.md | 4 +- .../src/connected/window_e2e_tests.rs | 8 ++ desktop/src-tauri/src/desktop_connected.rs | 111 +++++++++-------- desktop/src-tauri/src/desktop_telemetry.rs | 32 ++++- desktop/src-tauri/src/main.rs | 5 +- desktop/src-tauri/src/window_ipc_tests.rs | 116 ++++++++++++++++-- 7 files changed, 212 insertions(+), 75 deletions(-) diff --git a/app/tests/desktop-window-sign-in.test.tsx b/app/tests/desktop-window-sign-in.test.tsx index 3db6e1b902..ce81b4ea44 100644 --- a/app/tests/desktop-window-sign-in.test.tsx +++ b/app/tests/desktop-window-sign-in.test.tsx @@ -621,7 +621,16 @@ describe.skipIf(!asked)( path: fragment("/channel/c_1"), unanswered: ["window_signed_in"], }, - async (page, _openbot, calls) => { + async (page, openbot, calls) => { + // Traded and told: the window waits for Desktop's answer before it goes on, as long + // as it waits for none. + await until( + () => + openbot.asked("/api/auth/window/session").length === 1 && + named(calls, "window_signed_in").length === 1, + ); + await new Promise((resolve) => setTimeout(resolve, 1_000)); + expect(landed(page)).toBe("/desktop/signed-in"); await conversation(page); expect(landed(page)).toBe("/channel/c_1"); expect(named(calls, "window_signed_in")).toHaveLength(1); diff --git a/desktop/TELEMETRY.md b/desktop/TELEMETRY.md index 1ca9987ddc..e4b5e629df 100644 --- a/desktop/TELEMETRY.md +++ b/desktop/TELEMETRY.md @@ -64,7 +64,7 @@ For `model_chosen`, providers are `openai`, `anthropic`, `google`, `xai`, `cloud `ui_stalled` is a setup window that stopped taking what the desktop sends it. While the setup, start or update screens show, the page invokes `setup_heartbeat` every five seconds, and as soon as a row's progress reaches it, with the highest progress number it has taken (`setup:progress` carries one). The heartbeat is never awaited and runs off the window's thread. Progress left untaken for over 30 seconds while the window is shown, not minimised and, on macOS, not covered is a stall. The Desktop log says `[ui] the window has not answered for 31s during start_machine` when it is noticed and `[ui] the window stopped answering for 42s during start_machine` when it ends, and that end sends one `ui_stalled` with `stalled_seconds` and `step`, the setup row the desktop was reporting, by the same names as `failing_step`. It ends when the page catches up, the window leaves the screen, the window loads another page, or OpenBot quits. A page that has just loaded counts what was sent before it listened as taken, and a page that sends no heartbeat (OpenBot itself) is not watched. -`setup_abandoned` is setup ending before activation, or before a connection to an OpenBot that runs elsewhere is kept: Quit during setup, or, on the next launch, a crash. The app keeps a connection in three ways. Connect through the relay keeps it once signed in and that OpenBot answered, just before `openbot_connect` `completed` is counted when the window named the screen it was pressed on (`screen`). The window's own sign-in keeps it once OpenBot's page says it traded the window's code for its session at that OpenBot, the way it says when the trade fails; a page from an older OpenBot says only when it fails, and there the window going on from that page to the app is taken as the same. That connection is saved before the trade, for the page and for Sign in again, but not kept until then: a quit while the trade runs, or after a trade that failed on a first setup, is `setup_abandoned`. A crash then is not, since the next launch finds the connection saved (see below). Move to Cloud keeps it once the move is saved. Keeping it closes any setup session still open, whether or not a `completed` was sent, and nothing starts one while it is kept. +`setup_abandoned` is setup ending before activation, or before a connection to an OpenBot that runs elsewhere is kept: Quit during setup, or, on the next launch, a crash. The app keeps a connection in three ways. Connect through the relay keeps it once signed in and that OpenBot answered, just before `openbot_connect` `completed` is counted when the window named the screen it was pressed on (`screen`). The window's own sign-in keeps it once OpenBot's page says it traded the window's code for its session at that OpenBot, the way it says when the trade fails; a page from an older OpenBot says only when it fails, and there the window going on from that page to the app is taken as the same. That connection is saved before the trade, for the page and for Sign in again, but not kept until then: a quit while the trade runs, or after a trade that failed on a first setup, is `setup_abandoned`. A crash then is not, since the next launch finds the connection saved (see below), and a later launch shows that first screen again starting no setup session. Move to Cloud keeps it once the move is saved. Keeping it closes any setup session still open, whether or not a `completed` was sent, and nothing starts one while it is kept. `step_viewed` still counts each launch, and the first screen whenever it shows again, while a connection is kept or saved, but once one was kept neither a quit nor a crash sends `setup_abandoned`, even after a Sign in again that started, failed or was cancelled. The first screen shows again for Sign in again once a sign-in ended, at launch or while OpenBot shows, or once the window's own sign-in was let go (OpenBot's page could not trade its code, or that OpenBot no longer signs the window in); for a saved OpenBot that cannot be reached; and for Use this computer in Settings. A setup session the last run left open (a crash, or an earlier version, which started one at every launch) is closed without a `setup_abandoned` by a launch that finds the connection kept. @@ -78,7 +78,7 @@ For `model_chosen`, providers are `openai`, `anthropic`, `google`, `xai`, `cloud `business_opened` is OpenBot for Business's booker coming on screen because it was picked: on the first screen (`welcome`) or in Move to Cloud (`move_to_cloud`), once for each place each time the setup window's page loads (coming back to setup from OpenBot loads it again), however often it is picked again there. `business_booked` is a call booked in its calendar, said by Calendly from its own origin and the calendar's frame. The window sends both, with the place and nothing else: never the time booked or anything typed into the calendar. The calendar's address carries the same place as `utm_content` beside `utm_source=openbot_app` and `utm_medium=in_app`, which Calendly keeps on the booking, so a booking and these events name the same screen. -`openbot_connect` is the first screen's connection to an OpenBot that runs elsewhere, by the screen it was made on: OpenBot Cloud's sign-in (`cloud`) or a company's OpenBot by its address (`connect_openbot`). It counts that screen whenever it shows: on a first setup, and on a later launch that shows it again, such as a saved connection whose sign-in ended (Sign in again) or the choice of where OpenBot runs made again from Settings. Shown again once a connection is kept, its `step_viewed` starts no setup session (see `setup_abandoned`). The window sends `started` when the person presses Sign in, Connect, Try again or Sign in again, then `failed` when the address check or the browser sign-in fails, or `cancelled` when the person presses Cancel. The desktop itself sends `completed` once signed in and the window has gone to that OpenBot: through the relay, once that OpenBot is shown; through the window's own sign-in, once OpenBot's page says it traded the window's code (with a page from an older OpenBot, which does not say so, once the window goes on from that page to the app), so after the trade, and never for a trade that failed. Releases before this rule counted it when the window went to that page, before the trade, so a trade that then failed was still `completed`: compare from before and after by `openbot_version`. Each ending has `duration_ms` from the press, and the outcomes are `sign_in`'s. A Cancel pressed just as the sign-in completes can give `cancelled` and then `completed` for one go: it did connect. `completed` also ends the setup session, as `activated` does for OpenBot on this computer, so a quit afterwards is not `setup_abandoned`; it is not `activated`, since nothing started here. Move to Cloud signs in its own way and never sends it. Opening a connection again with the sign-in this computer already has sends nothing, and a sign-in left behind when the screen goes says nothing when it ends. Never the address, its host or the sentence about what went wrong. It is not `sign_in`, which stays the Account step's CopilotKit sign-in. +`openbot_connect` is the first screen's connection to an OpenBot that runs elsewhere, by the screen it was made on: OpenBot Cloud's sign-in (`cloud`) or a company's OpenBot by its address (`connect_openbot`). It counts that screen whenever it shows: on a first setup, and on a later launch that shows it again, such as a saved connection whose sign-in ended (Sign in again) or the choice of where OpenBot runs made again from Settings. Shown again once a connection is kept, its `step_viewed` starts no setup session (see `setup_abandoned`). The window sends `started` when the person presses Sign in, Connect, Try again or Sign in again, then `failed` when the address check or the browser sign-in fails, or `cancelled` when the person presses Cancel. The desktop itself sends `failed` when OpenBot's page could not trade the window's code, since the window has gone to that page by then. The desktop itself sends `completed` once signed in and the window has gone to that OpenBot: through the relay, once that OpenBot is shown; through the window's own sign-in, once OpenBot's page says it traded the window's code (with a page from an older OpenBot, which does not say so, once the window goes on from that page to the app), so after the trade, and never for a trade that failed. Releases before this rule counted it when the window went to that page, before the trade, so a trade that then failed was still `completed`: compare from before and after by `openbot_version`. Each ending has `duration_ms` from the press, and the outcomes are `sign_in`'s. A Cancel pressed just as the sign-in completes can give `cancelled` and then `completed` for one go: it did connect. `completed` also ends the setup session, as `activated` does for OpenBot on this computer, so a quit afterwards is not `setup_abandoned`; it is not `activated`, since nothing started here. Move to Cloud signs in its own way and never sends it. Opening a connection again with the sign-in this computer already has sends nothing, and a sign-in left behind when the screen goes says nothing when it ends. Never the address, its host or the sentence about what went wrong. It is not `sign_in`, which stays the Account step's CopilotKit sign-in. `engine_measured` is what the Account step's check measured of the engine local setup runs on, too small or not: `resources` as `setup_failed` carries it for an engine too small, CPUs in thousandths and memory and free disk in MiB, against what setup needs. Sent by the desktop itself, never by the window, once a launch and again only when the engine's CPUs or memory change (a Podman machine made bigger). Free disk is sent with them, but a change in it alone, as the downloads fill the disk, sends nothing new. Every install that goes through the Account step runs that check, so each one whose engine answers it sends one; an engine not known yet, or one that does not answer, is not measured and sends nothing, and neither does a reinstall that goes straight to Install. Nothing is kept while usage data is off, so turning it on again in the same launch still sends the size. OpenBot Cloud and a company's OpenBot run nothing on this computer, so a connection never sends it. Never the engine's name, a drive, a path or a hostname. diff --git a/desktop/src-tauri/src/connected/window_e2e_tests.rs b/desktop/src-tauri/src/connected/window_e2e_tests.rs index 9b13b81467..6bb4adc1ac 100644 --- a/desktop/src-tauri/src/connected/window_e2e_tests.rs +++ b/desktop/src-tauri/src/connected/window_e2e_tests.rs @@ -183,6 +183,14 @@ fn window_e2e_the_real_app_stays_signed_in_through_a_quit_and_a_relaunch() { Some(&Some(session.clone())), "the window reached home signed in" ); + // The page told the app the code traded (`window_signed_in`), through the real command and + // its permission, before it went home: not the app seeing the window go home without a word. + let first_said = std::fs::read_to_string(&first_log).unwrap_or_default(); + assert!( + first_said.contains(": its page said so") + && !first_said.contains(": its page went on without saying so"), + "the page's word never reached the app\n{first_said}" + ); let homes_before = openbot.homes().len(); // Relaunch: the window goes straight to OpenBot's origin, and its cookie is still there. diff --git a/desktop/src-tauri/src/desktop_connected.rs b/desktop/src-tauri/src/desktop_connected.rs index 250ad2656c..6cd8e85c51 100644 --- a/desktop/src-tauri/src/desktop_connected.rs +++ b/desktop/src-tauri/src/desktop_connected.rs @@ -98,26 +98,23 @@ struct WindowShowing { /** The window sent to OpenBot's page with a code to trade for its session (`connect_window_now`), and what is counted once the page says it did (`trade_done`): setup on this computer ends then, and -Connect from the first screen is counted `completed`. Nothing is counted while it waits, so a quit -before then is `setup_abandoned`, and nothing is counted for a trade the page says failed +Connect from the first screen is counted `completed`. Nothing ends setup while it waits, so a quit +before then is `setup_abandoned`. A trade the page says failed is counted `failed` (`window_sign_in_failed_now`). */ struct Trade { /// The window's origin, where the page that may say so is. origin: String, - /// The path of the page the window goes on to once the trade worked: how a page from an older - /// OpenBot says it worked, since it says only when the trade fails (`older_page_traded`). - next_path: String, - /// Connect from the first screen, to count `completed` for. None for any other sign-in. + /// Connect from the first screen, to count for. None for any other sign-in. counted: Option, } /// Connect pressed on the first screen (`connect_to_openbot`): the screen, what the window had /// waited since the press, and when the shell was asked. -pub struct ConnectCount { - pub screen: openbot_desktop_lib::telemetry::ConnectScreen, - pub waited_ms: Option, - pub asked: std::time::Instant, +struct ConnectCount { + screen: openbot_desktop_lib::telemetry::ConnectScreen, + waited_ms: Option, + asked: std::time::Instant, } /// How Connect ended once it worked: counted now, or once OpenBot's page says it traded the window's @@ -192,10 +189,10 @@ fn keep( save_choice(app, chosen)?; // Connected is first kept once a connection worked: setup on this computer ended with it, // whether or not the connection was counted (`openbot_connect` `completed`, Move to Cloud). An - // organization switch (`set_organization_now`) keeps a choice that was already connected, so - // setup had already ended, and ending it again changes nothing. The window's own sign-in saves - // its choice before OpenBot's page trades the code, and setup ends once the page says it did - // (`trade_done`). + // organization switch (`set_organization_now`) is asked by OpenBot's page once it is signed in, + // so setup had already ended, and ending it again changes nothing. The window's own sign-in + // saves its choice before OpenBot's page trades the code, and setup ends once the page says it + // did (`trade_done`). if chosen.mode == choice::Mode::Connected { crate::desktop_telemetry::setup_ended(app); } @@ -248,15 +245,16 @@ pub fn shown_origin(app: &tauri::AppHandle) -> Option(app: &tauri::AppHandle) -> bool { app.try_state::().is_some() && chosen(app).mode == choice::Mode::Connected @@ -1066,8 +1064,8 @@ impl WindowRefusal { /** OpenBot's page could not trade the code for the window's session: the window holds none. Its sign-in is let go here, and the setup window shows the first screen at that address, saying why, -with Sign in again. The trade waiting is dropped uncounted (`stop_window`): setup has not ended, and -Connect is not counted `completed`. +with Sign in again. Setup has not ended, and Connect from the first screen is counted `failed`, from +the press: the window that pressed it has gone to OpenBot's page, so only the desktop can end it. */ pub fn window_sign_in_failed_now( app: &tauri::AppHandle, @@ -1079,6 +1077,15 @@ pub fn window_sign_in_failed_now( }; let host = openbot_desktop_lib::connected::host_of(address); log::warn!("[connect] the window could not sign in at {host}: {reason:?}"); + let trade = window_origin(app).and_then(|origin| take_trade(app, &origin)); + if let Some(counted) = trade.and_then(|trade| trade.counted) { + crate::desktop_telemetry::connect_failed( + app, + counted.screen, + counted.waited_ms, + counted.asked.elapsed(), + ); + } forget_window_sign_in(app); forget_account(app); crate::refresh_menus(app); @@ -1324,7 +1331,8 @@ a sign-in of this app's own at that address, which the relay showed, is let go. as the window's sign-in, and the window goes to OpenBot's own page, which trades the code for the session cookie and goes on to `next`. The page says how the trade went: it worked (`window_signed_in`), and only then does setup end, with Connect from the first screen (`counted`) -counted `completed`; or it failed (`window_sign_in_failed`), and nothing is counted (`Trade`). +counted `completed`; or it failed (`window_sign_in_failed`), and Connect is counted `failed` +(`Trade`). */ fn connect_window_now( app: &tauri::AppHandle, @@ -1375,7 +1383,6 @@ fn connect_window_now( log::info!("[connect] the window signs in at {host}"); let trade = Trade { origin: window.origin.clone(), - next_path: path_of(next), counted, }; show_window_at( @@ -1387,12 +1394,6 @@ fn connect_window_now( ) } -/// The path of `next`, a path on the window's origin with perhaps a query or a fragment. -fn path_of(next: &str) -> String { - let end = next.find(['?', '#']).unwrap_or(next.len()); - next[..end].to_owned() -} - /** OpenBot's page traded the window's code for its session: setup on this computer ends with the connection (`desktop_telemetry::setup_ended`), and Connect from the first screen is counted @@ -1427,19 +1428,21 @@ fn take_trade(app: &tauri::AppHandle, origin: &str) -> Opt /** OpenBot's page at `/desktop/signed-in` traded the code for the window's session -(`window_signed_in`), asked from `from`, a page on the window's origin. Setup ends, and Connect is -counted (`trade_done`). Said again, or with no trade waiting (a sign-in this app did not send the -window to), it changes nothing. +(`window_signed_in`), asked from `from`, that page on the window's origin. Setup ends, and Connect +is counted (`trade_done`). Said again, or with no trade waiting (a sign-in this app did not send the +window to), it changes nothing. Refused from any other page. */ pub fn window_signed_in_now( app: &tauri::AppHandle, from: Option<&tauri::Url>, ) -> Result<(), String> { let origin = window_origin(app); - let asked_from = from.map(|from| from.origin().ascii_serialization()); + let asked_from = from + .filter(|from| from.path() == window::SIGNED_IN_PATH) + .map(|from| from.origin().ascii_serialization()); let Some(origin) = origin.filter(|origin| asked_from.as_deref() == Some(origin.as_str())) else { - return Err("asked from a page that is not the window's origin".into()); + return Err("asked from a page that is not the window's sign-in page".into()); }; match take_trade(app, &origin) { Some(trade) => trade_done(app, trade, "its page said so"), @@ -1449,30 +1452,26 @@ pub fn window_signed_in_now( } /** -A page from an older OpenBot says only when the trade fails. When it works, that page goes on to -`next` (`location.replace`), and nothing else takes the window there from that page: a load of -`url` at that path on the window's origin, while the trade waits, is the trade done, as before -setup waited for the page (`trade_done`). +A page from an older OpenBot says only when the trade fails, and it leaves the trade's page only +once the trade worked, for the page the sign-in was for (`location.replace`). So a load of `url` on +the window's origin anywhere but that page, while the trade waits, is the trade done, as before +setup waited for the page (`trade_done`): whatever path that page went on to, and wherever a +redirect took it. A failure was said first, and took the trade with it; a window shown anew +(`show_window_at`) drops it. Counted on a thread of its own, off the webview's page-load handler. */ fn older_page_traded(app: &tauri::AppHandle, url: &tauri::Url) { if url.path() == window::SIGNED_IN_PATH { return; } - let origin = url.origin().ascii_serialization(); - let shell = state(app); - let trade = { - let mut waiting = shell.connected.trade.lock().unwrap(); - let went_on = waiting - .as_ref() - .is_some_and(|trade| trade.origin == origin && trade.next_path == url.path()); - if went_on { - waiting.take() - } else { - None - } + let Some(trade) = take_trade(app, &url.origin().ascii_serialization()) else { + return; }; - if let Some(trade) = trade { - trade_done(app, trade, "its page went on without saying so"); + let app = app.clone(); + let counted = std::thread::Builder::new() + .name("window-trade-done".into()) + .spawn(move || trade_done(&app, trade, "its page went on without saying so")); + if counted.is_err() { + log::warn!("[connect] the window's sign-in could not be counted"); } } diff --git a/desktop/src-tauri/src/desktop_telemetry.rs b/desktop/src-tauri/src/desktop_telemetry.rs index 949294547a..9508f6b4f1 100644 --- a/desktop/src-tauri/src/desktop_telemetry.rs +++ b/desktop/src-tauri/src/desktop_telemetry.rs @@ -1134,16 +1134,46 @@ pub fn connected( record(app, connected_event(screen, waited_ms, took)); } +/// A connection from the first screen through the window's own sign-in whose code OpenBot's page +/// could not trade (`desktop_connected::window_sign_in_failed_now`): counted here, since the window +/// that pressed Connect has gone to that page. +pub fn connect_failed( + app: &tauri::AppHandle, + screen: telemetry::ConnectScreen, + waited_ms: Option, + took: std::time::Duration, +) { + record( + app, + connect_ended(screen, telemetry::ConnectOutcome::Failed, waited_ms, took), + ); +} + /// `completed`, with the time from the person's press: what the window had waited, and the sign-in. fn connected_event( screen: telemetry::ConnectScreen, waited_ms: Option, took: std::time::Duration, +) -> telemetry::EventData { + connect_ended( + screen, + telemetry::ConnectOutcome::Completed, + waited_ms, + took, + ) +} + +/// How a connection from the first screen ended, with the time from the person's press. +fn connect_ended( + screen: telemetry::ConnectScreen, + outcome: telemetry::ConnectOutcome, + waited_ms: Option, + took: std::time::Duration, ) -> telemetry::EventData { let took = u64::try_from(took.as_millis()).unwrap_or(u64::MAX); telemetry::EventData::OpenbotConnect { screen, - outcome: telemetry::ConnectOutcome::Completed, + outcome, duration_ms: Some(waited_ms.unwrap_or(0).saturating_add(took)), } } diff --git a/desktop/src-tauri/src/main.rs b/desktop/src-tauri/src/main.rs index 368a5d221e..8670ffb8d0 100644 --- a/desktop/src-tauri/src/main.rs +++ b/desktop/src-tauri/src/main.rs @@ -1962,8 +1962,9 @@ fn record_setup_event(app: tauri::AppHandle, event: serde_ ) = serde_json::from_value(event) { match event { - // Setup already ended with a connection: a step it shows is counted, and a quit there - // is not `setup_abandoned`. + // A connection on record (`setup_ended_with_connection`): a step it shows is counted + // and starts no setup session, so a quit there is `setup_abandoned` only for a setup + // still open (a first window sign-in whose trade has not worked). telemetry::EventData::StepViewed { step } if desktop_connected::setup_ended_with_connection(&app) => { diff --git a/desktop/src-tauri/src/window_ipc_tests.rs b/desktop/src-tauri/src/window_ipc_tests.rs index 7981b252af..4171c3d593 100644 --- a/desktop/src-tauri/src/window_ipc_tests.rs +++ b/desktop/src-tauri/src/window_ipc_tests.rs @@ -827,6 +827,32 @@ fn connect_through_the_window_from( expected } +/// The shell's `failed` for Connect from the address screen, last in usage data, from the press: the +/// trade OpenBot's page said failed. +fn failed_last(shell: &Connected) -> openbot_desktop_lib::telemetry::EventData { + use openbot_desktop_lib::telemetry::{ConnectOutcome, ConnectScreen, EventData}; + let took = queued(shell).last().and_then(|event| match event { + EventData::OpenbotConnect { + outcome: ConnectOutcome::Failed, + duration_ms, + .. + } => *duration_ms, + _ => None, + }); + assert!(took.is_some_and(|ms| ms >= 400), "{:?}", queued(shell)); + EventData::OpenbotConnect { + screen: ConnectScreen::ConnectOpenbot, + outcome: ConnectOutcome::Failed, + duration_ms: took, + } +} + +/// Usage data once it holds `count` events: the window's load is counted on a thread of its own. +fn queued_once(shell: &Connected, count: usize) -> Vec { + wait_until("the window's load counted", || queued(shell).len() >= count); + queued(shell) +} + /// The shell's `completed` for Connect from the address screen, last in usage data, from the press /// (the window's 400 ms, then the sign-in and the trade). fn completed_last(shell: &Connected) -> openbot_desktop_lib::telemetry::EventData { @@ -940,6 +966,7 @@ fn sign_in_again_after_a_failed_trade_ends_setup_once_the_page_says_it_traded() serde_json::json!({ "reason": "refused" }), ) .expect("put back"); + shown.push(failed_last(&shell)); window_says( &shell, &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), @@ -958,7 +985,8 @@ fn sign_in_again_after_a_failed_trade_ends_setup_once_the_page_says_it_traded() The window shown anew while a trade waits (the setup window opening the saved connection, as it does after a page load that never arrived): that trade's page is gone, so the trade is dropped, and neither the window loading home nor a late word from a page counts it. Setup has not ended: a quit -is `setup_abandoned`. +is `setup_abandoned`. That window can't come back signed in by that trade: only OpenBot's page +trades the code, and a page that traded says so before it goes on. */ #[test] fn the_window_shown_anew_drops_a_waiting_trade() { @@ -985,7 +1013,11 @@ fn the_window_shown_anew_drops_a_waiting_trade() { .ask(SETUP, "show_connected") .expect("shown again at its own origin"); window_loads(&shell, &address, "/"); - page_says_it_traded(&shell, &address); + // The window is home now: no page there trades a code. + assert!(shell + .ask(&signed_in_page(&address), "plugin:openbot-desktop|window_signed_in") + .is_err()); + std::thread::sleep(Duration::from_millis(300)); assert_eq!(queued(&shell), shown, "nothing counted"); desktop_telemetry::shutdown(shell.handle()); shown.push(EventData::SetupAbandoned { @@ -998,9 +1030,10 @@ fn the_window_shown_anew_drops_a_waiting_trade() { /** OpenBot's page could not trade the window's code (`window_sign_in_failed`, which every page says): -Sign in again comes up at that address with the choice still connected, nothing is counted -`completed`, and setup has not ended, so a quit there is `setup_abandoned`, at the screen the setup -was on, and the next launch says it no more. A page that then says it traded changes nothing. +Sign in again comes up at that address with the choice still connected, Connect from the first +screen is counted `failed` from the press (never `completed`), and setup has not ended, so a quit +there is `setup_abandoned`, at the screen the setup was on, and the next launch says it no more. A +page that then says it traded changes nothing. */ #[test] fn a_window_sign_in_whose_trade_failed_is_abandoned_on_quit() { @@ -1035,6 +1068,9 @@ fn a_window_sign_in_whose_trade_failed_is_abandoned_on_quit() { let kept = choice::read(&shell.config); assert_eq!(kept.connected_to(), Some(address.as_str()), "the choice kept"); assert_eq!(kept.window, None, "the window's sign-in let go"); + if named { + shown.push(failed_last(&shell)); + } // Too late, and off the window's origin now: refused, and nothing counted. assert!(shell .ask(&signed_in_page(&address), "plugin:openbot-desktop|window_signed_in") @@ -1043,8 +1079,8 @@ fn a_window_sign_in_whose_trade_failed_is_abandoned_on_quit() { &shell, &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), ); - // Sign in again is the same screen, said again only after another event (the window's - // `started`): the same screen twice in a row is said once. + // Sign in again is the same screen, said again only after another event (`failed`): the + // same screen twice in a row is said once. if named { shown.push(EventData::StepViewed { step: Step::ConnectOpenbot, @@ -1103,12 +1139,51 @@ fn a_quit_before_the_page_says_it_traded_is_abandoned() { let _ = std::fs::remove_dir_all(&data); } +/** +A crash while OpenBot's page is still trading the window's code: the connection was saved before the +trade, so the next launch finds it and closes the setup session without `setup_abandoned`, as it +did before setup waited for the page (the limit desktop/TELEMETRY.md gives under +`setup_abandoned`). A quit is `setup_abandoned` (`a_quit_before_the_page_says_it_traded_is_abandoned`). +*/ +#[test] +fn a_crash_before_the_page_says_it_traded_is_closed_by_the_next_launch() { + use openbot_desktop_lib::telemetry::{EventData, Step}; + let data = temp_root("openbot-window-crash-before-trade"); + let address = window_stand_in(WindowStand::new(true)); + let shell = window_shell(); + let (_browser, _opened) = approving_browser(); + desktop_telemetry::initialize_for_test(shell.handle(), data.to_path_buf()); + window_says( + &shell, + &serde_json::json!({ "kind": "step_viewed", "step": "connect_openbot" }), + ); + let mut shown = vec![ + EventData::StepViewed { + step: Step::Welcome, + }, + EventData::StepViewed { + step: Step::ConnectOpenbot, + }, + ]; + shown.extend(connect_through_the_window(&shell, &address, true)); + // No quit: the app ends where it is, and the next launch reads what it left. + let next = relaunched(&shell, &data); + shown.push(EventData::StepViewed { + step: Step::Welcome, + }); + assert_eq!(queued(&next), shown); + drop(next); + drop(shell); + let _ = std::fs::remove_dir_all(&data); +} + /** A page from an older OpenBot says only when the trade fails: when it works, it goes on to the page -the sign-in was for (home, for Connect) and says nothing. The window loading that page while the -trade waits ends setup and counts Connect `completed`, as before setup waited for the page: the same -events, and no `setup_abandoned` on quit or at the next launch. The trade's own page loading, or a -load anywhere else, is not it. +the sign-in was for (home, for Connect) and says nothing. The window loading any page of that +OpenBot but the trade's own while the trade waits (here a redirect away from home) ends setup and +counts Connect `completed`, as before setup waited for the page: the same events, and no +`setup_abandoned` on quit or at the next launch. The trade's own page loading is not it, and a +page that says so afterwards (a new page whose word reached the desktop late) counts nothing more. */ #[test] fn an_older_page_that_goes_on_without_saying_ends_setup_as_before() { @@ -1137,13 +1212,20 @@ fn an_older_page_that_goes_on_without_saying_ends_setup_as_before() { &address, openbot_desktop_lib::connected::window::SIGNED_IN_PATH, ); - window_loads(&shell, &address, "/sign"); assert_eq!(queued(&shell), shown, "named {named}: not yet"); - window_loads(&shell, &address, "/"); + window_loads(&shell, &address, "/channel/c_1"); if named { + queued_once(&shell, shown.len() + 1); shown.push(completed_last(&shell)); + } else { + // Nothing to count: setup ends, which the quit below shows. + std::thread::sleep(Duration::from_millis(300)); } assert_eq!(queued(&shell), shown, "named {named}: went on"); + page_says_it_traded(&shell, &address); + window_loads(&shell, &address, "/"); + std::thread::sleep(Duration::from_millis(300)); + assert_eq!(queued(&shell), shown, "named {named}: counted once"); quit_and_relaunch_without_abandonment(shell, &data, shown, &format!("named {named}")); } } @@ -1187,6 +1269,14 @@ fn only_the_windows_own_page_says_it_traded() { }) .count() }; + // Another page on the window's own origin is not the one that trades the code. + let trading = shell.window.url().unwrap(); + shell + .window + .navigate(format!("{address}/settings").parse().unwrap()) + .unwrap(); + assert!(say(&format!("{address}/settings")).is_err(), "another page"); + shell.window.navigate(trading).unwrap(); assert_eq!(completed(&shell), 0); page_says_it_traded(&shell, &address); assert_eq!(completed(&shell), 1); From 2ff5e1a87ec0f1799aece707e8abbdc1503c4c5f Mon Sep 17 00:00:00 2001 From: Alexander Clarke Date: Fri, 4 Dec 2026 09:42:32 +0000 Subject: [PATCH 3/4] Desktop: take an older page's going on as a good trade only once that page has loaded Something in front of an OpenBot (a proxy, a challenge) can send the window elsewhere before the trade's page ever runs: that is not a trade. The window going on now counts only after /desktop/signed-in finished loading or answered. The real-app test gains an older OpenBot's page, which says nothing when the code traded, and checks the app took the window going on as the trade done. TELEMETRY.md says completed's duration now includes the trade. --- desktop/TELEMETRY.md | 2 +- .../src/connected/fake_openbot_tests.rs | 51 ++++++++++++-- .../src/connected/window_e2e_tests.rs | 67 +++++++++++++++++++ desktop/src-tauri/src/desktop_connected.rs | 62 ++++++++++++++--- desktop/src-tauri/src/window_ipc_tests.rs | 34 ++++++---- 5 files changed, 187 insertions(+), 29 deletions(-) diff --git a/desktop/TELEMETRY.md b/desktop/TELEMETRY.md index e4b5e629df..8c444201dc 100644 --- a/desktop/TELEMETRY.md +++ b/desktop/TELEMETRY.md @@ -78,7 +78,7 @@ For `model_chosen`, providers are `openai`, `anthropic`, `google`, `xai`, `cloud `business_opened` is OpenBot for Business's booker coming on screen because it was picked: on the first screen (`welcome`) or in Move to Cloud (`move_to_cloud`), once for each place each time the setup window's page loads (coming back to setup from OpenBot loads it again), however often it is picked again there. `business_booked` is a call booked in its calendar, said by Calendly from its own origin and the calendar's frame. The window sends both, with the place and nothing else: never the time booked or anything typed into the calendar. The calendar's address carries the same place as `utm_content` beside `utm_source=openbot_app` and `utm_medium=in_app`, which Calendly keeps on the booking, so a booking and these events name the same screen. -`openbot_connect` is the first screen's connection to an OpenBot that runs elsewhere, by the screen it was made on: OpenBot Cloud's sign-in (`cloud`) or a company's OpenBot by its address (`connect_openbot`). It counts that screen whenever it shows: on a first setup, and on a later launch that shows it again, such as a saved connection whose sign-in ended (Sign in again) or the choice of where OpenBot runs made again from Settings. Shown again once a connection is kept, its `step_viewed` starts no setup session (see `setup_abandoned`). The window sends `started` when the person presses Sign in, Connect, Try again or Sign in again, then `failed` when the address check or the browser sign-in fails, or `cancelled` when the person presses Cancel. The desktop itself sends `failed` when OpenBot's page could not trade the window's code, since the window has gone to that page by then. The desktop itself sends `completed` once signed in and the window has gone to that OpenBot: through the relay, once that OpenBot is shown; through the window's own sign-in, once OpenBot's page says it traded the window's code (with a page from an older OpenBot, which does not say so, once the window goes on from that page to the app), so after the trade, and never for a trade that failed. Releases before this rule counted it when the window went to that page, before the trade, so a trade that then failed was still `completed`: compare from before and after by `openbot_version`. Each ending has `duration_ms` from the press, and the outcomes are `sign_in`'s. A Cancel pressed just as the sign-in completes can give `cancelled` and then `completed` for one go: it did connect. `completed` also ends the setup session, as `activated` does for OpenBot on this computer, so a quit afterwards is not `setup_abandoned`; it is not `activated`, since nothing started here. Move to Cloud signs in its own way and never sends it. Opening a connection again with the sign-in this computer already has sends nothing, and a sign-in left behind when the screen goes says nothing when it ends. Never the address, its host or the sentence about what went wrong. It is not `sign_in`, which stays the Account step's CopilotKit sign-in. +`openbot_connect` is the first screen's connection to an OpenBot that runs elsewhere, by the screen it was made on: OpenBot Cloud's sign-in (`cloud`) or a company's OpenBot by its address (`connect_openbot`). It counts that screen whenever it shows: on a first setup, and on a later launch that shows it again, such as a saved connection whose sign-in ended (Sign in again) or the choice of where OpenBot runs made again from Settings. Shown again once a connection is kept, its `step_viewed` starts no setup session (see `setup_abandoned`). The window sends `started` when the person presses Sign in, Connect, Try again or Sign in again, then `failed` when the address check or the browser sign-in fails, or `cancelled` when the person presses Cancel. The desktop itself sends `failed` when OpenBot's page could not trade the window's code, since the window has gone to that page by then. The desktop itself sends `completed` once signed in and the window has gone to that OpenBot: through the relay, once that OpenBot is shown; through the window's own sign-in, once OpenBot's page says it traded the window's code (with a page from an older OpenBot, which does not say so, once the window goes on from that page to the app), so after the trade, and never for a trade that failed. Its `duration_ms` then includes the trade. Releases before this rule counted it when the window went to that page, before the trade, so a trade that then failed was still `completed` and its `duration_ms` left the trade out: compare counts and durations from before and after by `openbot_version`. Each ending has `duration_ms` from the press, and the outcomes are `sign_in`'s. A Cancel pressed just as the sign-in completes can give `cancelled` and then `completed` for one go: it did connect. `completed` also ends the setup session, as `activated` does for OpenBot on this computer, so a quit afterwards is not `setup_abandoned`; it is not `activated`, since nothing started here. Move to Cloud signs in its own way and never sends it. Opening a connection again with the sign-in this computer already has sends nothing, and a sign-in left behind when the screen goes says nothing when it ends. Never the address, its host or the sentence about what went wrong. It is not `sign_in`, which stays the Account step's CopilotKit sign-in. `engine_measured` is what the Account step's check measured of the engine local setup runs on, too small or not: `resources` as `setup_failed` carries it for an engine too small, CPUs in thousandths and memory and free disk in MiB, against what setup needs. Sent by the desktop itself, never by the window, once a launch and again only when the engine's CPUs or memory change (a Podman machine made bigger). Free disk is sent with them, but a change in it alone, as the downloads fill the disk, sends nothing new. Every install that goes through the Account step runs that check, so each one whose engine answers it sends one; an engine not known yet, or one that does not answer, is not measured and sends nothing, and neither does a reinstall that goes straight to Install. Nothing is kept while usage data is off, so turning it on again in the same launch still sends the size. OpenBot Cloud and a company's OpenBot run nothing on this computer, so a connection never sends it. Never the engine's name, a drive, a path or a hostname. diff --git a/desktop/src-tauri/src/connected/fake_openbot_tests.rs b/desktop/src-tauri/src/connected/fake_openbot_tests.rs index 4bf2886407..f250312ac0 100644 --- a/desktop/src-tauri/src/connected/fake_openbot_tests.rs +++ b/desktop/src-tauri/src/connected/fake_openbot_tests.rs @@ -211,6 +211,9 @@ struct State { sessions: HashSet, /// Every window session ever made, in order. sessions_made: Vec, + /// Whether `/desktop/signed-in` is the page from an older OpenBot, which says nothing to the + /// desktop when the code traded (`serve_older_signed_in_page`). + older_signed_in_page: bool, /// Redemptions, in order: the `Origin` each came with and the status it got. redeemed: Vec<(Option, u16)>, /// Sign-outs of a window session, in order: the session each ended, if it was one. @@ -271,6 +274,31 @@ const SIGNED_IN_PAGE: &str = r#"Open })(); </script>"#; +/// The same page as an older OpenBot serves it (from 1.2.8): on to `next` once the code traded, +/// telling the desktop nothing, or, refused, the desktop told why. +const OLDER_SIGNED_IN_PAGE: &str = r#"<!doctype html><meta charset="utf-8"><title>OpenBot +"#; + /// The window's home page signed in: it says so, and quits the app a moment later through the /// page's own Quit, so a test of the real app can launch it again. Signed out, it says that. const HOME_SIGNED_IN: &str = r#"OpenBot @@ -596,6 +624,12 @@ impl FakeOpenBot { self.state.lock().unwrap().redeemed.clone() } + /// From now on `/desktop/signed-in` is the page an older OpenBot serves: it tells the desktop + /// when the trade fails, and nothing when it works. + pub fn serve_older_signed_in_page(&self) { + self.state.lock().unwrap().older_signed_in_page = true; + } + /// Every window session made, in order, by its cookie's value. pub fn sessions_made(&self) -> Vec { self.state.lock().unwrap().sessions_made.clone() @@ -1062,11 +1096,18 @@ async fn answer( // so a test sees it do so. json(StatusCode::OK, serde_json::json!({ "success": true })) } - ("GET", super::window::SIGNED_IN_PATH) if shape == Shape::Window => Response::builder() - .header("content-type", "text/html; charset=utf-8") - .header("cache-control", "no-store") - .body(full(SIGNED_IN_PAGE)) - .unwrap(), + ("GET", super::window::SIGNED_IN_PATH) if shape == Shape::Window => { + let page = if state.lock().unwrap().older_signed_in_page { + OLDER_SIGNED_IN_PAGE + } else { + SIGNED_IN_PAGE + }; + Response::builder() + .header("content-type", "text/html; charset=utf-8") + .header("cache-control", "no-store") + .body(full(page)) + .unwrap() + } ("GET", "/") if shape == Shape::Window => { let (sign_out, download) = { let mut state = state.lock().unwrap(); diff --git a/desktop/src-tauri/src/connected/window_e2e_tests.rs b/desktop/src-tauri/src/connected/window_e2e_tests.rs index 6bb4adc1ac..75fedf9057 100644 --- a/desktop/src-tauri/src/connected/window_e2e_tests.rs +++ b/desktop/src-tauri/src/connected/window_e2e_tests.rs @@ -330,6 +330,73 @@ handles (wry's `navigation_policy`), so the file never reached the disk and the Here the stand-in's home page hands its file over exactly as the web app does, on the window's own origin with the window's session cookie, and reports what the desktop said (`openbot:download`). */ +/** +The real app against an older OpenBot's `/desktop/signed-in`, which tells the app nothing when the +code traded and goes on home: the app takes the window going on as the trade done, through the +webview's own page-load events, and setup ends with the connection (its log says so), as it did +before the page said. +*/ +#[test] +#[ignore = "drives the real app: set OPENBOT_E2E_APP to a debug build of it"] +fn window_e2e_an_older_openbots_page_that_says_nothing_still_ends_the_trade() { + let _alone = one_at_a_time(); + let app = PathBuf::from( + std::env::var("OPENBOT_E2E_APP").expect("OPENBOT_E2E_APP names a debug build of the app"), + ); + let app = std::fs::canonicalize(&app).unwrap_or(app); + let logs = std::env::var_os("OPENBOT_E2E_LOGS") + .map(PathBuf::from) + .unwrap_or_else(std::env::temp_dir); + std::fs::create_dir_all(&logs).unwrap(); + let openbot = FakeOpenBot::start(Shape::Window); + openbot.serve_older_signed_in_page(); + let home = std::env::temp_dir().join(format!( + "openbot-window-older-page-e2e-{}", + std::process::id() + )); + std::fs::create_dir_all(&home).unwrap(); + let launch = Launch { + app, + browser: home.join("browser.txt"), + home: home.clone(), + project: format!("window-older-page-e2e-{}", std::process::id()), + address: openbot.address(), + }; + + let log = logs.join("window-older-page-e2e.log"); + let mut first = launch.start(&log); + let deadline = Instant::now() + LAUNCH; + let asked = loop { + if let Some(asked) = launch.opened().first().cloned() { + break asked; + } + if Instant::now() >= deadline || first.try_wait().unwrap().is_some() { + let _ = first.kill(); + panic!( + "the app never opened the browser\n{}", + std::fs::read_to_string(&log).unwrap_or_default() + ); + } + std::thread::sleep(Duration::from_millis(200)); + }; + FakeOpenBot::browse_at(&asked, "approve"); + ended(&mut first, &log, "older page"); + let made = openbot.sessions_made(); + assert_eq!(made.len(), 1, "one session, from the one code"); + assert_eq!( + openbot.homes().last(), + Some(&Some(made[0].clone())), + "the window reached home signed in" + ); + let said = std::fs::read_to_string(&log).unwrap_or_default(); + assert!( + said.contains(": its page went on without saying so") + && !said.contains(": its page said so"), + "the window going on was not taken as the trade done\n{said}" + ); + let _ = std::fs::remove_dir_all(&home); +} + #[test] #[ignore = "drives the real app: set OPENBOT_E2E_APP to a debug build of it"] fn window_e2e_a_file_the_page_downloads_is_saved_and_the_page_told_where() { diff --git a/desktop/src-tauri/src/desktop_connected.rs b/desktop/src-tauri/src/desktop_connected.rs index 6cd8e85c51..0a2d98aa5d 100644 --- a/desktop/src-tauri/src/desktop_connected.rs +++ b/desktop/src-tauri/src/desktop_connected.rs @@ -105,6 +105,9 @@ before then is `setup_abandoned`. A trade the page says failed is counted `faile struct Trade { /// The window's origin, where the page that may say so is. origin: String, + /// Whether that page has loaded (`trade_page_loaded`): only then can a page from an older + /// OpenBot have traded the code and gone on (`older_page_traded`). + loaded: bool, /// Connect from the first screen, to count for. None for any other sign-in. counted: Option, } @@ -1117,7 +1120,13 @@ pub fn watch_window_load( if window_origin(app).as_deref() != Some(url.origin().ascii_serialization().as_str()) { return; } - older_page_traded(app, url); + if url.path() == window::SIGNED_IN_PATH { + if finished { + trade_page_loaded(app, url); + } + } else { + older_page_traded(app, url); + } let load = { let shell = state(app); let mut loads = shell.connected.loads.lock().unwrap(); @@ -1178,6 +1187,9 @@ pub fn page_alive(app: &tauri::AppHandle, url: &tauri::Url if window_origin(app).as_deref() != Some(url.origin().ascii_serialization().as_str()) { return; } + if url.path() == window::SIGNED_IN_PATH { + trade_page_loaded(app, url); + } { let shell = state(app); let mut loads = shell.connected.loads.lock().unwrap(); @@ -1383,6 +1395,7 @@ fn connect_window_now( log::info!("[connect] the window signs in at {host}"); let trade = Trade { origin: window.origin.clone(), + loaded: false, counted, }; show_window_at( @@ -1417,15 +1430,42 @@ fn trade_done(app: &tauri::AppHandle, trade: Trade, why: & /// The trade waiting at `origin`, taken: whatever says how it went says it once. fn take_trade(app: &tauri::AppHandle, origin: &str) -> Option { + take_trade_if(app, origin, |_| true) +} + +/// The trade waiting at `origin`, taken when `ready` says so. +fn take_trade_if( + app: &tauri::AppHandle, + origin: &str, + ready: impl FnOnce(&Trade) -> bool, +) -> Option { let shell = state(app); let mut waiting = shell.connected.trade.lock().unwrap(); - if waiting.as_ref().is_some_and(|trade| trade.origin == origin) { + if waiting + .as_ref() + .is_some_and(|trade| trade.origin == origin && ready(trade)) + { waiting.take() } else { None } } +/// The page that trades the code loaded at `url` (a finished load there, or the page answering). +fn trade_page_loaded(app: &tauri::AppHandle, url: &tauri::Url) { + let origin = url.origin().ascii_serialization(); + if let Some(trade) = state(app) + .connected + .trade + .lock() + .unwrap() + .as_mut() + .filter(|trade| trade.origin == origin) + { + trade.loaded = true; + } +} + /** OpenBot's page at `/desktop/signed-in` traded the code for the window's session (`window_signed_in`), asked from `from`, that page on the window's origin. Setup ends, and Connect @@ -1453,17 +1493,17 @@ pub fn window_signed_in_now( /** A page from an older OpenBot says only when the trade fails, and it leaves the trade's page only -once the trade worked, for the page the sign-in was for (`location.replace`). So a load of `url` on -the window's origin anywhere but that page, while the trade waits, is the trade done, as before -setup waited for the page (`trade_done`): whatever path that page went on to, and wherever a -redirect took it. A failure was said first, and took the trade with it; a window shown anew -(`show_window_at`) drops it. Counted on a thread of its own, off the webview's page-load handler. +once the trade worked, for the page the sign-in was for (`location.replace`). So once that page has +loaded, a load of `url` on the window's origin anywhere but that page, while the trade waits, is +the trade done, as before setup waited for the page (`trade_done`): whatever path that page went on +to, and wherever a redirect took it from there. A load elsewhere before that page loaded (something +in front of OpenBot sending the window away first) is not: no page has traded anything. A failure +was said first, and took the trade with it; a window shown anew (`show_window_at`) drops it. +Counted on a thread of its own, off the webview's page-load handler. */ fn older_page_traded(app: &tauri::AppHandle, url: &tauri::Url) { - if url.path() == window::SIGNED_IN_PATH { - return; - } - let Some(trade) = take_trade(app, &url.origin().ascii_serialization()) else { + let origin = url.origin().ascii_serialization(); + let Some(trade) = take_trade_if(app, &origin, |trade| trade.loaded) else { return; }; let app = app.clone(); diff --git a/desktop/src-tauri/src/window_ipc_tests.rs b/desktop/src-tauri/src/window_ipc_tests.rs index 4171c3d593..72050bd2c4 100644 --- a/desktop/src-tauri/src/window_ipc_tests.rs +++ b/desktop/src-tauri/src/window_ipc_tests.rs @@ -754,13 +754,19 @@ fn page_says_it_traded(shell: &Connected, address: &str) { ); } -/// The window loads `path` on the OpenBot at `address`, as the webview reports each page load -/// (`on_page_load`, through `watch_window_load`). +/// The window starts loading `path` on the OpenBot at `address`, as the webview reports each page +/// load (`on_page_load`, through `watch_window_load`). fn window_loads(shell: &Connected, address: &str, path: &str) { let url: tauri::Url = format!("{address}{path}").parse().unwrap(); desktop_connected::watch_window_load(shell.handle(), &url, false); } +/// The window's load of `path` on the OpenBot at `address` finished, as the webview reports it. +fn window_loaded(shell: &Connected, address: &str, path: &str) { + let url: tauri::Url = format!("{address}{path}").parse().unwrap(); + desktop_connected::watch_window_load(shell.handle(), &url, true); +} + /** Connect pressed on the first screen, at an OpenBot that signs the window in itself, as the window asks it: when `named`, after its own `started` and with the screen and its wait; otherwise with the @@ -1179,11 +1185,13 @@ fn a_crash_before_the_page_says_it_traded_is_closed_by_the_next_launch() { /** A page from an older OpenBot says only when the trade fails: when it works, it goes on to the page -the sign-in was for (home, for Connect) and says nothing. The window loading any page of that -OpenBot but the trade's own while the trade waits (here a redirect away from home) ends setup and -counts Connect `completed`, as before setup waited for the page: the same events, and no -`setup_abandoned` on quit or at the next launch. The trade's own page loading is not it, and a -page that says so afterwards (a new page whose word reached the desktop late) counts nothing more. +the sign-in was for (home, for Connect) and says nothing. Once the trade's page has loaded, the +window loading any page of that OpenBot but that one while the trade waits (here a redirect away +from home) ends setup and counts Connect `completed`, the same events as before setup waited for +the page, and no `setup_abandoned` on quit or at the next launch. A load elsewhere before the +trade's page loaded (something in front of OpenBot sending the window away first) is not it, nor +is the trade's page starting to load, and a page that says so afterwards (a new page whose word +reached the desktop late) counts nothing more. */ #[test] fn an_older_page_that_goes_on_without_saying_ends_setup_as_before() { @@ -1207,11 +1215,13 @@ fn an_older_page_that_goes_on_without_saying_ends_setup_as_before() { }, ]; shown.extend(connect_through_the_window(&shell, &address, named)); - window_loads( - &shell, - &address, - openbot_desktop_lib::connected::window::SIGNED_IN_PATH, - ); + let page = openbot_desktop_lib::connected::window::SIGNED_IN_PATH; + window_loads(&shell, &address, page); + window_loads(&shell, &address, "/cdn-cgi/challenge-platform/check"); + std::thread::sleep(Duration::from_millis(300)); + assert_eq!(queued(&shell), shown, "named {named}: not before its page loaded"); + window_loads(&shell, &address, page); + window_loaded(&shell, &address, page); assert_eq!(queued(&shell), shown, "named {named}: not yet"); window_loads(&shell, &address, "/channel/c_1"); if named { From 82a5c4ed89a150d0a731226fd9dc67bb9cbc35e2 Mon Sep 17 00:00:00 2001 From: Alexander Clarke Date: Fri, 4 Dec 2026 10:01:39 +0000 Subject: [PATCH 4/4] Desktop tests: the re-shown window and the older page each reach the guard they test --- desktop/src-tauri/src/window_ipc_tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/src-tauri/src/window_ipc_tests.rs b/desktop/src-tauri/src/window_ipc_tests.rs index 72050bd2c4..8d37764e29 100644 --- a/desktop/src-tauri/src/window_ipc_tests.rs +++ b/desktop/src-tauri/src/window_ipc_tests.rs @@ -1015,6 +1015,12 @@ fn the_window_shown_anew_drops_a_waiting_trade() { }, ]; shown.extend(connect_through_the_window(&shell, &address, true)); + // The trade's page loaded, so a load elsewhere would count, were the trade still waiting. + window_loaded( + &shell, + &address, + openbot_desktop_lib::connected::window::SIGNED_IN_PATH, + ); shell .ask(SETUP, "show_connected") .expect("shown again at its own origin"); @@ -1222,6 +1228,7 @@ fn an_older_page_that_goes_on_without_saying_ends_setup_as_before() { assert_eq!(queued(&shell), shown, "named {named}: not before its page loaded"); window_loads(&shell, &address, page); window_loaded(&shell, &address, page); + std::thread::sleep(Duration::from_millis(300)); assert_eq!(queued(&shell), shown, "named {named}: not yet"); window_loads(&shell, &address, "/channel/c_1"); if named {