The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(watchers): scheduled tasks the AI runs by itself, also with the window closed
purplec8008faa0699
diff --git a/dev-server/remote-stubs.ts b/dev-server/remote-stubs.tsindex 2212d1ae..cac38217 100644--- a/dev-server/remote-stubs.ts+++ b/dev-server/remote-stubs.ts@@ -95,7 +95,11 @@ export function registerRemoteStubs(routes: RouteMount): void {// multipart request as well.// The chat's workflow tools (C60-S5): the fetch with its host allowlist and// the node pack install by key are Rust; the tools say so before calling.+ // Watchers: the clock, the list and the notification live in Rust.for (const path of [+ '/local-api/watchers-list', '/local-api/watchers-create', '/local-api/watchers-update', '/local-api/watchers-delete',+ '/local-api/watchers-run-now', '/local-api/watchers-finished', '/local-api/watchers-runner-ready',+ '/local-api/watchers-dismiss-hint', '/local-api/watchers-notify','/local-api/workflow-fetch', '/local-api/install-lu-node-pack','/local-api/local-api-usage', '/local-api/set-download-limit', '/local-api/character-photos', '/local-api/pick-gguf-file','/local-api/list-custom-nodes', '/local-api/remove-custom-node', '/local-api/custom-node-log',diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex 97c6a91f..d224c775 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -3181,6 +3181,7 @@ dependencies = ["tauri-plugin-deep-link","tauri-plugin-global-shortcut","tauri-plugin-lu-native",+ "tauri-plugin-notification","tauri-plugin-shell","tauri-plugin-single-instance","tauri-plugin-updater",@@ -3241,6 +3242,20 @@ version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"+[[package]]+name = "mac-notification-sys"+version = "0.6.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fd604973958ddcc11b561193c0fb96ba146506ef2f231ef2e7c35fd2cbc9beca"+dependencies = [+ "cc",+ "log",+ "objc2",+ "objc2-foundation",+ "time",+ "uuid",+]+[[package]]name = "markup5ever"version = "0.14.1"@@ -3509,6 +3524,20 @@ dependencies = ["memchr",]+[[package]]+name = "notify-rust"+version = "4.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4587364a9a0074333429b3df75a30a205340c56a536ca3eb6ca0e59b87bbf8af"+dependencies = [+ "futures-lite",+ "log",+ "mac-notification-sys",+ "serde",+ "tauri-winrt-notification",+ "zbus",+]+[[package]]name = "ntapi"version = "0.4.3"@@ -6251,6 +6280,25 @@ dependencies = ["uuid",]+[[package]]+name = "tauri-plugin-notification"+version = "2.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ad2fd40946aef810c4be9fd33a2d1b9b397cb79042b2d21c81a0a8f204354fd1"+dependencies = [+ "log",+ "notify-rust",+ "rand 0.9.5",+ "serde",+ "serde_json",+ "serde_repr",+ "tauri",+ "tauri-plugin",+ "thiserror 2.0.18",+ "time",+ "url",+]+[[package]]name = "tauri-plugin-shell"version = "2.3.5"@@ -6421,6 +6469,17 @@ dependencies = ["toml 0.9.12+spec-1.1.0",]+[[package]]+name = "tauri-winrt-notification"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f37a6c354fd28fc9e322ed9bd47e3959576dad28c9d58ea1cf888cce1c7ccb36"+dependencies = [+ "thiserror 2.0.18",+ "windows 0.62.2",+ "windows-version",+]+[[package]]name = "tempfile"version = "3.27.0"diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex d566fda7..c0441f68 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -207,6 +207,12 @@ enigo = { version = "0.6", default-features = false, features = ["x11rb"] }# The global stop shortcut of computer use (MIT OR Apache-2.0). Held below 2.4# on purpose: 2.4 asks for tauri 2.12 and would move the whole app with it.tauri-plugin-global-shortcut = ">=2.3, <2.4"+# Watchers (watchers.rs): a notification of the system when a watcher ran,+# also with the window in the tray. tauri-apps/plugins-workspace, MIT OR+# Apache-2.0, crates.io since 05/2023. Pinned: 2.4.0 (31.08.2026) is the+# newest that asks for tauri 2.10 and not 2.12, like the shortcut above. Only+# Rust calls it; the page gets no permission for it.+tauri-plugin-notification = "=2.4.0"# ── Android and iOS ──────────────────────────────────────────────────────────[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]diff --git a/src-tauri/gen/schemas/acl-manifests.json b/src-tauri/gen/schemas/acl-manifests.jsonindex 17426d8c..a5935c7c 100644--- a/src-tauri/gen/schemas/acl-manifests.json+++ b/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"]},"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-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-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-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-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-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-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-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-internal-toggle-maximize"]},"permissions":{"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-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-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-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-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-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},"global-shortcut":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n","permissions":[]},"permissions":{"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-register-all":{"identifier":"allow-register-all","description":"Enables the register_all command without any pre-configured scope.","commands":{"allow":["register_all"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"allow-unregister-all":{"identifier":"allow-unregister-all","description":"Enables the unregister_all command without any pre-configured scope.","commands":{"allow":["unregister_all"],"deny":[]}},"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-register-all":{"identifier":"deny-register-all","description":"Denies the register_all command without any pre-configured scope.","commands":{"allow":[],"deny":["register_all"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}},"deny-unregister-all":{"identifier":"deny-unregister-all","description":"Denies the unregister_all command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister_all"]}}},"permission_sets":{},"global_scope_schema":null},"lu-native":{"default_permission":{"identifier":"default","description":"Everything the phone shell needs from the native layer. `simulate-memory-warning` is listed although the command only acts in a build with the cargo feature `abnahme`; without the feature it answers with an error.","permissions":["allow-share-file","allow-save-to-photos","allow-save-to-files","allow-write-temp-file","allow-download-to-temp","allow-delete-temp-file","allow-device-info","allow-simulate-memory-warning","allow-begin-background-task","allow-end-background-task","allow-back-arm","allow-back-ack","allow-back-exit","allow-pending-deep-link","allow-haptic","allow-open-external","allow-scan-qr","allow-open-system-settings","allow-set-system-bars","allow-remote-client-request","allow-remote-client-cancel","allow-bg-download-start","allow-bg-download-pause","allow-bg-download-resume","allow-bg-download-cancel","allow-bg-download-forget","allow-bg-download-list","allow-bg-download-network-rule","allow-bg-download-allow-metered","allow-connection-info","allow-request-notification-permission","allow-tts-voices","allow-tts-speak","allow-tts-stop","allow-import-model-document","allow-import-model-cancel","allow-bg-download-limit","allow-transcode-image","allow-clipboard-read-text","allow-clipboard-write-text","allow-local-notify","allow-remote-watch","allow-remote-notify-permission","allow-apple-sign-in","allow-web-auth","allow-pick-documents","allow-read-temp-file","allow-iap-products","allow-iap-purchase","allow-iap-finish","allow-iap-unfinished"]},"permissions":{"allow-apple-sign-in":{"identifier":"allow-apple-sign-in","description":"Enables the apple_sign_in command without any pre-configured scope.","commands":{"allow":["apple_sign_in"],"deny":[]}},"allow-back-ack":{"identifier":"allow-back-ack","description":"Enables the back_ack command without any pre-configured scope.","commands":{"allow":["back_ack"],"deny":[]}},"allow-back-arm":{"identifier":"allow-back-arm","description":"Enables the back_arm command without any pre-configured scope.","commands":{"allow":["back_arm"],"deny":[]}},"allow-back-exit":{"identifier":"allow-back-exit","description":"Enables the back_exit command without any pre-configured scope.","commands":{"allow":["back_exit"],"deny":[]}},"allow-begin-background-task":{"identifier":"allow-begin-background-task","description":"Enables the begin_background_task command without any pre-configured scope.","commands":{"allow":["begin_background_task"],"deny":[]}},"allow-bg-download-allow-metered":{"identifier":"allow-bg-download-allow-metered","description":"Enables the bg_download_allow_metered command without any pre-configured scope.","commands":{"allow":["bg_download_allow_metered"],"deny":[]}},"allow-bg-download-cancel":{"identifier":"allow-bg-download-cancel","description":"Enables the bg_download_cancel command without any pre-configured scope.","commands":{"allow":["bg_download_cancel"],"deny":[]}},"allow-bg-download-forget":{"identifier":"allow-bg-download-forget","description":"Enables the bg_download_forget command without any pre-configured scope.","commands":{"allow":["bg_download_forget"],"deny":[]}},"allow-bg-download-limit":{"identifier":"allow-bg-download-limit","description":"Enables the bg_download_limit command without any pre-configured scope.","commands":{"allow":["bg_download_limit"],"deny":[]}},"allow-bg-download-list":{"identifier":"allow-bg-download-list","description":"Enables the bg_download_list command without any pre-configured scope.","commands":{"allow":["bg_download_list"],"deny":[]}},"allow-bg-download-network-rule":{"identifier":"allow-bg-download-network-rule","description":"Enables the bg_download_network_rule command without any pre-configured scope.","commands":{"allow":["bg_download_network_rule"],"deny":[]}},"allow-bg-download-pause":{"identifier":"allow-bg-download-pause","description":"Enables the bg_download_pause command without any pre-configured scope.","commands":{"allow":["bg_download_pause"],"deny":[]}},"allow-bg-download-resume":{"identifier":"allow-bg-download-resume","description":"Enables the bg_download_resume command without any pre-configured scope.","commands":{"allow":["bg_download_resume"],"deny":[]}},"allow-bg-download-start":{"identifier":"allow-bg-download-start","description":"Enables the bg_download_start command without any pre-configured scope.","commands":{"allow":["bg_download_start"],"deny":[]}},"allow-clipboard-read-text":{"identifier":"allow-clipboard-read-text","description":"Enables the clipboard_read_text command without any pre-configured scope.","commands":{"allow":["clipboard_read_text"],"deny":[]}},"allow-clipboard-write-text":{"identifier":"allow-clipboard-write-text","description":"Enables the clipboard_write_text command without any pre-configured scope.","commands":{"allow":["clipboard_write_text"],"deny":[]}},"allow-connection-info":{"identifier":"allow-connection-info","description":"Enables the connection_info command without any pre-configured scope.","commands":{"allow":["connection_info"],"deny":[]}},"allow-delete-temp-file":{"identifier":"allow-delete-temp-file","description":"Enables the delete_temp_file command without any pre-configured scope.","commands":{"allow":["delete_temp_file"],"deny":[]}},"allow-device-info":{"identifier":"allow-device-info","description":"Enables the device_info command without any pre-configured scope.","commands":{"allow":["device_info"],"deny":[]}},"allow-download-to-temp":{"identifier":"allow-download-to-temp","description":"Enables the download_to_temp command without any pre-configured scope.","commands":{"allow":["download_to_temp"],"deny":[]}},"allow-end-background-task":{"identifier":"allow-end-background-task","description":"Enables the end_background_task command without any pre-configured scope.","commands":{"allow":["end_background_task"],"deny":[]}},"allow-haptic":{"identifier":"allow-haptic","description":"Enables the haptic command without any pre-configured scope.","commands":{"allow":["haptic"],"deny":[]}},"allow-iap-finish":{"identifier":"allow-iap-finish","description":"Enables the iap_finish command without any pre-configured scope.","commands":{"allow":["iap_finish"],"deny":[]}},"allow-iap-products":{"identifier":"allow-iap-products","description":"Enables the iap_products command without any pre-configured scope.","commands":{"allow":["iap_products"],"deny":[]}},"allow-iap-purchase":{"identifier":"allow-iap-purchase","description":"Enables the iap_purchase command without any pre-configured scope.","commands":{"allow":["iap_purchase"],"deny":[]}},"allow-iap-unfinished":{"identifier":"allow-iap-unfinished","description":"Enables the iap_unfinished command without any pre-configured scope.","commands":{"allow":["iap_unfinished"],"deny":[]}},"allow-import-model-cancel":{"identifier":"allow-import-model-cancel","description":"Enables the import_model_cancel command without any pre-configured scope.","commands":{"allow":["import_model_cancel"],"deny":[]}},"allow-import-model-document":{"identifier":"allow-import-model-document","description":"Enables the import_model_document command without any pre-configured scope.","commands":{"allow":["import_model_document"],"deny":[]}},"allow-local-notify":{"identifier":"allow-local-notify","description":"Enables the local_notify command without any pre-configured scope.","commands":{"allow":["local_notify"],"deny":[]}},"allow-open-external":{"identifier":"allow-open-external","description":"Enables the open_external command without any pre-configured scope.","commands":{"allow":["open_external"],"deny":[]}},"allow-open-system-settings":{"identifier":"allow-open-system-settings","description":"Enables the open_system_settings command without any pre-configured scope.","commands":{"allow":["open_system_settings"],"deny":[]}},"allow-pending-deep-link":{"identifier":"allow-pending-deep-link","description":"Enables the pending_deep_link command without any pre-configured scope.","commands":{"allow":["pending_deep_link"],"deny":[]}},"allow-pick-documents":{"identifier":"allow-pick-documents","description":"Enables the pick_documents command without any pre-configured scope.","commands":{"allow":["pick_documents"],"deny":[]}},"allow-read-temp-file":{"identifier":"allow-read-temp-file","description":"Enables the read_temp_file command without any pre-configured scope.","commands":{"allow":["read_temp_file"],"deny":[]}},"allow-remote-client-cancel":{"identifier":"allow-remote-client-cancel","description":"Enables the remote_client_cancel command without any pre-configured scope.","commands":{"allow":["remote_client_cancel"],"deny":[]}},"allow-remote-client-request":{"identifier":"allow-remote-client-request","description":"Enables the remote_client_request command without any pre-configured scope.","commands":{"allow":["remote_client_request"],"deny":[]}},"allow-remote-notify-permission":{"identifier":"allow-remote-notify-permission","description":"Enables the remote_notify_permission command without any pre-configured scope.","commands":{"allow":["remote_notify_permission"],"deny":[]}},"allow-remote-watch":{"identifier":"allow-remote-watch","description":"Enables the remote_watch command without any pre-configured scope.","commands":{"allow":["remote_watch"],"deny":[]}},"allow-request-notification-permission":{"identifier":"allow-request-notification-permission","description":"Enables the request_notification_permission command without any pre-configured scope.","commands":{"allow":["request_notification_permission"],"deny":[]}},"allow-save-to-files":{"identifier":"allow-save-to-files","description":"Enables the save_to_files command without any pre-configured scope.","commands":{"allow":["save_to_files"],"deny":[]}},"allow-save-to-photos":{"identifier":"allow-save-to-photos","description":"Enables the save_to_photos command without any pre-configured scope.","commands":{"allow":["save_to_photos"],"deny":[]}},"allow-scan-qr":{"identifier":"allow-scan-qr","description":"Enables the scan_qr command without any pre-configured scope.","commands":{"allow":["scan_qr"],"deny":[]}},"allow-set-system-bars":{"identifier":"allow-set-system-bars","description":"Enables the set_system_bars command without any pre-configured scope.","commands":{"allow":["set_system_bars"],"deny":[]}},"allow-share-file":{"identifier":"allow-share-file","description":"Enables the share_file command without any pre-configured scope.","commands":{"allow":["share_file"],"deny":[]}},"allow-simulate-memory-warning":{"identifier":"allow-simulate-memory-warning","description":"Enables the simulate_memory_warning command without any pre-configured scope.","commands":{"allow":["simulate_memory_warning"],"deny":[]}},"allow-transcode-image":{"identifier":"allow-transcode-image","description":"Enables the transcode_image command without any pre-configured scope.","commands":{"allow":["transcode_image"],"deny":[]}},"allow-tts-speak":{"identifier":"allow-tts-speak","description":"Enables the tts_speak command without any pre-configured scope.","commands":{"allow":["tts_speak"],"deny":[]}},"allow-tts-stop":{"identifier":"allow-tts-stop","description":"Enables the tts_stop command without any pre-configured scope.","commands":{"allow":["tts_stop"],"deny":[]}},"allow-tts-voices":{"identifier":"allow-tts-voices","description":"Enables the tts_voices command without any pre-configured scope.","commands":{"allow":["tts_voices"],"deny":[]}},"allow-web-auth":{"identifier":"allow-web-auth","description":"Enables the web_auth command without any pre-configured scope.","commands":{"allow":["web_auth"],"deny":[]}},"allow-write-temp-file":{"identifier":"allow-write-temp-file","description":"Enables the write_temp_file command without any pre-configured scope.","commands":{"allow":["write_temp_file"],"deny":[]}},"deny-apple-sign-in":{"identifier":"deny-apple-sign-in","description":"Denies the apple_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["apple_sign_in"]}},"deny-back-ack":{"identifier":"deny-back-ack","description":"Denies the back_ack command without any pre-configured scope.","commands":{"allow":[],"deny":["back_ack"]}},"deny-back-arm":{"identifier":"deny-back-arm","description":"Denies the back_arm command without any pre-configured scope.","commands":{"allow":[],"deny":["back_arm"]}},"deny-back-exit":{"identifier":"deny-back-exit","description":"Denies the back_exit command without any pre-configured scope.","commands":{"allow":[],"deny":["back_exit"]}},"deny-begin-background-task":{"identifier":"deny-begin-background-task","description":"Denies the begin_background_task command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_background_task"]}},"deny-bg-download-allow-metered":{"identifier":"deny-bg-download-allow-metered","description":"Denies the bg_download_allow_metered command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_allow_metered"]}},"deny-bg-download-cancel":{"identifier":"deny-bg-download-cancel","description":"Denies the bg_download_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_cancel"]}},"deny-bg-download-forget":{"identifier":"deny-bg-download-forget","description":"Denies the bg_download_forget command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_forget"]}},"deny-bg-download-limit":{"identifier":"deny-bg-download-limit","description":"Denies the bg_download_limit command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_limit"]}},"deny-bg-download-list":{"identifier":"deny-bg-download-list","description":"Denies the bg_download_list command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_list"]}},"deny-bg-download-network-rule":{"identifier":"deny-bg-download-network-rule","description":"Denies the bg_download_network_rule command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_network_rule"]}},"deny-bg-download-pause":{"identifier":"deny-bg-download-pause","description":"Denies the bg_download_pause command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_pause"]}},"deny-bg-download-resume":{"identifier":"deny-bg-download-resume","description":"Denies the bg_download_resume command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_resume"]}},"deny-bg-download-start":{"identifier":"deny-bg-download-start","description":"Denies the bg_download_start command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_start"]}},"deny-clipboard-read-text":{"identifier":"deny-clipboard-read-text","description":"Denies the clipboard_read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["clipboard_read_text"]}},"deny-clipboard-write-text":{"identifier":"deny-clipboard-write-text","description":"Denies the clipboard_write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["clipboard_write_text"]}},"deny-connection-info":{"identifier":"deny-connection-info","description":"Denies the connection_info command without any pre-configured scope.","commands":{"allow":[],"deny":["connection_info"]}},"deny-delete-temp-file":{"identifier":"deny-delete-temp-file","description":"Denies the delete_temp_file command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_temp_file"]}},"deny-device-info":{"identifier":"deny-device-info","description":"Denies the device_info command without any pre-configured scope.","commands":{"allow":[],"deny":["device_info"]}},"deny-download-to-temp":{"identifier":"deny-download-to-temp","description":"Denies the download_to_temp command without any pre-configured scope.","commands":{"allow":[],"deny":["download_to_temp"]}},"deny-end-background-task":{"identifier":"deny-end-background-task","description":"Denies the end_background_task command without any pre-configured scope.","commands":{"allow":[],"deny":["end_background_task"]}},"deny-haptic":{"identifier":"deny-haptic","description":"Denies the haptic command without any pre-configured scope.","commands":{"allow":[],"deny":["haptic"]}},"deny-iap-finish":{"identifier":"deny-iap-finish","description":"Denies the iap_finish command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_finish"]}},"deny-iap-products":{"identifier":"deny-iap-products","description":"Denies the iap_products command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_products"]}},"deny-iap-purchase":{"identifier":"deny-iap-purchase","description":"Denies the iap_purchase command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_purchase"]}},"deny-iap-unfinished":{"identifier":"deny-iap-unfinished","description":"Denies the iap_unfinished command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_unfinished"]}},"deny-import-model-cancel":{"identifier":"deny-import-model-cancel","description":"Denies the import_model_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["import_model_cancel"]}},"deny-import-model-document":{"identifier":"deny-import-model-document","description":"Denies the import_model_document command without any pre-configured scope.","commands":{"allow":[],"deny":["import_model_document"]}},"deny-local-notify":{"identifier":"deny-local-notify","description":"Denies the local_notify command without any pre-configured scope.","commands":{"allow":[],"deny":["local_notify"]}},"deny-open-external":{"identifier":"deny-open-external","description":"Denies the open_external command without any pre-configured scope.","commands":{"allow":[],"deny":["open_external"]}},"deny-open-system-settings":{"identifier":"deny-open-system-settings","description":"Denies the open_system_settings command without any pre-configured scope.","commands":{"allow":[],"deny":["open_system_settings"]}},"deny-pending-deep-link":{"identifier":"deny-pending-deep-link","description":"Denies the pending_deep_link command without any pre-configured scope.","commands":{"allow":[],"deny":["pending_deep_link"]}},"deny-pick-documents":{"identifier":"deny-pick-documents","description":"Denies the pick_documents command without any pre-configured scope.","commands":{"allow":[],"deny":["pick_documents"]}},"deny-read-temp-file":{"identifier":"deny-read-temp-file","description":"Denies the read_temp_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_temp_file"]}},"deny-remote-client-cancel":{"identifier":"deny-remote-client-cancel","description":"Denies the remote_client_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_client_cancel"]}},"deny-remote-client-request":{"identifier":"deny-remote-client-request","description":"Denies the remote_client_request command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_client_request"]}},"deny-remote-notify-permission":{"identifier":"deny-remote-notify-permission","description":"Denies the remote_notify_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_notify_permission"]}},"deny-remote-watch":{"identifier":"deny-remote-watch","description":"Denies the remote_watch command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_watch"]}},"deny-request-notification-permission":{"identifier":"deny-request-notification-permission","description":"Denies the request_notification_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_notification_permission"]}},"deny-save-to-files":{"identifier":"deny-save-to-files","description":"Denies the save_to_files command without any pre-configured scope.","commands":{"allow":[],"deny":["save_to_files"]}},"deny-save-to-photos":{"identifier":"deny-save-to-photos","description":"Denies the save_to_photos command without any pre-configured scope.","commands":{"allow":[],"deny":["save_to_photos"]}},"deny-scan-qr":{"identifier":"deny-scan-qr","description":"Denies the scan_qr command without any pre-configured scope.","commands":{"allow":[],"deny":["scan_qr"]}},"deny-set-system-bars":{"identifier":"deny-set-system-bars","description":"Denies the set_system_bars command without any pre-configured scope.","commands":{"allow":[],"deny":["set_system_bars"]}},"deny-share-file":{"identifier":"deny-share-file","description":"Denies the share_file command without any pre-configured scope.","commands":{"allow":[],"deny":["share_file"]}},"deny-simulate-memory-warning":{"identifier":"deny-simulate-memory-warning","description":"Denies the simulate_memory_warning command without any pre-configured scope.","commands":{"allow":[],"deny":["simulate_memory_warning"]}},"deny-transcode-image":{"identifier":"deny-transcode-image","description":"Denies the transcode_image command without any pre-configured scope.","commands":{"allow":[],"deny":["transcode_image"]}},"deny-tts-speak":{"identifier":"deny-tts-speak","description":"Denies the tts_speak command without any pre-configured scope.","commands":{"allow":[],"deny":["tts_speak"]}},"deny-tts-stop":{"identifier":"deny-tts-stop","description":"Denies the tts_stop command without any pre-configured scope.","commands":{"allow":[],"deny":["tts_stop"]}},"deny-tts-voices":{"identifier":"deny-tts-voices","description":"Denies the tts_voices command without any pre-configured scope.","commands":{"allow":[],"deny":["tts_voices"]}},"deny-web-auth":{"identifier":"deny-web-auth","description":"Denies the web_auth command without any pre-configured scope.","commands":{"allow":[],"deny":["web_auth"]}},"deny-write-temp-file":{"identifier":"deny-write-temp-file","description":"Denies the write_temp_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_temp_file"]}}},"permission_sets":{},"global_scope_schema":null},"shell":{"default_permission":{"identifier":"default","description":"This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality with a reasonable\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n","permissions":["allow-open"]},"permissions":{"allow-execute":{"identifier":"allow-execute","description":"Enables the execute command without any pre-configured scope.","commands":{"allow":["execute"],"deny":[]}},"allow-kill":{"identifier":"allow-kill","description":"Enables the kill command without any pre-configured scope.","commands":{"allow":["kill"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-spawn":{"identifier":"allow-spawn","description":"Enables the spawn command without any pre-configured scope.","commands":{"allow":["spawn"],"deny":[]}},"allow-stdin-write":{"identifier":"allow-stdin-write","description":"Enables the stdin_write command without any pre-configured scope.","commands":{"allow":["stdin_write"],"deny":[]}},"deny-execute":{"identifier":"deny-execute","description":"Denies the execute command without any pre-configured scope.","commands":{"allow":[],"deny":["execute"]}},"deny-kill":{"identifier":"deny-kill","description":"Denies the kill command without any pre-configured scope.","commands":{"allow":[],"deny":["kill"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-spawn":{"identifier":"deny-spawn","description":"Denies the spawn command without any pre-configured scope.","commands":{"allow":[],"deny":["spawn"]}},"deny-stdin-write":{"identifier":"deny-stdin-write","description":"Denies the stdin_write command without any pre-configured scope.","commands":{"allow":[],"deny":["stdin_write"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"cmd":{"description":"The command name. It 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`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"}},"required":["cmd","name"],"type":"object"},{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"},"sidecar":{"description":"If this command is a sidecar command.","type":"boolean"}},"required":["name","sidecar"],"type":"object"}],"definitions":{"ShellScopeEntryAllowedArg":{"anyOf":[{"description":"A non-configurable argument that is passed to the command in the order it was specified.","type":"string"},{"additionalProperties":false,"description":"A variable that is set while calling the command from the webview API.","properties":{"raw":{"default":false,"description":"Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.","type":"boolean"},"validator":{"description":"[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>","type":"string"}},"required":["validator"],"type":"object"}],"description":"A command argument allowed to be executed by the webview API."},"ShellScopeEntryAllowedArgs":{"anyOf":[{"description":"Use a simple boolean to allow all or disable all arguments to this command configuration.","type":"boolean"},{"description":"A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.","items":{"$ref":"#/definitions/ShellScopeEntryAllowedArg"},"type":"array"}],"description":"A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration."}},"description":"Shell scope entry.","title":"ShellScopeEntry"}},"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}}\ 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"]},"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-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-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-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-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-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-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-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-internal-toggle-maximize"]},"permissions":{"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-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-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-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-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-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},"global-shortcut":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n","permissions":[]},"permissions":{"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-register-all":{"identifier":"allow-register-all","description":"Enables the register_all command without any pre-configured scope.","commands":{"allow":["register_all"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"allow-unregister-all":{"identifier":"allow-unregister-all","description":"Enables the unregister_all command without any pre-configured scope.","commands":{"allow":["unregister_all"],"deny":[]}},"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-register-all":{"identifier":"deny-register-all","description":"Denies the register_all command without any pre-configured scope.","commands":{"allow":[],"deny":["register_all"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}},"deny-unregister-all":{"identifier":"deny-unregister-all","description":"Denies the unregister_all command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister_all"]}}},"permission_sets":{},"global_scope_schema":null},"lu-native":{"default_permission":{"identifier":"default","description":"Everything the phone shell needs from the native layer. `simulate-memory-warning` is listed although the command only acts in a build with the cargo feature `abnahme`; without the feature it answers with an error.","permissions":["allow-share-file","allow-save-to-photos","allow-save-to-files","allow-write-temp-file","allow-download-to-temp","allow-delete-temp-file","allow-device-info","allow-simulate-memory-warning","allow-begin-background-task","allow-end-background-task","allow-back-arm","allow-back-ack","allow-back-exit","allow-pending-deep-link","allow-haptic","allow-open-external","allow-scan-qr","allow-open-system-settings","allow-set-system-bars","allow-remote-client-request","allow-remote-client-cancel","allow-bg-download-start","allow-bg-download-pause","allow-bg-download-resume","allow-bg-download-cancel","allow-bg-download-forget","allow-bg-download-list","allow-bg-download-network-rule","allow-bg-download-allow-metered","allow-connection-info","allow-request-notification-permission","allow-tts-voices","allow-tts-speak","allow-tts-stop","allow-import-model-document","allow-import-model-cancel","allow-bg-download-limit","allow-transcode-image","allow-clipboard-read-text","allow-clipboard-write-text","allow-local-notify","allow-remote-watch","allow-remote-notify-permission","allow-apple-sign-in","allow-web-auth","allow-pick-documents","allow-read-temp-file","allow-iap-products","allow-iap-purchase","allow-iap-finish","allow-iap-unfinished"]},"permissions":{"allow-apple-sign-in":{"identifier":"allow-apple-sign-in","description":"Enables the apple_sign_in command without any pre-configured scope.","commands":{"allow":["apple_sign_in"],"deny":[]}},"allow-back-ack":{"identifier":"allow-back-ack","description":"Enables the back_ack command without any pre-configured scope.","commands":{"allow":["back_ack"],"deny":[]}},"allow-back-arm":{"identifier":"allow-back-arm","description":"Enables the back_arm command without any pre-configured scope.","commands":{"allow":["back_arm"],"deny":[]}},"allow-back-exit":{"identifier":"allow-back-exit","description":"Enables the back_exit command without any pre-configured scope.","commands":{"allow":["back_exit"],"deny":[]}},"allow-begin-background-task":{"identifier":"allow-begin-background-task","description":"Enables the begin_background_task command without any pre-configured scope.","commands":{"allow":["begin_background_task"],"deny":[]}},"allow-bg-download-allow-metered":{"identifier":"allow-bg-download-allow-metered","description":"Enables the bg_download_allow_metered command without any pre-configured scope.","commands":{"allow":["bg_download_allow_metered"],"deny":[]}},"allow-bg-download-cancel":{"identifier":"allow-bg-download-cancel","description":"Enables the bg_download_cancel command without any pre-configured scope.","commands":{"allow":["bg_download_cancel"],"deny":[]}},"allow-bg-download-forget":{"identifier":"allow-bg-download-forget","description":"Enables the bg_download_forget command without any pre-configured scope.","commands":{"allow":["bg_download_forget"],"deny":[]}},"allow-bg-download-limit":{"identifier":"allow-bg-download-limit","description":"Enables the bg_download_limit command without any pre-configured scope.","commands":{"allow":["bg_download_limit"],"deny":[]}},"allow-bg-download-list":{"identifier":"allow-bg-download-list","description":"Enables the bg_download_list command without any pre-configured scope.","commands":{"allow":["bg_download_list"],"deny":[]}},"allow-bg-download-network-rule":{"identifier":"allow-bg-download-network-rule","description":"Enables the bg_download_network_rule command without any pre-configured scope.","commands":{"allow":["bg_download_network_rule"],"deny":[]}},"allow-bg-download-pause":{"identifier":"allow-bg-download-pause","description":"Enables the bg_download_pause command without any pre-configured scope.","commands":{"allow":["bg_download_pause"],"deny":[]}},"allow-bg-download-resume":{"identifier":"allow-bg-download-resume","description":"Enables the bg_download_resume command without any pre-configured scope.","commands":{"allow":["bg_download_resume"],"deny":[]}},"allow-bg-download-start":{"identifier":"allow-bg-download-start","description":"Enables the bg_download_start command without any pre-configured scope.","commands":{"allow":["bg_download_start"],"deny":[]}},"allow-clipboard-read-text":{"identifier":"allow-clipboard-read-text","description":"Enables the clipboard_read_text command without any pre-configured scope.","commands":{"allow":["clipboard_read_text"],"deny":[]}},"allow-clipboard-write-text":{"identifier":"allow-clipboard-write-text","description":"Enables the clipboard_write_text command without any pre-configured scope.","commands":{"allow":["clipboard_write_text"],"deny":[]}},"allow-connection-info":{"identifier":"allow-connection-info","description":"Enables the connection_info command without any pre-configured scope.","commands":{"allow":["connection_info"],"deny":[]}},"allow-delete-temp-file":{"identifier":"allow-delete-temp-file","description":"Enables the delete_temp_file command without any pre-configured scope.","commands":{"allow":["delete_temp_file"],"deny":[]}},"allow-device-info":{"identifier":"allow-device-info","description":"Enables the device_info command without any pre-configured scope.","commands":{"allow":["device_info"],"deny":[]}},"allow-download-to-temp":{"identifier":"allow-download-to-temp","description":"Enables the download_to_temp command without any pre-configured scope.","commands":{"allow":["download_to_temp"],"deny":[]}},"allow-end-background-task":{"identifier":"allow-end-background-task","description":"Enables the end_background_task command without any pre-configured scope.","commands":{"allow":["end_background_task"],"deny":[]}},"allow-haptic":{"identifier":"allow-haptic","description":"Enables the haptic command without any pre-configured scope.","commands":{"allow":["haptic"],"deny":[]}},"allow-iap-finish":{"identifier":"allow-iap-finish","description":"Enables the iap_finish command without any pre-configured scope.","commands":{"allow":["iap_finish"],"deny":[]}},"allow-iap-products":{"identifier":"allow-iap-products","description":"Enables the iap_products command without any pre-configured scope.","commands":{"allow":["iap_products"],"deny":[]}},"allow-iap-purchase":{"identifier":"allow-iap-purchase","description":"Enables the iap_purchase command without any pre-configured scope.","commands":{"allow":["iap_purchase"],"deny":[]}},"allow-iap-unfinished":{"identifier":"allow-iap-unfinished","description":"Enables the iap_unfinished command without any pre-configured scope.","commands":{"allow":["iap_unfinished"],"deny":[]}},"allow-import-model-cancel":{"identifier":"allow-import-model-cancel","description":"Enables the import_model_cancel command without any pre-configured scope.","commands":{"allow":["import_model_cancel"],"deny":[]}},"allow-import-model-document":{"identifier":"allow-import-model-document","description":"Enables the import_model_document command without any pre-configured scope.","commands":{"allow":["import_model_document"],"deny":[]}},"allow-local-notify":{"identifier":"allow-local-notify","description":"Enables the local_notify command without any pre-configured scope.","commands":{"allow":["local_notify"],"deny":[]}},"allow-open-external":{"identifier":"allow-open-external","description":"Enables the open_external command without any pre-configured scope.","commands":{"allow":["open_external"],"deny":[]}},"allow-open-system-settings":{"identifier":"allow-open-system-settings","description":"Enables the open_system_settings command without any pre-configured scope.","commands":{"allow":["open_system_settings"],"deny":[]}},"allow-pending-deep-link":{"identifier":"allow-pending-deep-link","description":"Enables the pending_deep_link command without any pre-configured scope.","commands":{"allow":["pending_deep_link"],"deny":[]}},"allow-pick-documents":{"identifier":"allow-pick-documents","description":"Enables the pick_documents command without any pre-configured scope.","commands":{"allow":["pick_documents"],"deny":[]}},"allow-read-temp-file":{"identifier":"allow-read-temp-file","description":"Enables the read_temp_file command without any pre-configured scope.","commands":{"allow":["read_temp_file"],"deny":[]}},"allow-remote-client-cancel":{"identifier":"allow-remote-client-cancel","description":"Enables the remote_client_cancel command without any pre-configured scope.","commands":{"allow":["remote_client_cancel"],"deny":[]}},"allow-remote-client-request":{"identifier":"allow-remote-client-request","description":"Enables the remote_client_request command without any pre-configured scope.","commands":{"allow":["remote_client_request"],"deny":[]}},"allow-remote-notify-permission":{"identifier":"allow-remote-notify-permission","description":"Enables the remote_notify_permission command without any pre-configured scope.","commands":{"allow":["remote_notify_permission"],"deny":[]}},"allow-remote-watch":{"identifier":"allow-remote-watch","description":"Enables the remote_watch command without any pre-configured scope.","commands":{"allow":["remote_watch"],"deny":[]}},"allow-request-notification-permission":{"identifier":"allow-request-notification-permission","description":"Enables the request_notification_permission command without any pre-configured scope.","commands":{"allow":["request_notification_permission"],"deny":[]}},"allow-save-to-files":{"identifier":"allow-save-to-files","description":"Enables the save_to_files command without any pre-configured scope.","commands":{"allow":["save_to_files"],"deny":[]}},"allow-save-to-photos":{"identifier":"allow-save-to-photos","description":"Enables the save_to_photos command without any pre-configured scope.","commands":{"allow":["save_to_photos"],"deny":[]}},"allow-scan-qr":{"identifier":"allow-scan-qr","description":"Enables the scan_qr command without any pre-configured scope.","commands":{"allow":["scan_qr"],"deny":[]}},"allow-set-system-bars":{"identifier":"allow-set-system-bars","description":"Enables the set_system_bars command without any pre-configured scope.","commands":{"allow":["set_system_bars"],"deny":[]}},"allow-share-file":{"identifier":"allow-share-file","description":"Enables the share_file command without any pre-configured scope.","commands":{"allow":["share_file"],"deny":[]}},"allow-simulate-memory-warning":{"identifier":"allow-simulate-memory-warning","description":"Enables the simulate_memory_warning command without any pre-configured scope.","commands":{"allow":["simulate_memory_warning"],"deny":[]}},"allow-transcode-image":{"identifier":"allow-transcode-image","description":"Enables the transcode_image command without any pre-configured scope.","commands":{"allow":["transcode_image"],"deny":[]}},"allow-tts-speak":{"identifier":"allow-tts-speak","description":"Enables the tts_speak command without any pre-configured scope.","commands":{"allow":["tts_speak"],"deny":[]}},"allow-tts-stop":{"identifier":"allow-tts-stop","description":"Enables the tts_stop command without any pre-configured scope.","commands":{"allow":["tts_stop"],"deny":[]}},"allow-tts-voices":{"identifier":"allow-tts-voices","description":"Enables the tts_voices command without any pre-configured scope.","commands":{"allow":["tts_voices"],"deny":[]}},"allow-web-auth":{"identifier":"allow-web-auth","description":"Enables the web_auth command without any pre-configured scope.","commands":{"allow":["web_auth"],"deny":[]}},"allow-write-temp-file":{"identifier":"allow-write-temp-file","description":"Enables the write_temp_file command without any pre-configured scope.","commands":{"allow":["write_temp_file"],"deny":[]}},"deny-apple-sign-in":{"identifier":"deny-apple-sign-in","description":"Denies the apple_sign_in command without any pre-configured scope.","commands":{"allow":[],"deny":["apple_sign_in"]}},"deny-back-ack":{"identifier":"deny-back-ack","description":"Denies the back_ack command without any pre-configured scope.","commands":{"allow":[],"deny":["back_ack"]}},"deny-back-arm":{"identifier":"deny-back-arm","description":"Denies the back_arm command without any pre-configured scope.","commands":{"allow":[],"deny":["back_arm"]}},"deny-back-exit":{"identifier":"deny-back-exit","description":"Denies the back_exit command without any pre-configured scope.","commands":{"allow":[],"deny":["back_exit"]}},"deny-begin-background-task":{"identifier":"deny-begin-background-task","description":"Denies the begin_background_task command without any pre-configured scope.","commands":{"allow":[],"deny":["begin_background_task"]}},"deny-bg-download-allow-metered":{"identifier":"deny-bg-download-allow-metered","description":"Denies the bg_download_allow_metered command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_allow_metered"]}},"deny-bg-download-cancel":{"identifier":"deny-bg-download-cancel","description":"Denies the bg_download_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_cancel"]}},"deny-bg-download-forget":{"identifier":"deny-bg-download-forget","description":"Denies the bg_download_forget command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_forget"]}},"deny-bg-download-limit":{"identifier":"deny-bg-download-limit","description":"Denies the bg_download_limit command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_limit"]}},"deny-bg-download-list":{"identifier":"deny-bg-download-list","description":"Denies the bg_download_list command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_list"]}},"deny-bg-download-network-rule":{"identifier":"deny-bg-download-network-rule","description":"Denies the bg_download_network_rule command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_network_rule"]}},"deny-bg-download-pause":{"identifier":"deny-bg-download-pause","description":"Denies the bg_download_pause command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_pause"]}},"deny-bg-download-resume":{"identifier":"deny-bg-download-resume","description":"Denies the bg_download_resume command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_resume"]}},"deny-bg-download-start":{"identifier":"deny-bg-download-start","description":"Denies the bg_download_start command without any pre-configured scope.","commands":{"allow":[],"deny":["bg_download_start"]}},"deny-clipboard-read-text":{"identifier":"deny-clipboard-read-text","description":"Denies the clipboard_read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["clipboard_read_text"]}},"deny-clipboard-write-text":{"identifier":"deny-clipboard-write-text","description":"Denies the clipboard_write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["clipboard_write_text"]}},"deny-connection-info":{"identifier":"deny-connection-info","description":"Denies the connection_info command without any pre-configured scope.","commands":{"allow":[],"deny":["connection_info"]}},"deny-delete-temp-file":{"identifier":"deny-delete-temp-file","description":"Denies the delete_temp_file command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_temp_file"]}},"deny-device-info":{"identifier":"deny-device-info","description":"Denies the device_info command without any pre-configured scope.","commands":{"allow":[],"deny":["device_info"]}},"deny-download-to-temp":{"identifier":"deny-download-to-temp","description":"Denies the download_to_temp command without any pre-configured scope.","commands":{"allow":[],"deny":["download_to_temp"]}},"deny-end-background-task":{"identifier":"deny-end-background-task","description":"Denies the end_background_task command without any pre-configured scope.","commands":{"allow":[],"deny":["end_background_task"]}},"deny-haptic":{"identifier":"deny-haptic","description":"Denies the haptic command without any pre-configured scope.","commands":{"allow":[],"deny":["haptic"]}},"deny-iap-finish":{"identifier":"deny-iap-finish","description":"Denies the iap_finish command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_finish"]}},"deny-iap-products":{"identifier":"deny-iap-products","description":"Denies the iap_products command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_products"]}},"deny-iap-purchase":{"identifier":"deny-iap-purchase","description":"Denies the iap_purchase command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_purchase"]}},"deny-iap-unfinished":{"identifier":"deny-iap-unfinished","description":"Denies the iap_unfinished command without any pre-configured scope.","commands":{"allow":[],"deny":["iap_unfinished"]}},"deny-import-model-cancel":{"identifier":"deny-import-model-cancel","description":"Denies the import_model_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["import_model_cancel"]}},"deny-import-model-document":{"identifier":"deny-import-model-document","description":"Denies the import_model_document command without any pre-configured scope.","commands":{"allow":[],"deny":["import_model_document"]}},"deny-local-notify":{"identifier":"deny-local-notify","description":"Denies the local_notify command without any pre-configured scope.","commands":{"allow":[],"deny":["local_notify"]}},"deny-open-external":{"identifier":"deny-open-external","description":"Denies the open_external command without any pre-configured scope.","commands":{"allow":[],"deny":["open_external"]}},"deny-open-system-settings":{"identifier":"deny-open-system-settings","description":"Denies the open_system_settings command without any pre-configured scope.","commands":{"allow":[],"deny":["open_system_settings"]}},"deny-pending-deep-link":{"identifier":"deny-pending-deep-link","description":"Denies the pending_deep_link command without any pre-configured scope.","commands":{"allow":[],"deny":["pending_deep_link"]}},"deny-pick-documents":{"identifier":"deny-pick-documents","description":"Denies the pick_documents command without any pre-configured scope.","commands":{"allow":[],"deny":["pick_documents"]}},"deny-read-temp-file":{"identifier":"deny-read-temp-file","description":"Denies the read_temp_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_temp_file"]}},"deny-remote-client-cancel":{"identifier":"deny-remote-client-cancel","description":"Denies the remote_client_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_client_cancel"]}},"deny-remote-client-request":{"identifier":"deny-remote-client-request","description":"Denies the remote_client_request command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_client_request"]}},"deny-remote-notify-permission":{"identifier":"deny-remote-notify-permission","description":"Denies the remote_notify_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_notify_permission"]}},"deny-remote-watch":{"identifier":"deny-remote-watch","description":"Denies the remote_watch command without any pre-configured scope.","commands":{"allow":[],"deny":["remote_watch"]}},"deny-request-notification-permission":{"identifier":"deny-request-notification-permission","description":"Denies the request_notification_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_notification_permission"]}},"deny-save-to-files":{"identifier":"deny-save-to-files","description":"Denies the save_to_files command without any pre-configured scope.","commands":{"allow":[],"deny":["save_to_files"]}},"deny-save-to-photos":{"identifier":"deny-save-to-photos","description":"Denies the save_to_photos command without any pre-configured scope.","commands":{"allow":[],"deny":["save_to_photos"]}},"deny-scan-qr":{"identifier":"deny-scan-qr","description":"Denies the scan_qr command without any pre-configured scope.","commands":{"allow":[],"deny":["scan_qr"]}},"deny-set-system-bars":{"identifier":"deny-set-system-bars","description":"Denies the set_system_bars command without any pre-configured scope.","commands":{"allow":[],"deny":["set_system_bars"]}},"deny-share-file":{"identifier":"deny-share-file","description":"Denies the share_file command without any pre-configured scope.","commands":{"allow":[],"deny":["share_file"]}},"deny-simulate-memory-warning":{"identifier":"deny-simulate-memory-warning","description":"Denies the simulate_memory_warning command without any pre-configured scope.","commands":{"allow":[],"deny":["simulate_memory_warning"]}},"deny-transcode-image":{"identifier":"deny-transcode-image","description":"Denies the transcode_image command without any pre-configured scope.","commands":{"allow":[],"deny":["transcode_image"]}},"deny-tts-speak":{"identifier":"deny-tts-speak","description":"Denies the tts_speak command without any pre-configured scope.","commands":{"allow":[],"deny":["tts_speak"]}},"deny-tts-stop":{"identifier":"deny-tts-stop","description":"Denies the tts_stop command without any pre-configured scope.","commands":{"allow":[],"deny":["tts_stop"]}},"deny-tts-voices":{"identifier":"deny-tts-voices","description":"Denies the tts_voices command without any pre-configured scope.","commands":{"allow":[],"deny":["tts_voices"]}},"deny-web-auth":{"identifier":"deny-web-auth","description":"Denies the web_auth command without any pre-configured scope.","commands":{"allow":[],"deny":["web_auth"]}},"deny-write-temp-file":{"identifier":"deny-write-temp-file","description":"Denies the write_temp_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_temp_file"]}}},"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-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-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-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},"shell":{"default_permission":{"identifier":"default","description":"This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality with a reasonable\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n","permissions":["allow-open"]},"permissions":{"allow-execute":{"identifier":"allow-execute","description":"Enables the execute command without any pre-configured scope.","commands":{"allow":["execute"],"deny":[]}},"allow-kill":{"identifier":"allow-kill","description":"Enables the kill command without any pre-configured scope.","commands":{"allow":["kill"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-spawn":{"identifier":"allow-spawn","description":"Enables the spawn command without any pre-configured scope.","commands":{"allow":["spawn"],"deny":[]}},"allow-stdin-write":{"identifier":"allow-stdin-write","description":"Enables the stdin_write command without any pre-configured scope.","commands":{"allow":["stdin_write"],"deny":[]}},"deny-execute":{"identifier":"deny-execute","description":"Denies the execute command without any pre-configured scope.","commands":{"allow":[],"deny":["execute"]}},"deny-kill":{"identifier":"deny-kill","description":"Denies the kill command without any pre-configured scope.","commands":{"allow":[],"deny":["kill"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-spawn":{"identifier":"deny-spawn","description":"Denies the spawn command without any pre-configured scope.","commands":{"allow":[],"deny":["spawn"]}},"deny-stdin-write":{"identifier":"deny-stdin-write","description":"Denies the stdin_write command without any pre-configured scope.","commands":{"allow":[],"deny":["stdin_write"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"cmd":{"description":"The command name. It 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`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"}},"required":["cmd","name"],"type":"object"},{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"},"sidecar":{"description":"If this command is a sidecar command.","type":"boolean"}},"required":["name","sidecar"],"type":"object"}],"definitions":{"ShellScopeEntryAllowedArg":{"anyOf":[{"description":"A non-configurable argument that is passed to the command in the order it was specified.","type":"string"},{"additionalProperties":false,"description":"A variable that is set while calling the command from the webview API.","properties":{"raw":{"default":false,"description":"Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.","type":"boolean"},"validator":{"description":"[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>","type":"string"}},"required":["validator"],"type":"object"}],"description":"A command argument allowed to be executed by the webview API."},"ShellScopeEntryAllowedArgs":{"anyOf":[{"description":"Use a simple boolean to allow all or disable all arguments to this command configuration.","type":"boolean"},{"description":"A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.","items":{"$ref":"#/definitions/ShellScopeEntryAllowedArg"},"type":"array"}],"description":"A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration."}},"description":"Shell scope entry.","title":"ShellScopeEntry"}},"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}}\ No newline at end of filediff --git a/src-tauri/gen/schemas/desktop-schema.json b/src-tauri/gen/schemas/desktop-schema.jsonindex ac0bc169..0b1f7174 100644--- a/src-tauri/gen/schemas/desktop-schema.json+++ b/src-tauri/gen/schemas/desktop-schema.json@@ -3092,6 +3092,204 @@"const": "lu-native:deny-write-temp-file","markdownDescription": "Denies the write_temp_file command without any pre-configured scope."},+ {+ "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\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`",+ "type": "string",+ "const": "notification:default",+ "markdownDescription": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`"+ },+ {+ "description": "Enables the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-batch",+ "markdownDescription": "Enables the batch command without any pre-configured scope."+ },+ {+ "description": "Enables the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-cancel",+ "markdownDescription": "Enables the cancel command without any pre-configured scope."+ },+ {+ "description": "Enables the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-check-permissions",+ "markdownDescription": "Enables the check_permissions command without any pre-configured scope."+ },+ {+ "description": "Enables the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-create-channel",+ "markdownDescription": "Enables the create_channel command without any pre-configured scope."+ },+ {+ "description": "Enables the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-delete-channel",+ "markdownDescription": "Enables the delete_channel command without any pre-configured scope."+ },+ {+ "description": "Enables the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-active",+ "markdownDescription": "Enables the get_active command without any pre-configured scope."+ },+ {+ "description": "Enables the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-pending",+ "markdownDescription": "Enables the get_pending command without any pre-configured scope."+ },+ {+ "description": "Enables the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-is-permission-granted",+ "markdownDescription": "Enables the is_permission_granted command without any pre-configured scope."+ },+ {+ "description": "Enables the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-list-channels",+ "markdownDescription": "Enables the list_channels command without any pre-configured scope."+ },+ {+ "description": "Enables the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-notify",+ "markdownDescription": "Enables the notify command without any pre-configured scope."+ },+ {+ "description": "Enables the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-permission-state",+ "markdownDescription": "Enables the permission_state command without any pre-configured scope."+ },+ {+ "description": "Enables the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-action-types",+ "markdownDescription": "Enables the register_action_types command without any pre-configured scope."+ },+ {+ "description": "Enables the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-listener",+ "markdownDescription": "Enables the register_listener command without any pre-configured scope."+ },+ {+ "description": "Enables the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-remove-active",+ "markdownDescription": "Enables the remove_active command without any pre-configured scope."+ },+ {+ "description": "Enables the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-request-permission",+ "markdownDescription": "Enables the request_permission command without any pre-configured scope."+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-show",+ "markdownDescription": "Enables the show command without any pre-configured scope."+ },+ {+ "description": "Denies the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-batch",+ "markdownDescription": "Denies the batch command without any pre-configured scope."+ },+ {+ "description": "Denies the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-cancel",+ "markdownDescription": "Denies the cancel command without any pre-configured scope."+ },+ {+ "description": "Denies the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-check-permissions",+ "markdownDescription": "Denies the check_permissions command without any pre-configured scope."+ },+ {+ "description": "Denies the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-create-channel",+ "markdownDescription": "Denies the create_channel command without any pre-configured scope."+ },+ {+ "description": "Denies the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-delete-channel",+ "markdownDescription": "Denies the delete_channel command without any pre-configured scope."+ },+ {+ "description": "Denies the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-active",+ "markdownDescription": "Denies the get_active command without any pre-configured scope."+ },+ {+ "description": "Denies the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-pending",+ "markdownDescription": "Denies the get_pending command without any pre-configured scope."+ },+ {+ "description": "Denies the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-is-permission-granted",+ "markdownDescription": "Denies the is_permission_granted command without any pre-configured scope."+ },+ {+ "description": "Denies the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-list-channels",+ "markdownDescription": "Denies the list_channels command without any pre-configured scope."+ },+ {+ "description": "Denies the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-notify",+ "markdownDescription": "Denies the notify command without any pre-configured scope."+ },+ {+ "description": "Denies the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-permission-state",+ "markdownDescription": "Denies the permission_state command without any pre-configured scope."+ },+ {+ "description": "Denies the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-action-types",+ "markdownDescription": "Denies the register_action_types command without any pre-configured scope."+ },+ {+ "description": "Denies the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-listener",+ "markdownDescription": "Denies the register_listener command without any pre-configured scope."+ },+ {+ "description": "Denies the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-remove-active",+ "markdownDescription": "Denies the remove_active command without any pre-configured scope."+ },+ {+ "description": "Denies the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-request-permission",+ "markdownDescription": "Denies the request_permission command without any pre-configured scope."+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-show",+ "markdownDescription": "Denies the show command without any pre-configured scope."+ },{"description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality with a reasonable\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n\n#### This default permission set includes:\n\n- `allow-open`","type": "string",diff --git a/src-tauri/gen/schemas/macOS-schema.json b/src-tauri/gen/schemas/macOS-schema.jsonindex ac0bc169..0b1f7174 100644--- a/src-tauri/gen/schemas/macOS-schema.json+++ b/src-tauri/gen/schemas/macOS-schema.json@@ -3092,6 +3092,204 @@"const": "lu-native:deny-write-temp-file","markdownDescription": "Denies the write_temp_file command without any pre-configured scope."},+ {+ "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\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`",+ "type": "string",+ "const": "notification:default",+ "markdownDescription": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`"+ },+ {+ "description": "Enables the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-batch",+ "markdownDescription": "Enables the batch command without any pre-configured scope."+ },+ {+ "description": "Enables the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-cancel",+ "markdownDescription": "Enables the cancel command without any pre-configured scope."+ },+ {+ "description": "Enables the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-check-permissions",+ "markdownDescription": "Enables the check_permissions command without any pre-configured scope."+ },+ {+ "description": "Enables the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-create-channel",+ "markdownDescription": "Enables the create_channel command without any pre-configured scope."+ },+ {+ "description": "Enables the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-delete-channel",+ "markdownDescription": "Enables the delete_channel command without any pre-configured scope."+ },+ {+ "description": "Enables the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-active",+ "markdownDescription": "Enables the get_active command without any pre-configured scope."+ },+ {+ "description": "Enables the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-pending",+ "markdownDescription": "Enables the get_pending command without any pre-configured scope."+ },+ {+ "description": "Enables the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-is-permission-granted",+ "markdownDescription": "Enables the is_permission_granted command without any pre-configured scope."+ },+ {+ "description": "Enables the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-list-channels",+ "markdownDescription": "Enables the list_channels command without any pre-configured scope."+ },+ {+ "description": "Enables the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-notify",+ "markdownDescription": "Enables the notify command without any pre-configured scope."+ },+ {+ "description": "Enables the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-permission-state",+ "markdownDescription": "Enables the permission_state command without any pre-configured scope."+ },+ {+ "description": "Enables the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-action-types",+ "markdownDescription": "Enables the register_action_types command without any pre-configured scope."+ },+ {+ "description": "Enables the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-listener",+ "markdownDescription": "Enables the register_listener command without any pre-configured scope."+ },+ {+ "description": "Enables the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-remove-active",+ "markdownDescription": "Enables the remove_active command without any pre-configured scope."+ },+ {+ "description": "Enables the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-request-permission",+ "markdownDescription": "Enables the request_permission command without any pre-configured scope."+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-show",+ "markdownDescription": "Enables the show command without any pre-configured scope."+ },+ {+ "description": "Denies the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-batch",+ "markdownDescription": "Denies the batch command without any pre-configured scope."+ },+ {+ "description": "Denies the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-cancel",+ "markdownDescription": "Denies the cancel command without any pre-configured scope."+ },+ {+ "description": "Denies the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-check-permissions",+ "markdownDescription": "Denies the check_permissions command without any pre-configured scope."+ },+ {+ "description": "Denies the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-create-channel",+ "markdownDescription": "Denies the create_channel command without any pre-configured scope."+ },+ {+ "description": "Denies the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-delete-channel",+ "markdownDescription": "Denies the delete_channel command without any pre-configured scope."+ },+ {+ "description": "Denies the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-active",+ "markdownDescription": "Denies the get_active command without any pre-configured scope."+ },+ {+ "description": "Denies the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-pending",+ "markdownDescription": "Denies the get_pending command without any pre-configured scope."+ },+ {+ "description": "Denies the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-is-permission-granted",+ "markdownDescription": "Denies the is_permission_granted command without any pre-configured scope."+ },+ {+ "description": "Denies the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-list-channels",+ "markdownDescription": "Denies the list_channels command without any pre-configured scope."+ },+ {+ "description": "Denies the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-notify",+ "markdownDescription": "Denies the notify command without any pre-configured scope."+ },+ {+ "description": "Denies the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-permission-state",+ "markdownDescription": "Denies the permission_state command without any pre-configured scope."+ },+ {+ "description": "Denies the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-action-types",+ "markdownDescription": "Denies the register_action_types command without any pre-configured scope."+ },+ {+ "description": "Denies the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-listener",+ "markdownDescription": "Denies the register_listener command without any pre-configured scope."+ },+ {+ "description": "Denies the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-remove-active",+ "markdownDescription": "Denies the remove_active command without any pre-configured scope."+ },+ {+ "description": "Denies the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-request-permission",+ "markdownDescription": "Denies the request_permission command without any pre-configured scope."+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-show",+ "markdownDescription": "Denies the show command without any pre-configured scope."+ },{"description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality with a reasonable\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n\n#### This default permission set includes:\n\n- `allow-open`","type": "string",diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex e02067f3..465ec8d0 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -60,6 +60,9 @@ mod runtime_root;mod storage_move;mod system_tray;mod tray_menu;+// Watchers: tasks the AI runs by itself at a set time (watchers.rs).+#[cfg(desktop)]+mod watchers;#[cfg(any(windows, test))]mod webview2_check;mod state;@@ -661,6 +664,10 @@ pub fn run() {// has no computer use and no global shortcuts.#[cfg(desktop)]let builder = builder.plugin(tauri_plugin_global_shortcut::Builder::new().build());+ // Watchers: the notification when one ran. Called from Rust only+ // (watchers::watchers_notify), so no capability names it.+ #[cfg(desktop)]+ let builder = builder.plugin(tauri_plugin_notification::init());use commands::mobile_guard::GuardExt as _;builder@@ -692,6 +699,25 @@ pub fn run() {tray_menu::tray_update,#[cfg(desktop)]tray_menu::tray_memory,+ // Watchers: the list, the clock's reports and the notification+ #[cfg(desktop)]+ watchers::watchers_list,+ #[cfg(desktop)]+ watchers::watchers_create,+ #[cfg(desktop)]+ watchers::watchers_update,+ #[cfg(desktop)]+ watchers::watchers_delete,+ #[cfg(desktop)]+ watchers::watchers_run_now,+ #[cfg(desktop)]+ watchers::watchers_finished,+ #[cfg(desktop)]+ watchers::watchers_runner_ready,+ #[cfg(desktop)]+ watchers::watchers_dismiss_hint,+ #[cfg(desktop)]+ watchers::watchers_notify,// LU Cloud OAuth loopback (Google/GitHub via system browser)commands::oauth::oauth_start,commands::oauth::oauth_wait,@@ -1430,6 +1456,12 @@ pub fn run() {// while it is standing open.commands::engine::spawn_sidecar_watch(app.handle().clone());+ // ─── Watchers ───+ // The list of the last quit becomes the hints, then the clock+ // starts. It runs as long as the process does, window or not.+ #[cfg(desktop)]+ watchers::setup(app.handle());+// ─── System Tray ───// Desktop only, like the two sections after it: a phone has no// tray to hide in, and no Ollama or ComfyUI to start. Eachdiff --git a/src-tauri/src/watchers.rs b/src-tauri/src/watchers.rsnew file mode 100644index 00000000..bdbe6e83--- /dev/null+++ b/src-tauri/src/watchers.rs@@ -0,0 +1,875 @@+//! Watchers (3.1.x): tasks the AI runs by itself at a time the user named,+//! "check the prices at 18:00", "every morning at 8 sum up the news".+//!+//! This side holds the list and the clock, the window runs the turn+//! (src/lib/watchers/runner.ts), the same way a turn from the paired phone+//! runs (remote_chats.rs): the clock emits `watchers-due`, the window opens+//! the watcher's own chat, puts the watcher's rights over it as a cap and+//! sends the task through the normal send path, so the loop guard, the+//! working-folder jail and Autocompact apply as in any run.+//!+//! The clock lives here and not in a `setTimeout` of the page: the window+//! goes to the tray on close and a hidden webview's timers are throttled+//! (WebView2, App Nap). An event from Rust still reaches its listener.+//!+//! David's decisions of 14.11.2026, which shape this file:+//! - A watcher lives as long as LU runs. Quitting LU ends every watcher; no+//! autostart, nothing is caught up after a restart. The list is written to+//! disk only so the next start can say, once, which watchers ended with+//! the last quit (`Hint`).+//! - No credit cap per run; the loop guard stays, it is no cost limit.+//!+//! Desktop only: a phone has no tray to wait in.++use serde::{Deserialize, Serialize};+use std::path::PathBuf;+use std::sync::Mutex;+use std::time::Duration;+use tauri::{AppHandle, Emitter, Manager};++/// Emitted with the watcher when its time has come.+pub(crate) const DUE_EVENT: &str = "watchers-due";+/// Emitted whenever the list or a watcher's state changed.+pub(crate) const CHANGED_EVENT: &str = "watchers-changed";++/// More than this is no longer a handful of reminders but a job farm.+pub(crate) const MAX_WATCHERS: usize = 20;+/// The shortest repeat. A watcher is a turn with a model: every few seconds+/// would be a loop, and `/loop` exists for that.+pub(crate) const MIN_INTERVAL_MINUTES: u32 = 10;+/// The longest repeat: once a week.+pub(crate) const MAX_INTERVAL_MINUTES: u32 = 7 * 24 * 60;+/// The runs a watcher remembers.+pub(crate) const RUNS_KEPT: usize = 10;+/// A run the window never reported back (a reload, a crash of the webview)+/// stops counting as running after this long, so the watcher fires again.+const RUN_STALE_MS: i64 = 3 * 60 * 60 * 1000;+/// The clock looks again at least this often, so a changed system clock,+/// a wake from sleep or a missed wake-up costs at most this much.+const TICK_MAX_MS: i64 = 30_000;+const NAME_MAX: usize = 80;+const TASK_MAX: usize = 4_000;+const SUMMARY_MAX: usize = 400;++pub(crate) fn now_ms() -> i64 {+ chrono::Utc::now().timestamp_millis()+}++// ── Data ─────────────────────────────────────────────────────────++/// When a watcher runs. Times are the computer's local time.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+#[serde(tag = "kind", rename_all = "snake_case")]+pub(crate) enum Schedule {+ /// Once, at this moment (milliseconds since 1970, UTC).+ Once { at: i64 },+ /// At this local time, on these days (0 = Monday … 6 = Sunday; empty =+ /// every day).+ Daily {+ hour: u8,+ minute: u8,+ #[serde(default)]+ days: Vec<u8>,+ },+ /// Every so many minutes, counted from the end of the last start.+ Interval { minutes: u32 },+}++/// What a watcher may do. Everything is off unless the user ticked it on the+/// card. The window turns this into a cap over the chat's own permissions+/// (lib/watchers/caps.ts); this side only stores it.+#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]+pub(crate) struct Rights {+ #[serde(default)]+ pub web: bool,+ /// Read and write files in the working folder.+ #[serde(default)]+ pub files: bool,+ /// Run commands in the working folder.+ #[serde(default)]+ pub terminal: bool,+ /// Make pictures and videos.+ #[serde(default)]+ pub create: bool,+ /// Folders outside the working folder the user allowed by name.+ #[serde(default)]+ pub extra_folders: Vec<String>,+}++#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+pub(crate) struct RunRecord {+ /// When the run started (ms).+ pub at: i64,+ /// How long it took (ms).+ pub ms: u64,+ /// `done`, `failed` or `stopped`.+ pub status: String,+ /// A short line about the result, for the list and the notification.+ #[serde(default)]+ pub summary: String,+}++#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+pub(crate) struct Watcher {+ pub id: String,+ pub name: String,+ /// The order the model gets on each run, fixed at creation.+ pub task: String,+ pub schedule: Schedule,+ #[serde(default)]+ pub rights: Rights,+ /// The working folder. None: the chat's own sandbox folder.+ #[serde(default)]+ pub folder: Option<String>,+ /// The model the run uses. None: the one active at the time of the run.+ #[serde(default)]+ pub model: Option<String>,+ #[serde(default)]+ pub paused: bool,+ pub created_at: i64,+ /// The next run (ms). None: nothing more to do (a single run that ran).+ #[serde(default)]+ pub next_at: Option<i64>,+ /// When the run that is going on started. None: not running.+ #[serde(default)]+ pub running_since: Option<i64>,+ /// The chat the runs write into, set by the window on the first run.+ #[serde(default)]+ pub conversation_id: Option<String>,+ /// The chat the watcher was made in.+ #[serde(default)]+ pub origin_conversation_id: Option<String>,+ #[serde(default)]+ pub runs: Vec<RunRecord>,+}++/// One line in the list after a start: a watcher that ended when LU quit.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+pub(crate) struct Hint {+ pub id: String,+ pub name: String,+ /// The run it would have made next.+ pub was_next: Option<i64>,+}++/// What the tool or the user hands over to make a watcher.+#[derive(Deserialize, Clone, Debug)]+#[serde(rename_all = "camelCase")]+pub(crate) struct WatcherSpec {+ pub name: String,+ pub task: String,+ pub schedule: Schedule,+ #[serde(default)]+ pub rights: Rights,+ #[serde(default)]+ pub folder: Option<String>,+ #[serde(default)]+ pub model: Option<String>,+ #[serde(default)]+ pub origin_conversation_id: Option<String>,+}++/// A change to a watcher. Absent fields stay as they are.+#[derive(Deserialize, Clone, Debug, Default)]+#[serde(rename_all = "camelCase")]+pub(crate) struct WatcherPatch {+ pub name: Option<String>,+ pub task: Option<String>,+ pub schedule: Option<Schedule>,+ pub rights: Option<Rights>,+ /// `Some("")` clears the folder (back to the sandbox).+ pub folder: Option<String>,+ /// `Some("")` clears the model (the active one at run time).+ pub model: Option<String>,+ pub paused: Option<bool>,+ pub conversation_id: Option<String>,+}++#[derive(Serialize, Clone, Debug, Default, PartialEq)]+pub(crate) struct Listing {+ pub watchers: Vec<Watcher>,+ pub hints: Vec<Hint>,+}++#[derive(Default)]+struct Inner {+ watchers: Vec<Watcher>,+ hints: Vec<Hint>,+ #[cfg(target_os = "macos")]+ nap: Option<nap::Token>,+}++#[derive(Default)]+pub(crate) struct WatcherState {+ inner: Mutex<Inner>,+ wake: tokio::sync::Notify,+}++// ── The schedule (pure) ──────────────────────────────────────────++/// A local wall-clock time on a date as an instant. In the hour a clock+/// skips (spring forward), the time does not exist and the first minute+/// after the gap is taken; in the hour that repeats, the first of the two.+fn local_instant<Tz: chrono::TimeZone>(tz: &Tz, date: chrono::NaiveDate, hour: u8, minute: u8) -> Option<i64> {+ let naive = date.and_hms_opt(hour as u32, minute as u32, 0)?;+ if let Some(t) = tz.from_local_datetime(&naive).earliest() {+ return Some(t.timestamp_millis());+ }+ // In a gap: walk forward a minute at a time, at most two hours.+ let mut probe = naive;+ for _ in 0..120 {+ probe += chrono::Duration::minutes(1);+ if let Some(t) = tz.from_local_datetime(&probe).earliest() {+ return Some(t.timestamp_millis());+ }+ }+ None+}++/// The first run strictly after `after` (ms), in the time zone `tz`.+/// None when there is none (a single run in the past).+pub(crate) fn next_after_in<Tz: chrono::TimeZone>(tz: &Tz, schedule: &Schedule, after: i64) -> Option<i64> {+ use chrono::Datelike;+ match schedule {+ Schedule::Once { at } => (*at > after).then_some(*at),+ Schedule::Interval { minutes } => Some(after + (*minutes as i64) * 60_000),+ Schedule::Daily { hour, minute, days } => {+ let start = chrono::DateTime::from_timestamp_millis(after)?.with_timezone(tz).date_naive();+ // Eight days reach the same weekday once more, whatever the set.+ for offset in 0..8 {+ let date = start + chrono::Duration::days(offset);+ let weekday = date.weekday().num_days_from_monday() as u8;+ if !days.is_empty() && !days.contains(&weekday) {+ continue;+ }+ if let Some(t) = local_instant(tz, date, *hour, *minute) {+ if t > after {+ return Some(t);+ }+ }+ }+ None+ }+ }+}++pub(crate) fn next_after(schedule: &Schedule, after: i64) -> Option<i64> {+ next_after_in(&chrono::Local, schedule, after)+}++fn clip(s: &str, max: usize) -> String {+ let t = s.trim();+ if t.chars().count() <= max {+ t.to_string()+ } else {+ let mut out: String = t.chars().take(max.saturating_sub(1)).collect();+ out.push('…');+ out+ }+}++/// Checks a schedule; the error is a sentence the model can act on.+pub(crate) fn check_schedule(schedule: &Schedule, now: i64) -> Result<(), String> {+ match schedule {+ Schedule::Once { at } => {+ if *at <= now {+ return Err("That time has already passed. Pick a time in the future.".into());+ }+ if *at > now + 366 * 24 * 60 * 60 * 1000 {+ return Err("That is more than a year away. Pick a time within the next year.".into());+ }+ }+ Schedule::Daily { hour, minute, days } => {+ if *hour > 23 || *minute > 59 {+ return Err("The time of day is hour 0-23 and minute 0-59.".into());+ }+ if days.iter().any(|d| *d > 6) {+ return Err("Days are 0 (Monday) to 6 (Sunday).".into());+ }+ }+ Schedule::Interval { minutes } => {+ if *minutes < MIN_INTERVAL_MINUTES || *minutes > MAX_INTERVAL_MINUTES {+ return Err(format!(+ "A repeat is every {MIN_INTERVAL_MINUTES} minutes at the shortest and once a week at the longest."+ ));+ }+ }+ }+ Ok(())+}++/// A folder a watcher may work in: absolute, existing, not the root of a+/// disk and not the home folder itself (the whole home is no working folder).+pub(crate) fn check_folder(path: &str) -> Result<String, String> {+ let p = PathBuf::from(path.trim());+ if !p.is_absolute() {+ return Err(format!("The folder {path} is not a full path."));+ }+ if !p.is_dir() {+ return Err(format!("The folder {path} does not exist."));+ }+ if p.parent().is_none() || dirs::home_dir().map(|h| h == p).unwrap_or(false) {+ return Err(format!("{path} is too wide for a working folder. Name a folder inside it."));+ }+ Ok(p.to_string_lossy().to_string())+}++fn check_spec(spec: &WatcherSpec, now: i64) -> Result<(), String> {+ if spec.name.trim().is_empty() {+ return Err("The watcher needs a short name.".into());+ }+ if spec.task.trim().is_empty() {+ return Err("The watcher needs a task.".into());+ }+ if spec.task.chars().count() > TASK_MAX {+ return Err(format!("The task is longer than {TASK_MAX} characters."));+ }+ check_schedule(&spec.schedule, now)?;+ if let Some(f) = spec.folder.as_deref().filter(|f| !f.trim().is_empty()) {+ check_folder(f)?;+ }+ for f in &spec.rights.extra_folders {+ check_folder(f)?;+ }+ Ok(())+}++fn clean_rights(r: &Rights) -> Rights {+ let mut extra: Vec<String> = r.extra_folders.iter().filter_map(|f| check_folder(f).ok()).collect();+ extra.dedup();+ Rights { extra_folders: extra, ..r.clone() }+}++/// The watchers whose time has come, marked as running.+fn take_due(watchers: &mut [Watcher], now: i64) -> Vec<Watcher> {+ let mut due = Vec::new();+ for w in watchers.iter_mut() {+ if let Some(since) = w.running_since {+ if now - since > RUN_STALE_MS {+ w.running_since = None;+ push_run(w, RunRecord { at: since, ms: (now - since) as u64, status: "failed".into(), summary: "The window never reported this run back.".into() });+ }+ }+ if w.paused || w.running_since.is_some() {+ continue;+ }+ if matches!(w.next_at, Some(t) if t <= now) {+ w.running_since = Some(now);+ due.push(w.clone());+ }+ }+ due+}++fn push_run(w: &mut Watcher, mut run: RunRecord) {+ run.summary = clip(&run.summary, SUMMARY_MAX);+ w.runs.insert(0, run);+ w.runs.truncate(RUNS_KEPT);+}++/// After a run: the next time. A run that started late (the computer slept)+/// is not repeated for every slot it missed: the next slot is counted from+/// now.+fn finish(w: &mut Watcher, run: RunRecord, now: i64) {+ w.running_since = None;+ push_run(w, run);+ w.next_at = match w.schedule {+ Schedule::Once { .. } => None,+ _ => next_after(&w.schedule, now),+ };+}++/// The earliest moment the clock has to look again.+fn next_wake(watchers: &[Watcher], now: i64) -> i64 {+ watchers+ .iter()+ .filter(|w| !w.paused && w.running_since.is_none())+ .filter_map(|w| w.next_at)+ .min()+ .map(|t| t.clamp(now + 250, now + TICK_MAX_MS))+ .unwrap_or(now + TICK_MAX_MS)+}++/// Watchers that still wait for a run. These keep the Mac out of App Nap.+fn any_waiting(watchers: &[Watcher]) -> bool {+ watchers.iter().any(|w| !w.paused && (w.next_at.is_some() || w.running_since.is_some()))+}++/// The hints a start shows for the watchers the last quit ended.+pub(crate) fn hints_from(previous: &[Watcher]) -> Vec<Hint> {+ previous+ .iter()+ .filter(|w| w.next_at.is_some() && !w.paused)+ .map(|w| Hint { id: w.id.clone(), name: w.name.clone(), was_next: w.next_at })+ .collect()+}++// ── Disk: only for the hints after a restart ─────────────────────++fn list_path() -> PathBuf {+ crate::os_paths::data_dir().join("watchers.json")+}++fn save(watchers: &[Watcher]) {+ let path = list_path();+ if watchers.is_empty() {+ let _ = std::fs::remove_file(&path);+ return;+ }+ if let Some(dir) = path.parent() {+ let _ = std::fs::create_dir_all(dir);+ }+ if let Ok(bytes) = serde_json::to_vec(watchers) {+ let _ = crate::commands::filesystem::write_atomic(&path, &bytes);+ }+}++fn load_previous() -> Vec<Watcher> {+ let path = list_path();+ let read = std::fs::read(&path).ok().and_then(|b| serde_json::from_slice::<Vec<Watcher>>(&b).ok()).unwrap_or_default();+ let _ = std::fs::remove_file(&path);+ read+}++// ── macOS: no App Nap while a watcher waits ──────────────────────++#[cfg(target_os = "macos")]+mod nap {+ use objc2::rc::Retained;+ use objc2::runtime::AnyObject;+ use objc2::{class, msg_send};+ use objc2_foundation::NSString;++ /// NSActivityUserInitiatedAllowingIdleSystemSleep: no App Nap, no timer+ /// coalescing, but the Mac may still go to sleep by itself. A sleeping+ /// Mac runs no watcher, like one that is off.+ const OPTIONS: u64 = 0x00FF_FFFF & !(1 << 20);++ pub(super) struct Token(Retained<AnyObject>);+ // The token is an opaque object handed back to the same NSProcessInfo;+ // NSProcessInfo is thread-safe.+ unsafe impl Send for Token {}++ pub(super) fn begin() -> Option<Token> {+ unsafe {+ let info: Retained<AnyObject> = msg_send![class!(NSProcessInfo), processInfo];+ let reason = NSString::from_str("LU watchers wait for their time");+ let token: Option<Retained<AnyObject>> = msg_send![&*info, beginActivityWithOptions: OPTIONS, reason: &*reason];+ token.map(Token)+ }+ }++ pub(super) fn end(token: Token) {+ unsafe {+ let info: Retained<AnyObject> = msg_send![class!(NSProcessInfo), processInfo];+ let _: () = msg_send![&*info, endActivity: &*token.0];+ }+ }+}++#[cfg(target_os = "macos")]+fn hold_awake(inner: &mut Inner, wanted: bool) {+ match (wanted, inner.nap.is_some()) {+ (true, false) => inner.nap = nap::begin(),+ (false, true) => {+ if let Some(t) = inner.nap.take() {+ nap::end(t);+ }+ }+ _ => {}+ }+}++#[cfg(not(target_os = "macos"))]+fn hold_awake(_inner: &mut Inner, _wanted: bool) {}++// ── The clock ────────────────────────────────────────────────────++/// Loads the hints of the last quit and starts the clock. Once, at setup.+pub(crate) fn setup(app: &AppHandle) {+ app.manage(WatcherState::default());+ {+ let state = app.state::<WatcherState>();+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ inner.hints = hints_from(&load_previous());+ if !inner.hints.is_empty() {+ tracing::info!(count = inner.hints.len(), "[Watchers] ended with the last quit, not caught up");+ }+ }+ let app = app.clone();+ tauri::async_runtime::spawn(async move {+ loop {+ let state = app.state::<WatcherState>();+ let now = now_ms();+ let (due, wake_at) = {+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ let due = take_due(&mut inner.watchers, now);+ let waiting = any_waiting(&inner.watchers);+ hold_awake(&mut inner, waiting);+ if !due.is_empty() {+ save(&inner.watchers);+ }+ (due, next_wake(&inner.watchers, now))+ };+ for w in &due {+ tracing::info!(id = %w.id, "[Watchers] due, handed to the window");+ let _ = app.emit(DUE_EVENT, w);+ }+ if !due.is_empty() {+ let _ = app.emit(CHANGED_EVENT, ());+ }+ let wait = Duration::from_millis((wake_at - now).max(250) as u64);+ tokio::select! {+ _ = tokio::time::sleep(wait) => {}+ _ = state.wake.notified() => {}+ }+ }+ });+}++fn changed(app: &AppHandle, state: &WatcherState, inner: &Inner) {+ save(&inner.watchers);+ state.wake.notify_one();+ let _ = app.emit(CHANGED_EVENT, ());+}++fn listing(inner: &Inner) -> Listing {+ Listing { watchers: inner.watchers.clone(), hints: inner.hints.clone() }+}++// ── Commands ─────────────────────────────────────────────────────++#[tauri::command]+pub(crate) fn watchers_list(state: tauri::State<'_, WatcherState>) -> Listing {+ listing(&state.inner.lock().unwrap_or_else(|e| e.into_inner()))+}++#[tauri::command]+pub(crate) fn watchers_create(app: AppHandle, state: tauri::State<'_, WatcherState>, spec: WatcherSpec) -> Result<Watcher, String> {+ let now = now_ms();+ check_spec(&spec, now)?;+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ if inner.watchers.len() >= MAX_WATCHERS {+ return Err(format!("There are {MAX_WATCHERS} watchers already. Delete one first."));+ }+ let watcher = Watcher {+ id: uuid::Uuid::new_v4().to_string(),+ name: clip(&spec.name, NAME_MAX),+ task: spec.task.trim().to_string(),+ next_at: next_after(&spec.schedule, now),+ schedule: spec.schedule,+ rights: clean_rights(&spec.rights),+ folder: spec.folder.as_deref().filter(|f| !f.trim().is_empty()).and_then(|f| check_folder(f).ok()),+ model: spec.model.filter(|m| !m.trim().is_empty()),+ paused: false,+ created_at: now,+ running_since: None,+ conversation_id: None,+ origin_conversation_id: spec.origin_conversation_id,+ runs: Vec::new(),+ };+ inner.watchers.push(watcher.clone());+ tracing::info!(id = %watcher.id, next_at = ?watcher.next_at, "[Watchers] created");+ changed(&app, &state, &inner);+ Ok(watcher)+}++#[tauri::command]+pub(crate) fn watchers_update(app: AppHandle, state: tauri::State<'_, WatcherState>, id: String, patch: WatcherPatch) -> Result<Watcher, String> {+ let now = now_ms();+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ let w = inner.watchers.iter_mut().find(|w| w.id == id).ok_or("There is no such watcher.")?;+ let mut next = w.clone();+ if let Some(n) = patch.name {+ if n.trim().is_empty() {+ return Err("The watcher needs a short name.".into());+ }+ next.name = clip(&n, NAME_MAX);+ }+ if let Some(t) = patch.task {+ if t.trim().is_empty() || t.chars().count() > TASK_MAX {+ return Err(format!("The task is empty or longer than {TASK_MAX} characters."));+ }+ next.task = t.trim().to_string();+ }+ if let Some(s) = patch.schedule {+ check_schedule(&s, now)?;+ next.next_at = next_after(&s, now);+ next.schedule = s;+ }+ if let Some(r) = patch.rights {+ for f in &r.extra_folders {+ check_folder(f)?;+ }+ next.rights = clean_rights(&r);+ }+ if let Some(f) = patch.folder {+ next.folder = if f.trim().is_empty() { None } else { Some(check_folder(&f)?) };+ }+ if let Some(m) = patch.model {+ next.model = (!m.trim().is_empty()).then(|| m.trim().to_string());+ }+ if let Some(p) = patch.paused {+ // Resuming a repeat counts from now: a watcher paused over night does+ // not fire for the slot it slept through.+ if next.paused && !p && !matches!(next.schedule, Schedule::Once { .. }) {+ next.next_at = next_after(&next.schedule, now);+ }+ next.paused = p;+ }+ if let Some(c) = patch.conversation_id {+ next.conversation_id = (!c.is_empty()).then_some(c);+ }+ *w = next.clone();+ changed(&app, &state, &inner);+ Ok(next)+}++#[tauri::command]+pub(crate) fn watchers_delete(app: AppHandle, state: tauri::State<'_, WatcherState>, id: String) -> Result<(), String> {+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ let before = inner.watchers.len();+ inner.watchers.retain(|w| w.id != id);+ if inner.watchers.len() == before {+ return Err("There is no such watcher.".into());+ }+ changed(&app, &state, &inner);+ Ok(())+}++/// Runs a watcher now, once, without changing its schedule.+#[tauri::command]+pub(crate) fn watchers_run_now(app: AppHandle, state: tauri::State<'_, WatcherState>, id: String) -> Result<(), String> {+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ let w = inner.watchers.iter_mut().find(|w| w.id == id).ok_or("There is no such watcher.")?;+ if w.running_since.is_some() {+ return Err("This watcher is running already.".into());+ }+ w.next_at = Some(now_ms());+ w.paused = false;+ changed(&app, &state, &inner);+ Ok(())+}++/// The window reports a run as over.+#[tauri::command]+pub(crate) fn watchers_finished(app: AppHandle, state: tauri::State<'_, WatcherState>, id: String, run: RunRecord) -> Result<Option<Watcher>, String> {+ let now = now_ms();+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ // Deleted while it ran: nothing to record.+ let Some(w) = inner.watchers.iter_mut().find(|w| w.id == id) else { return Ok(None) };+ tracing::info!(id = %id, status = %run.status, ms = run.ms, "[Watchers] run finished");+ finish(w, run, now);+ let out = w.clone();+ changed(&app, &state, &inner);+ Ok(Some(out))+}++/// The window (re)loaded: a run it had started is gone with the old page.+#[tauri::command]+pub(crate) fn watchers_runner_ready(app: AppHandle, state: tauri::State<'_, WatcherState>) -> Listing {+ let now = now_ms();+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ let mut touched = false;+ for w in inner.watchers.iter_mut() {+ if let Some(since) = w.running_since {+ finish(w, RunRecord { at: since, ms: (now - since).max(0) as u64, status: "stopped".into(), summary: "The window was reloaded during the run.".into() }, now);+ touched = true;+ }+ }+ if touched {+ changed(&app, &state, &inner);+ }+ listing(&inner)+}++#[tauri::command]+pub(crate) fn watchers_dismiss_hint(app: AppHandle, state: tauri::State<'_, WatcherState>, id: Option<String>) {+ let mut inner = state.inner.lock().unwrap_or_else(|e| e.into_inner());+ match id {+ Some(id) => inner.hints.retain(|h| h.id != id),+ None => inner.hints.clear(),+ }+ let _ = app.emit(CHANGED_EVENT, ());+}++/// A notification of the system: Notification Center on a Mac, a toast on+/// Windows, the desktop's notification daemon on Linux. Also with the window+/// in the tray; the app icon is the one the system shows.+#[tauri::command]+pub(crate) fn watchers_notify(app: AppHandle, title: String, body: String, sound: bool) -> Result<(), String> {+ use tauri_plugin_notification::NotificationExt;+ let mut n = app.notification().builder().title(clip(&title, 90)).body(clip(&body, 280));+ if sound {+ n = n.sound(notification_sound());+ }+ let shown = n.show().map_err(|e| format!("The notification could not be shown: {e}"));+ match &shown {+ Ok(()) => tracing::info!(sound, "[Watchers] notification handed to the system"),+ Err(e) => tracing::warn!("[Watchers] {e}"),+ }+ shown+}++/// The system's own short sound.+fn notification_sound() -> &'static str {+ if cfg!(target_os = "linux") {+ // freedesktop sound naming spec+ "message-new-instant"+ } else {+ // NSUserNotificationDefaultSoundName on a Mac, the default toast sound on Windows.+ "default"+ }+}++#[cfg(test)]+mod tests {+ use super::*;+ use chrono::{FixedOffset, TimeZone};++ fn tz() -> FixedOffset {+ FixedOffset::east_opt(3600).unwrap()+ }+ fn at(y: i32, mo: u32, d: u32, h: u32, mi: u32) -> i64 {+ tz().with_ymd_and_hms(y, mo, d, h, mi, 0).unwrap().timestamp_millis()+ }+ fn daily(hour: u8, minute: u8, days: Vec<u8>) -> Schedule {+ Schedule::Daily { hour, minute, days }+ }+ fn watcher(schedule: Schedule, next_at: Option<i64>) -> Watcher {+ Watcher {+ id: "w".into(), name: "w".into(), task: "t".into(), schedule, rights: Rights::default(), folder: None, model: None,+ paused: false, created_at: 0, next_at, running_since: None, conversation_id: None, origin_conversation_id: None, runs: vec![],+ }+ }++ #[test]+ fn daily_is_today_before_the_time_and_tomorrow_after_it() {+ let s = daily(18, 0, vec![]);+ assert_eq!(next_after_in(&tz(), &s, at(2026, 11, 14, 9, 0)), Some(at(2026, 11, 14, 18, 0)));+ assert_eq!(next_after_in(&tz(), &s, at(2026, 11, 14, 18, 0)), Some(at(2026, 11, 15, 18, 0)), "the same minute is past");+ assert_eq!(next_after_in(&tz(), &s, at(2026, 12, 31, 19, 0)), Some(at(2027, 1, 1, 18, 0)), "over the year end");+ }++ #[test]+ fn daily_keeps_to_the_named_days() {+ // 14.11.2026 is a Saturday. Mondays only (0) → Monday 16.11.+ let s = daily(7, 30, vec![0]);+ assert_eq!(next_after_in(&tz(), &s, at(2026, 11, 14, 9, 0)), Some(at(2026, 11, 16, 7, 30)));+ // Mon–Fri on a Friday evening → Monday.+ let s = daily(8, 0, vec![0, 1, 2, 3, 4]);+ assert_eq!(next_after_in(&tz(), &s, at(2026, 11, 13, 20, 0)), Some(at(2026, 11, 16, 8, 0)));+ }++ #[test]+ fn once_is_only_in_the_future_and_interval_counts_from_after() {+ let t = at(2026, 11, 14, 18, 0);+ assert_eq!(next_after_in(&tz(), &Schedule::Once { at: t }, t - 1), Some(t));+ assert_eq!(next_after_in(&tz(), &Schedule::Once { at: t }, t), None);+ assert_eq!(next_after_in(&tz(), &Schedule::Interval { minutes: 30 }, t), Some(t + 30 * 60_000));+ }++ #[test]+ fn a_local_time_maps_to_its_instant() {+ // chrono-tz is no dependency and a FixedOffset has no daylight-saving+ // gap, so only the plain path is pinned here; the gap walk is checked+ // on the real Mac clock in the live test.+ let d = chrono::NaiveDate::from_ymd_opt(2026, 3, 29).unwrap();+ assert_eq!(local_instant(&tz(), d, 2, 30), Some(at(2026, 3, 29, 2, 30)));+ }++ #[test]+ fn schedules_are_checked_with_sentences() {+ let now = at(2026, 11, 14, 12, 0);+ assert!(check_schedule(&Schedule::Once { at: now - 1 }, now).is_err());+ assert!(check_schedule(&Schedule::Once { at: now + 60_000 }, now).is_ok());+ assert!(check_schedule(&Schedule::Interval { minutes: 5 }, now).is_err());+ assert!(check_schedule(&Schedule::Interval { minutes: 10 }, now).is_ok());+ assert!(check_schedule(&daily(24, 0, vec![]), now).is_err());+ assert!(check_schedule(&daily(8, 0, vec![7]), now).is_err());+ }++ #[test]+ fn a_due_watcher_is_taken_once_and_a_paused_one_never() {+ let now = 1_000_000;+ let mut list = vec![watcher(Schedule::Interval { minutes: 10 }, Some(now - 1)), watcher(Schedule::Interval { minutes: 10 }, Some(now - 1))];+ list[1].paused = true;+ let due = take_due(&mut list, now);+ assert_eq!(due.len(), 1);+ assert_eq!(list[0].running_since, Some(now));+ assert!(take_due(&mut list, now + 1).is_empty(), "a running watcher is not taken again");+ }++ #[test]+ fn a_run_never_reported_back_frees_the_watcher_after_hours() {+ let mut list = vec![watcher(Schedule::Interval { minutes: 10 }, Some(0))];+ list[0].running_since = Some(0);+ let due = take_due(&mut list, RUN_STALE_MS + 1);+ assert_eq!(due.len(), 1, "taken again");+ assert_eq!(list[0].runs[0].status, "failed");+ }++ #[test]+ fn after_a_run_once_ends_and_a_repeat_counts_from_now_not_from_the_missed_slots() {+ let mut once = watcher(Schedule::Once { at: 10 }, Some(10));+ finish(&mut once, RunRecord { at: 10, ms: 5, status: "done".into(), summary: "ok".into() }, 20);+ assert_eq!(once.next_at, None);+ assert_eq!(once.runs.len(), 1);+ let mut rep = watcher(Schedule::Interval { minutes: 10 }, Some(0));+ let now = 5 * 60 * 60_000; // five hours late (the Mac slept)+ finish(&mut rep, RunRecord { at: now, ms: 5, status: "done".into(), summary: String::new() }, now);+ assert_eq!(rep.next_at, Some(now + 10 * 60_000), "one run, not thirty");+ }++ #[test]+ fn runs_are_capped_and_summaries_clipped() {+ let mut w = watcher(Schedule::Interval { minutes: 10 }, Some(0));+ for i in 0..(RUNS_KEPT + 5) {+ push_run(&mut w, RunRecord { at: i as i64, ms: 1, status: "done".into(), summary: "x".repeat(1000) });+ }+ assert_eq!(w.runs.len(), RUNS_KEPT);+ assert_eq!(w.runs[0].at, (RUNS_KEPT + 4) as i64, "newest first");+ assert_eq!(w.runs[0].summary.chars().count(), SUMMARY_MAX);+ }++ #[test]+ fn the_clock_wakes_for_the_next_run_but_at_least_every_thirty_seconds() {+ let now = 1_000_000;+ assert_eq!(next_wake(&[], now), now + TICK_MAX_MS);+ assert_eq!(next_wake(&[watcher(Schedule::Interval { minutes: 10 }, Some(now + 5_000))], now), now + 5_000);+ assert_eq!(next_wake(&[watcher(Schedule::Interval { minutes: 10 }, Some(now + 600_000))], now), now + TICK_MAX_MS);+ }++ #[test]+ fn a_restart_names_the_watchers_the_quit_ended_and_nothing_else() {+ let mut paused = watcher(Schedule::Interval { minutes: 10 }, Some(5));+ paused.paused = true;+ let done = watcher(Schedule::Once { at: 1 }, None);+ let live = Watcher { id: "a".into(), name: "Prices".into(), ..watcher(daily(18, 0, vec![]), Some(99)) };+ let hints = hints_from(&[paused, done, live]);+ assert_eq!(hints, vec![Hint { id: "a".into(), name: "Prices".into(), was_next: Some(99) }]);+ }++ #[test]+ fn a_folder_has_to_be_a_real_narrow_one() {+ assert!(check_folder("relative/dir").is_err());+ assert!(check_folder("/").is_err());+ if let Some(home) = dirs::home_dir() {+ assert!(check_folder(&home.to_string_lossy()).is_err());+ }+ let tmp = std::env::temp_dir().join(format!("lu-watch-{}", std::process::id()));+ std::fs::create_dir_all(&tmp).unwrap();+ assert!(check_folder(&tmp.to_string_lossy()).is_ok());+ let _ = std::fs::remove_dir_all(&tmp);+ }++ #[test]+ fn the_schedule_reads_the_shape_the_window_sends() {+ let s: Schedule = serde_json::from_str(r#"{"kind":"daily","hour":8,"minute":0,"days":[0,1]}"#).unwrap();+ assert_eq!(s, daily(8, 0, vec![0, 1]));+ let s: Schedule = serde_json::from_str(r#"{"kind":"once","at":123}"#).unwrap();+ assert_eq!(s, Schedule::Once { at: 123 });+ let spec: WatcherSpec = serde_json::from_str(r#"{"name":"n","task":"t","schedule":{"kind":"interval","minutes":60},"rights":{"web":true}}"#).unwrap();+ assert!(spec.rights.web && !spec.rights.terminal);+ }+}diff --git a/src/App.tsx b/src/App.tsxindex d3de2d71..91bdf5b4 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -60,6 +60,9 @@ function App() {// Shared chats: the phone's actions arrive as an event and run in this// window (lib/remote-chats-bridge.ts).void import('./lib/remote-chats-start').then(({ startRemoteChatsBridge }) => startRemoteChatsBridge()).catch(() => {})+ // Watchers: the clock in Rust says when, the run happens in this window+ // (lib/watchers/runner.ts).+ void import('./lib/watchers/runner').then(({ startWatcherRunner }) => startWatcherRunner()).catch(() => {})// Device tests only: a build with the Cargo feature `e2e-remote` and// its environment says so; every other build answers no.void import('./lib/remote-e2e').then(({ startRemoteForDeviceTests }) => startRemoteForDeviceTests()).catch(() => {})diff --git a/src/api/__tests__/tool-registry.test.ts b/src/api/__tests__/tool-registry.test.tsindex 94773bed..8758be23 100644--- a/src/api/__tests__/tool-registry.test.ts+++ b/src/api/__tests__/tool-registry.test.ts@@ -62,7 +62,10 @@ describe('AGENT_TOOL_DEFS', () => {// sie nur mit, wenn sie gefragt sind: memory und session_search ueber ihre// Woerter (TOOL_GROUPS, GATE_KEYWORDS), die Skill-Werkzeuge ueber// withSkillTools, wenn es Skills gibt bzw. ein grosses Modell vorschlagen darf.- expect(AGENT_TOOL_DEFS).toHaveLength(33 + (browserExistsHere() ? BROWSER_TOOL_NAMES.length : 0))+ // Waechter: +4, watcher_create/_list/_update/_delete. Kein Werkzeug plant+ // einen Lauf fuer spaeter; sie stehen hinter ihrem eigenen Tor+ // (WATCHER_GATE_WORDS) und fragen mit der Karte wie set_setting.+ expect(AGENT_TOOL_DEFS).toHaveLength(37 + (browserExistsHere() ? BROWSER_TOOL_NAMES.length : 0))})const expectedTools = [@@ -128,6 +131,7 @@ describe('AGENT_TOOL_DEFS', () => {...(browserExistsHere() ? [...BROWSER_TOOL_NAMES] : []),'check_tasks', 'get_settings', 'lu_download', 'lu_models', 'lu_open_settings', 'lu_service', 'memory', 'message_agent','session_search', 'set_setting', 'set_settings', 'skill_save', 'skill_view', 'todo_write', 'web_fetch', 'web_research', 'web_search',+ 'watcher_create', 'watcher_delete', 'watcher_list', 'watcher_update','workflow_assign', 'workflow_find', 'workflow_inspect', 'workflow_install',].sort())})diff --git a/src/api/backend.ts b/src/api/backend.tsindex 98af7ffb..0cf02712 100644--- a/src/api/backend.ts+++ b/src/api/backend.ts@@ -758,6 +758,17 @@ export async function backendCall<T = unknown>(remote_chats_sync: { path: "/local-api/remote-chats-sync", method: "POST" },remote_chats_event: { path: "/local-api/remote-chats-event", method: "POST" },remote_chats_reply: { path: "/local-api/remote-chats-reply", method: "POST" },+ // Watchers (src-tauri/src/watchers.rs): the clock and the notification+ // are Rust, so the dev server answers with the desktop-only stub.+ watchers_list: { path: "/local-api/watchers-list" },+ watchers_create: { path: "/local-api/watchers-create", method: "POST" },+ watchers_update: { path: "/local-api/watchers-update", method: "POST" },+ watchers_delete: { path: "/local-api/watchers-delete", method: "POST" },+ watchers_run_now: { path: "/local-api/watchers-run-now", method: "POST" },+ watchers_finished: { path: "/local-api/watchers-finished", method: "POST" },+ watchers_runner_ready: { path: "/local-api/watchers-runner-ready", method: "POST" },+ watchers_dismiss_hint: { path: "/local-api/watchers-dismiss-hint", method: "POST" },+ watchers_notify: { path: "/local-api/watchers-notify", method: "POST" },// Device tests only (Cargo feature e2e-remote); other builds have no such command.remote_e2e_mode: { path: "/local-api/remote-e2e-mode" },remote_create_cancel: { path: "/local-api/remote-create-cancel", method: "POST" },diff --git a/src/api/mcp/__tests__/kein-argument-ungeprueft.test.ts b/src/api/mcp/__tests__/kein-argument-ungeprueft.test.tsindex a808b355..a8781b45 100644--- a/src/api/mcp/__tests__/kein-argument-ungeprueft.test.ts+++ b/src/api/mcp/__tests__/kein-argument-ungeprueft.test.ts@@ -96,6 +96,10 @@ const PFLICHT: Record<string, Record<string, string>> = {workflow_inspect: { id: 'civ1' },workflow_install: { id: 'civ1' },workflow_assign: { workflow: 'Flux Upscale', model: 'flux1-dev.safetensors' },+ // Watchers: outside the desktop app a sentence, no card and no bridge call.+ watcher_create: { name: 'Prices', task: 'Check the prices.', repeat: 'once' },+ watcher_update: { watcher: 'Prices' },+ watcher_delete: { watcher: 'Prices' },// C59 A6–A8: a sentence to the model, no bridge call.memory: { action: 'search' },skill_view: { name: 'release-notes' },diff --git a/src/api/mcp/__tests__/mobile-tool-filter.test.ts b/src/api/mcp/__tests__/mobile-tool-filter.test.tsindex 8ed7dbd1..fc00bc48 100644--- a/src/api/mcp/__tests__/mobile-tool-filter.test.ts+++ b/src/api/mcp/__tests__/mobile-tool-filter.test.ts@@ -49,7 +49,9 @@ const GONE = ['shell_execute', 'pr_resume', 'screenshot', 'image_generate', 'vid// A11 (3.0.8), C60 (3.1.0) and C60-S5: LU's own settings, actions and the// ComfyUI workflow tools, desktop only.const SETTINGS = ['get_settings', 'set_setting', 'set_settings', 'lu_models', 'lu_service', 'lu_download', 'lu_open_settings',- 'workflow_find', 'workflow_inspect', 'workflow_install', 'workflow_assign']+ 'workflow_find', 'workflow_inspect', 'workflow_install', 'workflow_assign',+ // Watchers: the clock is in the desktop app.+ 'watcher_create', 'watcher_list', 'watcher_update', 'watcher_delete']const STAYS = ['todo_write', 'web_research', 'web_search', 'web_fetch', 'file_read', 'file_write', 'file_edit', 'file_list','file_search', 'run_workflow', 'delegate_task', 'check_tasks', 'message_agent',diff --git a/src/api/mcp/__tests__/tool-catalog-tokens.test.ts b/src/api/mcp/__tests__/tool-catalog-tokens.test.tsindex 8a1849b8..ee9c9474 100644--- a/src/api/mcp/__tests__/tool-catalog-tokens.test.ts+++ b/src/api/mcp/__tests__/tool-catalog-tokens.test.ts@@ -148,8 +148,13 @@ const CODING_TOKEN_CEILING = 1730// integ/310: C60, C60-S5, C59 und P-L (web_research) zusammen, gemessen// 25.032 Zeichen. Token-Decke geschaetzt im selben Verhaeltnis wie oben// (5040 / 23200).-const FULL_CHAR_CEILING = 25080-const FULL_TOKEN_CEILING = 5450+// Waechter: +3.293 Zeichen fuer watcher_create/_list/_update/_delete im+// VOLLEN Katalog (25.032 -> 28.325, Beschreibungen schon auf Stichworte+// gekuerzt). Der codierende Zug bleibt gleich: die vier stehen hinter ihrem+// Tor (WATCHER_GATE_WORDS) und fahren nur auf einer Nachricht ueber eine+// spaetere Zeit oder eine Wiederholung mit. Token-Decke im selben Verhaeltnis.+const FULL_CHAR_CEILING = 28380+const FULL_TOKEN_CEILING = 6170describe('the coding step carries a catalog the diet actually shrank', () => {it('the gate really is what a plain coding turn gets', () => {diff --git a/src/api/mcp/builtin-tools.ts b/src/api/mcp/builtin-tools.tsindex 0413cc8a..9d13f68e 100644--- a/src/api/mcp/builtin-tools.ts+++ b/src/api/mcp/builtin-tools.ts@@ -10,6 +10,8 @@ import { reserveCreateTools } from './create-tools'import { registerSettingsTools } from './settings-tools'import { registerSelfControlTools } from './self-control-defs'import { registerWorkflowTools } from './workflow-defs'+import { registerWatcherTools } from './watcher-tools'+import { WATCHER_TOOL_NAMES } from '../../lib/watcher-tool-names'import { WORKFLOW_TOOL_NAMES } from '../../lib/workflow-tool-names'import { SETTINGS_TOOL_NAMES, SELF_CONTROL_ACTION_NAMES } from '../../lib/settings-tool-names'import { v4 as uuid } from 'uuid'@@ -2586,6 +2588,8 @@ export function registerBuiltinTools(registry: ToolRegistry) {if (SELF_CONTROL_ACTION_NAMES.every(toolExistsOnThisDevice)) registerSelfControlTools(registry)// C60-S5: ComfyUI workflows from the chat, same gate, surfaces and policy.if (WORKFLOW_TOOL_NAMES.every(toolExistsOnThisDevice)) registerWorkflowTools(registry)+ // Watchers: scheduled turns, desktop only, same gate and card.+ if (WATCHER_TOOL_NAMES.every(toolExistsOnThisDevice)) registerWatcherTools(registry)}// ── Retired tools (2.6.6 merge, plan E5) ────────────────────────diff --git a/src/api/mcp/self-control-tools.ts b/src/api/mcp/self-control-tools.tsindex b05ef990..f0f66a5d 100644--- a/src/api/mcp/self-control-tools.ts+++ b/src/api/mcp/self-control-tools.ts@@ -70,7 +70,7 @@ function auditAction(run: AgentRunContext | undefined, key: string, title: strin}/** Policy, then the card. Null when the user said yes, else the reply. */-async function confirmAction(+export async function confirmAction(run: AgentRunContext | undefined,signal: AbortSignal | undefined,o: { key: string; title: string; details: string[]; strong: boolean; names: (t: string, strict: boolean) => boolean; what: string; riskNote?: string },diff --git a/src/api/mcp/watcher-tools.ts b/src/api/mcp/watcher-tools.tsnew file mode 100644index 00000000..edbdaad4--- /dev/null+++ b/src/api/mcp/watcher-tools.ts@@ -0,0 +1,104 @@+// Watchers: the four tools as the registry sees them. Nothing heavy is+// imported here (the registry loads this with the app); the executors load+// on the first call (lib/watchers/tool-exec.ts).+//+// They are offered only on a turn that names a later time or a repeat+// (lib/watcher-tool-names.ts), and only on a surface that draws the card+// (run.settingsCard): the chat with tools, Agent and Code. A new or changed+// watcher waits for the user's yes, as every change LU makes to itself.++import type { JSONSchemaProp, MCPToolDefinition } from './types'+import type { ToolRegistry } from './tool-registry'+import { WATCHER_CREATE, WATCHER_LIST, WATCHER_UPDATE, WATCHER_DELETE } from '../../lib/watcher-tool-names'++const RIGHTS_SCHEMA: JSONSchemaProp = {+ type: 'object',+ description: 'Only what the task needs; all off by default.',+ properties: {+ web: { type: 'boolean', description: 'Web.' },+ files: { type: 'boolean', description: 'Files in the working folder.' },+ terminal: { type: 'boolean', description: 'Commands in the working folder.' },+ create: { type: 'boolean', description: 'Pictures, videos.' },+ },+}++const WHEN_PROPS: Record<string, JSONSchemaProp> = {+ repeat: { type: 'string', enum: ['once', 'daily', 'weekdays', 'interval'], description: 'How often.' },+ time: { type: 'string', description: 'Local HH:MM, 24 h.' },+ date: { type: 'string', description: 'YYYY-MM-DD, once on a later day.' },+ in_minutes: { type: 'number', description: 'Once, in N minutes.' },+ days: { type: 'array', items: { type: 'string' }, description: 'weekdays: ["mon","fri"].' },+ every_minutes: { type: 'number', description: 'interval: minutes, 10 or more.' },+}++export const WATCHER_TOOLS: MCPToolDefinition[] = [+ {+ name: WATCHER_CREATE,+ description: 'Schedule a task LU runs by itself as an agent turn, once or repeatedly, also with the window closed, until LU quits. User confirms on a card.',+ brief: 'Schedule a task the AI runs later or repeatedly.',+ inputSchema: {+ type: 'object',+ properties: {+ name: { type: 'string', description: 'Short name.' },+ task: { type: 'string', description: 'Full standalone order: what to do and report.' },+ ...WHEN_PROPS,+ rights: RIGHTS_SCHEMA,+ folder: { type: 'string', description: 'Working folder, full path, only for file work.' },+ extra_folders: { type: 'array', items: { type: 'string' }, description: 'More full paths, only ones the user named.' },+ },+ required: ['name', 'task', 'repeat'],+ },+ category: 'system',+ source: 'builtin',+ },+ {+ name: WATCHER_LIST,+ description: 'List watchers: id, name, schedule, next run, last result.',+ brief: 'List the scheduled watchers.',+ inputSchema: { type: 'object', properties: {}, required: [] },+ category: 'system',+ source: 'builtin',+ },+ {+ name: WATCHER_UPDATE,+ description: 'Change a watcher; only given fields change. paused pauses or resumes. User confirms on a card.',+ brief: 'Change, pause or resume a watcher.',+ inputSchema: {+ type: 'object',+ properties: {+ watcher: { type: 'string', description: 'Id or name.' },+ name: { type: 'string', description: 'New name.' },+ task: { type: 'string', description: 'New order.' },+ ...WHEN_PROPS,+ rights: RIGHTS_SCHEMA,+ folder: { type: 'string', description: 'New working folder; empty for its own.' },+ paused: { type: 'boolean', description: 'Pause or resume.' },+ },+ required: ['watcher'],+ },+ category: 'system',+ source: 'builtin',+ },+ {+ name: WATCHER_DELETE,+ description: 'Delete a watcher. User confirms on a card.',+ brief: 'Delete a watcher.',+ inputSchema: {+ type: 'object',+ properties: { watcher: { type: 'string', description: 'Id or name.' } },+ required: ['watcher'],+ },+ category: 'system',+ source: 'builtin',+ },+]++const exec = () => import('../../lib/watchers/tool-exec')++export function registerWatcherTools(registry: ToolRegistry): void {+ const [create, list, update, del] = WATCHER_TOOLS+ registry.registerBuiltin(create, async (a, run, signal) => (await exec()).executeWatcherCreate(a, run, signal))+ registry.registerBuiltin(list, async () => (await exec()).executeWatcherList())+ registry.registerBuiltin(update, async (a, run, signal) => (await exec()).executeWatcherUpdate(a, run, signal))+ registry.registerBuiltin(del, async (a, run, signal) => (await exec()).executeWatcherDelete(a, run, signal))+}diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex 4b7766af..f6a4b2dd 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -31,6 +31,7 @@ import { useConversationModelHint } from './ConversationModelNote'import { GoalBar } from './GoalBar'import { PlanBar } from './PlanBar'import { LoopBar } from './LoopBar'+import { WatcherStrip } from './WatcherStrip'import { GroupCostHint } from './GroupCostHint'import { GroupRoundBar } from './GroupRoundBar'import { MemoryDebugToggle } from './MemoryDebugPanel'@@ -821,6 +822,8 @@ export function ChatView() {lokalen Spur ist ein Hinweis und war vorher im Kasten. */}<LoopBar onStop={stopGeneration} /><GoalBar />+ {/* Watchers: one thin line, a click shows the list (WatcherStrip.tsx). */}+ <WatcherStrip /><LocalLaneWaitLinewaiting={!!queuedForLocalLane}queuePosition={localLaneQueuePosition}diff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsxindex d23516dc..23a2f76b 100644--- a/src/components/chat/CodexView.tsx+++ b/src/components/chat/CodexView.tsx@@ -33,6 +33,7 @@ import { GoalBar } from './GoalBar'import { ChatNotices } from './ChatNotices'import { LocalLaneWaitLine } from './LocalLaneWaitLine'import { LoopBar } from './LoopBar'+import { WatcherStrip } from './WatcherStrip'import { useSettingsStore } from '../../stores/settingsStore'import { HowItWorks } from '../ui/HowItWorks'import { useModelStore } from '../../stores/modelStore'@@ -770,6 +771,7 @@ export function CodexView() {<ChatNotices surface="code" /><LoopBar onStop={stopCodex} /><GoalBar />+ <WatcherStrip /><LocalLaneWaitLine waiting={!!queuedForLocalLane} queuePosition={localLaneQueuePosition} />{/* Input */}diff --git a/src/components/chat/ToolCallBlock.tsx b/src/components/chat/ToolCallBlock.tsxindex fb611127..785d3d63 100644--- a/src/components/chat/ToolCallBlock.tsx+++ b/src/components/chat/ToolCallBlock.tsx@@ -286,7 +286,7 @@ function ToolCallBlockImpl({ toolCall, onApprove, onReject }: Props) {const chatAsk = useComputerChatAsk(toolCall.toolName, isRunning, useChatStore((s) => s.activeConversationId))// A11 / C60: a change LU makes to itself waits here for Accept, and stays// with Undo: one setting, several on one card, or an action.- const isSetSetting = isSelfControlToolName(toolCall.toolName) && toolCall.toolName !== 'get_settings' && toolCall.toolName !== 'lu_open_settings'+ const isSetSetting = isSelfControlToolName(toolCall.toolName) && toolCall.toolName !== 'get_settings' && toolCall.toolName !== 'lu_open_settings' && toolCall.toolName !== 'watcher_list'const settingAsk = useSettingsConfirmStore((s) => (isSetSetting && isRunning ? pendingForCall(s.queue, toolCall.id) : null))const settingChanges = isSetSetting && toolCall.status === 'completed' ? parseSettingChanges(toolCall.result) : []const selfAction = isSetSetting && toolCall.status === 'completed' ? parseSelfControlAction(toolCall.result) : nulldiff --git a/src/components/chat/WatcherStrip.tsx b/src/components/chat/WatcherStrip.tsxnew file mode 100644index 00000000..c99200c4--- /dev/null+++ b/src/components/chat/WatcherStrip.tsx@@ -0,0 +1,123 @@+// Watchers above the composer: one thin line, "◷ 18:00 · RTX 5090 prices" or+// "◷ 3 watchers · next 18:00". A click opens a plain list under it with Pause+// and Delete. No frame and no surface around it (David, 14.11.2026): it is a+// line of text in the composer's own column, like the hairlines of a run.+import { useEffect, useState } from 'react'+import { Clock3 } from 'lucide-react'+import { useWatcherStore } from '../../stores/watcherStore'+import { useChatStore } from '../../stores/chatStore'+import { useUIStore } from '../../stores/uiStore'+import { useCodexStore } from '../../stores/codexStore'+import { backendCall } from '../../api/backend'+import { repeatText, whenText } from '../../lib/watchers/schedule'+import type { Watcher, WatcherHint } from '../../lib/watchers/types'+import { COMPOSER_MAX_W } from './composer-width'++/** The collapsed line. Null when there is nothing to show. Pure. */+export function stripLine(watchers: readonly Watcher[], hints: readonly WatcherHint[], now: number): string | null {+ const running = watchers.find((w) => w.running_since)+ if (running) return watchers.length > 1 ? `running · ${running.name} · ${watchers.length} watchers` : `running · ${running.name}`+ const waiting = watchers.filter((w) => !w.paused && w.next_at).sort((a, b) => (a.next_at ?? 0) - (b.next_at ?? 0))+ if (watchers.length === 1 && waiting.length === 1) return `${whenText(waiting[0].next_at!, now)} · ${waiting[0].name}`+ if (waiting.length > 0) return `${watchers.length} watchers · next ${whenText(waiting[0].next_at!, now)}`+ if (watchers.length > 0) {+ const paused = watchers.filter((w) => w.paused).length+ return `${watchers.length === 1 ? watchers[0].name : `${watchers.length} watchers`} · ${paused === watchers.length ? 'paused' : 'nothing due'}`+ }+ if (hints.length > 0) return hints.length === 1 ? `${hints[0].name} ended when LU quit` : `${hints.length} watchers ended when LU quit`+ return null+}++/** The right-hand words of one row. Pure. */+export function rowState(w: Watcher, now: number): string {+ if (w.running_since) return 'running now'+ const last = w.runs[0]+ const lastText = last ? `last ${whenText(last.at, now)} ${last.status}` : 'not run yet'+ if (w.paused) return `paused · ${lastText}`+ if (!w.next_at) return lastText+ return `${repeatText(w.schedule)} · ${lastText}`+}++const act = 'text-gray-500 hover:text-gray-800 dark:hover:text-gray-200 transition-colors'++export function WatcherStrip() {+ const watchers = useWatcherStore((s) => s.watchers)+ const hints = useWatcherStore((s) => s.hints)+ const [open, setOpen] = useState(false)+ const [confirming, setConfirming] = useState<string | null>(null)+ const [now, setNow] = useState(() => Date.now())+ const busy = watchers.length > 0 || hints.length > 0+ useEffect(() => {+ if (!busy) return+ const t = setInterval(() => setNow(Date.now()), 30_000)+ return () => clearInterval(t)+ }, [busy])+ useEffect(() => {+ if (!confirming) return+ const t = setTimeout(() => setConfirming(null), 3000)+ return () => clearTimeout(t)+ }, [confirming])++ const line = stripLine(watchers, hints, now)+ if (!line) return null++ const call = (cmd: string, args: Record<string, unknown>) => { void backendCall(cmd, args).catch(() => {}) }+ const openChat = (convId: string | null) => {+ if (!convId || !useChatStore.getState().conversations.some((c) => c.id === convId)) return+ useCodexStore.getState().setChatMode('lu')+ useChatStore.getState().setActiveConversation(convId)+ useUIStore.getState().setView('chat')+ }+ const sorted = [...watchers].sort((a, b) => (a.next_at ?? Number.MAX_SAFE_INTEGER) - (b.next_at ?? Number.MAX_SAFE_INTEGER))++ return (+ <div className={`w-full ${COMPOSER_MAX_W} mx-auto px-3 pb-1`} data-testid="watcher-strip">+ <button+ type="button"+ onClick={() => setOpen((o) => !o)}+ aria-expanded={open}+ title={open ? 'Hide the watchers' : 'Show the watchers'}+ className="flex items-center gap-1.5 px-1 py-0.5 t-micro text-gray-500 hover:text-gray-800 dark:hover:text-gray-200 transition-colors max-w-full"+ >+ <Clock3 size={10} className={`shrink-0 ${watchers.some((w) => w.running_since) ? 'text-blue-400' : ''}`} />+ <span className="truncate tabular-nums">{line}</span>+ </button>+ {open && (+ <div className="mt-0.5 mb-1 t-micro">+ {sorted.map((w) => (+ <div key={w.id} className="flex items-center gap-3 px-1 py-1 border-t border-gray-200 dark:border-white/[0.06]">+ <span className={`w-1.5 h-1.5 rounded-full shrink-0 ${w.running_since ? 'bg-blue-400' : w.paused || !w.next_at ? 'bg-gray-400/50' : w.runs[0]?.status === 'failed' ? 'bg-red-400' : 'bg-green-500'}`} />+ <span className="w-24 shrink-0 tabular-nums text-gray-700 dark:text-gray-300">{w.next_at && !w.paused ? whenText(w.next_at, now) : '—'}</span>+ <button type="button" onClick={() => openChat(w.conversation_id)} title={w.task} className="min-w-0 truncate text-left text-gray-800 dark:text-gray-200 hover:underline">+ {w.name}+ </button>+ <span className="flex-1 min-w-0 truncate text-gray-500" title={w.runs[0]?.summary || undefined}>{rowState(w, now)}</span>+ {w.next_at && !w.running_since && (+ <button type="button" className={act} onClick={() => call('watchers_update', { id: w.id, patch: { paused: !w.paused } })}>+ {w.paused ? 'Resume' : 'Pause'}+ </button>+ )}+ <button+ type="button"+ className={confirming === w.id ? 'text-red-500' : act}+ onClick={() => { if (confirming === w.id) { setConfirming(null); call('watchers_delete', { id: w.id }) } else setConfirming(w.id) }}+ >+ {confirming === w.id ? 'Delete?' : 'Delete'}+ </button>+ </div>+ ))}+ {hints.map((h) => (+ <div key={`hint-${h.id}`} className="flex items-center gap-3 px-1 py-1 border-t border-gray-200 dark:border-white/[0.06] text-gray-500">+ <span className="w-1.5 h-1.5 shrink-0" />+ <span className="w-24 shrink-0 tabular-nums">{h.was_next ? whenText(h.was_next, now) : '—'}</span>+ <span className="min-w-0 truncate">{h.name}</span>+ <span className="flex-1 min-w-0 truncate">ended when LU quit, not caught up</span>+ <button type="button" className={act} onClick={() => call('watchers_dismiss_hint', { id: h.id })}>Dismiss</button>+ </div>+ ))}+ <div className="border-t border-gray-200 dark:border-white/[0.06]" />+ </div>+ )}+ </div>+ )+}diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex f6eb8fa8..bf907617 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -11,6 +11,7 @@ import { runSettingsReset } from '../../lib/run-settings-reset'import { armedScopeFor, type ResetArm, type ResetArmScope } from '../../lib/reset-arming'import { sectionAnchorId, sectionsFor, type SettingsSectionFlags } from './settings-nav'import { AgentChangeLog } from './AgentChangeLog'+import { WatcherSettings } from './WatcherSettings'import { ChatReplyTimeoutSettings } from './ChatReplyTimeoutSettings'import { CompactThresholdInput } from './CompactThresholdInput'import { HowItWorks } from '../ui/HowItWorks'@@ -1846,6 +1847,7 @@ export function SettingsPage() {// C71: the Mac's image engine goes by the Image timeout too.mediaTimeouts: settings.appMode !== 'cloud',chatTimeout: settings.appMode !== 'cloud',+ watchers: isTauri(),}return (@@ -2490,6 +2492,13 @@ export function SettingsPage() {</Section>)}+ {FEATURE_FLAGS.AGENT_MODE && isTauri() && (+ <Section title="Watchers">+ {/* Scheduled turns: only the notification of the system. */}+ <WatcherSettings />+ </Section>+ )}+{FEATURE_FLAGS.AGENT_MODE && (<Section title="Sub-agents">diff --git a/src/components/settings/WatcherSettings.tsx b/src/components/settings/WatcherSettings.tsxnew file mode 100644index 00000000..013364a8--- /dev/null+++ b/src/components/settings/WatcherSettings.tsx@@ -0,0 +1,42 @@+// Settings → Agent → Watchers: the notification of the system when a watcher+// ran. Three rows and nothing else (David, 14.11.2026): on or off, the sound,+// and whether a result is worth a notification or only an error.+import { InlineToggle } from './InlineToggle'+import { useWatcherSettingsStore, type WatcherNotifyOn } from '../../stores/watcherStore'++const CHOICES: { value: WatcherNotifyOn; label: string }[] = [+ { value: 'all', label: 'Results and errors' },+ { value: 'errors', label: 'Errors only' },+]++export function WatcherSettings() {+ const { notify, sound, notifyOn, update } = useWatcherSettingsStore()+ return (+ <div className="space-y-1">+ <p className="t-micro text-gray-500 leading-relaxed pb-1">+ A notification of the system when a watcher has run, also with the window closed. Watchers are made in the chat+ (“at 18:00 check …”) and run as long as LU runs.+ </p>+ <InlineToggle label="Notifications" enabled={notify} onChange={() => update({ notify: !notify })} />+ <InlineToggle label="Sound" enabled={sound && notify} onChange={() => update({ sound: !sound })} />+ <div className="flex items-center justify-between py-0.5">+ <span className="t-control font-normal text-gray-700 dark:text-gray-400">Notify on</span>+ <div className="flex items-center gap-3" role="radiogroup" aria-label="Notify on">+ {CHOICES.map((c) => (+ <button+ key={c.value}+ type="button"+ role="radio"+ aria-checked={notifyOn === c.value}+ disabled={!notify}+ onClick={() => update({ notifyOn: c.value })}+ className={`t-micro transition-colors disabled:opacity-40 ${notifyOn === c.value ? 'text-gray-900 dark:text-gray-100 underline underline-offset-4' : 'text-gray-500 hover:text-gray-800 dark:hover:text-gray-200'}`}+ >+ {c.label}+ </button>+ ))}+ </div>+ </div>+ </div>+ )+}diff --git a/src/components/settings/__tests__/chat-reply-timeout-field.test.tsx b/src/components/settings/__tests__/chat-reply-timeout-field.test.tsxindex ac250f29..862b20a8 100644--- a/src/components/settings/__tests__/chat-reply-timeout-field.test.tsx+++ b/src/components/settings/__tests__/chat-reply-timeout-field.test.tsx@@ -17,7 +17,7 @@ import { sectionsFor, type SettingsSectionFlags } from '../settings-nav'const flagsOff: SettingsSectionFlags = {gpuPicker: false, builtinExpert: false, comfyui: false, agentMode: false, agentWorkflows: false,- mediaTimeouts: false, chatTimeout: false,+ mediaTimeouts: false, chatTimeout: false, watchers: false,}const seconds = () => screen.getByLabelText('Chat reply timeout (s)') as HTMLInputElementdiff --git a/src/components/settings/__tests__/mac-hardware-is-a-readout.test.tsx b/src/components/settings/__tests__/mac-hardware-is-a-readout.test.tsxindex 21a5b365..eb698806 100644--- a/src/components/settings/__tests__/mac-hardware-is-a-readout.test.tsx+++ b/src/components/settings/__tests__/mac-hardware-is-a-readout.test.tsx@@ -105,7 +105,7 @@ describe('where the memory comes from', () => {describe('the section in Settings', () => {const flags = (gpuPicker: boolean): SettingsSectionFlags => ({- gpuPicker, builtinExpert: false, comfyui: gpuPicker, agentMode: true, agentWorkflows: true, mediaTimeouts: gpuPicker, chatTimeout: true,+ gpuPicker, builtinExpert: false, comfyui: gpuPicker, agentMode: true, agentWorkflows: true, mediaTimeouts: gpuPicker, chatTimeout: true, watchers: true,})it('a Mac has a Hardware section, and it is not called a GPU picker', () => {diff --git a/src/components/settings/__tests__/settings-rail-und-rang.test.ts b/src/components/settings/__tests__/settings-rail-und-rang.test.tsindex 49227f27..59dd0065 100644--- a/src/components/settings/__tests__/settings-rail-und-rang.test.ts+++ b/src/components/settings/__tests__/settings-rail-und-rang.test.ts@@ -148,11 +148,13 @@ const ALL_ON: SettingsSectionFlags = {gpuPicker: true, builtinExpert: true, comfyui: true, agentMode: true, agentWorkflows: true,mediaTimeouts: true,chatTimeout: true,+ watchers: true,}const ALL_OFF: SettingsSectionFlags = {gpuPicker: false, builtinExpert: false, comfyui: false, agentMode: false, agentWorkflows: false,mediaTimeouts: false,chatTimeout: false,+ watchers: false,}/** Der JSX-Zweig eines Tabs, von seinem Guard bis zum naechsten. */diff --git a/src/components/settings/__tests__/unteragenten-stehen-beim-agenten.test.ts b/src/components/settings/__tests__/unteragenten-stehen-beim-agenten.test.tsindex 4b992f6c..44f7e92c 100644--- a/src/components/settings/__tests__/unteragenten-stehen-beim-agenten.test.ts+++ b/src/components/settings/__tests__/unteragenten-stehen-beim-agenten.test.ts@@ -24,7 +24,7 @@ const JSX = readFileSync(resolve(__dirname, '..', 'SettingsPage.tsx'), 'utf8')const ALLE_AN: SettingsSectionFlags = {gpuPicker: true, builtinExpert: true, comfyui: true,- agentMode: true, agentWorkflows: true, mediaTimeouts: true, chatTimeout: true,+ agentMode: true, agentWorkflows: true, mediaTimeouts: true, chatTimeout: true, watchers: true,}describe('Unteragenten-Kappen', () => {diff --git a/src/components/settings/settings-nav.ts b/src/components/settings/settings-nav.tsindex a4b61dac..324adb42 100644--- a/src/components/settings/settings-nav.ts+++ b/src/components/settings/settings-nav.ts@@ -67,6 +67,8 @@ export interface SettingsSectionFlags {/** Issue 177: the chat reply timeout, for local backends only, so not in* cloud mode. */chatTimeout: boolean+ /** `isTauri()`: watchers run in the desktop app only. */+ watchers: boolean}/**@@ -110,6 +112,8 @@ export function sectionsFor(tab: SettingsTab, flags: SettingsSectionFlags): stri...(flags.agentMode ? ['Agent Permissions'] : []),// C60 (3.1.0): what the agent changed in LU itself, with Undo....(flags.agentMode ? ['Changes by the agent'] : []),+ // Watchers: the notification when one ran (desktop app only).+ ...(flags.agentMode && flags.watchers ? ['Watchers'] : []),// Die Kappen fuer delegierte Agenten. Sie standen bis zum// 03.09.2026 unter General → Generation, zwischen Temperatur und// Auto-Compact; eine Persona suchte sie beim Agenten und fand siediff --git a/src/hooks/__tests__/codex-create-tool-gate.test.ts b/src/hooks/__tests__/codex-create-tool-gate.test.tsindex 178c18fd..4e609ea0 100644--- a/src/hooks/__tests__/codex-create-tool-gate.test.ts+++ b/src/hooks/__tests__/codex-create-tool-gate.test.ts@@ -81,7 +81,9 @@ describe('a plain coding turn does not carry the generators', () => {// C60-S5: dazu die vier Workflow-Werkzeuge, zusammen achtzehn.// C59 A6–A8: +4 (memory, session_search, skill_view, skill_save), on demand only.// Zusammen mit C60 und C60-S5: zweiundzwanzig.- expect(before.length - after.length).toBe(22)+ // Waechter: +4 (watcher_create/_list/_update/_delete) hinter ihrem eigenen+ // Tor, zusammen sechsundzwanzig.+ expect(before.length - after.length).toBe(26)expect(before.filter((n) => !after.includes(n)).sort()).toEqual([...GATE_OPENING_TOOLS].sort())})@@ -267,7 +269,9 @@ describe('a run that discovers halfway through that it needs a picture', () => {// C60-S5'workflow_find', 'workflow_inspect', 'workflow_install', 'workflow_assign',// C59 A6–A8- 'memory', 'session_search', 'skill_view', 'skill_save']+ 'memory', 'session_search', 'skill_view', 'skill_save',+ // Waechter+ 'watcher_create', 'watcher_list', 'watcher_update', 'watcher_delete']for (const n of TOR) expect(isGatedTool(n), n).toBe(true)for (const n of ['file_read', 'file_edit', 'shell_execute', 'todo_write', 'web_search']) {expect(isGatedTool(n), n).toBe(false)diff --git a/src/hooks/useAgentChat.ts b/src/hooks/useAgentChat.tsindex d1cadc6c..51836c6b 100644--- a/src/hooks/useAgentChat.ts+++ b/src/hooks/useAgentChat.ts@@ -87,6 +87,7 @@ import { markToolsUnsupported } from '../api/tool-capability'import { extractMemoriesFromPair } from './useMemory'import { createSystemText, isCreateToolName, withCreateText } from '../lib/create/chat-switch'import { isSettingsToolName, isSelfControlToolName, withSelfControlTools, SETTINGS_PROMPT_LINE, SELF_CONTROL_PROMPT_LINE } from '../lib/settings-tool-names'+import { isWatcherToolName, WATCHER_PROMPT_LINE } from '../lib/watcher-tool-names'import { WORKFLOW_PROMPT_LINE } from '../lib/workflow-tool-names'// Create in chat only where the order card exists: not on the phone (lib/create-order-surface.ts).import { createLiveHere } from '../lib/create-order-surface'@@ -411,6 +412,10 @@ export function useAgentChat() {/** A11: the message is about LU's settings. get_settings and set_setting* go along; every change waits for the user's yes on the card. */settingsTools?: boolean+ /** Watchers: the message names a later time or a repeat. The four+ * watcher tools go along; a new or changed watcher waits for the card+ * (lib/watcher-tool-names.ts). */+ watcherTools?: boolean/** Clips and sound tracks for Create in chat. The message keeps only* the facts, the bytes stay in the session. */media?: PendingMedia[]@@ -1193,7 +1198,7 @@ export function useAgentChat() {const toolMatchesCurated = (name: string) =>(!curated || curated.includes(name)) && !(opts?.readOnly && !allowedInReadOnlyTurn(name)) && !(screenByTaskOnly && name === COMPUTER_USE_TOOL_NAME)&& !(localMediaOff && isMediaTool(name))- && (opts?.settingsTools === true || !isSelfControlToolName(name))+ && (isWatcherToolName(name) ? opts?.watcherTools === true : (opts?.settingsTools === true || !isSelfControlToolName(name)))// Cloud mode AND Create in chat released for the account. Without the// release every text and rule in this loop is the one that shipped before.const createLive = createLiveHere()@@ -1203,8 +1208,9 @@ export function useAgentChat() {// The settings pair likewise: the router has no say once the message is// about settings.const withCreateTools = <T extends { name: string }>(chosen: T[], all: T[]): T[] => {- const extra = (n: string) => (opts?.createTools && isCreateToolName(n)) || (opts?.settingsTools && isSelfControlToolName(n))- return opts?.createTools || opts?.settingsTools+ const extra = (n: string) => (opts?.createTools && isCreateToolName(n))+ || (isWatcherToolName(n) ? opts?.watcherTools : opts?.settingsTools && isSelfControlToolName(n))+ return opts?.createTools || opts?.settingsTools || opts?.watcherTools? [...chosen, ...all.filter((t) => extra(t.name) && toolMatchesCurated(t.name) && !chosen.some((c) => c.name === t.name))]: chosen}@@ -1330,6 +1336,7 @@ export function useAgentChat() {agentSystemPrompt += '\n\nYour tool list is kept short on purpose. When you need a tool that is not in it, call tool_search with a few words first; the tools it finds are in your list from the next step on.'}if (opts?.settingsTools) agentSystemPrompt += `\n\n${opts?.chatToolsMode ? SETTINGS_PROMPT_LINE : SELF_CONTROL_PROMPT_LINE}`+ if (opts?.watcherTools) agentSystemPrompt += `\n\n${WATCHER_PROMPT_LINE}`// C60-S5: the workflow tools ride with the actions, outside plain chat.if (opts?.settingsTools && !opts?.chatToolsMode) agentSystemPrompt += `\n${WORKFLOW_PROMPT_LINE}`// Create in chat: on = the paragraph; outside Cloud mode and without thediff --git a/src/hooks/useChat.ts b/src/hooks/useChat.tsindex e1bc8f67..9dd3128c 100644--- a/src/hooks/useChat.ts+++ b/src/hooks/useChat.ts@@ -88,6 +88,8 @@ import { personaNoteOf } from '../lib/persona-note'import { toolRegistry } from '../api/mcp'import { syncCreateTools } from '../api/mcp/create-tools'import { isSettingsToolName, isSelfControlToolName, asksAboutSelfControl, SETTINGS_TOOL_NAMES } from '../lib/settings-tool-names'+import { asksAboutWatchers, isWatcherToolName, WATCHER_TOOL_NAMES } from '../lib/watcher-tool-names'+import { isWatcherConversation } from '../stores/watcherStore'import { asksAboutSettings } from '../lib/tool-selection'import { CREATE_TOOL_NAMES, createSystemText, withCreateText } from '../lib/create/chat-switch'// Create in chat only where the order card exists: not on the phone (lib/create-order-surface.ts).@@ -135,6 +137,17 @@ export function wantsSettingsTools(content: string, history: readonly Message[],(b.toolCalls?.length ? b.toolCalls : b.toolCall ? [b.toolCall] : []).some((c) => used(c.toolName)))}+/** Watchers: the message names a later time or a repeat, or answers the+ * model that was just making one ("ja", "8 Uhr"). Never in a watcher's own+ * chat: a watcher does not make watchers. */+export function wantsWatcherTools(content: string, history: readonly Message[], convId: string | null | undefined): boolean {+ if (isWatcherConversation(convId)) return false+ if (asksAboutWatchers(content)) return true+ const lastAssistant = [...history].reverse().find((m) => m.role === 'assistant')+ return !!lastAssistant?.agentBlocks?.some((b) =>+ (b.toolCalls?.length ? b.toolCalls : b.toolCall ? [b.toolCall] : []).some((c) => isWatcherToolName(c.toolName)))+}+/** One model's turn in a group round. Deliberately the PLAIN conversation* path only: no RAG, no memory injection, no chat-tools, no caveman. The* group is talk between models; every knob it skips belongs to the@@ -995,6 +1008,11 @@ export function useChat() {store.conversations.find((c) => c.id === store.activeConversationId)?.messages ?? [],!!store.activeConversationId && useAgentModeStore.getState().isActive(store.activeConversationId),)+ const watchersOn = !inGroup && wantsWatcherTools(+ content,+ store.conversations.find((c) => c.id === store.activeConversationId)?.messages ?? [],+ store.activeConversationId,+ )// The short answer to an order on the table: "yes", "ja", "go" approves// it, "stop" halts it. Only a short message of the customer's own, and@@ -1054,12 +1072,13 @@ export function useChat() {files,createTools: createOn && slash.command.readOnly !== true,settingsTools: settingsOn,+ watcherTools: watchersOn && slash.command.readOnly !== true,})}// Agent mode: an attached file is also copied into this chat's working// folder, where the file tools can open it (useAgentChat).- if (createOn) return sendAgentMessage(content, images, { files, createTools: true, media, settingsTools: settingsOn })- if (settingsOn) return sendAgentMessage(content, images, { files, settingsTools: true })+ if (createOn) return sendAgentMessage(content, images, { files, createTools: true, media, settingsTools: settingsOn, watcherTools: watchersOn })+ if (settingsOn || watchersOn) return sendAgentMessage(content, images, { files, settingsTools: settingsOn, watcherTools: watchersOn })return sendAgentMessage(content, images, { files })}@@ -1133,23 +1152,26 @@ export function useChat() {// Create on (Cloud mode only): its two tools ride along with web// and file.curatedTools: cloudMode- ? [...CHAT_TOOLS.filter((t) => t !== 'image_generate' && t !== 'video_generate'), ...(createOn ? CREATE_TOOL_NAMES : []), ...(settingsOn ? SETTINGS_TOOL_NAMES : [])]- : [...CHAT_TOOLS, ...(settingsOn ? SETTINGS_TOOL_NAMES : [])],+ ? [...CHAT_TOOLS.filter((t) => t !== 'image_generate' && t !== 'video_generate'), ...(createOn ? CREATE_TOOL_NAMES : []), ...(settingsOn ? SETTINGS_TOOL_NAMES : []), ...(watchersOn ? WATCHER_TOOL_NAMES : [])]+ : [...CHAT_TOOLS, ...(settingsOn ? SETTINGS_TOOL_NAMES : []), ...(watchersOn ? WATCHER_TOOL_NAMES : [])],chatToolsMode: true,mediaHint: route?.mediaHint,files,createTools: createOn,settingsTools: settingsOn,+ watcherTools: watchersOn,media: createOn ? media : undefined,})}// A11: "stell Auto Compact auf 80". Only the settings pair (and Create's- // two when Create is on); nothing changes without the card.- if (settingsOn) {+ // two when Create is on); nothing changes without the card. Watchers:+ // "um 18 Uhr prüf die Preise" likewise, with the watcher tools.+ if (settingsOn || watchersOn) {return sendAgentMessage(content, images, {- curatedTools: [...SETTINGS_TOOL_NAMES, ...(createOn ? CREATE_TOOL_NAMES : [])],+ curatedTools: [...(settingsOn ? SETTINGS_TOOL_NAMES : []), ...(watchersOn ? WATCHER_TOOL_NAMES : []), ...(createOn ? CREATE_TOOL_NAMES : [])],chatToolsMode: true,- settingsTools: true,+ settingsTools: settingsOn,+ watcherTools: watchersOn,createTools: createOn,files,media: createOn ? media : undefined,diff --git a/src/lib/__tests__/keine-deutschen-saetze-in-der-oberflaeche.test.ts b/src/lib/__tests__/keine-deutschen-saetze-in-der-oberflaeche.test.tsindex 838acbbf..05f90f57 100644--- a/src/lib/__tests__/keine-deutschen-saetze-in-der-oberflaeche.test.ts+++ b/src/lib/__tests__/keine-deutschen-saetze-in-der-oberflaeche.test.ts@@ -68,6 +68,7 @@ const DEUTSCH_MIT_GRUND: Record<string, string> = {'lib/explicit-search.ts': 'Deutsche Suchauftraege, gegen die getippte Saetze gelesen werden.','lib/settings-tool-names.ts': 'Deutsche Wendungen fuer LUs Aussehen, gegen die getippte Saetze gelesen werden (C60). Nichts davon wird angezeigt.','lib/session-search.ts': 'Deutsche Fuellwoerter, die aus einer getippten Suchanfrage fallen.',+ 'lib/watcher-tool-names.ts': 'Deutsche Zeit- und Wiederholungswendungen (Waechter), gegen die getippte Saetze gelesen werden. Nichts davon wird angezeigt.',}/** Jede .ts und .tsx unter den Ordnern, ohne die Testbaeume. */diff --git a/src/lib/mobile-tools.ts b/src/lib/mobile-tools.tsindex afa8ebf8..29dfa951 100644--- a/src/lib/mobile-tools.ts+++ b/src/lib/mobile-tools.ts@@ -37,6 +37,8 @@ export const MOBILE_UNBUILT_TOOLS: ReadonlySet<string> = new Set(['set_settings', 'lu_models', 'lu_service', 'lu_download', 'lu_open_settings',// C60-S5: the ComfyUI workflow tools.'workflow_find', 'workflow_inspect', 'workflow_install', 'workflow_assign',+ // Watchers: the clock lives in the desktop app (src-tauri/src/watchers.rs).+ 'watcher_create', 'watcher_list', 'watcher_update', 'watcher_delete',])/** The retired names that still run on a phone. All others end in a shell,diff --git a/src/lib/remote-desk-gate.ts b/src/lib/remote-desk-gate.tsindex 58204e2c..dd14c7e3 100644--- a/src/lib/remote-desk-gate.ts+++ b/src/lib/remote-desk-gate.ts@@ -34,6 +34,11 @@ export function setWindowDeskGate(gate: DeskGate | null): void {windowGate = gate}+/** The gate of this window, for another turn nobody typed (a watcher). */+export function windowDeskGate(): DeskGate | null {+ return windowGate+}+/** "Open" in the bar (components/remote/PhoneContinuedBar.tsx). */export function openWaitingTurn(key: string): void {windowGate?.open(key)diff --git a/src/lib/remote-turn-caps.ts b/src/lib/remote-turn-caps.tsindex 976ff1d1..0159125a 100644--- a/src/lib/remote-turn-caps.ts+++ b/src/lib/remote-turn-caps.ts@@ -30,6 +30,15 @@ export function setTurnCaps(convId: string, rights: RemoteRights): void {caps.set(convId, capsFor(rights))}+/**+ * A whole cap for a run nobody watches (a watcher, lib/watchers/caps.ts):+ * besides 'blocked' it may say 'auto' for what the user allowed when they+ * made it. Cleared with clearTurnCaps like a phone's cap.+ */+export function setCapMap(convId: string, map: Partial<PermissionMap>): void {+ caps.set(convId, { ...map })+}+export function clearTurnCaps(convId: string): void {caps.delete(convId)}diff --git a/src/lib/self-control-policy.ts b/src/lib/self-control-policy.tsindex aafb706f..a5f37668 100644--- a/src/lib/self-control-policy.ts+++ b/src/lib/self-control-policy.ts@@ -22,6 +22,7 @@import { useChatStore } from '../stores/chatStore'import { previousRunOf, type AgentRunContext } from '../api/agent-context'import { taintLabel } from './run-taint'+import { isWatcherConversation } from '../stores/watcherStore'import type { Message } from '../types/chat'export const MAX_CARDS_PER_RUN = 3@@ -82,6 +83,11 @@ export function checkSelfControl(run: AgentRunContext | undefined, ask: PolicyAsif (!run?.settingsCard) {return { ok: false, why: 'surface', reply: 'Error: LU can only be changed in a chat where the user sees the confirmation card. Nothing changed.' }}+ // A watcher's run has nobody in front of the card, and a watcher that made+ // watchers would be a schedule that grows by itself.+ if (isWatcherConversation(run.conversationId)) {+ return { ok: false, why: 'surface', reply: 'Refused: this is a watcher\'s run. It cannot change LU or make, change or delete watchers. Nothing changed.' }+ }const taintedBy = taintLabel(run)if (ask.strong && taintedBy) {return {diff --git a/src/lib/settings-tool-names.ts b/src/lib/settings-tool-names.tsindex c57dda4a..4d138bb1 100644--- a/src/lib/settings-tool-names.ts+++ b/src/lib/settings-tool-names.ts@@ -5,6 +5,7 @@// the stores behind api/mcp/settings-tools.ts and self-control-tools.ts.import { catalogWords } from './settings-catalog'import { WORKFLOW_TOOL_NAMES, WORKFLOW_GATE_WORDS } from './workflow-tool-names'+import { isWatcherToolName, asksAboutWatchers } from './watcher-tool-names'export const GET_SETTINGS = 'get_settings'export const SET_SETTING = 'set_setting'@@ -35,8 +36,11 @@ export function isSettingsToolName(name: string): boolean {return name === GET_SETTINGS || name === SET_SETTING}+/** Also the watcher tools (lib/watcher-tool-names.ts): they change LU too,+ * wait for the same card and are kept from the same surfaces. They have+ * their own gate, so they are not in SELF_CONTROL_TOOL_NAMES. */export function isSelfControlToolName(name: string): boolean {- return (SELF_CONTROL_TOOL_NAMES as readonly string[]).includes(name)+ return (SELF_CONTROL_TOOL_NAMES as readonly string[]).includes(name) || isWatcherToolName(name)}/** The one line the system prompt gets on a turn that carries the pair. */@@ -108,7 +112,10 @@ export function asksAboutSelfControl(userMessage: string): boolean {* Agent tab does with withCreateTools. Off such a turn the list is unchanged.*/export function withSelfControlTools<T extends { name: string }>(chosen: T[], all: T[], userMessage: string): T[] {- if (!asksAboutSelfControl(userMessage)) return chosen- const missing = all.filter((t) => isSelfControlToolName(t.name) && !chosen.some((c) => c.name === t.name))+ const settings = asksAboutSelfControl(userMessage)+ const watchers = asksAboutWatchers(userMessage)+ if (!settings && !watchers) return chosen+ const wanted = (n: string) => (isWatcherToolName(n) ? watchers : settings && isSelfControlToolName(n))+ const missing = all.filter((t) => wanted(t.name) && !chosen.some((c) => c.name === t.name))return missing.length ? [...chosen, ...missing] : chosen}diff --git a/src/lib/store-backup.ts b/src/lib/store-backup.tsindex 4f358f1e..478dd16a 100644--- a/src/lib/store-backup.ts+++ b/src/lib/store-backup.ts@@ -47,6 +47,8 @@ export const STORE_KEYS = [// persona (3.1.0, C58/C42). Also what keeps those background files alive:// the attachment collector keeps every reference it finds in the backup.'lu-chat-look',+ // Watchers: the three notification switches (Settings → Agent → Watchers).+ 'lu-watcher-settings','locally-uncensored-agent-goal',// C59 A7: the skills the user saved, and the proposals waiting for them.'lu-skills',diff --git a/src/lib/tool-selection.ts b/src/lib/tool-selection.tsindex 1118049b..0b83dfdd 100644--- a/src/lib/tool-selection.ts+++ b/src/lib/tool-selection.ts@@ -158,6 +158,10 @@ const GATE_KEYWORDS: Record<string, readonly string[]> = {// C60: all self-control tools (settings, models, services, downloads) on// the wider gate generated from the settings catalog....Object.fromEntries(SELF_CONTROL_TOOL_NAMES.map((n) => [n, settingsGateWords()])),+ // Watchers: only on a message about a later time or a repeat. A clock+ // time alone ("um 18:00") is no word; Agent and chat add the tools by the+ // full check (asksAboutWatchers), Code by withSelfControlTools.+ ...Object.fromEntries(WATCHER_TOOL_NAMES.map((n) => [n, WATCHER_GATE_WORDS])),}/**@@ -271,6 +275,10 @@ const TOOL_GROUPS: ToolGroup[] = [keywords: settingsGateWords(),tools: [...SELF_CONTROL_TOOL_NAMES],},+ {+ keywords: [...WATCHER_GATE_WORDS],+ tools: [...WATCHER_TOOL_NAMES],+ },]// Tools that should always be available regardless of the prompt — they're@@ -320,6 +328,7 @@ export const EMBEDDING_ROUTING_THRESHOLD = 15import type { EmbeddingFn } from '../api/agents/embedding-router'import { REA_SERVER_ID, reaToolsFor } from './plugins/rea-tools'import { SELF_CONTROL_TOOL_NAMES, settingsGateWords } from './settings-tool-names'+import { WATCHER_TOOL_NAMES, WATCHER_GATE_WORDS } from './watcher-tool-names'import { selectToolsByEmbedding } from '../api/agents/embedding-router'import { isMobile } from './device-kind'diff --git a/src/lib/watcher-tool-names.ts b/src/lib/watcher-tool-names.tsnew file mode 100644index 00000000..87e519c1--- /dev/null+++ b/src/lib/watcher-tool-names.ts@@ -0,0 +1,56 @@+// Watchers: the names of the four tools and when a message is about one.+// Apart from the executors (api/mcp/watcher-tools.ts) so the catalog filters+// can know them without loading the stores behind the tools.+//+// They belong to the self-control family (lib/settings-tool-names.ts): what a+// sub-agent, a voice session, a workflow or the local API never gets, and what+// changes LU only after the user's yes on the card. They ride along on their+// own gate, a message that names a time or a repeat, so a settings question+// does not carry them and a reminder does not carry the settings tools.++export const WATCHER_CREATE = 'watcher_create'+export const WATCHER_LIST = 'watcher_list'+export const WATCHER_UPDATE = 'watcher_update'+export const WATCHER_DELETE = 'watcher_delete'++export const WATCHER_TOOL_NAMES = [WATCHER_CREATE, WATCHER_LIST, WATCHER_UPDATE, WATCHER_DELETE] as const++export function isWatcherToolName(name: string): boolean {+ return (WATCHER_TOOL_NAMES as readonly string[]).includes(name)+}++/** The line the system prompt gets on a turn that carries the tools. */+export const WATCHER_PROMPT_LINE = 'Watchers: when the user wants something done later or again and again '+ + '("at 18:00 check …", "every morning at 8 …", "in 20 minutes remind me …"), make a watcher with watcher_create '+ + 'instead of waiting. A watcher runs that task as a new agent turn at that time, also with the window closed, '+ + 'as long as LU runs; it ends when LU quits. Write the task so it stands alone. Ask for only the rights the task '+ + 'needs (web, files, terminal, create) and a folder only if it works on files. The user confirms on a card. '+ + 'watcher_list shows them; watcher_update and watcher_delete change or remove one.'++/** Words that name a later time or a repeat, in English and German. Also+ * the gate of the four tools in the coding catalog (lib/tool-selection.ts). */+export const WATCHER_GATE_WORDS: readonly string[] = [+ 'watcher', 'wächter', 'waechter',+ 'remind me', 'reminder', 'erinnere mich', 'erinner mich', 'erinnerung',+ 'every day', 'everyday', 'every morning', 'every evening', 'every night', 'every hour', 'every week',+ 'each day', 'each morning', 'daily', 'hourly', 'weekly',+ 'jeden tag', 'jeden morgen', 'jeden abend', 'jede nacht', 'jede stunde', 'jede woche',+ 'täglich', 'taeglich', 'stündlich', 'stuendlich', 'wöchentlich', 'woechentlich',+ 'o\'clock', ' uhr', 'tonight', 'heute abend', 'morgen früh', 'morgen frueh', 'tomorrow morning',+ 'keep an eye', 'behalte im auge', 'behalt im auge', 'pass auf', 'pass mal auf', 'schau um', 'check at', 'schedule', 'zeitplan',+ 'later today', 'heute später', 'heute spaeter',+]++/** "18:00", "8 am", "um 8", "at 7", "in 20 minutes", "in 2 Stunden". */+const TIME_PATTERNS = [+ /\b([01]?\d|2[0-3])[:.][0-5]\d\b/,+ /\b(1[0-2]|0?[1-9])\s?(am|pm)\b/,+ /\b(um|at|gegen)\s+([01]?\d|2[0-3])\b/,+ /\bin\s+\d+\s*(min|minute|minuten|minutes|h|hour|hours|stunde|stunden)\b/,+]++/** True when a message is about doing something later or again. */+export function asksAboutWatchers(userMessage: string): boolean {+ const msg = ` ${(userMessage || '').toLowerCase()} `+ return WATCHER_GATE_WORDS.some((w) => msg.includes(w)) || TIME_PATTERNS.some((re) => re.test(msg))+}diff --git a/src/lib/watchers/__tests__/watcher-run-guards.test.ts b/src/lib/watchers/__tests__/watcher-run-guards.test.tsnew file mode 100644index 00000000..c897b3eb--- /dev/null+++ b/src/lib/watchers/__tests__/watcher-run-guards.test.ts@@ -0,0 +1,51 @@+// Watchers: a watcher's run cannot change LU or make watchers, and its cap+// is the last word on what runs without a question.+import { afterEach, describe, expect, it } from 'vitest'+import { checkSelfControl } from '../../self-control-policy'+import { useWatcherStore } from '../../../stores/watcherStore'+import { usePermissionStore } from '../../../stores/permissionStore'+import { setCapMap, setTurnCaps, clearTurnCaps } from '../../remote-turn-caps'+import { watcherCaps } from '../caps'+import { NO_RIGHTS, type Watcher } from '../types'+import type { AgentRunContext } from '../../../api/agent-context'++const w = { id: 'w1', name: 'Prices', conversation_id: 'watch-chat' } as Watcher++afterEach(() => {+ useWatcherStore.setState({ watchers: [], hints: [] })+ clearTurnCaps('watch-chat')+ clearTurnCaps('phone-chat')+ usePermissionStore.setState({ perToolOverrides: {} })+})++describe('a watcher run and the self-control tools', () => {+ it('refuses every change from inside a watcher chat, before any card', () => {+ useWatcherStore.setState({ watchers: [w], hints: [] })+ const run = { settingsCard: true, conversationId: 'watch-chat' } as unknown as AgentRunContext+ const verdict = checkSelfControl(run, { names: () => true, strong: false, what: 'a watcher' })+ expect(verdict.ok).toBe(false)+ if (!verdict.ok) expect(verdict.reply).toMatch(/watcher's run/)+ })+})++describe('the cap of a watcher run', () => {+ it('runs what was ticked without a question, even over a per-tool ask', () => {+ usePermissionStore.setState({ perToolOverrides: { shell_execute: 'confirm' } })+ setCapMap('watch-chat', watcherCaps({ ...NO_RIGHTS, terminal: true }))+ const p = usePermissionStore.getState()+ expect(p.getEffectivePermissionForTool('shell_execute', 'terminal', 'watch-chat')).toBe('auto')+ expect(p.getEffectivePermissionForTool('web_search', 'web', 'watch-chat')).toBe('blocked')+ })++ it('never lets through a tool the user blocked by name', () => {+ usePermissionStore.setState({ perToolOverrides: { shell_execute: 'blocked' } })+ setCapMap('watch-chat', watcherCaps({ ...NO_RIGHTS, terminal: true }))+ expect(usePermissionStore.getState().getEffectivePermissionForTool('shell_execute', 'terminal', 'watch-chat')).toBe('blocked')+ })++ it('leaves the phone cap as it was: only blocks, never a free pass', () => {+ usePermissionStore.setState({ perToolOverrides: { shell_execute: 'confirm' } })+ setTurnCaps('phone-chat', { agent: true, files: true, terminal: true, create: true })+ expect(usePermissionStore.getState().getEffectivePermissionForTool('shell_execute', 'terminal', 'phone-chat')).toBe('confirm')+ })+})diff --git a/src/lib/watchers/__tests__/watchers.test.ts b/src/lib/watchers/__tests__/watchers.test.tsnew file mode 100644index 00000000..19d3ef1e--- /dev/null+++ b/src/lib/watchers/__tests__/watchers.test.ts@@ -0,0 +1,192 @@+// Watchers: the rules of the window's half, without React or Tauri.+import { describe, expect, it, vi } from 'vitest'+import { scheduleFromArgs, repeatText, rightsText, whenText } from '../schedule'+import { watcherCaps } from '../caps'+import { createWatcherRunner, shouldNotify, summaryOf, watcherPrompt, type RunnerDeps } from '../runner'+import { NO_RIGHTS, type Watcher } from '../types'+import { asksAboutWatchers, isWatcherToolName } from '../../watcher-tool-names'+import { isSelfControlToolName, withSelfControlTools } from '../../settings-tool-names'+import { stripLine, rowState } from '../../../components/chat/WatcherStrip'++// Saturday 14.11.2026, 12:00 local.+const NOW = new Date(2026, 10, 14, 12, 0, 0, 0).getTime()++function watcher(over: Partial<Watcher> = {}): Watcher {+ return {+ id: 'w1', name: 'Prices', task: 'Check the prices.', schedule: { kind: 'daily', hour: 18, minute: 0, days: [] },+ rights: { ...NO_RIGHTS, web: true }, folder: null, model: null, paused: false, created_at: NOW,+ next_at: new Date(2026, 10, 14, 18, 0).getTime(), running_since: null, conversation_id: null, origin_conversation_id: null, runs: [],+ ...over,+ }+}++describe('the schedule out of the tool call', () => {+ it('reads a time later today as today and an earlier one as tomorrow', () => {+ const later = scheduleFromArgs({ repeat: 'once', time: '18:00' }, NOW)+ expect(later).toEqual({ ok: true, schedule: { kind: 'once', at: new Date(2026, 10, 14, 18, 0).getTime() } })+ const earlier = scheduleFromArgs({ repeat: 'once', time: '08:00' }, NOW)+ expect(earlier).toEqual({ ok: true, schedule: { kind: 'once', at: new Date(2026, 10, 15, 8, 0).getTime() } })+ })++ it('takes in_minutes, a date, weekdays and an interval', () => {+ expect(scheduleFromArgs({ repeat: 'once', in_minutes: 20 }, NOW)).toEqual({ ok: true, schedule: { kind: 'once', at: NOW + 20 * 60_000 } })+ expect(scheduleFromArgs({ repeat: 'once', time: '9:30', date: '2026-11-20' }, NOW))+ .toEqual({ ok: true, schedule: { kind: 'once', at: new Date(2026, 10, 20, 9, 30).getTime() } })+ expect(scheduleFromArgs({ repeat: 'weekdays', time: '07:30', days: ['Fri', 'mon', 'monday'] }, NOW))+ .toEqual({ ok: true, schedule: { kind: 'daily', hour: 7, minute: 30, days: [0, 4] } })+ expect(scheduleFromArgs({ repeat: 'interval', every_minutes: 60 }, NOW)).toEqual({ ok: true, schedule: { kind: 'interval', minutes: 60 } })+ })++ it('says what is missing instead of guessing', () => {+ expect(scheduleFromArgs({ repeat: 'daily' }, NOW).ok).toBe(false)+ expect(scheduleFromArgs({ repeat: 'once', time: '25:00' }, NOW).ok).toBe(false)+ expect(scheduleFromArgs({ repeat: 'weekdays', time: '08:00', days: [] }, NOW).ok).toBe(false)+ expect(scheduleFromArgs({ repeat: 'sometimes', time: '08:00' }, NOW).ok).toBe(false)+ })+})++describe('the words of the line', () => {+ it('names the time the way a person reads it', () => {+ expect(whenText(new Date(2026, 10, 14, 18, 0).getTime(), NOW)).toBe('18:00')+ expect(whenText(new Date(2026, 10, 15, 8, 0).getTime(), NOW)).toBe('tomorrow 08:00')+ expect(whenText(new Date(2026, 10, 16, 7, 30).getTime(), NOW)).toBe('Mon 07:30')+ })++ it('names the repeat and the rights', () => {+ expect(repeatText({ kind: 'daily', hour: 8, minute: 0, days: [] })).toBe('every day 08:00')+ expect(repeatText({ kind: 'daily', hour: 8, minute: 0, days: [0, 1, 2, 3, 4] })).toBe('Mon–Fri 08:00')+ expect(repeatText({ kind: 'interval', minutes: 120 })).toBe('every 2 h')+ expect(rightsText(NO_RIGHTS, null)).toBe('answers only, no tools')+ expect(rightsText({ ...NO_RIGHTS, files: true, terminal: true }, '/Users/a/shop', '/Users/a')).toBe('files and shell in ~/shop')+ })++ it('collapses to one line: one watcher by name, several by count', () => {+ expect(stripLine([], [], NOW)).toBeNull()+ expect(stripLine([watcher()], [], NOW)).toBe('18:00 · Prices')+ const two = [watcher(), watcher({ id: 'w2', name: 'News', next_at: new Date(2026, 10, 14, 13, 0).getTime() })]+ expect(stripLine(two, [], NOW)).toBe('2 watchers · next 13:00')+ expect(stripLine([watcher({ running_since: NOW })], [], NOW)).toBe('running · Prices')+ expect(stripLine([watcher({ paused: true })], [], NOW)).toBe('Prices · paused')+ expect(stripLine([], [{ id: 'x', name: 'News', was_next: null }], NOW)).toBe('News ended when LU quit')+ expect(rowState(watcher({ paused: true }), NOW)).toBe('paused · not run yet')+ })+})++describe('the cap a run carries', () => {+ it('lets through exactly what was ticked, and never the screen or a foreign MCP server', () => {+ const caps = watcherCaps({ ...NO_RIGHTS, web: true, files: true })+ expect(caps).toMatchObject({ web: 'auto', filesystem: 'auto', terminal: 'blocked', image: 'blocked', desktop: 'blocked', mcp: 'blocked', system: 'auto' })+ const all = watcherCaps({ web: true, files: true, terminal: true, create: true, extra_folders: [] })+ expect(all.desktop).toBe('blocked')+ expect(all.mcp).toBe('blocked')+ })+})++describe('the gate of the tools', () => {+ it('opens on a time or a repeat, not on a plain question', () => {+ for (const msg of ['um 18 Uhr prüf die Preise', 'every morning at 8 sum up the news', 'remind me in 20 minutes', 'check at 18:30', 'jeden Morgen um 8']) {+ expect(asksAboutWatchers(msg), msg).toBe(true)+ }+ for (const msg of ['what is the capital of France', 'write a poem about cats', 'stell auto compact auf 80']) {+ expect(asksAboutWatchers(msg), msg).toBe(false)+ }+ })++ it('belongs to the self-control family, but rides on its own gate', () => {+ expect(isWatcherToolName('watcher_create')).toBe(true)+ expect(isSelfControlToolName('watcher_create')).toBe(true)+ const all = [{ name: 'watcher_create' }, { name: 'set_setting' }, { name: 'web_search' }]+ expect(withSelfControlTools([], all, 'um 18 Uhr prüf die Preise').map((t) => t.name)).toEqual(['watcher_create'])+ expect(withSelfControlTools([], all, 'stell die einstellung temperatur auf 0.5').map((t) => t.name)).toEqual(['set_setting'])+ })+})++describe('the run', () => {+ function deps(over: Partial<RunnerDeps> = {}) {+ const calls: string[] = []+ let t = NOW+ const d: RunnerDeps = {+ now: () => (t += 1000),+ chatExists: () => false,+ createChat: () => { calls.push('create'); return 'c1' },+ setWorkspace: (c, f) => { calls.push(`ws ${c} ${f ?? 'sandbox'}`) },+ setCaps: (c) => { calls.push(`caps ${c}`) },+ clearCaps: (c) => { calls.push(`uncap ${c}`) },+ waitForDesk: async () => true,+ currentView: () => ({ convId: 'mine', restore: () => { calls.push('restore') } }),+ focus: (c) => { calls.push(`focus ${c}`) },+ useModel: () => () => { calls.push('model back') },+ send: async (c, content) => { calls.push(`send ${c} ${content.split('\n')[0]}`) },+ lastAnswer: () => ({ text: '**2 offers** under 1,900 €' }),+ wasStopped: () => false,+ denyQuestions: () => { calls.push('deny on'); return () => { calls.push('deny off') } },+ update: vi.fn(async () => null),+ finished: vi.fn(async () => null),+ notify: vi.fn(async () => null),+ notifySettings: () => ({ notify: true, sound: true, notifyOn: 'all' }),+ ...over,+ }+ return { d, calls }+ }++ it('runs the task in its own chat under its cap, then puts everything back and notifies', async () => {+ const { d, calls } = deps({ currentView: (() => { let n = 0; return () => ({ convId: n++ === 0 ? 'mine' : 'c1', restore: () => { calls.push('restore') } }) })() })+ await createWatcherRunner(d).due(watcher())+ expect(calls).toEqual([+ 'create', 'ws c1 sandbox', 'caps c1', 'deny on', 'focus c1', 'send c1 Check the prices.',+ 'deny off', 'uncap c1', 'model back', 'restore',+ ])+ expect(d.update).toHaveBeenCalledWith('w1', { conversationId: 'c1' })+ expect(d.finished).toHaveBeenCalledWith('w1', expect.objectContaining({ status: 'done', summary: '2 offers under 1,900 €' }))+ expect(d.notify).toHaveBeenCalledWith('Prices', '2 offers under 1,900 €', true)+ })++ it('reports a failed turn as failed, and an error-only setting still notifies it', async () => {+ const { d } = deps({ lastAnswer: () => ({ text: '', error: 'The model could not load.' }), notifySettings: () => ({ notify: true, sound: false, notifyOn: 'errors' }) })+ await createWatcherRunner(d).due(watcher())+ expect(d.finished).toHaveBeenCalledWith('w1', expect.objectContaining({ status: 'failed', summary: 'The model could not load.' }))+ expect(d.notify).toHaveBeenCalledWith('Prices failed', 'The model could not load.', false)+ })++ it('takes the cap off even when the send throws', async () => {+ const { d, calls } = deps({ send: async () => { throw new Error('Another chat was opened.') } })+ await createWatcherRunner(d).due(watcher())+ expect(calls).toContain('uncap c1')+ expect(calls).toContain('deny off')+ expect(d.finished).toHaveBeenCalledWith('w1', expect.objectContaining({ status: 'failed' }))+ })++ it('runs two due watchers one after the other, never at once', async () => {+ let inFlight = 0+ let most = 0+ const { d } = deps({ send: async () => { inFlight++; most = Math.max(most, inFlight); await new Promise((r) => setTimeout(r, 5)); inFlight-- } })+ const r = createWatcherRunner(d)+ await Promise.all([r.due(watcher()), r.due(watcher({ id: 'w2' }))])+ expect(most).toBe(1)+ expect(d.finished).toHaveBeenCalledTimes(2)+ })++ it('reuses the watcher chat while it exists', async () => {+ const { d, calls } = deps({ chatExists: () => true })+ await createWatcherRunner(d).due(watcher({ conversation_id: 'old' }))+ expect(calls).not.toContain('create')+ expect(calls).toContain('send old Check the prices.')+ })++ it('tells the model nobody is watching', () => {+ expect(watcherPrompt(watcher(), new Date(2026, 10, 14, 18, 0).getTime())).toMatch(/Nobody is watching this run: do not ask questions/)+ })++ it('notifies by the settings', () => {+ expect(shouldNotify('done', { notify: true, notifyOn: 'all' })).toBe(true)+ expect(shouldNotify('done', { notify: true, notifyOn: 'errors' })).toBe(false)+ expect(shouldNotify('failed', { notify: true, notifyOn: 'errors' })).toBe(true)+ expect(shouldNotify('failed', { notify: false, notifyOn: 'all' })).toBe(false)+ expect(shouldNotify('stopped', { notify: true, notifyOn: 'all' })).toBe(false)+ })++ it('makes a short plain line out of an answer', () => {+ expect(summaryOf('## Result\n\n- [Shop](https://x.y) has it for **1,849 €**')).toBe('Result - Shop has it for 1,849 €')+ expect(summaryOf('x'.repeat(500)).length).toBe(280)+ })+})diff --git a/src/lib/watchers/caps.ts b/src/lib/watchers/caps.tsnew file mode 100644index 00000000..d39a7f8c--- /dev/null+++ b/src/lib/watchers/caps.ts@@ -0,0 +1,29 @@+// Watchers: what a watcher may do, as the cap over its chat's permissions+// while it runs (lib/remote-turn-caps, the same slot a phone turn uses).+//+// A run has nobody in front of it. So the cap is both ways: what the user+// ticked when the watcher was made runs without a question (they answered it+// then), everything else is off. A question that still comes up (a per-tool+// "ask" the user set) is answered with no by the runner.+import type { PermissionMap, ToolCategory } from '../../api/mcp/types'+import type { WatcherRights } from './types'++export function watcherCaps(r: WatcherRights): PermissionMap {+ const on = (yes: boolean): 'auto' | 'blocked' => (yes ? 'auto' : 'blocked')+ const map: Record<ToolCategory, 'auto' | 'blocked'> = {+ web: on(r.web),+ filesystem: on(r.files),+ terminal: on(r.terminal),+ image: on(r.create),+ video: on(r.create),+ workflow: on(r.create),+ // Planning, the clock and the like. The self-control tools in it refuse a+ // watcher's run by themselves (lib/self-control-policy.ts).+ system: 'auto',+ // The screen and the tools of an external MCP server can do anything:+ // never without someone watching.+ desktop: 'blocked',+ mcp: 'blocked',+ }+ return map+}diff --git a/src/lib/watchers/runner.ts b/src/lib/watchers/runner.tsnew file mode 100644index 00000000..6ca1e51a--- /dev/null+++ b/src/lib/watchers/runner.ts@@ -0,0 +1,267 @@+// Watchers: the window's half. Rust's clock says a watcher is due+// (`watchers-due`); this runs it as a normal agent turn in the watcher's own+// chat, the same way a turn from the paired phone runs+// (lib/remote-chats-start.ts): open the chat, put the watcher's rights over it+// as a cap, send the task through the composer's own send path, read the+// answer, report back, notify.+//+// The send path is the one a typed message takes, so every guard of a normal+// run is there: the loop guard and the search spiral, the working-folder+// jail, Autocompact, the cost notices. No credit cap on top (David,+// 14.11.2026): the user decides what a watcher may cost.+//+// Nobody sits in front of the run. A question it still asks (a per-tool "ask",+// a made-up web address, a settings card) is answered no at once, so the run+// goes on or ends instead of waiting ten minutes for a card nobody sees.+//+// Everything this file touches comes in through `RunnerDeps`, so the rules+// are tested without React or Tauri.+import type { PermissionMap } from '../../api/mcp/types'+import { watcherCaps } from './caps'+import { clockText } from './schedule'+import type { Watcher, WatcherListing, WatcherPatch, WatcherRun } from './types'++export const DUE_EVENT = 'watchers-due'+export const CHANGED_EVENT = 'watchers-changed'+const SUMMARY_MAX = 280++export interface RunnerView {+ convId: string | null+ restore: () => void+}++export interface RunnerDeps {+ now: () => number+ /** Does the chat still exist (the user may have deleted it). */+ chatExists: (convId: string) => boolean+ /** A new Agent chat for the watcher; returns its id. */+ createChat: (w: Watcher) => string+ /** The working folder of the run: the watcher's folder, else the chat's own. */+ setWorkspace: (convId: string, folder: string | null, extra: string[]) => void+ setCaps: (convId: string, caps: Partial<PermissionMap>) => void+ clearCaps: (convId: string) => void+ /** Waits while someone types at the desktop (lib/remote-desk-gate). */+ waitForDesk: (convId: string, title: string) => Promise<boolean>+ /** What is open now, and how to go back to it after the run. */+ currentView: () => RunnerView+ focus: (convId: string) => void+ /** Picks the watcher's model; returns how to put the user's back. */+ useModel: (model: string | null) => () => void+ /** Runs one turn like the composer; resolves at its end. */+ send: (convId: string, content: string) => Promise<void>+ /** The last answer in the chat after `since`: its text and error, if any. */+ lastAnswer: (convId: string, since: number) => { text: string; error?: string } | null+ wasStopped: (convId: string) => boolean+ /** Answers every question of this chat with no while the run lasts. */+ denyQuestions: (convId: string) => () => void+ update: (id: string, patch: WatcherPatch) => Promise<unknown>+ finished: (id: string, run: WatcherRun) => Promise<unknown>+ notify: (title: string, body: string, sound: boolean) => Promise<unknown>+ notifySettings: () => { notify: boolean; sound: boolean; notifyOn: 'all' | 'errors' }+}++/** The order the model gets: the task, and that nobody can answer now. */+export function watcherPrompt(w: Watcher, at: number): string {+ return `${w.task.trim()}\n\n(Watcher "${w.name}", run of ${clockText(at)}. Nobody is watching this run: `+ + 'do not ask questions, do the task with the tools you have, and end with a short result.)'+}++/** A short line out of an answer, for the list and the notification. */+export function summaryOf(text: string): string {+ const plain = text+ .replace(/```[\s\S]*?```/g, ' ')+ .replace(/<[^>]+>/g, ' ')+ .replace(/[#*_`>]+/g, '')+ .replace(/\[([^\]]+)\]\([^)]+\)/g, '$1')+ .replace(/\s+/g, ' ')+ .trim()+ return plain.length > SUMMARY_MAX ? `${plain.slice(0, SUMMARY_MAX - 1)}…` : plain+}++/** Does this run get a notification under these settings. */+export function shouldNotify(status: WatcherRun['status'], s: { notify: boolean; notifyOn: 'all' | 'errors' }): boolean {+ if (!s.notify || status === 'stopped') return false+ return s.notifyOn === 'all' || status === 'failed'+}++export function createWatcherRunner(deps: RunnerDeps) {+ // One run at a time: two watchers due in the same minute run one after the+ // other, never two turns fighting over the open chat.+ let chain: Promise<void> = Promise.resolve()++ async function run(w: Watcher): Promise<void> {+ const started = deps.now()+ let convId = w.conversation_id && deps.chatExists(w.conversation_id) ? w.conversation_id : null+ if (!convId) {+ convId = deps.createChat(w)+ await deps.update(w.id, { conversationId: convId }).catch(() => null)+ }+ deps.setWorkspace(convId, w.folder, w.rights.extra_folders)+ deps.setCaps(convId, watcherCaps(w.rights))+ const undeny = deps.denyQuestions(convId)+ let restoreModel: (() => void) | null = null+ let view: RunnerView | null = null+ let status: WatcherRun['status'] = 'done'+ let summary = ''+ try {+ const go = await deps.waitForDesk(convId, w.name)+ if (!go) {+ status = 'stopped'+ summary = 'Stopped before it ran.'+ } else {+ view = deps.currentView()+ deps.focus(convId)+ restoreModel = deps.useModel(w.model)+ await deps.send(convId, watcherPrompt(w, started))+ const answer = deps.lastAnswer(convId, started)+ if (answer?.error) {+ status = 'failed'+ summary = summaryOf(answer.error)+ } else if (answer && answer.text.trim()) {+ summary = summaryOf(answer.text)+ } else if (deps.wasStopped(convId)) {+ status = 'stopped'+ summary = 'Stopped.'+ } else {+ status = 'failed'+ summary = 'The run ended without an answer.'+ }+ }+ } catch (e) {+ status = 'failed'+ summary = summaryOf(e instanceof Error ? e.message : String(e))+ } finally {+ undeny()+ deps.clearCaps(convId)+ restoreModel?.()+ // Back to what was open, unless the user went somewhere else meanwhile.+ if (view && view.convId !== convId && deps.currentView().convId === convId) view.restore()+ }+ await deps.finished(w.id, { at: started, ms: Math.max(0, deps.now() - started), status, summary }).catch(() => null)+ const s = deps.notifySettings()+ if (shouldNotify(status, s)) {+ const title = status === 'done' ? w.name : `${w.name} failed`+ await deps.notify(title, summary || 'Done.', s.sound).catch(() => null)+ }+ }++ return {+ /** A watcher is due. Queued behind a run that is still going. */+ due(w: Watcher): Promise<void> {+ chain = chain.then(() => run(w)).catch(() => {})+ return chain+ },+ }+}++// ── The real window ──────────────────────────────────────────────++let started: Promise<() => void> | null = null++/** Listen for the clock for the life of the window. Once. */+export function startWatcherRunner(): Promise<() => void> {+ if (started) return started+ started = (async () => {+ const [+ { backendCall, isTauri }, { listen },+ { useChatStore }, { useUIStore }, { useCodexStore }, { useModelStore }, { useAgentModeStore },+ { useWatcherStore, useWatcherSettingsStore }, caps, approvals, senders, runStop,+ { useSettingsConfirmStore }, { useWebUrlConfirmStore },+ ] = await Promise.all([+ import('../../api/backend'), import('@tauri-apps/api/event'),+ import('../../stores/chatStore'), import('../../stores/uiStore'), import('../../stores/codexStore'), import('../../stores/modelStore'),+ import('../../stores/agentModeStore'), import('../../stores/watcherStore'), import('../remote-turn-caps'), import('../approval-queue'),+ import('../remote-chat-senders'), import('../run-stop'),+ import('../../stores/settingsConfirmStore'), import('../../stores/webUrlConfirmStore'),+ ])+ if (!isTauri()) return () => {}+ const refresh = async (cmd = 'watchers_list') => {+ try { useWatcherStore.getState().set(await backendCall<WatcherListing>(cmd)) } catch { /* the list stays as it was */ }+ }+ // A run the old page had started is gone with it.+ await refresh('watchers_runner_ready')++ const deps: RunnerDeps = {+ now: () => Date.now(),+ chatExists: (id) => useChatStore.getState().conversations.some((c) => c.id === id),+ createChat: (w) => {+ const store = useChatStore.getState()+ const model = w.model || useModelStore.getState().activeModel || ''+ const id = store.createConversation(model, '', 'lu')+ useAgentModeStore.getState().setAgentModeActive(id, true)+ store.renameConversation(id, `Watcher · ${w.name}`)+ return id+ },+ setWorkspace: (convId, folder, extra) => {+ useAgentModeStore.getState().setWorkspace(convId, folder+ ? { kind: 'folder', path: folder, ...(extra.length ? { extraPaths: extra } : {}) }+ : { kind: 'sandbox', ...(extra.length ? { extraPaths: extra } : {}) })+ },+ setCaps: caps.setCapMap,+ clearCaps: caps.clearTurnCaps,+ waitForDesk: async (convId, title) => {+ const gate = (await import('../remote-desk-gate')).windowDeskGate()+ return gate ? gate.wait(convId, title).ready : true+ },+ currentView: () => {+ const convId = useChatStore.getState().activeConversationId+ const view = useUIStore.getState().currentView+ const mode = useCodexStore.getState().chatMode+ return {+ convId,+ restore: () => {+ useCodexStore.getState().setChatMode(mode)+ if (convId) useChatStore.getState().setActiveConversation(convId)+ useUIStore.getState().setView(view)+ },+ }+ },+ focus: (convId) => {+ useCodexStore.getState().setChatMode('lu')+ useChatStore.getState().setActiveConversation(convId)+ useUIStore.getState().setView('chat')+ },+ useModel: (model) => {+ const before = useModelStore.getState().activeModel+ if (!model || model === before || !useModelStore.getState().models.some((m) => m.name === model)) return () => {}+ useModelStore.getState().setActiveModel(model)+ return () => { if (before && useModelStore.getState().activeModel === model) useModelStore.getState().setActiveModel(before) }+ },+ send: async (convId, content) => {+ const sender = await senders.waitForChatSender('chat')+ if (!sender) throw new Error('The chat did not open in the window.')+ if (useChatStore.getState().activeConversationId !== convId) throw new Error('Another chat was opened before the run could start.')+ runStop.beginRun(convId)+ await sender.send(content, [], [])+ },+ lastAnswer: (convId, since) => {+ const conv = useChatStore.getState().conversations.find((c) => c.id === convId)+ const last = [...(conv?.messages ?? [])].reverse().find((m) => m.role === 'assistant' && (m.timestamp ?? 0) >= since)+ if (!last) return null+ return { text: last.content ?? '', error: last.error ? (last.error.detail || `The run failed (${last.error.kind}).`) : undefined }+ },+ wasStopped: (convId) => runStop.isRunStopped(convId),+ denyQuestions: (convId) => {+ const answerAll = () => {+ for (const call of approvals.listApprovals(convId)) approvals.answerApproval(convId, call.id, false, 'desktop')+ for (const w of useSettingsConfirmStore.getState().queue) if (w.req.conversationId === convId) useSettingsConfirmStore.getState().answer(w.req.id, false)+ for (const w of useWebUrlConfirmStore.getState().queue) if (w.req.conversationId === convId) useWebUrlConfirmStore.getState().answer(w.req.id, false)+ }+ const offs = [approvals.subscribeApprovals(answerAll), useSettingsConfirmStore.subscribe(answerAll), useWebUrlConfirmStore.subscribe(answerAll)]+ return () => { for (const off of offs) off() }+ },+ update: (id, patch) => backendCall('watchers_update', { id, patch }),+ finished: (id, run) => backendCall('watchers_finished', { id, run }),+ notify: (title, body, sound) => backendCall('watchers_notify', { title, body, sound }),+ notifySettings: () => {+ const s = useWatcherSettingsStore.getState()+ return { notify: s.notify, sound: s.sound, notifyOn: s.notifyOn }+ },+ }+ const runner = createWatcherRunner(deps)+ const offDue = await listen<Watcher>(DUE_EVENT, (e) => { void runner.due(e.payload) })+ const offChanged = await listen(CHANGED_EVENT, () => { void refresh() })+ return () => { offDue(); offChanged() }+ })()+ return started+}diff --git a/src/lib/watchers/schedule.ts b/src/lib/watchers/schedule.tsnew file mode 100644index 00000000..3d2be118--- /dev/null+++ b/src/lib/watchers/schedule.ts@@ -0,0 +1,117 @@+// Watchers: what the tool call says about time, turned into the schedule Rust+// keeps, and the schedule turned back into the few words the line above the+// composer shows. Pure, so the rules are tested without a clock.++import type { WatcherRights, WatcherSchedule } from './types'++const DAY_NAMES = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] as const+const DAY_LABELS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] as const++const pad = (n: number) => String(n).padStart(2, '0')++/** "18:00". */+export function clockText(ms: number): string {+ const d = new Date(ms)+ return `${pad(d.getHours())}:${pad(d.getMinutes())}`+}++function sameDay(a: Date, b: Date): boolean {+ return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate()+}++/** "18:00", "tomorrow 08:00", "Mon 07:30" or "21 Nov 09:00", from `now`. */+export function whenText(ms: number, now: number): string {+ const d = new Date(ms)+ const today = new Date(now)+ const tomorrow = new Date(now)+ tomorrow.setDate(tomorrow.getDate() + 1)+ if (sameDay(d, today)) return clockText(ms)+ if (sameDay(d, tomorrow)) return `tomorrow ${clockText(ms)}`+ if (ms - now < 6 * 24 * 60 * 60 * 1000 && ms > now) return `${DAY_LABELS[(d.getDay() + 6) % 7]} ${clockText(ms)}`+ return `${d.getDate()} ${d.toLocaleString('en', { month: 'short' })} ${clockText(ms)}`+}++/** "every day", "Mon–Fri", "Sat, Sun", "every 2 h", "once". */+export function repeatText(s: WatcherSchedule): string {+ if (s.kind === 'once') return 'once'+ if (s.kind === 'interval') {+ if (s.minutes % 60 === 0) return s.minutes === 60 ? 'every hour' : `every ${s.minutes / 60} h`+ return `every ${s.minutes} min`+ }+ const days = [...new Set(s.days)].sort((a, b) => a - b)+ if (days.length === 0 || days.length === 7) return `every day ${pad(s.hour)}:${pad(s.minute)}`+ const label = days.join(',') === '0,1,2,3,4' ? 'Mon–Fri' : days.join(',') === '5,6' ? 'Sat, Sun' : days.map((d) => DAY_LABELS[d]).join(', ')+ return `${label} ${pad(s.hour)}:${pad(s.minute)}`+}++/** What a watcher may do, in a few words: "web · files and shell in ~/shop". */+export function rightsText(r: WatcherRights, folder: string | null, home = ''): string {+ const short = (p: string) => (home && p.startsWith(home) ? `~${p.slice(home.length)}` : p)+ const where = folder ? ` in ${short(folder)}` : ' in its own folder'+ const parts: string[] = []+ if (r.web) parts.push('web')+ if (r.files && r.terminal) parts.push(`files and shell${where}`)+ else if (r.files) parts.push(`files${where}`)+ else if (r.terminal) parts.push(`shell${where}`)+ if (r.create) parts.push('pictures and video')+ if (r.extra_folders.length) parts.push(`also ${r.extra_folders.map(short).join(', ')}`)+ return parts.length ? parts.join(' · ') : 'answers only, no tools'+}++export type ScheduleResult = { ok: true; schedule: WatcherSchedule } | { ok: false; error: string }++const HHMM = /^\s*(\d{1,2})(?::(\d{2}))?\s*$/++function parseHHMM(text: string): { hour: number; minute: number } | null {+ const m = HHMM.exec(text)+ if (!m) return null+ const hour = Number(m[1])+ const minute = Number(m[2] ?? '0')+ return hour <= 23 && minute <= 59 ? { hour, minute } : null+}++/**+ * The tool's arguments as a schedule. `repeat`: once | daily | weekdays |+ * interval. `time` is HH:MM (local) for once and daily; `date` (YYYY-MM-DD)+ * is optional for once, without it the next such time today or tomorrow.+ * `in_minutes` is an alternative for once ("in 20 minutes").+ */+export function scheduleFromArgs(args: Record<string, unknown>, now: number): ScheduleResult {+ const repeat = String(args.repeat ?? 'once').toLowerCase().trim()+ const time = typeof args.time === 'string' ? args.time : ''+ if (repeat === 'interval') {+ const minutes = Math.round(Number(args.every_minutes))+ if (!Number.isFinite(minutes) || minutes <= 0) return { ok: false, error: 'interval needs every_minutes, e.g. 60.' }+ return { ok: true, schedule: { kind: 'interval', minutes } }+ }+ if (repeat === 'once') {+ const inMinutes = Number(args.in_minutes)+ if (Number.isFinite(inMinutes) && inMinutes > 0) {+ return { ok: true, schedule: { kind: 'once', at: now + Math.round(inMinutes) * 60_000 } }+ }+ const hm = parseHHMM(time)+ if (!hm) return { ok: false, error: 'once needs time as HH:MM (24 h, local), or in_minutes.' }+ const d = new Date(now)+ if (typeof args.date === 'string' && args.date.trim()) {+ const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(args.date.trim())+ if (!m) return { ok: false, error: 'date is YYYY-MM-DD.' }+ const at = new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3]), hm.hour, hm.minute, 0, 0).getTime()+ return { ok: true, schedule: { kind: 'once', at } }+ }+ d.setHours(hm.hour, hm.minute, 0, 0)+ if (d.getTime() <= now) d.setDate(d.getDate() + 1)+ return { ok: true, schedule: { kind: 'once', at: d.getTime() } }+ }+ if (repeat === 'daily' || repeat === 'weekdays') {+ const hm = parseHHMM(time)+ if (!hm) return { ok: false, error: `${repeat} needs time as HH:MM (24 h, local).` }+ let days: number[] = []+ if (repeat === 'weekdays') {+ const raw = Array.isArray(args.days) ? args.days : []+ days = raw.map((x) => DAY_NAMES.indexOf(String(x).toLowerCase().slice(0, 3) as typeof DAY_NAMES[number])).filter((i) => i >= 0)+ if (days.length === 0) return { ok: false, error: 'weekdays needs days, e.g. ["mon","wed"].' }+ }+ return { ok: true, schedule: { kind: 'daily', hour: hm.hour, minute: hm.minute, days: [...new Set(days)].sort((a, b) => a - b) } }+ }+ return { ok: false, error: 'repeat is once, daily, weekdays or interval.' }+}diff --git a/src/lib/watchers/tool-exec.ts b/src/lib/watchers/tool-exec.tsnew file mode 100644index 00000000..a16b4aea--- /dev/null+++ b/src/lib/watchers/tool-exec.ts@@ -0,0 +1,203 @@+// Watchers: what the four tools do. Loaded on the first call+// (api/mcp/watcher-tools.ts registers them).+//+// Every change goes through the same gate as LU's other self-control actions+// (confirmAction: the policy, then the card): the user's own message has to+// be about a later time or a watcher, a run that read foreign content may not+// hand out the shell or a folder outside, and nothing is made before the yes.+import type { ToolArgs } from '../../api/mcp/types'+import type { AgentRunContext } from '../../api/agent-context'+import { confirmAction } from '../../api/mcp/self-control-tools'+import { backendCall, isTauri } from '../../api/backend'+import { getProviderIdFromModel } from '../../api/providers/model-name'+import { useModelStore } from '../../stores/modelStore'+import { useAgentModeStore } from '../../stores/agentModeStore'+import { useWatcherStore } from '../../stores/watcherStore'+import { isPaidProvider } from '../send-window'+import { sendsToALanBackend } from '../lan-openai-slot'+import { asksAboutWatchers } from '../watcher-tool-names'+import { scheduleFromArgs, repeatText, rightsText, whenText } from './schedule'+import type { Watcher, WatcherListing, WatcherPatch, WatcherRights, WatcherSchedule, WatcherSpec } from './types'++const NOT_HERE = 'Error: watchers exist in the desktop app only. Nothing was made.'+const TASK_SHOWN = 280++const namesWatchers = (t: string) => asksAboutWatchers(t) || /\bwatcher|wächter|waechter\b/i.test(t)++function rightsFrom(raw: unknown, extra: unknown): WatcherRights {+ const r = (raw && typeof raw === 'object' ? raw : {}) as Record<string, unknown>+ const folders = Array.isArray(extra) ? extra.filter((x): x is string => typeof x === 'string' && x.trim() !== '').map((x) => x.trim()) : []+ return { web: r.web === true, files: r.files === true, terminal: r.terminal === true, create: r.create === true, extra_folders: folders }+}++/** The shell or a folder outside: the red card, and never after foreign content. */+const isStrong = (r: WatcherRights) => r.terminal || r.extra_folders.length > 0++function modelLine(model: string | null): string {+ if (!model) return 'Model: the one active when it runs'+ const provider = getProviderIdFromModel(model)+ const paid = isPaidProvider(provider, sendsToALanBackend(provider, model))+ return `Model: ${model}${paid ? ' · every run is billed like a chat turn with this model' : ' · on this computer, free'}`+}++function scheduleLine(s: WatcherSchedule, now: number, next: number | null): string {+ if (s.kind === 'once') return `When: once, ${next ? whenText(next, now) : 'now'}`+ return `When: ${repeatText(s)}${next ? ` · next ${whenText(next, now)}` : ''}`+}++/** The next run as the card can know it before Rust has the watcher. */+function firstRun(s: WatcherSchedule, now: number): number | null {+ if (s.kind === 'once') return s.at+ if (s.kind === 'interval') return now + s.minutes * 60_000+ for (let i = 0; i < 8; i++) {+ const d = new Date(now)+ d.setDate(d.getDate() + i)+ d.setHours(s.hour, s.minute, 0, 0)+ const wd = (d.getDay() + 6) % 7+ if (d.getTime() > now && (s.days.length === 0 || s.days.includes(wd))) return d.getTime()+ }+ return null+}++function clipTask(t: string): string {+ const s = t.trim().replace(/\s+/g, ' ')+ return s.length > TASK_SHOWN ? `${s.slice(0, TASK_SHOWN - 1)}…` : s+}++async function listing(): Promise<WatcherListing> {+ const l = await backendCall<WatcherListing>('watchers_list')+ useWatcherStore.getState().set(l)+ return l+}++/** By id, a unique id prefix, or the name (case does not matter). */+function find(list: Watcher[], key: unknown): Watcher | string {+ const k = String(key ?? '').trim().toLowerCase()+ if (!k) return 'Error: name the watcher (id or name from watcher_list).'+ const hits = list.filter((w) => w.id.toLowerCase() === k || w.id.toLowerCase().startsWith(k) || w.name.toLowerCase() === k)+ const loose = hits.length ? hits : list.filter((w) => w.name.toLowerCase().includes(k))+ if (loose.length === 1) return loose[0]+ return loose.length === 0+ ? `Error: no watcher matches "${key}". Call watcher_list.`+ : `Error: "${key}" matches ${loose.length} watchers: ${loose.map((w) => w.name).join(', ')}. Say which.`+}++export async function executeWatcherCreate(args: ToolArgs, run?: AgentRunContext, signal?: AbortSignal): Promise<string> {+ const now = Date.now()+ const name = typeof args?.name === 'string' ? args.name.trim() : ''+ const task = typeof args?.task === 'string' ? args.task.trim() : ''+ if (!name) return 'Error: watcher_create needs name, a short name. Nothing was made.'+ if (!task) return 'Error: watcher_create needs task, the full order for the run. Nothing was made.'+ if (typeof args?.repeat !== 'string' || !args.repeat.trim()) return 'Error: watcher_create needs repeat: once, daily, weekdays or interval. Nothing was made.'+ if (!isTauri()) return NOT_HERE+ const when = scheduleFromArgs(args ?? {}, now)+ if (!when.ok) return `Error: ${when.error} Nothing was made.`+ const rights = rightsFrom(args?.rights, args?.extra_folders)+ // The working folder: the one named, else the folder the chat it is made in+ // works in, else its own sandbox folder.+ let folder = typeof args?.folder === 'string' && args.folder.trim() ? args.folder.trim() : null+ if (!folder && (rights.files || rights.terminal) && run?.conversationId) {+ const ws = useAgentModeStore.getState().workspaces[run.conversationId]+ if (ws?.kind === 'folder' && ws.path) folder = ws.path+ }+ const model = useModelStore.getState().activeModel || null+ const details = [+ scheduleLine(when.schedule, now, firstRun(when.schedule, now)),+ `Task: ${clipTask(task)}`,+ `May use: ${rightsText(rights, folder)}`,+ modelLine(model),+ 'Runs while LU is open or in the tray, also with the window closed. Ends when you quit LU.',+ ]+ const refused = await confirmAction(run, signal, {+ key: 'watcher_create', title: `Make the watcher "${name}"`, details, strong: isStrong(rights), what: 'a watcher',+ names: namesWatchers,+ riskNote: isStrong(rights) ? 'It may run commands or reach folders outside its own, with nobody watching.' : undefined,+ })+ if (refused) return refused+ const spec: WatcherSpec = { name, task, schedule: when.schedule, rights, folder, model, originConversationId: run?.conversationId ?? null }+ try {+ const w = await backendCall<Watcher>('watchers_create', { spec })+ void listing().catch(() => {})+ const next = w.next_at ? whenText(w.next_at, Date.now()) : 'now'+ return `Watcher "${w.name}" is set (id ${w.id.slice(0, 8)}): ${repeatText(w.schedule)}, next run ${next}. `+ + 'It runs as long as LU runs, also with the window closed, and ends when LU quits. The user sees it above the message box.'+ } catch (e) {+ return `Error: ${e instanceof Error ? e.message : String(e)} Nothing was made.`+ }+}++export async function executeWatcherList(): Promise<string> {+ if (!isTauri()) return NOT_HERE+ const { watchers } = await listing()+ if (watchers.length === 0) return 'No watchers.'+ const now = Date.now()+ return watchers.map((w) => {+ const next = w.paused ? 'paused' : w.running_since ? 'running now' : w.next_at ? `next ${whenText(w.next_at, now)}` : 'done'+ const last = w.runs[0] ? ` · last ${w.runs[0].status}${w.runs[0].summary ? `: ${w.runs[0].summary.slice(0, 80)}` : ''}` : ''+ return `${w.id.slice(0, 8)} · ${w.name} · ${repeatText(w.schedule)} · ${next} · may use ${rightsText(w.rights, w.folder)}${last}`+ }).join('\n')+}++export async function executeWatcherUpdate(args: ToolArgs, run?: AgentRunContext, signal?: AbortSignal): Promise<string> {+ if (typeof args?.watcher !== 'string' || !args.watcher.trim()) return 'Error: watcher_update needs watcher, the id or name from watcher_list. Nothing changed.'+ if (!isTauri()) return NOT_HERE+ const now = Date.now()+ const found = find((await listing()).watchers, args?.watcher)+ if (typeof found === 'string') return found+ const patch: WatcherPatch = {}+ const lines: string[] = []+ if (typeof args?.name === 'string' && args.name.trim()) { patch.name = args.name.trim(); lines.push(`Name: ${patch.name}`) }+ if (typeof args?.task === 'string' && args.task.trim()) { patch.task = args.task.trim(); lines.push(`Task: ${clipTask(patch.task)}`) }+ if (args?.repeat !== undefined || args?.time !== undefined || args?.in_minutes !== undefined) {+ const when = scheduleFromArgs(args ?? {}, now)+ if (!when.ok) return `Error: ${when.error} Nothing changed.`+ patch.schedule = when.schedule+ lines.push(scheduleLine(when.schedule, now, firstRun(when.schedule, now)))+ }+ let rights: WatcherRights = found.rights+ if (args?.rights !== undefined) {+ rights = { ...rightsFrom(args.rights, found.rights.extra_folders) }+ patch.rights = rights+ lines.push(`May use: ${rightsText(rights, found.folder)}`)+ }+ if (typeof args?.folder === 'string') { patch.folder = args.folder.trim(); lines.push(`Folder: ${patch.folder || 'its own'}`) }+ if (typeof args?.paused === 'boolean') { patch.paused = args.paused; lines.push(args.paused ? 'Pause it' : 'Resume it') }+ if (lines.length === 0) return 'Error: nothing to change was given. Nothing changed.'+ // Granting the shell or a folder outside is the red card; taking a right+ // away, a new time or a pause is the plain one.+ const grows = (rights.terminal && !found.rights.terminal) || patch.folder !== undefined+ const refused = await confirmAction(run, signal, {+ key: 'watcher_update', title: `Change the watcher "${found.name}"`, details: lines, strong: grows && isStrong(rights), what: 'a watcher',+ names: (t, strict) => namesWatchers(t) || t.toLowerCase().includes(found.name.toLowerCase()) || (!strict && /paus|resume|weiter|stopp/i.test(t)),+ })+ if (refused) return refused+ try {+ const w = await backendCall<Watcher>('watchers_update', { id: found.id, patch })+ void listing().catch(() => {})+ const state = w.paused ? 'paused' : w.next_at ? `next run ${whenText(w.next_at, Date.now())}` : 'no further run'+ return `Watcher "${w.name}" changed: ${repeatText(w.schedule)}, ${state}.`+ } catch (e) {+ return `Error: ${e instanceof Error ? e.message : String(e)} Nothing changed.`+ }+}++export async function executeWatcherDelete(args: ToolArgs, run?: AgentRunContext, signal?: AbortSignal): Promise<string> {+ if (typeof args?.watcher !== 'string' || !args.watcher.trim()) return 'Error: watcher_delete needs watcher, the id or name from watcher_list. Nothing changed.'+ if (!isTauri()) return NOT_HERE+ const found = find((await listing()).watchers, args?.watcher)+ if (typeof found === 'string') return found+ const refused = await confirmAction(run, signal, {+ key: 'watcher_delete', title: `Delete the watcher "${found.name}"`, strong: false, what: 'a watcher',+ details: [`${repeatText(found.schedule)} · ${clipTask(found.task)}`, 'Its chat stays.'],+ names: (t) => namesWatchers(t) || t.toLowerCase().includes(found.name.toLowerCase()) || /delet|lösch|loesch|remove|entfern/i.test(t),+ })+ if (refused) return refused+ try {+ await backendCall('watchers_delete', { id: found.id })+ void listing().catch(() => {})+ return `Watcher "${found.name}" deleted.`+ } catch (e) {+ return `Error: ${e instanceof Error ? e.message : String(e)} Nothing changed.`+ }+}+diff --git a/src/lib/watchers/types.ts b/src/lib/watchers/types.tsnew file mode 100644index 00000000..89a32e77--- /dev/null+++ b/src/lib/watchers/types.ts@@ -0,0 +1,81 @@+// Watchers: the shapes Rust hands over (src-tauri/src/watchers.rs). Times are+// milliseconds since 1970; a daily time is the computer's local time.++export type WatcherSchedule =+ | { kind: 'once'; at: number }+ /** days: 0 = Monday … 6 = Sunday; empty = every day. */+ | { kind: 'daily'; hour: number; minute: number; days: number[] }+ | { kind: 'interval'; minutes: number }++export interface WatcherRights {+ web: boolean+ /** Read and write files in the working folder. */+ files: boolean+ /** Run commands in the working folder. */+ terminal: boolean+ /** Make pictures and videos. */+ create: boolean+ /** Folders outside the working folder, allowed by name. */+ extra_folders: string[]+}++export interface WatcherRun {+ at: number+ ms: number+ status: 'done' | 'failed' | 'stopped'+ summary: string+}++export interface Watcher {+ id: string+ name: string+ task: string+ schedule: WatcherSchedule+ rights: WatcherRights+ folder: string | null+ model: string | null+ paused: boolean+ created_at: number+ next_at: number | null+ running_since: number | null+ conversation_id: string | null+ origin_conversation_id: string | null+ runs: WatcherRun[]+}++/** A watcher the last quit of LU ended, shown once after the start. */+export interface WatcherHint {+ id: string+ name: string+ was_next: number | null+}++export interface WatcherListing {+ watchers: Watcher[]+ hints: WatcherHint[]+}++export interface WatcherSpec {+ name: string+ task: string+ schedule: WatcherSchedule+ rights: WatcherRights+ folder?: string | null+ model?: string | null+ originConversationId?: string | null+}++export type WatcherPatch = Partial<{+ name: string+ task: string+ schedule: WatcherSchedule+ rights: WatcherRights+ /** '' clears it. */+ folder: string+ /** '' clears it. */+ model: string+ paused: boolean+ conversationId: string+}>++export const NO_RIGHTS: WatcherRights = { web: false, files: false, terminal: false, create: false, extra_folders: [] }diff --git a/src/mobile/boot/__tests__/settings-durable.test.ts b/src/mobile/boot/__tests__/settings-durable.test.tsindex 9afbf0fb..02efdc72 100644--- a/src/mobile/boot/__tests__/settings-durable.test.ts+++ b/src/mobile/boot/__tests__/settings-durable.test.ts@@ -112,6 +112,7 @@ describe('which keys are kept', () => {'locally-uncensored-computer': 'desktop only: the settings of computer use, which the phone does not have','lu-neuron-tweaker': 'desktop only (3.0.9, P11): the Neuron tweaker steers LU Engine, which the phone does not have','lu-neuron-window': 'desktop only (3.1.0): where the Neurons window stood, a window the phone does not have',+ 'lu-watcher-settings': 'desktop only: the notification switches of the watchers, which the phone does not run','lu-settings-audit': 'desktop only (3.1.0, C60): what the agent changed in the desktop app; the phone has no self-control tools','lu-chat-look': 'desktop only (3.1.0, C58): the chat look of the desktop transcript; the phone has its own chat screen','LU-create-orders': 'the orders of Create in chat, which is locked on the phone until it has the order card',diff --git a/src/stores/permissionStore.ts b/src/stores/permissionStore.tsindex b8a89b3e..449adef2 100644--- a/src/stores/permissionStore.ts+++ b/src/stores/permissionStore.ts@@ -72,8 +72,12 @@ export const usePermissionStore = create<PermissionState>()(},getEffectivePermissionForTool: (toolName, toolCategory, conversationId?) => {- if (turnCaps(conversationId)?.[toolCategory] === 'blocked') return 'blocked'+ const cap = turnCaps(conversationId)?.[toolCategory]+ if (cap === 'blocked') return 'blocked'const perTool = get().perToolOverrides[toolName]+ // A watcher's cap says 'auto' for what the user allowed when they+ // made it; a tool the user blocked by name stays blocked.+ if (cap && perTool !== 'blocked') return capif (perTool) return perToolconst categoryMap = get().getEffectivePermissions(conversationId)return categoryMap[toolCategory]diff --git a/src/stores/watcherStore.ts b/src/stores/watcherStore.tsnew file mode 100644index 00000000..10240820--- /dev/null+++ b/src/stores/watcherStore.ts@@ -0,0 +1,49 @@+// Watchers: the list as Rust keeps it (src-tauri/src/watchers.rs), mirrored+// for the line above the composer. Rust is the only owner; this store only+// reads it back after every change (`watchers-changed`).+import { create } from 'zustand'+import { persist } from 'zustand/middleware'+import { safeJSONStorage } from '../lib/storage-quota'+import type { Watcher, WatcherHint, WatcherListing } from '../lib/watchers/types'++interface WatcherState {+ watchers: Watcher[]+ hints: WatcherHint[]+ set: (l: WatcherListing) => void+}++export const useWatcherStore = create<WatcherState>((set) => ({+ watchers: [],+ hints: [],+ set: (l) => set({ watchers: l.watchers ?? [], hints: l.hints ?? [] }),+}))++/** Is this chat the one a watcher writes into. */+export function isWatcherConversation(convId: string | null | undefined): boolean {+ return !!convId && useWatcherStore.getState().watchers.some((w) => w.conversation_id === convId)+}++export type WatcherNotifyOn = 'all' | 'errors'++interface WatcherSettingsState {+ /** A notification of the system when a watcher ran. */+ notify: boolean+ sound: boolean+ /** 'all': results and errors; 'errors': only when a run failed. */+ notifyOn: WatcherNotifyOn+ update: (patch: Partial<Pick<WatcherSettingsState, 'notify' | 'sound' | 'notifyOn'>>) => void+}++/** Settings → Agent → Watchers. Kept apart from the big settings blob: three+ * switches of one feature, nothing the chat changes. */+export const useWatcherSettingsStore = create<WatcherSettingsState>()(+ persist(+ (set) => ({+ notify: true,+ sound: true,+ notifyOn: 'all',+ update: (patch) => set(patch),+ }),+ { name: 'lu-watcher-settings', version: 1, storage: safeJSONStorage() },+ ),+)