diff --git a/apps/desktop/e2e/tauri-bridge-mock.ts b/apps/desktop/e2e/tauri-bridge-mock.ts index fe7a454a..29f8fbf6 100644 --- a/apps/desktop/e2e/tauri-bridge-mock.ts +++ b/apps/desktop/e2e/tauri-bridge-mock.ts @@ -72,12 +72,12 @@ export const MOCK_RESPONSES: Record = { kill_panel: null, check_git_repo: { isGitRepo: false, branch: null, currentCommit: null }, get_comparison_setup: { prompt: "", workingDir: "", panels: [] }, - read_permissions: { allow: [], deny: [], ask: [], tools: { allow: [], deny: [], ask: [] }, paths: { writable: [], readonly: [] }, network: { allowedHosts: [] } }, + read_permissions: { allow: [], deny: [], ask: [], tools: { allow: [], deny: [], ask: [] }, paths: { writable: [], readonly: [] }, network: { allowedHosts: [] }, sha256: null }, list_security_presets: [], list_required_env: [], list_audit_entries: [], board_server_check_installed: false, - read_env_config: [], + read_env_config: { entries: [], sha256: null }, get_comparator_analytics: { totalComparisons: 0, totalPanels: 0 }, get_evaluation_session: null, create_evaluation_session: { diff --git a/apps/desktop/scripts/generate-write-scope.mjs b/apps/desktop/scripts/generate-write-scope.mjs index b9ea6ba7..bf5ae5dc 100644 --- a/apps/desktop/scripts/generate-write-scope.mjs +++ b/apps/desktop/scripts/generate-write-scope.mjs @@ -11,17 +11,20 @@ import { writeFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; import { dirname, join } from "node:path"; -import { homeWriteScope } from "@harness-kit/core"; +import { homeWriteScope, projectWriteScope } from "@harness-kit/core"; const here = dirname(fileURLToPath(import.meta.url)); const out = join(here, "..", "src-tauri", "generated", "write-scope.json"); -const scope = Object.fromEntries( - ["darwin", "linux", "win32"].map((platform) => { +const scope = Object.fromEntries([ + ...["darwin", "linux", "win32"].map((platform) => { const { files, directories } = homeWriteScope(platform); return [platform, { files: [...files].sort(), directories: [...directories].sort() }]; }), -); + // Project-relative stores: what a granted project root may receive. Same + // derivation as the home lists, so the two cannot drift apart in kind. + ["project", (({ files, directories }) => ({ files: [...files].sort(), directories: [...directories].sort() }))(projectWriteScope())], +]); writeFileSync(out, `${JSON.stringify(scope, null, 2)}\n`); console.log(`wrote ${out}`); diff --git a/apps/desktop/src-tauri/Cargo.lock b/apps/desktop/src-tauri/Cargo.lock index 378a4d3f..d89abce8 100644 --- a/apps/desktop/src-tauri/Cargo.lock +++ b/apps/desktop/src-tauri/Cargo.lock @@ -1535,6 +1535,7 @@ dependencies = [ "ed25519-dalek", "reqwest", "rusqlite", + "security-framework", "serde", "serde_json", "sha2 0.11.1", @@ -3321,6 +3322,8 @@ version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ + "foldhash 0.2.0", + "indexmap 2.13.0", "itoa", "memchr", "serde", diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml index ef996211..a1e25bde 100644 --- a/apps/desktop/src-tauri/Cargo.toml +++ b/apps/desktop/src-tauri/Cargo.toml @@ -23,7 +23,7 @@ tauri-plugin-window-state = "2" tauri-plugin-dialog = "2" tauri-plugin-single-instance = "2" serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde_json = { version = "1", features = ["preserve_order"] } dirs = "7" walkdir = "2" zip = { version = "9.0.5", default-features = false, features = ["deflate"] } @@ -35,5 +35,8 @@ rusqlite = { version = "0.40", features = ["bundled"] } ed25519-dalek = { version = "3", default-features = false } sha2 = "0.11" +[target.'cfg(target_os = "macos")'.dependencies] +security-framework = "3" + [dev-dependencies] tempfile = "3" diff --git a/apps/desktop/src-tauri/build.rs b/apps/desktop/src-tauri/build.rs index 68b0fde1..7b07a081 100644 --- a/apps/desktop/src-tauri/build.rs +++ b/apps/desktop/src-tauri/build.rs @@ -38,9 +38,6 @@ fn main() { "read_session_transcript", // Git "check_git_repo", - "create_worktrees", - "remove_worktrees", - "get_diff_against_commit", "check_for_updates", "trigger_rebuild", // Evaluation @@ -112,6 +109,11 @@ fn main() { "detect_harnesses", // Runtime FS scope grants (used by Fleet/Drift's project scope) "grant_project_scope", + "choose_project_dir", + // Guarded write/rename/remove for the webview's TauriFsProvider + "guarded_write_file", + "guarded_rename_file", + "guarded_remove_file", // Drift (acknowledgement persistence) "acknowledge_drift_item", "unacknowledge_drift_item", diff --git a/apps/desktop/src-tauri/capabilities/default.json b/apps/desktop/src-tauri/capabilities/default.json index 92cd6cef..855436bf 100644 --- a/apps/desktop/src-tauri/capabilities/default.json +++ b/apps/desktop/src-tauri/capabilities/default.json @@ -1,6 +1,6 @@ { "identifier": "default", - "description": "Default capability — grants core API, read access to harness config roots under $HOME (read-ONLY for the Machine-observation paths: .claude.json, the exact Claude Desktop / VS Code User config files the surface registry declares, .copilot, .agents), and shell spawn for comparator", + "description": "Default capability — grants core API, read access to harness config roots under $HOME (the Machine-observation paths .claude.json, the exact Claude Desktop / VS Code User config files the surface registry declares, .copilot and .agents are reachable only by the read, read-dir and exists permissions), mkdir and lstat inside the fs scope, and shell open. No shell execute, spawn, stdin or kill: production code runs processes from Rust only. fs write, rename and remove are not granted to the webview; they go through guarded_write_file, guarded_rename_file and guarded_remove_file, which write and rename only the engine's .harness-tmp- files, and delete only those and its backups (removing a store moves it to ~/.harness/backups/quarantine/ instead)", "windows": ["main"], "permissions": [ "core:default", @@ -10,7 +10,8 @@ "fs:allow-read-text-file", "fs:allow-read-dir", "fs:allow-exists", - "fs:allow-write-text-file", + "fs:allow-lstat", + "fs:allow-mkdir", { "identifier": "fs:scope", "allow": [ @@ -40,7 +41,9 @@ { "path": "$HOME/.pi" }, { "path": "$HOME/.pi/**" }, { "path": "$HOME/.harness-kit" }, - { "path": "$HOME/.harness-kit/**" } + { "path": "$HOME/.harness-kit/**" }, + { "path": "$HOME/.harness/backups" }, + { "path": "$HOME/.harness/backups/**" } ] }, { @@ -92,23 +95,7 @@ "dialog:allow-open", "dialog:allow-save", "shell:default", - "shell:allow-spawn", - "shell:allow-stdin-write", - "shell:allow-kill", "shell:allow-open", - { - "identifier": "shell:allow-execute", - "allow": [ - { "name": "claude", "cmd": "claude", "args": true }, - { "name": "cursor-agent", "cmd": "cursor-agent", "args": ["--version"] }, - { "name": "copilot", "cmd": "copilot", "args": ["--version"] }, - { "name": "codex", "cmd": "codex", "args": ["--version"] }, - { "name": "opencode", "cmd": "opencode", "args": ["--version"] }, - { "name": "gh", "cmd": "gh", "args": true }, - { "name": "git", "cmd": "git", "args": true }, - { "name": "security", "cmd": "security", "args": true } - ] - }, "allow-list-installed-plugins", "allow-list-marketplaces", "allow-check-plugin-updates", @@ -140,9 +127,6 @@ "allow-compute-live-stats", "allow-read-session-transcript", "allow-check-git-repo", - "allow-create-worktrees", - "allow-remove-worktrees", - "allow-get-diff-against-commit", "allow-check-for-updates", "allow-trigger-rebuild", "allow-save-evaluation", @@ -204,6 +188,10 @@ "allow-sync-restore-backup", "allow-detect-harnesses", "allow-grant-project-scope", + "allow-choose-project-dir", + "allow-guarded-write-file", + "allow-guarded-rename-file", + "allow-guarded-remove-file", "allow-acknowledge-drift-item", "allow-unacknowledge-drift-item", "allow-get-acknowledged-drift-items", diff --git a/apps/desktop/src-tauri/gen/schemas/acl-manifests.json b/apps/desktop/src-tauri/gen/schemas/acl-manifests.json index 13e8ec58..ca5f0a51 100644 --- a/apps/desktop/src-tauri/gen/schemas/acl-manifests.json +++ b/apps/desktop/src-tauri/gen/schemas/acl-manifests.json @@ -1 +1 @@ -{"__app-acl__":{"default_permission":null,"permissions":{"allow-acknowledge-drift":{"identifier":"allow-acknowledge-drift","description":"Enables the acknowledge_drift command without any pre-configured scope.","commands":{"allow":["acknowledge_drift"],"deny":[]}},"allow-acknowledge-drift-item":{"identifier":"allow-acknowledge-drift-item","description":"Enables the acknowledge_drift_item command without any pre-configured scope.","commands":{"allow":["acknowledge_drift_item"],"deny":[]}},"allow-apply-security-preset":{"identifier":"allow-apply-security-preset","description":"Enables the apply_security_preset command without any pre-configured scope.","commands":{"allow":["apply_security_preset"],"deny":[]}},"allow-apply-surface-transaction":{"identifier":"allow-apply-surface-transaction","description":"Enables the apply_surface_transaction command without any pre-configured scope.","commands":{"allow":["apply_surface_transaction"],"deny":[]}},"allow-check-for-updates":{"identifier":"allow-check-for-updates","description":"Enables the check_for_updates command without any pre-configured scope.","commands":{"allow":["check_for_updates"],"deny":[]}},"allow-check-git-repo":{"identifier":"allow-check-git-repo","description":"Enables the check_git_repo command without any pre-configured scope.","commands":{"allow":["check_git_repo"],"deny":[]}},"allow-check-plugin-updates":{"identifier":"allow-check-plugin-updates","description":"Enables the check_plugin_updates command without any pre-configured scope.","commands":{"allow":["check_plugin_updates"],"deny":[]}},"allow-clear-audit-entries":{"identifier":"allow-clear-audit-entries","description":"Enables the clear_audit_entries command without any pre-configured scope.","commands":{"allow":["clear_audit_entries"],"deny":[]}},"allow-compute-live-stats":{"identifier":"allow-compute-live-stats","description":"Enables the compute_live_stats command without any pre-configured scope.","commands":{"allow":["compute_live_stats"],"deny":[]}},"allow-create-evaluation-session":{"identifier":"allow-create-evaluation-session","description":"Enables the create_evaluation_session command without any pre-configured scope.","commands":{"allow":["create_evaluation_session"],"deny":[]}},"allow-create-worktrees":{"identifier":"allow-create-worktrees","description":"Enables the create_worktrees command without any pre-configured scope.","commands":{"allow":["create_worktrees"],"deny":[]}},"allow-delete-comparison":{"identifier":"allow-delete-comparison","description":"Enables the delete_comparison command without any pre-configured scope.","commands":{"allow":["delete_comparison"],"deny":[]}},"allow-delete-custom-profile":{"identifier":"allow-delete-custom-profile","description":"Enables the delete_custom_profile command without any pre-configured scope.","commands":{"allow":["delete_custom_profile"],"deny":[]}},"allow-delete-keychain-secret":{"identifier":"allow-delete-keychain-secret","description":"Enables the delete_keychain_secret command without any pre-configured scope.","commands":{"allow":["delete_keychain_secret"],"deny":[]}},"allow-delete-pairwise-vote":{"identifier":"allow-delete-pairwise-vote","description":"Enables the delete_pairwise_vote command without any pre-configured scope.","commands":{"allow":["delete_pairwise_vote"],"deny":[]}},"allow-detect-claude-account":{"identifier":"allow-detect-claude-account","description":"Enables the detect_claude_account command without any pre-configured scope.","commands":{"allow":["detect_claude_account"],"deny":[]}},"allow-detect-harnesses":{"identifier":"allow-detect-harnesses","description":"Enables the detect_harnesses command without any pre-configured scope.","commands":{"allow":["detect_harnesses"],"deny":[]}},"allow-export-comparison-json":{"identifier":"allow-export-comparison-json","description":"Enables the export_comparison_json command without any pre-configured scope.","commands":{"allow":["export_comparison_json"],"deny":[]}},"allow-export-plugin-as-zip":{"identifier":"allow-export-plugin-as-zip","description":"Enables the export_plugin_as_zip command without any pre-configured scope.","commands":{"allow":["export_plugin_as_zip"],"deny":[]}},"allow-export-plugin-to-folder":{"identifier":"allow-export-plugin-to-folder","description":"Enables the export_plugin_to_folder command without any pre-configured scope.","commands":{"allow":["export_plugin_to_folder"],"deny":[]}},"allow-get-acknowledged-drift-items":{"identifier":"allow-get-acknowledged-drift-items","description":"Enables the get_acknowledged_drift_items command without any pre-configured scope.","commands":{"allow":["get_acknowledged_drift_items"],"deny":[]}},"allow-get-cached-definitions":{"identifier":"allow-get-cached-definitions","description":"Enables the get_cached_definitions command without any pre-configured scope.","commands":{"allow":["get_cached_definitions"],"deny":[]}},"allow-get-comparator-analytics":{"identifier":"allow-get-comparator-analytics","description":"Enables the get_comparator_analytics command without any pre-configured scope.","commands":{"allow":["get_comparator_analytics"],"deny":[]}},"allow-get-comparison":{"identifier":"allow-get-comparison","description":"Enables the get_comparison command without any pre-configured scope.","commands":{"allow":["get_comparison"],"deny":[]}},"allow-get-comparison-diffs":{"identifier":"allow-get-comparison-diffs","description":"Enables the get_comparison_diffs command without any pre-configured scope.","commands":{"allow":["get_comparison_diffs"],"deny":[]}},"allow-get-custom-profile":{"identifier":"allow-get-custom-profile","description":"Enables the get_custom_profile command without any pre-configured scope.","commands":{"allow":["get_custom_profile"],"deny":[]}},"allow-get-diff-against-commit":{"identifier":"allow-get-diff-against-commit","description":"Enables the get_diff_against_commit command without any pre-configured scope.","commands":{"allow":["get_diff_against_commit"],"deny":[]}},"allow-get-evaluation-session":{"identifier":"allow-get-evaluation-session","description":"Enables the get_evaluation_session command without any pre-configured scope.","commands":{"allow":["get_evaluation_session"],"deny":[]}},"allow-get-evaluations":{"identifier":"allow-get-evaluations","description":"Enables the get_evaluations command without any pre-configured scope.","commands":{"allow":["get_evaluations"],"deny":[]}},"allow-get-harness-recommendations":{"identifier":"allow-get-harness-recommendations","description":"Enables the get_harness_recommendations command without any pre-configured scope.","commands":{"allow":["get_harness_recommendations"],"deny":[]}},"allow-get-highest-bundle-number":{"identifier":"allow-get-highest-bundle-number","description":"Enables the get_highest_bundle_number command without any pre-configured scope.","commands":{"allow":["get_highest_bundle_number"],"deny":[]}},"allow-get-history-size":{"identifier":"allow-get-history-size","description":"Enables the get_history_size command without any pre-configured scope.","commands":{"allow":["get_history_size"],"deny":[]}},"allow-get-pairwise-analytics":{"identifier":"allow-get-pairwise-analytics","description":"Enables the get_pairwise_analytics command without any pre-configured scope.","commands":{"allow":["get_pairwise_analytics"],"deny":[]}},"allow-get-pairwise-votes":{"identifier":"allow-get-pairwise-votes","description":"Enables the get_pairwise_votes command without any pre-configured scope.","commands":{"allow":["get_pairwise_votes"],"deny":[]}},"allow-get-panel-diffs":{"identifier":"allow-get-panel-diffs","description":"Enables the get_panel_diffs command without any pre-configured scope.","commands":{"allow":["get_panel_diffs"],"deny":[]}},"allow-get-system-info":{"identifier":"allow-get-system-info","description":"Enables the get_system_info command without any pre-configured scope.","commands":{"allow":["get_system_info"],"deny":[]}},"allow-grant-project-scope":{"identifier":"allow-grant-project-scope","description":"Enables the grant_project_scope command without any pre-configured scope.","commands":{"allow":["grant_project_scope"],"deny":[]}},"allow-import-plugin-from-path":{"identifier":"allow-import-plugin-from-path","description":"Enables the import_plugin_from_path command without any pre-configured scope.","commands":{"allow":["import_plugin_from_path"],"deny":[]}},"allow-import-plugin-from-zip":{"identifier":"allow-import-plugin-from-zip","description":"Enables the import_plugin_from_zip command without any pre-configured scope.","commands":{"allow":["import_plugin_from_zip"],"deny":[]}},"allow-list-active-sessions":{"identifier":"allow-list-active-sessions","description":"Enables the list_active_sessions command without any pre-configured scope.","commands":{"allow":["list_active_sessions"],"deny":[]}},"allow-list-audit-entries":{"identifier":"allow-list-audit-entries","description":"Enables the list_audit_entries command without any pre-configured scope.","commands":{"allow":["list_audit_entries"],"deny":[]}},"allow-list-claude-dir":{"identifier":"allow-list-claude-dir","description":"Enables the list_claude_dir command without any pre-configured scope.","commands":{"allow":["list_claude_dir"],"deny":[]}},"allow-list-comparisons":{"identifier":"allow-list-comparisons","description":"Enables the list_comparisons command without any pre-configured scope.","commands":{"allow":["list_comparisons"],"deny":[]}},"allow-list-custom-profiles":{"identifier":"allow-list-custom-profiles","description":"Enables the list_custom_profiles command without any pre-configured scope.","commands":{"allow":["list_custom_profiles"],"deny":[]}},"allow-list-drift-acknowledgements":{"identifier":"allow-list-drift-acknowledgements","description":"Enables the list_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":["list_drift_acknowledgements"],"deny":[]}},"allow-list-installed-plugins":{"identifier":"allow-list-installed-plugins","description":"Enables the list_installed_plugins command without any pre-configured scope.","commands":{"allow":["list_installed_plugins"],"deny":[]}},"allow-list-marketplaces":{"identifier":"allow-list-marketplaces","description":"Enables the list_marketplaces command without any pre-configured scope.","commands":{"allow":["list_marketplaces"],"deny":[]}},"allow-list-required-env":{"identifier":"allow-list-required-env","description":"Enables the list_required_env command without any pre-configured scope.","commands":{"allow":["list_required_env"],"deny":[]}},"allow-list-security-presets":{"identifier":"allow-list-security-presets","description":"Enables the list_security_presets command without any pre-configured scope.","commands":{"allow":["list_security_presets"],"deny":[]}},"allow-list-sessions-summary":{"identifier":"allow-list-sessions-summary","description":"Enables the list_sessions_summary command without any pre-configured scope.","commands":{"allow":["list_sessions_summary"],"deny":[]}},"allow-migrate-drift-acknowledgements":{"identifier":"allow-migrate-drift-acknowledgements","description":"Enables the migrate_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":["migrate_drift_acknowledgements"],"deny":[]}},"allow-push-file-history":{"identifier":"allow-push-file-history","description":"Enables the push_file_history command without any pre-configured scope.","commands":{"allow":["push_file_history"],"deny":[]}},"allow-put-cached-definitions":{"identifier":"allow-put-cached-definitions","description":"Enables the put_cached_definitions command without any pre-configured scope.","commands":{"allow":["put_cached_definitions"],"deny":[]}},"allow-read-claude-md":{"identifier":"allow-read-claude-md","description":"Enables the read_claude_md command without any pre-configured scope.","commands":{"allow":["read_claude_md"],"deny":[]}},"allow-read-env-config":{"identifier":"allow-read-env-config","description":"Enables the read_env_config command without any pre-configured scope.","commands":{"allow":["read_env_config"],"deny":[]}},"allow-read-file-history":{"identifier":"allow-read-file-history","description":"Enables the read_file_history command without any pre-configured scope.","commands":{"allow":["read_file_history"],"deny":[]}},"allow-read-harness-file":{"identifier":"allow-read-harness-file","description":"Enables the read_harness_file command without any pre-configured scope.","commands":{"allow":["read_harness_file"],"deny":[]}},"allow-read-hooks":{"identifier":"allow-read-hooks","description":"Enables the read_hooks command without any pre-configured scope.","commands":{"allow":["read_hooks"],"deny":[]}},"allow-read-live-activity":{"identifier":"allow-read-live-activity","description":"Enables the read_live_activity command without any pre-configured scope.","commands":{"allow":["read_live_activity"],"deny":[]}},"allow-read-permissions":{"identifier":"allow-read-permissions","description":"Enables the read_permissions command without any pre-configured scope.","commands":{"allow":["read_permissions"],"deny":[]}},"allow-read-plugin-file":{"identifier":"allow-read-plugin-file","description":"Enables the read_plugin_file command without any pre-configured scope.","commands":{"allow":["read_plugin_file"],"deny":[]}},"allow-read-plugin-tree":{"identifier":"allow-read-plugin-tree","description":"Enables the read_plugin_tree command without any pre-configured scope.","commands":{"allow":["read_plugin_tree"],"deny":[]}},"allow-read-session-facet":{"identifier":"allow-read-session-facet","description":"Enables the read_session_facet command without any pre-configured scope.","commands":{"allow":["read_session_facet"],"deny":[]}},"allow-read-session-transcript":{"identifier":"allow-read-session-transcript","description":"Enables the read_session_transcript command without any pre-configured scope.","commands":{"allow":["read_session_transcript"],"deny":[]}},"allow-read-stats-cache":{"identifier":"allow-read-stats-cache","description":"Enables the read_stats_cache command without any pre-configured scope.","commands":{"allow":["read_stats_cache"],"deny":[]}},"allow-record-bundle-number":{"identifier":"allow-record-bundle-number","description":"Enables the record_bundle_number command without any pre-configured scope.","commands":{"allow":["record_bundle_number"],"deny":[]}},"allow-record-transaction":{"identifier":"allow-record-transaction","description":"Enables the record_transaction command without any pre-configured scope.","commands":{"allow":["record_transaction"],"deny":[]}},"allow-remove-worktrees":{"identifier":"allow-remove-worktrees","description":"Enables the remove_worktrees command without any pre-configured scope.","commands":{"allow":["remove_worktrees"],"deny":[]}},"allow-reveal-evaluation-session":{"identifier":"allow-reveal-evaluation-session","description":"Enables the reveal_evaluation_session command without any pre-configured scope.","commands":{"allow":["reveal_evaluation_session"],"deny":[]}},"allow-save-comparison":{"identifier":"allow-save-comparison","description":"Enables the save_comparison command without any pre-configured scope.","commands":{"allow":["save_comparison"],"deny":[]}},"allow-save-custom-profile":{"identifier":"allow-save-custom-profile","description":"Enables the save_custom_profile command without any pre-configured scope.","commands":{"allow":["save_custom_profile"],"deny":[]}},"allow-save-evaluation":{"identifier":"allow-save-evaluation","description":"Enables the save_evaluation command without any pre-configured scope.","commands":{"allow":["save_evaluation"],"deny":[]}},"allow-save-file-diffs":{"identifier":"allow-save-file-diffs","description":"Enables the save_file_diffs command without any pre-configured scope.","commands":{"allow":["save_file_diffs"],"deny":[]}},"allow-save-pairwise-vote":{"identifier":"allow-save-pairwise-vote","description":"Enables the save_pairwise_vote command without any pre-configured scope.","commands":{"allow":["save_pairwise_vote"],"deny":[]}},"allow-save-panel":{"identifier":"allow-save-panel","description":"Enables the save_panel command without any pre-configured scope.","commands":{"allow":["save_panel"],"deny":[]}},"allow-scan-claude-config":{"identifier":"allow-scan-claude-config","description":"Enables the scan_claude_config command without any pre-configured scope.","commands":{"allow":["scan_claude_config"],"deny":[]}},"allow-set-keychain-secret":{"identifier":"allow-set-keychain-secret","description":"Enables the set_keychain_secret command without any pre-configured scope.","commands":{"allow":["set_keychain_secret"],"deny":[]}},"allow-submit-feedback":{"identifier":"allow-submit-feedback","description":"Enables the submit_feedback command without any pre-configured scope.","commands":{"allow":["submit_feedback"],"deny":[]}},"allow-sync-create-backup":{"identifier":"allow-sync-create-backup","description":"Enables the sync_create_backup command without any pre-configured scope.","commands":{"allow":["sync_create_backup"],"deny":[]}},"allow-sync-file-exists":{"identifier":"allow-sync-file-exists","description":"Enables the sync_file_exists command without any pre-configured scope.","commands":{"allow":["sync_file_exists"],"deny":[]}},"allow-sync-list-backups":{"identifier":"allow-sync-list-backups","description":"Enables the sync_list_backups command without any pre-configured scope.","commands":{"allow":["sync_list_backups"],"deny":[]}},"allow-sync-read-dir":{"identifier":"allow-sync-read-dir","description":"Enables the sync_read_dir command without any pre-configured scope.","commands":{"allow":["sync_read_dir"],"deny":[]}},"allow-sync-read-file":{"identifier":"allow-sync-read-file","description":"Enables the sync_read_file command without any pre-configured scope.","commands":{"allow":["sync_read_file"],"deny":[]}},"allow-sync-restore-backup":{"identifier":"allow-sync-restore-backup","description":"Enables the sync_restore_backup command without any pre-configured scope.","commands":{"allow":["sync_restore_backup"],"deny":[]}},"allow-sync-write-files":{"identifier":"allow-sync-write-files","description":"Enables the sync_write_files command without any pre-configured scope.","commands":{"allow":["sync_write_files"],"deny":[]}},"allow-tag-comparison-task-type":{"identifier":"allow-tag-comparison-task-type","description":"Enables the tag_comparison_task_type command without any pre-configured scope.","commands":{"allow":["tag_comparison_task_type"],"deny":[]}},"allow-trigger-rebuild":{"identifier":"allow-trigger-rebuild","description":"Enables the trigger_rebuild command without any pre-configured scope.","commands":{"allow":["trigger_rebuild"],"deny":[]}},"allow-unacknowledge-drift":{"identifier":"allow-unacknowledge-drift","description":"Enables the unacknowledge_drift command without any pre-configured scope.","commands":{"allow":["unacknowledge_drift"],"deny":[]}},"allow-unacknowledge-drift-item":{"identifier":"allow-unacknowledge-drift-item","description":"Enables the unacknowledge_drift_item command without any pre-configured scope.","commands":{"allow":["unacknowledge_drift_item"],"deny":[]}},"allow-uninstall-plugin":{"identifier":"allow-uninstall-plugin","description":"Enables the uninstall_plugin command without any pre-configured scope.","commands":{"allow":["uninstall_plugin"],"deny":[]}},"allow-update-comparison-status":{"identifier":"allow-update-comparison-status","description":"Enables the update_comparison_status command without any pre-configured scope.","commands":{"allow":["update_comparison_status"],"deny":[]}},"allow-update-comparison-title":{"identifier":"allow-update-comparison-title","description":"Enables the update_comparison_title command without any pre-configured scope.","commands":{"allow":["update_comparison_title"],"deny":[]}},"allow-update-evaluation-score":{"identifier":"allow-update-evaluation-score","description":"Enables the update_evaluation_score command without any pre-configured scope.","commands":{"allow":["update_evaluation_score"],"deny":[]}},"allow-update-panel-result":{"identifier":"allow-update-panel-result","description":"Enables the update_panel_result command without any pre-configured scope.","commands":{"allow":["update_panel_result"],"deny":[]}},"allow-update-permissions":{"identifier":"allow-update-permissions","description":"Enables the update_permissions command without any pre-configured scope.","commands":{"allow":["update_permissions"],"deny":[]}},"allow-verify-definitions-signature":{"identifier":"allow-verify-definitions-signature","description":"Enables the verify_definitions_signature command without any pre-configured scope.","commands":{"allow":["verify_definitions_signature"],"deny":[]}},"allow-write-config-file":{"identifier":"allow-write-config-file","description":"Enables the write_config_file command without any pre-configured scope.","commands":{"allow":["write_config_file"],"deny":[]}},"allow-write-env-config":{"identifier":"allow-write-env-config","description":"Enables the write_env_config command without any pre-configured scope.","commands":{"allow":["write_env_config"],"deny":[]}},"allow-write-harness-file":{"identifier":"allow-write-harness-file","description":"Enables the write_harness_file command without any pre-configured scope.","commands":{"allow":["write_harness_file"],"deny":[]}},"allow-write-plugin-file":{"identifier":"allow-write-plugin-file","description":"Enables the write_plugin_file command without any pre-configured scope.","commands":{"allow":["write_plugin_file"],"deny":[]}},"deny-acknowledge-drift":{"identifier":"deny-acknowledge-drift","description":"Denies the acknowledge_drift command without any pre-configured scope.","commands":{"allow":[],"deny":["acknowledge_drift"]}},"deny-acknowledge-drift-item":{"identifier":"deny-acknowledge-drift-item","description":"Denies the acknowledge_drift_item command without any pre-configured scope.","commands":{"allow":[],"deny":["acknowledge_drift_item"]}},"deny-apply-security-preset":{"identifier":"deny-apply-security-preset","description":"Denies the apply_security_preset command without any pre-configured scope.","commands":{"allow":[],"deny":["apply_security_preset"]}},"deny-apply-surface-transaction":{"identifier":"deny-apply-surface-transaction","description":"Denies the apply_surface_transaction command without any pre-configured scope.","commands":{"allow":[],"deny":["apply_surface_transaction"]}},"deny-check-for-updates":{"identifier":"deny-check-for-updates","description":"Denies the check_for_updates command without any pre-configured scope.","commands":{"allow":[],"deny":["check_for_updates"]}},"deny-check-git-repo":{"identifier":"deny-check-git-repo","description":"Denies the check_git_repo command without any pre-configured scope.","commands":{"allow":[],"deny":["check_git_repo"]}},"deny-check-plugin-updates":{"identifier":"deny-check-plugin-updates","description":"Denies the check_plugin_updates command without any pre-configured scope.","commands":{"allow":[],"deny":["check_plugin_updates"]}},"deny-clear-audit-entries":{"identifier":"deny-clear-audit-entries","description":"Denies the clear_audit_entries command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_audit_entries"]}},"deny-compute-live-stats":{"identifier":"deny-compute-live-stats","description":"Denies the compute_live_stats command without any pre-configured scope.","commands":{"allow":[],"deny":["compute_live_stats"]}},"deny-create-evaluation-session":{"identifier":"deny-create-evaluation-session","description":"Denies the create_evaluation_session command without any pre-configured scope.","commands":{"allow":[],"deny":["create_evaluation_session"]}},"deny-create-worktrees":{"identifier":"deny-create-worktrees","description":"Denies the create_worktrees command without any pre-configured scope.","commands":{"allow":[],"deny":["create_worktrees"]}},"deny-delete-comparison":{"identifier":"deny-delete-comparison","description":"Denies the delete_comparison command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_comparison"]}},"deny-delete-custom-profile":{"identifier":"deny-delete-custom-profile","description":"Denies the delete_custom_profile command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_custom_profile"]}},"deny-delete-keychain-secret":{"identifier":"deny-delete-keychain-secret","description":"Denies the delete_keychain_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_keychain_secret"]}},"deny-delete-pairwise-vote":{"identifier":"deny-delete-pairwise-vote","description":"Denies the delete_pairwise_vote command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_pairwise_vote"]}},"deny-detect-claude-account":{"identifier":"deny-detect-claude-account","description":"Denies the detect_claude_account command without any pre-configured scope.","commands":{"allow":[],"deny":["detect_claude_account"]}},"deny-detect-harnesses":{"identifier":"deny-detect-harnesses","description":"Denies the detect_harnesses command without any pre-configured scope.","commands":{"allow":[],"deny":["detect_harnesses"]}},"deny-export-comparison-json":{"identifier":"deny-export-comparison-json","description":"Denies the export_comparison_json command without any pre-configured scope.","commands":{"allow":[],"deny":["export_comparison_json"]}},"deny-export-plugin-as-zip":{"identifier":"deny-export-plugin-as-zip","description":"Denies the export_plugin_as_zip command without any pre-configured scope.","commands":{"allow":[],"deny":["export_plugin_as_zip"]}},"deny-export-plugin-to-folder":{"identifier":"deny-export-plugin-to-folder","description":"Denies the export_plugin_to_folder command without any pre-configured scope.","commands":{"allow":[],"deny":["export_plugin_to_folder"]}},"deny-get-acknowledged-drift-items":{"identifier":"deny-get-acknowledged-drift-items","description":"Denies the get_acknowledged_drift_items command without any pre-configured scope.","commands":{"allow":[],"deny":["get_acknowledged_drift_items"]}},"deny-get-cached-definitions":{"identifier":"deny-get-cached-definitions","description":"Denies the get_cached_definitions command without any pre-configured scope.","commands":{"allow":[],"deny":["get_cached_definitions"]}},"deny-get-comparator-analytics":{"identifier":"deny-get-comparator-analytics","description":"Denies the get_comparator_analytics command without any pre-configured scope.","commands":{"allow":[],"deny":["get_comparator_analytics"]}},"deny-get-comparison":{"identifier":"deny-get-comparison","description":"Denies the get_comparison command without any pre-configured scope.","commands":{"allow":[],"deny":["get_comparison"]}},"deny-get-comparison-diffs":{"identifier":"deny-get-comparison-diffs","description":"Denies the get_comparison_diffs command without any pre-configured scope.","commands":{"allow":[],"deny":["get_comparison_diffs"]}},"deny-get-custom-profile":{"identifier":"deny-get-custom-profile","description":"Denies the get_custom_profile command without any pre-configured scope.","commands":{"allow":[],"deny":["get_custom_profile"]}},"deny-get-diff-against-commit":{"identifier":"deny-get-diff-against-commit","description":"Denies the get_diff_against_commit command without any pre-configured scope.","commands":{"allow":[],"deny":["get_diff_against_commit"]}},"deny-get-evaluation-session":{"identifier":"deny-get-evaluation-session","description":"Denies the get_evaluation_session command without any pre-configured scope.","commands":{"allow":[],"deny":["get_evaluation_session"]}},"deny-get-evaluations":{"identifier":"deny-get-evaluations","description":"Denies the get_evaluations command without any pre-configured scope.","commands":{"allow":[],"deny":["get_evaluations"]}},"deny-get-harness-recommendations":{"identifier":"deny-get-harness-recommendations","description":"Denies the get_harness_recommendations command without any pre-configured scope.","commands":{"allow":[],"deny":["get_harness_recommendations"]}},"deny-get-highest-bundle-number":{"identifier":"deny-get-highest-bundle-number","description":"Denies the get_highest_bundle_number command without any pre-configured scope.","commands":{"allow":[],"deny":["get_highest_bundle_number"]}},"deny-get-history-size":{"identifier":"deny-get-history-size","description":"Denies the get_history_size command without any pre-configured scope.","commands":{"allow":[],"deny":["get_history_size"]}},"deny-get-pairwise-analytics":{"identifier":"deny-get-pairwise-analytics","description":"Denies the get_pairwise_analytics command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pairwise_analytics"]}},"deny-get-pairwise-votes":{"identifier":"deny-get-pairwise-votes","description":"Denies the get_pairwise_votes command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pairwise_votes"]}},"deny-get-panel-diffs":{"identifier":"deny-get-panel-diffs","description":"Denies the get_panel_diffs command without any pre-configured scope.","commands":{"allow":[],"deny":["get_panel_diffs"]}},"deny-get-system-info":{"identifier":"deny-get-system-info","description":"Denies the get_system_info command without any pre-configured scope.","commands":{"allow":[],"deny":["get_system_info"]}},"deny-grant-project-scope":{"identifier":"deny-grant-project-scope","description":"Denies the grant_project_scope command without any pre-configured scope.","commands":{"allow":[],"deny":["grant_project_scope"]}},"deny-import-plugin-from-path":{"identifier":"deny-import-plugin-from-path","description":"Denies the import_plugin_from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["import_plugin_from_path"]}},"deny-import-plugin-from-zip":{"identifier":"deny-import-plugin-from-zip","description":"Denies the import_plugin_from_zip command without any pre-configured scope.","commands":{"allow":[],"deny":["import_plugin_from_zip"]}},"deny-list-active-sessions":{"identifier":"deny-list-active-sessions","description":"Denies the list_active_sessions command without any pre-configured scope.","commands":{"allow":[],"deny":["list_active_sessions"]}},"deny-list-audit-entries":{"identifier":"deny-list-audit-entries","description":"Denies the list_audit_entries command without any pre-configured scope.","commands":{"allow":[],"deny":["list_audit_entries"]}},"deny-list-claude-dir":{"identifier":"deny-list-claude-dir","description":"Denies the list_claude_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["list_claude_dir"]}},"deny-list-comparisons":{"identifier":"deny-list-comparisons","description":"Denies the list_comparisons command without any pre-configured scope.","commands":{"allow":[],"deny":["list_comparisons"]}},"deny-list-custom-profiles":{"identifier":"deny-list-custom-profiles","description":"Denies the list_custom_profiles command without any pre-configured scope.","commands":{"allow":[],"deny":["list_custom_profiles"]}},"deny-list-drift-acknowledgements":{"identifier":"deny-list-drift-acknowledgements","description":"Denies the list_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":[],"deny":["list_drift_acknowledgements"]}},"deny-list-installed-plugins":{"identifier":"deny-list-installed-plugins","description":"Denies the list_installed_plugins command without any pre-configured scope.","commands":{"allow":[],"deny":["list_installed_plugins"]}},"deny-list-marketplaces":{"identifier":"deny-list-marketplaces","description":"Denies the list_marketplaces command without any pre-configured scope.","commands":{"allow":[],"deny":["list_marketplaces"]}},"deny-list-required-env":{"identifier":"deny-list-required-env","description":"Denies the list_required_env command without any pre-configured scope.","commands":{"allow":[],"deny":["list_required_env"]}},"deny-list-security-presets":{"identifier":"deny-list-security-presets","description":"Denies the list_security_presets command without any pre-configured scope.","commands":{"allow":[],"deny":["list_security_presets"]}},"deny-list-sessions-summary":{"identifier":"deny-list-sessions-summary","description":"Denies the list_sessions_summary command without any pre-configured scope.","commands":{"allow":[],"deny":["list_sessions_summary"]}},"deny-migrate-drift-acknowledgements":{"identifier":"deny-migrate-drift-acknowledgements","description":"Denies the migrate_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":[],"deny":["migrate_drift_acknowledgements"]}},"deny-push-file-history":{"identifier":"deny-push-file-history","description":"Denies the push_file_history command without any pre-configured scope.","commands":{"allow":[],"deny":["push_file_history"]}},"deny-put-cached-definitions":{"identifier":"deny-put-cached-definitions","description":"Denies the put_cached_definitions command without any pre-configured scope.","commands":{"allow":[],"deny":["put_cached_definitions"]}},"deny-read-claude-md":{"identifier":"deny-read-claude-md","description":"Denies the read_claude_md command without any pre-configured scope.","commands":{"allow":[],"deny":["read_claude_md"]}},"deny-read-env-config":{"identifier":"deny-read-env-config","description":"Denies the read_env_config command without any pre-configured scope.","commands":{"allow":[],"deny":["read_env_config"]}},"deny-read-file-history":{"identifier":"deny-read-file-history","description":"Denies the read_file_history command without any pre-configured scope.","commands":{"allow":[],"deny":["read_file_history"]}},"deny-read-harness-file":{"identifier":"deny-read-harness-file","description":"Denies the read_harness_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_harness_file"]}},"deny-read-hooks":{"identifier":"deny-read-hooks","description":"Denies the read_hooks command without any pre-configured scope.","commands":{"allow":[],"deny":["read_hooks"]}},"deny-read-live-activity":{"identifier":"deny-read-live-activity","description":"Denies the read_live_activity command without any pre-configured scope.","commands":{"allow":[],"deny":["read_live_activity"]}},"deny-read-permissions":{"identifier":"deny-read-permissions","description":"Denies the read_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["read_permissions"]}},"deny-read-plugin-file":{"identifier":"deny-read-plugin-file","description":"Denies the read_plugin_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_plugin_file"]}},"deny-read-plugin-tree":{"identifier":"deny-read-plugin-tree","description":"Denies the read_plugin_tree command without any pre-configured scope.","commands":{"allow":[],"deny":["read_plugin_tree"]}},"deny-read-session-facet":{"identifier":"deny-read-session-facet","description":"Denies the read_session_facet command without any pre-configured scope.","commands":{"allow":[],"deny":["read_session_facet"]}},"deny-read-session-transcript":{"identifier":"deny-read-session-transcript","description":"Denies the read_session_transcript command without any pre-configured scope.","commands":{"allow":[],"deny":["read_session_transcript"]}},"deny-read-stats-cache":{"identifier":"deny-read-stats-cache","description":"Denies the read_stats_cache command without any pre-configured scope.","commands":{"allow":[],"deny":["read_stats_cache"]}},"deny-record-bundle-number":{"identifier":"deny-record-bundle-number","description":"Denies the record_bundle_number command without any pre-configured scope.","commands":{"allow":[],"deny":["record_bundle_number"]}},"deny-record-transaction":{"identifier":"deny-record-transaction","description":"Denies the record_transaction command without any pre-configured scope.","commands":{"allow":[],"deny":["record_transaction"]}},"deny-remove-worktrees":{"identifier":"deny-remove-worktrees","description":"Denies the remove_worktrees command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_worktrees"]}},"deny-reveal-evaluation-session":{"identifier":"deny-reveal-evaluation-session","description":"Denies the reveal_evaluation_session command without any pre-configured scope.","commands":{"allow":[],"deny":["reveal_evaluation_session"]}},"deny-save-comparison":{"identifier":"deny-save-comparison","description":"Denies the save_comparison command without any pre-configured scope.","commands":{"allow":[],"deny":["save_comparison"]}},"deny-save-custom-profile":{"identifier":"deny-save-custom-profile","description":"Denies the save_custom_profile command without any pre-configured scope.","commands":{"allow":[],"deny":["save_custom_profile"]}},"deny-save-evaluation":{"identifier":"deny-save-evaluation","description":"Denies the save_evaluation command without any pre-configured scope.","commands":{"allow":[],"deny":["save_evaluation"]}},"deny-save-file-diffs":{"identifier":"deny-save-file-diffs","description":"Denies the save_file_diffs command without any pre-configured scope.","commands":{"allow":[],"deny":["save_file_diffs"]}},"deny-save-pairwise-vote":{"identifier":"deny-save-pairwise-vote","description":"Denies the save_pairwise_vote command without any pre-configured scope.","commands":{"allow":[],"deny":["save_pairwise_vote"]}},"deny-save-panel":{"identifier":"deny-save-panel","description":"Denies the save_panel command without any pre-configured scope.","commands":{"allow":[],"deny":["save_panel"]}},"deny-scan-claude-config":{"identifier":"deny-scan-claude-config","description":"Denies the scan_claude_config command without any pre-configured scope.","commands":{"allow":[],"deny":["scan_claude_config"]}},"deny-set-keychain-secret":{"identifier":"deny-set-keychain-secret","description":"Denies the set_keychain_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["set_keychain_secret"]}},"deny-submit-feedback":{"identifier":"deny-submit-feedback","description":"Denies the submit_feedback command without any pre-configured scope.","commands":{"allow":[],"deny":["submit_feedback"]}},"deny-sync-create-backup":{"identifier":"deny-sync-create-backup","description":"Denies the sync_create_backup command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_create_backup"]}},"deny-sync-file-exists":{"identifier":"deny-sync-file-exists","description":"Denies the sync_file_exists command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_file_exists"]}},"deny-sync-list-backups":{"identifier":"deny-sync-list-backups","description":"Denies the sync_list_backups command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_list_backups"]}},"deny-sync-read-dir":{"identifier":"deny-sync-read-dir","description":"Denies the sync_read_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_read_dir"]}},"deny-sync-read-file":{"identifier":"deny-sync-read-file","description":"Denies the sync_read_file command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_read_file"]}},"deny-sync-restore-backup":{"identifier":"deny-sync-restore-backup","description":"Denies the sync_restore_backup command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_restore_backup"]}},"deny-sync-write-files":{"identifier":"deny-sync-write-files","description":"Denies the sync_write_files command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_write_files"]}},"deny-tag-comparison-task-type":{"identifier":"deny-tag-comparison-task-type","description":"Denies the tag_comparison_task_type command without any pre-configured scope.","commands":{"allow":[],"deny":["tag_comparison_task_type"]}},"deny-trigger-rebuild":{"identifier":"deny-trigger-rebuild","description":"Denies the trigger_rebuild command without any pre-configured scope.","commands":{"allow":[],"deny":["trigger_rebuild"]}},"deny-unacknowledge-drift":{"identifier":"deny-unacknowledge-drift","description":"Denies the unacknowledge_drift command without any pre-configured scope.","commands":{"allow":[],"deny":["unacknowledge_drift"]}},"deny-unacknowledge-drift-item":{"identifier":"deny-unacknowledge-drift-item","description":"Denies the unacknowledge_drift_item command without any pre-configured scope.","commands":{"allow":[],"deny":["unacknowledge_drift_item"]}},"deny-uninstall-plugin":{"identifier":"deny-uninstall-plugin","description":"Denies the uninstall_plugin command without any pre-configured scope.","commands":{"allow":[],"deny":["uninstall_plugin"]}},"deny-update-comparison-status":{"identifier":"deny-update-comparison-status","description":"Denies the update_comparison_status command without any pre-configured scope.","commands":{"allow":[],"deny":["update_comparison_status"]}},"deny-update-comparison-title":{"identifier":"deny-update-comparison-title","description":"Denies the update_comparison_title command without any pre-configured scope.","commands":{"allow":[],"deny":["update_comparison_title"]}},"deny-update-evaluation-score":{"identifier":"deny-update-evaluation-score","description":"Denies the update_evaluation_score command without any pre-configured scope.","commands":{"allow":[],"deny":["update_evaluation_score"]}},"deny-update-panel-result":{"identifier":"deny-update-panel-result","description":"Denies the update_panel_result command without any pre-configured scope.","commands":{"allow":[],"deny":["update_panel_result"]}},"deny-update-permissions":{"identifier":"deny-update-permissions","description":"Denies the update_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["update_permissions"]}},"deny-verify-definitions-signature":{"identifier":"deny-verify-definitions-signature","description":"Denies the verify_definitions_signature command without any pre-configured scope.","commands":{"allow":[],"deny":["verify_definitions_signature"]}},"deny-write-config-file":{"identifier":"deny-write-config-file","description":"Denies the write_config_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_config_file"]}},"deny-write-env-config":{"identifier":"deny-write-env-config","description":"Denies the write_env_config command without any pre-configured scope.","commands":{"allow":[],"deny":["write_env_config"]}},"deny-write-harness-file":{"identifier":"deny-write-harness-file","description":"Denies the write_harness_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_harness_file"]}},"deny-write-plugin-file":{"identifier":"deny-write-plugin-file","description":"Denies the write_plugin_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_plugin_file"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-data-store":{"identifier":"allow-remove-data-store","description":"Enables the remove_data_store command without any pre-configured scope.","commands":{"allow":["remove_data_store"],"deny":[]}},"allow-remove-listener":{"identifier":"allow-remove-listener","description":"Enables the remove_listener command without any pre-configured scope.","commands":{"allow":["remove_listener"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-set-dock-visibility":{"identifier":"allow-set-dock-visibility","description":"Enables the set_dock_visibility command without any pre-configured scope.","commands":{"allow":["set_dock_visibility"],"deny":[]}},"allow-supports-multiple-windows":{"identifier":"allow-supports-multiple-windows","description":"Enables the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":["supports_multiple_windows"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-bundle-type":{"identifier":"deny-bundle-type","description":"Denies the bundle_type command without any pre-configured scope.","commands":{"allow":[],"deny":["bundle_type"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-fetch-data-store-identifiers":{"identifier":"deny-fetch-data-store-identifiers","description":"Denies the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_data_store_identifiers"]}},"deny-identifier":{"identifier":"deny-identifier","description":"Denies the identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["identifier"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-data-store":{"identifier":"deny-remove-data-store","description":"Denies the remove_data_store command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_data_store"]}},"deny-remove-listener":{"identifier":"deny-remove-listener","description":"Denies the remove_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_listener"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-set-dock-visibility":{"identifier":"deny-set-dock-visibility","description":"Denies the set_dock_visibility command without any pre-configured scope.","commands":{"allow":[],"deny":["set_dock_visibility"]}},"deny-supports-multiple-windows":{"identifier":"deny-supports-multiple-windows","description":"Denies the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["supports_multiple_windows"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-icon-with-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-icon-with-as-template":{"identifier":"allow-set-icon-with-as-template","description":"Enables the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_with_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-icon-with-as-template":{"identifier":"deny-set-icon-with-as-template","description":"Denies the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_with_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-auto-resize":{"identifier":"allow-set-webview-auto-resize","description":"Enables the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":["set_webview_auto_resize"],"deny":[]}},"allow-set-webview-background-color":{"identifier":"allow-set-webview-background-color","description":"Enables the set_webview_background_color command without any pre-configured scope.","commands":{"allow":["set_webview_background_color"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-auto-resize":{"identifier":"deny-set-webview-auto-resize","description":"Denies the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_auto_resize"]}},"deny-set-webview-background-color":{"identifier":"deny-set-webview-background-color","description":"Denies the set_webview_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_background_color"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-is-always-on-top","allow-activity-name","allow-scene-identifier","allow-internal-toggle-maximize"]},"permissions":{"allow-activity-name":{"identifier":"allow-activity-name","description":"Enables the activity_name command without any pre-configured scope.","commands":{"allow":["activity_name"],"deny":[]}},"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-always-on-top":{"identifier":"allow-is-always-on-top","description":"Enables the is_always_on_top command without any pre-configured scope.","commands":{"allow":["is_always_on_top"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-scene-identifier":{"identifier":"allow-scene-identifier","description":"Enables the scene_identifier command without any pre-configured scope.","commands":{"allow":["scene_identifier"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-background-color":{"identifier":"allow-set-background-color","description":"Enables the set_background_color command without any pre-configured scope.","commands":{"allow":["set_background_color"],"deny":[]}},"allow-set-badge-count":{"identifier":"allow-set-badge-count","description":"Enables the set_badge_count command without any pre-configured scope.","commands":{"allow":["set_badge_count"],"deny":[]}},"allow-set-badge-label":{"identifier":"allow-set-badge-label","description":"Enables the set_badge_label command without any pre-configured scope.","commands":{"allow":["set_badge_label"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-focusable":{"identifier":"allow-set-focusable","description":"Enables the set_focusable command without any pre-configured scope.","commands":{"allow":["set_focusable"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-overlay-icon":{"identifier":"allow-set-overlay-icon","description":"Enables the set_overlay_icon command without any pre-configured scope.","commands":{"allow":["set_overlay_icon"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-simple-fullscreen":{"identifier":"allow-set-simple-fullscreen","description":"Enables the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":["set_simple_fullscreen"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-activity-name":{"identifier":"deny-activity-name","description":"Denies the activity_name command without any pre-configured scope.","commands":{"allow":[],"deny":["activity_name"]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-always-on-top":{"identifier":"deny-is-always-on-top","description":"Denies the is_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["is_always_on_top"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-scene-identifier":{"identifier":"deny-scene-identifier","description":"Denies the scene_identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["scene_identifier"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-background-color":{"identifier":"deny-set-background-color","description":"Denies the set_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_background_color"]}},"deny-set-badge-count":{"identifier":"deny-set-badge-count","description":"Denies the set_badge_count command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_count"]}},"deny-set-badge-label":{"identifier":"deny-set-badge-label","description":"Denies the set_badge_label command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_label"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-focusable":{"identifier":"deny-set-focusable","description":"Denies the set_focusable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focusable"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-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},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"fs":{"default_permission":{"identifier":"default","description":"This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\n\n- On Windows the access to webview data folder `$APPLOCALDATA/EBWebView` is denied.\n- On Linux the access to webview data paths inside `$APPLOCALDATA` are denied.\n","permissions":["create-app-specific-dirs","read-app-specific-dirs-recursive","deny-default"]},"permissions":{"allow-copy-file":{"identifier":"allow-copy-file","description":"Enables the copy_file command without any pre-configured scope.","commands":{"allow":["copy_file"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-exists":{"identifier":"allow-exists","description":"Enables the exists command without any pre-configured scope.","commands":{"allow":["exists"],"deny":[]}},"allow-fstat":{"identifier":"allow-fstat","description":"Enables the fstat command without any pre-configured scope.","commands":{"allow":["fstat"],"deny":[]}},"allow-ftruncate":{"identifier":"allow-ftruncate","description":"Enables the ftruncate command without any pre-configured scope.","commands":{"allow":["ftruncate"],"deny":[]}},"allow-lstat":{"identifier":"allow-lstat","description":"Enables the lstat command without any pre-configured scope.","commands":{"allow":["lstat"],"deny":[]}},"allow-mkdir":{"identifier":"allow-mkdir","description":"Enables the mkdir command without any pre-configured scope.","commands":{"allow":["mkdir"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-read":{"identifier":"allow-read","description":"Enables the read command without any pre-configured scope.","commands":{"allow":["read"],"deny":[]}},"allow-read-dir":{"identifier":"allow-read-dir","description":"Enables the read_dir command without any pre-configured scope.","commands":{"allow":["read_dir"],"deny":[]}},"allow-read-file":{"identifier":"allow-read-file","description":"Enables the read_file command without any pre-configured scope.","commands":{"allow":["read_file"],"deny":[]}},"allow-read-text-file":{"identifier":"allow-read-text-file","description":"Enables the read_text_file command without any pre-configured scope.","commands":{"allow":["read_text_file"],"deny":[]}},"allow-read-text-file-lines":{"identifier":"allow-read-text-file-lines","description":"Enables the read_text_file_lines command without any pre-configured scope.","commands":{"allow":["read_text_file_lines","read_text_file_lines_next"],"deny":[]}},"allow-read-text-file-lines-next":{"identifier":"allow-read-text-file-lines-next","description":"Enables the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":["read_text_file_lines_next"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-rename":{"identifier":"allow-rename","description":"Enables the rename command without any pre-configured scope.","commands":{"allow":["rename"],"deny":[]}},"allow-seek":{"identifier":"allow-seek","description":"Enables the seek command without any pre-configured scope.","commands":{"allow":["seek"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"allow-start-accessing-security-scoped-resource":{"identifier":"allow-start-accessing-security-scoped-resource","description":"Enables the start_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":["start_accessing_security_scoped_resource"],"deny":[]}},"allow-stat":{"identifier":"allow-stat","description":"Enables the stat command without any pre-configured scope.","commands":{"allow":["stat"],"deny":[]}},"allow-stop-accessing-security-scoped-resource":{"identifier":"allow-stop-accessing-security-scoped-resource","description":"Enables the stop_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":["stop_accessing_security_scoped_resource"],"deny":[]}},"allow-truncate":{"identifier":"allow-truncate","description":"Enables the truncate command without any pre-configured scope.","commands":{"allow":["truncate"],"deny":[]}},"allow-unwatch":{"identifier":"allow-unwatch","description":"Enables the unwatch command without any pre-configured scope.","commands":{"allow":["unwatch"],"deny":[]}},"allow-watch":{"identifier":"allow-watch","description":"Enables the watch command without any pre-configured scope.","commands":{"allow":["watch"],"deny":[]}},"allow-write":{"identifier":"allow-write","description":"Enables the write command without any pre-configured scope.","commands":{"allow":["write"],"deny":[]}},"allow-write-file":{"identifier":"allow-write-file","description":"Enables the write_file command without any pre-configured scope.","commands":{"allow":["write_file","open","write"],"deny":[]}},"allow-write-text-file":{"identifier":"allow-write-text-file","description":"Enables the write_text_file command without any pre-configured scope.","commands":{"allow":["write_text_file"],"deny":[]}},"deny-copy-file":{"identifier":"deny-copy-file","description":"Denies the copy_file command without any pre-configured scope.","commands":{"allow":[],"deny":["copy_file"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-exists":{"identifier":"deny-exists","description":"Denies the exists command without any pre-configured scope.","commands":{"allow":[],"deny":["exists"]}},"deny-fstat":{"identifier":"deny-fstat","description":"Denies the fstat command without any pre-configured scope.","commands":{"allow":[],"deny":["fstat"]}},"deny-ftruncate":{"identifier":"deny-ftruncate","description":"Denies the ftruncate command without any pre-configured scope.","commands":{"allow":[],"deny":["ftruncate"]}},"deny-lstat":{"identifier":"deny-lstat","description":"Denies the lstat command without any pre-configured scope.","commands":{"allow":[],"deny":["lstat"]}},"deny-mkdir":{"identifier":"deny-mkdir","description":"Denies the mkdir command without any pre-configured scope.","commands":{"allow":[],"deny":["mkdir"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-read":{"identifier":"deny-read","description":"Denies the read command without any pre-configured scope.","commands":{"allow":[],"deny":["read"]}},"deny-read-dir":{"identifier":"deny-read-dir","description":"Denies the read_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["read_dir"]}},"deny-read-file":{"identifier":"deny-read-file","description":"Denies the read_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_file"]}},"deny-read-text-file":{"identifier":"deny-read-text-file","description":"Denies the read_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file"]}},"deny-read-text-file-lines":{"identifier":"deny-read-text-file-lines","description":"Denies the read_text_file_lines command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines"]}},"deny-read-text-file-lines-next":{"identifier":"deny-read-text-file-lines-next","description":"Denies the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines_next"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-rename":{"identifier":"deny-rename","description":"Denies the rename command without any pre-configured scope.","commands":{"allow":[],"deny":["rename"]}},"deny-seek":{"identifier":"deny-seek","description":"Denies the seek command without any pre-configured scope.","commands":{"allow":[],"deny":["seek"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}},"deny-start-accessing-security-scoped-resource":{"identifier":"deny-start-accessing-security-scoped-resource","description":"Denies the start_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":[],"deny":["start_accessing_security_scoped_resource"]}},"deny-stat":{"identifier":"deny-stat","description":"Denies the stat command without any pre-configured scope.","commands":{"allow":[],"deny":["stat"]}},"deny-stop-accessing-security-scoped-resource":{"identifier":"deny-stop-accessing-security-scoped-resource","description":"Denies the stop_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":[],"deny":["stop_accessing_security_scoped_resource"]}},"deny-truncate":{"identifier":"deny-truncate","description":"Denies the truncate command without any pre-configured scope.","commands":{"allow":[],"deny":["truncate"]}},"deny-unwatch":{"identifier":"deny-unwatch","description":"Denies the unwatch command without any pre-configured scope.","commands":{"allow":[],"deny":["unwatch"]}},"deny-watch":{"identifier":"deny-watch","description":"Denies the watch command without any pre-configured scope.","commands":{"allow":[],"deny":["watch"]}},"deny-webview-data-linux":{"identifier":"deny-webview-data-linux","description":"This denies access to the following paths\n\n- `$APPLOCALDATA/CacheStorage/**`\n- `$APPLOCALDATA/cookies`\n- `$APPLOCALDATA/hsts-storage.sqlite`\n- `$APPLOCALDATA/serviceworkers/**`\n- `$APPLOCALDATA/WebKitCache/**`\n- `$APPLOCALDATA/databases/**`\n- `$APPLOCALDATA/localstorage/**`\n- `$APPLOCALDATA/mediakeys/**`\n- `$APPLOCALDATA/storage/**`\n\non linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]},"scope":{"deny":[{"path":"$APPLOCALDATA/CacheStorage/**"},{"path":"$APPLOCALDATA/cookies"},{"path":"$APPLOCALDATA/hsts-storage.sqlite"},{"path":"$APPLOCALDATA/serviceworkers/**"},{"path":"$APPLOCALDATA/WebKitCache/**"},{"path":"$APPLOCALDATA/databases/**"},{"path":"$APPLOCALDATA/localstorage/**"},{"path":"$APPLOCALDATA/mediakeys/**"},{"path":"$APPLOCALDATA/storage/**"}]},"platforms":["linux"]},"deny-webview-data-windows":{"identifier":"deny-webview-data-windows","description":"This denies access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]},"scope":{"deny":[{"path":"$APPLOCALDATA/EBWebView/**"}]},"platforms":["windows"]},"deny-write":{"identifier":"deny-write","description":"Denies the write command without any pre-configured scope.","commands":{"allow":[],"deny":["write"]}},"deny-write-file":{"identifier":"deny-write-file","description":"Denies the write_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_file"]}},"deny-write-text-file":{"identifier":"deny-write-text-file","description":"Denies the write_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text_file"]}},"read-all":{"identifier":"read-all","description":"This enables all read related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists","watch","unwatch"],"deny":[]}},"read-dirs":{"identifier":"read-dirs","description":"This enables directory read and file metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"read-files":{"identifier":"read-files","description":"This enables file read related commands without any pre-configured accessible paths.","commands":{"allow":["read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists"],"deny":[]}},"read-meta":{"identifier":"read-meta","description":"This enables all index or metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists","size"],"deny":[]}},"scope":{"identifier":"scope","description":"An empty permission you can use to modify the global scope.\n\n## Example\n\n```json\n{\n \"identifier\": \"read-documents\",\n \"windows\": [\"main\"],\n \"permissions\": [\n \"fs:allow-read\",\n {\n \"identifier\": \"fs:scope\",\n \"allow\": [\n \"$APPDATA/documents/**/*\"\n ],\n \"deny\": [\n \"$APPDATA/documents/secret.txt\"\n ]\n }\n ]\n}\n```\n","commands":{"allow":[],"deny":[]}},"scope-app":{"identifier":"scope-app","description":"This scope permits access to all files and list content of top level directories in the application folders.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"},{"path":"$APPDATA"},{"path":"$APPDATA/*"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"},{"path":"$APPCACHE"},{"path":"$APPCACHE/*"},{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-app-index":{"identifier":"scope-app-index","description":"This scope permits to list all files and folders in the application directories.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPDATA"},{"path":"$APPLOCALDATA"},{"path":"$APPCACHE"},{"path":"$APPLOG"}]}},"scope-app-recursive":{"identifier":"scope-app-recursive","description":"This scope permits recursive access to the complete application folders, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"},{"path":"$APPDATA"},{"path":"$APPDATA/**"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$APPCACHE"},{"path":"$APPCACHE/**"},{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-appcache":{"identifier":"scope-appcache","description":"This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/*"}]}},"scope-appcache-index":{"identifier":"scope-appcache-index","description":"This scope permits to list all files and folders in the `$APPCACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"}]}},"scope-appcache-recursive":{"identifier":"scope-appcache-recursive","description":"This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/**"}]}},"scope-appconfig":{"identifier":"scope-appconfig","description":"This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"}]}},"scope-appconfig-index":{"identifier":"scope-appconfig-index","description":"This scope permits to list all files and folders in the `$APPCONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"}]}},"scope-appconfig-recursive":{"identifier":"scope-appconfig-recursive","description":"This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"}]}},"scope-appdata":{"identifier":"scope-appdata","description":"This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/*"}]}},"scope-appdata-index":{"identifier":"scope-appdata-index","description":"This scope permits to list all files and folders in the `$APPDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"}]}},"scope-appdata-recursive":{"identifier":"scope-appdata-recursive","description":"This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/**"}]}},"scope-applocaldata":{"identifier":"scope-applocaldata","description":"This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"}]}},"scope-applocaldata-index":{"identifier":"scope-applocaldata-index","description":"This scope permits to list all files and folders in the `$APPLOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"}]}},"scope-applocaldata-recursive":{"identifier":"scope-applocaldata-recursive","description":"This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"}]}},"scope-applog":{"identifier":"scope-applog","description":"This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-applog-index":{"identifier":"scope-applog-index","description":"This scope permits to list all files and folders in the `$APPLOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"}]}},"scope-applog-recursive":{"identifier":"scope-applog-recursive","description":"This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-audio":{"identifier":"scope-audio","description":"This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/*"}]}},"scope-audio-index":{"identifier":"scope-audio-index","description":"This scope permits to list all files and folders in the `$AUDIO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"}]}},"scope-audio-recursive":{"identifier":"scope-audio-recursive","description":"This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/**"}]}},"scope-cache":{"identifier":"scope-cache","description":"This scope permits access to all files and list content of top level directories in the `$CACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/*"}]}},"scope-cache-index":{"identifier":"scope-cache-index","description":"This scope permits to list all files and folders in the `$CACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"}]}},"scope-cache-recursive":{"identifier":"scope-cache-recursive","description":"This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/**"}]}},"scope-config":{"identifier":"scope-config","description":"This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/*"}]}},"scope-config-index":{"identifier":"scope-config-index","description":"This scope permits to list all files and folders in the `$CONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"}]}},"scope-config-recursive":{"identifier":"scope-config-recursive","description":"This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/**"}]}},"scope-data":{"identifier":"scope-data","description":"This scope permits access to all files and list content of top level directories in the `$DATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/*"}]}},"scope-data-index":{"identifier":"scope-data-index","description":"This scope permits to list all files and folders in the `$DATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"}]}},"scope-data-recursive":{"identifier":"scope-data-recursive","description":"This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/**"}]}},"scope-desktop":{"identifier":"scope-desktop","description":"This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/*"}]}},"scope-desktop-index":{"identifier":"scope-desktop-index","description":"This scope permits to list all files and folders in the `$DESKTOP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"}]}},"scope-desktop-recursive":{"identifier":"scope-desktop-recursive","description":"This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/**"}]}},"scope-document":{"identifier":"scope-document","description":"This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/*"}]}},"scope-document-index":{"identifier":"scope-document-index","description":"This scope permits to list all files and folders in the `$DOCUMENT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"}]}},"scope-document-recursive":{"identifier":"scope-document-recursive","description":"This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/**"}]}},"scope-download":{"identifier":"scope-download","description":"This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/*"}]}},"scope-download-index":{"identifier":"scope-download-index","description":"This scope permits to list all files and folders in the `$DOWNLOAD`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"}]}},"scope-download-recursive":{"identifier":"scope-download-recursive","description":"This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/**"}]}},"scope-exe":{"identifier":"scope-exe","description":"This scope permits access to all files and list content of top level directories in the `$EXE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/*"}]}},"scope-exe-index":{"identifier":"scope-exe-index","description":"This scope permits to list all files and folders in the `$EXE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"}]}},"scope-exe-recursive":{"identifier":"scope-exe-recursive","description":"This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/**"}]}},"scope-font":{"identifier":"scope-font","description":"This scope permits access to all files and list content of top level directories in the `$FONT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/*"}]}},"scope-font-index":{"identifier":"scope-font-index","description":"This scope permits to list all files and folders in the `$FONT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"}]}},"scope-font-recursive":{"identifier":"scope-font-recursive","description":"This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/**"}]}},"scope-home":{"identifier":"scope-home","description":"This scope permits access to all files and list content of top level directories in the `$HOME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/*"}]}},"scope-home-index":{"identifier":"scope-home-index","description":"This scope permits to list all files and folders in the `$HOME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"}]}},"scope-home-recursive":{"identifier":"scope-home-recursive","description":"This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/**"}]}},"scope-localdata":{"identifier":"scope-localdata","description":"This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/*"}]}},"scope-localdata-index":{"identifier":"scope-localdata-index","description":"This scope permits to list all files and folders in the `$LOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"}]}},"scope-localdata-recursive":{"identifier":"scope-localdata-recursive","description":"This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/**"}]}},"scope-log":{"identifier":"scope-log","description":"This scope permits access to all files and list content of top level directories in the `$LOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/*"}]}},"scope-log-index":{"identifier":"scope-log-index","description":"This scope permits to list all files and folders in the `$LOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"}]}},"scope-log-recursive":{"identifier":"scope-log-recursive","description":"This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/**"}]}},"scope-picture":{"identifier":"scope-picture","description":"This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/*"}]}},"scope-picture-index":{"identifier":"scope-picture-index","description":"This scope permits to list all files and folders in the `$PICTURE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"}]}},"scope-picture-recursive":{"identifier":"scope-picture-recursive","description":"This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/**"}]}},"scope-public":{"identifier":"scope-public","description":"This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/*"}]}},"scope-public-index":{"identifier":"scope-public-index","description":"This scope permits to list all files and folders in the `$PUBLIC`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"}]}},"scope-public-recursive":{"identifier":"scope-public-recursive","description":"This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/**"}]}},"scope-resource":{"identifier":"scope-resource","description":"This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/*"}]}},"scope-resource-index":{"identifier":"scope-resource-index","description":"This scope permits to list all files and folders in the `$RESOURCE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"}]}},"scope-resource-recursive":{"identifier":"scope-resource-recursive","description":"This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/**"}]}},"scope-runtime":{"identifier":"scope-runtime","description":"This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/*"}]}},"scope-runtime-index":{"identifier":"scope-runtime-index","description":"This scope permits to list all files and folders in the `$RUNTIME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"}]}},"scope-runtime-recursive":{"identifier":"scope-runtime-recursive","description":"This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/**"}]}},"scope-temp":{"identifier":"scope-temp","description":"This scope permits access to all files and list content of top level directories in the `$TEMP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/*"}]}},"scope-temp-index":{"identifier":"scope-temp-index","description":"This scope permits to list all files and folders in the `$TEMP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"}]}},"scope-temp-recursive":{"identifier":"scope-temp-recursive","description":"This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/**"}]}},"scope-template":{"identifier":"scope-template","description":"This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/*"}]}},"scope-template-index":{"identifier":"scope-template-index","description":"This scope permits to list all files and folders in the `$TEMPLATE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"}]}},"scope-template-recursive":{"identifier":"scope-template-recursive","description":"This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/**"}]}},"scope-video":{"identifier":"scope-video","description":"This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/*"}]}},"scope-video-index":{"identifier":"scope-video-index","description":"This scope permits to list all files and folders in the `$VIDEO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"}]}},"scope-video-recursive":{"identifier":"scope-video-recursive","description":"This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/**"}]}},"write-all":{"identifier":"write-all","description":"This enables all write related commands without any pre-configured accessible paths.","commands":{"allow":["mkdir","create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}},"write-files":{"identifier":"write-files","description":"This enables all file write related commands without any pre-configured accessible paths.","commands":{"allow":["create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}}},"permission_sets":{"allow-app-meta":{"identifier":"allow-app-meta","description":"This allows non-recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-index"]},"allow-app-meta-recursive":{"identifier":"allow-app-meta-recursive","description":"This allows full recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-recursive"]},"allow-app-read":{"identifier":"allow-app-read","description":"This allows non-recursive read access to the application folders.","permissions":["read-all","scope-app"]},"allow-app-read-recursive":{"identifier":"allow-app-read-recursive","description":"This allows full recursive read access to the complete application folders, files and subdirectories.","permissions":["read-all","scope-app-recursive"]},"allow-app-write":{"identifier":"allow-app-write","description":"This allows non-recursive write access to the application folders.","permissions":["write-all","scope-app"]},"allow-app-write-recursive":{"identifier":"allow-app-write-recursive","description":"This allows full recursive write access to the complete application folders, files and subdirectories.","permissions":["write-all","scope-app-recursive"]},"allow-appcache-meta":{"identifier":"allow-appcache-meta","description":"This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-index"]},"allow-appcache-meta-recursive":{"identifier":"allow-appcache-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-recursive"]},"allow-appcache-read":{"identifier":"allow-appcache-read","description":"This allows non-recursive read access to the `$APPCACHE` folder.","permissions":["read-all","scope-appcache"]},"allow-appcache-read-recursive":{"identifier":"allow-appcache-read-recursive","description":"This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["read-all","scope-appcache-recursive"]},"allow-appcache-write":{"identifier":"allow-appcache-write","description":"This allows non-recursive write access to the `$APPCACHE` folder.","permissions":["write-all","scope-appcache"]},"allow-appcache-write-recursive":{"identifier":"allow-appcache-write-recursive","description":"This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["write-all","scope-appcache-recursive"]},"allow-appconfig-meta":{"identifier":"allow-appconfig-meta","description":"This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-index"]},"allow-appconfig-meta-recursive":{"identifier":"allow-appconfig-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-recursive"]},"allow-appconfig-read":{"identifier":"allow-appconfig-read","description":"This allows non-recursive read access to the `$APPCONFIG` folder.","permissions":["read-all","scope-appconfig"]},"allow-appconfig-read-recursive":{"identifier":"allow-appconfig-read-recursive","description":"This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["read-all","scope-appconfig-recursive"]},"allow-appconfig-write":{"identifier":"allow-appconfig-write","description":"This allows non-recursive write access to the `$APPCONFIG` folder.","permissions":["write-all","scope-appconfig"]},"allow-appconfig-write-recursive":{"identifier":"allow-appconfig-write-recursive","description":"This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["write-all","scope-appconfig-recursive"]},"allow-appdata-meta":{"identifier":"allow-appdata-meta","description":"This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-index"]},"allow-appdata-meta-recursive":{"identifier":"allow-appdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-recursive"]},"allow-appdata-read":{"identifier":"allow-appdata-read","description":"This allows non-recursive read access to the `$APPDATA` folder.","permissions":["read-all","scope-appdata"]},"allow-appdata-read-recursive":{"identifier":"allow-appdata-read-recursive","description":"This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["read-all","scope-appdata-recursive"]},"allow-appdata-write":{"identifier":"allow-appdata-write","description":"This allows non-recursive write access to the `$APPDATA` folder.","permissions":["write-all","scope-appdata"]},"allow-appdata-write-recursive":{"identifier":"allow-appdata-write-recursive","description":"This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["write-all","scope-appdata-recursive"]},"allow-applocaldata-meta":{"identifier":"allow-applocaldata-meta","description":"This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-index"]},"allow-applocaldata-meta-recursive":{"identifier":"allow-applocaldata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-recursive"]},"allow-applocaldata-read":{"identifier":"allow-applocaldata-read","description":"This allows non-recursive read access to the `$APPLOCALDATA` folder.","permissions":["read-all","scope-applocaldata"]},"allow-applocaldata-read-recursive":{"identifier":"allow-applocaldata-read-recursive","description":"This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-applocaldata-recursive"]},"allow-applocaldata-write":{"identifier":"allow-applocaldata-write","description":"This allows non-recursive write access to the `$APPLOCALDATA` folder.","permissions":["write-all","scope-applocaldata"]},"allow-applocaldata-write-recursive":{"identifier":"allow-applocaldata-write-recursive","description":"This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-applocaldata-recursive"]},"allow-applog-meta":{"identifier":"allow-applog-meta","description":"This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-index"]},"allow-applog-meta-recursive":{"identifier":"allow-applog-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-recursive"]},"allow-applog-read":{"identifier":"allow-applog-read","description":"This allows non-recursive read access to the `$APPLOG` folder.","permissions":["read-all","scope-applog"]},"allow-applog-read-recursive":{"identifier":"allow-applog-read-recursive","description":"This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["read-all","scope-applog-recursive"]},"allow-applog-write":{"identifier":"allow-applog-write","description":"This allows non-recursive write access to the `$APPLOG` folder.","permissions":["write-all","scope-applog"]},"allow-applog-write-recursive":{"identifier":"allow-applog-write-recursive","description":"This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["write-all","scope-applog-recursive"]},"allow-audio-meta":{"identifier":"allow-audio-meta","description":"This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-index"]},"allow-audio-meta-recursive":{"identifier":"allow-audio-meta-recursive","description":"This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-recursive"]},"allow-audio-read":{"identifier":"allow-audio-read","description":"This allows non-recursive read access to the `$AUDIO` folder.","permissions":["read-all","scope-audio"]},"allow-audio-read-recursive":{"identifier":"allow-audio-read-recursive","description":"This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["read-all","scope-audio-recursive"]},"allow-audio-write":{"identifier":"allow-audio-write","description":"This allows non-recursive write access to the `$AUDIO` folder.","permissions":["write-all","scope-audio"]},"allow-audio-write-recursive":{"identifier":"allow-audio-write-recursive","description":"This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["write-all","scope-audio-recursive"]},"allow-cache-meta":{"identifier":"allow-cache-meta","description":"This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-index"]},"allow-cache-meta-recursive":{"identifier":"allow-cache-meta-recursive","description":"This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-recursive"]},"allow-cache-read":{"identifier":"allow-cache-read","description":"This allows non-recursive read access to the `$CACHE` folder.","permissions":["read-all","scope-cache"]},"allow-cache-read-recursive":{"identifier":"allow-cache-read-recursive","description":"This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.","permissions":["read-all","scope-cache-recursive"]},"allow-cache-write":{"identifier":"allow-cache-write","description":"This allows non-recursive write access to the `$CACHE` folder.","permissions":["write-all","scope-cache"]},"allow-cache-write-recursive":{"identifier":"allow-cache-write-recursive","description":"This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.","permissions":["write-all","scope-cache-recursive"]},"allow-config-meta":{"identifier":"allow-config-meta","description":"This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-index"]},"allow-config-meta-recursive":{"identifier":"allow-config-meta-recursive","description":"This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-recursive"]},"allow-config-read":{"identifier":"allow-config-read","description":"This allows non-recursive read access to the `$CONFIG` folder.","permissions":["read-all","scope-config"]},"allow-config-read-recursive":{"identifier":"allow-config-read-recursive","description":"This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["read-all","scope-config-recursive"]},"allow-config-write":{"identifier":"allow-config-write","description":"This allows non-recursive write access to the `$CONFIG` folder.","permissions":["write-all","scope-config"]},"allow-config-write-recursive":{"identifier":"allow-config-write-recursive","description":"This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["write-all","scope-config-recursive"]},"allow-data-meta":{"identifier":"allow-data-meta","description":"This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-index"]},"allow-data-meta-recursive":{"identifier":"allow-data-meta-recursive","description":"This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-recursive"]},"allow-data-read":{"identifier":"allow-data-read","description":"This allows non-recursive read access to the `$DATA` folder.","permissions":["read-all","scope-data"]},"allow-data-read-recursive":{"identifier":"allow-data-read-recursive","description":"This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.","permissions":["read-all","scope-data-recursive"]},"allow-data-write":{"identifier":"allow-data-write","description":"This allows non-recursive write access to the `$DATA` folder.","permissions":["write-all","scope-data"]},"allow-data-write-recursive":{"identifier":"allow-data-write-recursive","description":"This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.","permissions":["write-all","scope-data-recursive"]},"allow-desktop-meta":{"identifier":"allow-desktop-meta","description":"This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-index"]},"allow-desktop-meta-recursive":{"identifier":"allow-desktop-meta-recursive","description":"This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-recursive"]},"allow-desktop-read":{"identifier":"allow-desktop-read","description":"This allows non-recursive read access to the `$DESKTOP` folder.","permissions":["read-all","scope-desktop"]},"allow-desktop-read-recursive":{"identifier":"allow-desktop-read-recursive","description":"This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["read-all","scope-desktop-recursive"]},"allow-desktop-write":{"identifier":"allow-desktop-write","description":"This allows non-recursive write access to the `$DESKTOP` folder.","permissions":["write-all","scope-desktop"]},"allow-desktop-write-recursive":{"identifier":"allow-desktop-write-recursive","description":"This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["write-all","scope-desktop-recursive"]},"allow-document-meta":{"identifier":"allow-document-meta","description":"This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-index"]},"allow-document-meta-recursive":{"identifier":"allow-document-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-recursive"]},"allow-document-read":{"identifier":"allow-document-read","description":"This allows non-recursive read access to the `$DOCUMENT` folder.","permissions":["read-all","scope-document"]},"allow-document-read-recursive":{"identifier":"allow-document-read-recursive","description":"This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["read-all","scope-document-recursive"]},"allow-document-write":{"identifier":"allow-document-write","description":"This allows non-recursive write access to the `$DOCUMENT` folder.","permissions":["write-all","scope-document"]},"allow-document-write-recursive":{"identifier":"allow-document-write-recursive","description":"This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["write-all","scope-document-recursive"]},"allow-download-meta":{"identifier":"allow-download-meta","description":"This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-index"]},"allow-download-meta-recursive":{"identifier":"allow-download-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-recursive"]},"allow-download-read":{"identifier":"allow-download-read","description":"This allows non-recursive read access to the `$DOWNLOAD` folder.","permissions":["read-all","scope-download"]},"allow-download-read-recursive":{"identifier":"allow-download-read-recursive","description":"This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["read-all","scope-download-recursive"]},"allow-download-write":{"identifier":"allow-download-write","description":"This allows non-recursive write access to the `$DOWNLOAD` folder.","permissions":["write-all","scope-download"]},"allow-download-write-recursive":{"identifier":"allow-download-write-recursive","description":"This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["write-all","scope-download-recursive"]},"allow-exe-meta":{"identifier":"allow-exe-meta","description":"This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-index"]},"allow-exe-meta-recursive":{"identifier":"allow-exe-meta-recursive","description":"This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-recursive"]},"allow-exe-read":{"identifier":"allow-exe-read","description":"This allows non-recursive read access to the `$EXE` folder.","permissions":["read-all","scope-exe"]},"allow-exe-read-recursive":{"identifier":"allow-exe-read-recursive","description":"This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.","permissions":["read-all","scope-exe-recursive"]},"allow-exe-write":{"identifier":"allow-exe-write","description":"This allows non-recursive write access to the `$EXE` folder.","permissions":["write-all","scope-exe"]},"allow-exe-write-recursive":{"identifier":"allow-exe-write-recursive","description":"This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.","permissions":["write-all","scope-exe-recursive"]},"allow-font-meta":{"identifier":"allow-font-meta","description":"This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-index"]},"allow-font-meta-recursive":{"identifier":"allow-font-meta-recursive","description":"This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-recursive"]},"allow-font-read":{"identifier":"allow-font-read","description":"This allows non-recursive read access to the `$FONT` folder.","permissions":["read-all","scope-font"]},"allow-font-read-recursive":{"identifier":"allow-font-read-recursive","description":"This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.","permissions":["read-all","scope-font-recursive"]},"allow-font-write":{"identifier":"allow-font-write","description":"This allows non-recursive write access to the `$FONT` folder.","permissions":["write-all","scope-font"]},"allow-font-write-recursive":{"identifier":"allow-font-write-recursive","description":"This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.","permissions":["write-all","scope-font-recursive"]},"allow-home-meta":{"identifier":"allow-home-meta","description":"This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-index"]},"allow-home-meta-recursive":{"identifier":"allow-home-meta-recursive","description":"This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-recursive"]},"allow-home-read":{"identifier":"allow-home-read","description":"This allows non-recursive read access to the `$HOME` folder.","permissions":["read-all","scope-home"]},"allow-home-read-recursive":{"identifier":"allow-home-read-recursive","description":"This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.","permissions":["read-all","scope-home-recursive"]},"allow-home-write":{"identifier":"allow-home-write","description":"This allows non-recursive write access to the `$HOME` folder.","permissions":["write-all","scope-home"]},"allow-home-write-recursive":{"identifier":"allow-home-write-recursive","description":"This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.","permissions":["write-all","scope-home-recursive"]},"allow-localdata-meta":{"identifier":"allow-localdata-meta","description":"This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-index"]},"allow-localdata-meta-recursive":{"identifier":"allow-localdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-recursive"]},"allow-localdata-read":{"identifier":"allow-localdata-read","description":"This allows non-recursive read access to the `$LOCALDATA` folder.","permissions":["read-all","scope-localdata"]},"allow-localdata-read-recursive":{"identifier":"allow-localdata-read-recursive","description":"This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-localdata-recursive"]},"allow-localdata-write":{"identifier":"allow-localdata-write","description":"This allows non-recursive write access to the `$LOCALDATA` folder.","permissions":["write-all","scope-localdata"]},"allow-localdata-write-recursive":{"identifier":"allow-localdata-write-recursive","description":"This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-localdata-recursive"]},"allow-log-meta":{"identifier":"allow-log-meta","description":"This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-index"]},"allow-log-meta-recursive":{"identifier":"allow-log-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-recursive"]},"allow-log-read":{"identifier":"allow-log-read","description":"This allows non-recursive read access to the `$LOG` folder.","permissions":["read-all","scope-log"]},"allow-log-read-recursive":{"identifier":"allow-log-read-recursive","description":"This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.","permissions":["read-all","scope-log-recursive"]},"allow-log-write":{"identifier":"allow-log-write","description":"This allows non-recursive write access to the `$LOG` folder.","permissions":["write-all","scope-log"]},"allow-log-write-recursive":{"identifier":"allow-log-write-recursive","description":"This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.","permissions":["write-all","scope-log-recursive"]},"allow-picture-meta":{"identifier":"allow-picture-meta","description":"This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-index"]},"allow-picture-meta-recursive":{"identifier":"allow-picture-meta-recursive","description":"This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-recursive"]},"allow-picture-read":{"identifier":"allow-picture-read","description":"This allows non-recursive read access to the `$PICTURE` folder.","permissions":["read-all","scope-picture"]},"allow-picture-read-recursive":{"identifier":"allow-picture-read-recursive","description":"This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["read-all","scope-picture-recursive"]},"allow-picture-write":{"identifier":"allow-picture-write","description":"This allows non-recursive write access to the `$PICTURE` folder.","permissions":["write-all","scope-picture"]},"allow-picture-write-recursive":{"identifier":"allow-picture-write-recursive","description":"This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["write-all","scope-picture-recursive"]},"allow-public-meta":{"identifier":"allow-public-meta","description":"This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-index"]},"allow-public-meta-recursive":{"identifier":"allow-public-meta-recursive","description":"This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-recursive"]},"allow-public-read":{"identifier":"allow-public-read","description":"This allows non-recursive read access to the `$PUBLIC` folder.","permissions":["read-all","scope-public"]},"allow-public-read-recursive":{"identifier":"allow-public-read-recursive","description":"This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["read-all","scope-public-recursive"]},"allow-public-write":{"identifier":"allow-public-write","description":"This allows non-recursive write access to the `$PUBLIC` folder.","permissions":["write-all","scope-public"]},"allow-public-write-recursive":{"identifier":"allow-public-write-recursive","description":"This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["write-all","scope-public-recursive"]},"allow-resource-meta":{"identifier":"allow-resource-meta","description":"This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-index"]},"allow-resource-meta-recursive":{"identifier":"allow-resource-meta-recursive","description":"This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-recursive"]},"allow-resource-read":{"identifier":"allow-resource-read","description":"This allows non-recursive read access to the `$RESOURCE` folder.","permissions":["read-all","scope-resource"]},"allow-resource-read-recursive":{"identifier":"allow-resource-read-recursive","description":"This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["read-all","scope-resource-recursive"]},"allow-resource-write":{"identifier":"allow-resource-write","description":"This allows non-recursive write access to the `$RESOURCE` folder.","permissions":["write-all","scope-resource"]},"allow-resource-write-recursive":{"identifier":"allow-resource-write-recursive","description":"This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["write-all","scope-resource-recursive"]},"allow-runtime-meta":{"identifier":"allow-runtime-meta","description":"This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-index"]},"allow-runtime-meta-recursive":{"identifier":"allow-runtime-meta-recursive","description":"This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-recursive"]},"allow-runtime-read":{"identifier":"allow-runtime-read","description":"This allows non-recursive read access to the `$RUNTIME` folder.","permissions":["read-all","scope-runtime"]},"allow-runtime-read-recursive":{"identifier":"allow-runtime-read-recursive","description":"This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["read-all","scope-runtime-recursive"]},"allow-runtime-write":{"identifier":"allow-runtime-write","description":"This allows non-recursive write access to the `$RUNTIME` folder.","permissions":["write-all","scope-runtime"]},"allow-runtime-write-recursive":{"identifier":"allow-runtime-write-recursive","description":"This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["write-all","scope-runtime-recursive"]},"allow-temp-meta":{"identifier":"allow-temp-meta","description":"This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-index"]},"allow-temp-meta-recursive":{"identifier":"allow-temp-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-recursive"]},"allow-temp-read":{"identifier":"allow-temp-read","description":"This allows non-recursive read access to the `$TEMP` folder.","permissions":["read-all","scope-temp"]},"allow-temp-read-recursive":{"identifier":"allow-temp-read-recursive","description":"This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.","permissions":["read-all","scope-temp-recursive"]},"allow-temp-write":{"identifier":"allow-temp-write","description":"This allows non-recursive write access to the `$TEMP` folder.","permissions":["write-all","scope-temp"]},"allow-temp-write-recursive":{"identifier":"allow-temp-write-recursive","description":"This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.","permissions":["write-all","scope-temp-recursive"]},"allow-template-meta":{"identifier":"allow-template-meta","description":"This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-index"]},"allow-template-meta-recursive":{"identifier":"allow-template-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-recursive"]},"allow-template-read":{"identifier":"allow-template-read","description":"This allows non-recursive read access to the `$TEMPLATE` folder.","permissions":["read-all","scope-template"]},"allow-template-read-recursive":{"identifier":"allow-template-read-recursive","description":"This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["read-all","scope-template-recursive"]},"allow-template-write":{"identifier":"allow-template-write","description":"This allows non-recursive write access to the `$TEMPLATE` folder.","permissions":["write-all","scope-template"]},"allow-template-write-recursive":{"identifier":"allow-template-write-recursive","description":"This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["write-all","scope-template-recursive"]},"allow-video-meta":{"identifier":"allow-video-meta","description":"This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-index"]},"allow-video-meta-recursive":{"identifier":"allow-video-meta-recursive","description":"This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-recursive"]},"allow-video-read":{"identifier":"allow-video-read","description":"This allows non-recursive read access to the `$VIDEO` folder.","permissions":["read-all","scope-video"]},"allow-video-read-recursive":{"identifier":"allow-video-read-recursive","description":"This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["read-all","scope-video-recursive"]},"allow-video-write":{"identifier":"allow-video-write","description":"This allows non-recursive write access to the `$VIDEO` folder.","permissions":["write-all","scope-video"]},"allow-video-write-recursive":{"identifier":"allow-video-write-recursive","description":"This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["write-all","scope-video-recursive"]},"create-app-specific-dirs":{"identifier":"create-app-specific-dirs","description":"This permissions allows to create the application specific directories.\n","permissions":["allow-mkdir","scope-app-index"]},"deny-default":{"identifier":"deny-default","description":"This denies access to dangerous Tauri relevant files and folders by default.","permissions":["deny-webview-data-linux","deny-webview-data-windows"]},"read-app-specific-dirs-recursive":{"identifier":"read-app-specific-dirs-recursive","description":"This permission allows recursive read functionality on the application\nspecific base directories.\n","permissions":["allow-read-dir","allow-read-file","allow-read-text-file","allow-read-text-file-lines","allow-read-text-file-lines-next","allow-exists","scope-app-recursive"]}},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"},{"properties":{"path":{"description":"A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"}},"required":["path"],"type":"object"}],"description":"FS scope entry.","title":"FsScopeEntry"}},"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]: ","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"}},"window-state":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-filename","allow-restore-state","allow-save-window-state"]},"permissions":{"allow-filename":{"identifier":"allow-filename","description":"Enables the filename command without any pre-configured scope.","commands":{"allow":["filename"],"deny":[]}},"allow-restore-state":{"identifier":"allow-restore-state","description":"Enables the restore_state command without any pre-configured scope.","commands":{"allow":["restore_state"],"deny":[]}},"allow-save-window-state":{"identifier":"allow-save-window-state","description":"Enables the save_window_state command without any pre-configured scope.","commands":{"allow":["save_window_state"],"deny":[]}},"deny-filename":{"identifier":"deny-filename","description":"Denies the filename command without any pre-configured scope.","commands":{"allow":[],"deny":["filename"]}},"deny-restore-state":{"identifier":"deny-restore-state","description":"Denies the restore_state command without any pre-configured scope.","commands":{"allow":[],"deny":["restore_state"]}},"deny-save-window-state":{"identifier":"deny-save-window-state","description":"Denies the save_window_state command without any pre-configured scope.","commands":{"allow":[],"deny":["save_window_state"]}}},"permission_sets":{},"global_scope_schema":null}} \ No newline at end of file +{"__app-acl__":{"default_permission":null,"permissions":{"allow-acknowledge-drift":{"identifier":"allow-acknowledge-drift","description":"Enables the acknowledge_drift command without any pre-configured scope.","commands":{"allow":["acknowledge_drift"],"deny":[]}},"allow-acknowledge-drift-item":{"identifier":"allow-acknowledge-drift-item","description":"Enables the acknowledge_drift_item command without any pre-configured scope.","commands":{"allow":["acknowledge_drift_item"],"deny":[]}},"allow-apply-security-preset":{"identifier":"allow-apply-security-preset","description":"Enables the apply_security_preset command without any pre-configured scope.","commands":{"allow":["apply_security_preset"],"deny":[]}},"allow-apply-surface-transaction":{"identifier":"allow-apply-surface-transaction","description":"Enables the apply_surface_transaction command without any pre-configured scope.","commands":{"allow":["apply_surface_transaction"],"deny":[]}},"allow-check-for-updates":{"identifier":"allow-check-for-updates","description":"Enables the check_for_updates command without any pre-configured scope.","commands":{"allow":["check_for_updates"],"deny":[]}},"allow-check-git-repo":{"identifier":"allow-check-git-repo","description":"Enables the check_git_repo command without any pre-configured scope.","commands":{"allow":["check_git_repo"],"deny":[]}},"allow-check-plugin-updates":{"identifier":"allow-check-plugin-updates","description":"Enables the check_plugin_updates command without any pre-configured scope.","commands":{"allow":["check_plugin_updates"],"deny":[]}},"allow-choose-project-dir":{"identifier":"allow-choose-project-dir","description":"Enables the choose_project_dir command without any pre-configured scope.","commands":{"allow":["choose_project_dir"],"deny":[]}},"allow-clear-audit-entries":{"identifier":"allow-clear-audit-entries","description":"Enables the clear_audit_entries command without any pre-configured scope.","commands":{"allow":["clear_audit_entries"],"deny":[]}},"allow-compute-live-stats":{"identifier":"allow-compute-live-stats","description":"Enables the compute_live_stats command without any pre-configured scope.","commands":{"allow":["compute_live_stats"],"deny":[]}},"allow-create-evaluation-session":{"identifier":"allow-create-evaluation-session","description":"Enables the create_evaluation_session command without any pre-configured scope.","commands":{"allow":["create_evaluation_session"],"deny":[]}},"allow-create-worktrees":{"identifier":"allow-create-worktrees","description":"Enables the create_worktrees command without any pre-configured scope.","commands":{"allow":["create_worktrees"],"deny":[]}},"allow-delete-comparison":{"identifier":"allow-delete-comparison","description":"Enables the delete_comparison command without any pre-configured scope.","commands":{"allow":["delete_comparison"],"deny":[]}},"allow-delete-custom-profile":{"identifier":"allow-delete-custom-profile","description":"Enables the delete_custom_profile command without any pre-configured scope.","commands":{"allow":["delete_custom_profile"],"deny":[]}},"allow-delete-keychain-secret":{"identifier":"allow-delete-keychain-secret","description":"Enables the delete_keychain_secret command without any pre-configured scope.","commands":{"allow":["delete_keychain_secret"],"deny":[]}},"allow-delete-pairwise-vote":{"identifier":"allow-delete-pairwise-vote","description":"Enables the delete_pairwise_vote command without any pre-configured scope.","commands":{"allow":["delete_pairwise_vote"],"deny":[]}},"allow-detect-claude-account":{"identifier":"allow-detect-claude-account","description":"Enables the detect_claude_account command without any pre-configured scope.","commands":{"allow":["detect_claude_account"],"deny":[]}},"allow-detect-harnesses":{"identifier":"allow-detect-harnesses","description":"Enables the detect_harnesses command without any pre-configured scope.","commands":{"allow":["detect_harnesses"],"deny":[]}},"allow-export-comparison-json":{"identifier":"allow-export-comparison-json","description":"Enables the export_comparison_json command without any pre-configured scope.","commands":{"allow":["export_comparison_json"],"deny":[]}},"allow-export-plugin-as-zip":{"identifier":"allow-export-plugin-as-zip","description":"Enables the export_plugin_as_zip command without any pre-configured scope.","commands":{"allow":["export_plugin_as_zip"],"deny":[]}},"allow-export-plugin-to-folder":{"identifier":"allow-export-plugin-to-folder","description":"Enables the export_plugin_to_folder command without any pre-configured scope.","commands":{"allow":["export_plugin_to_folder"],"deny":[]}},"allow-get-acknowledged-drift-items":{"identifier":"allow-get-acknowledged-drift-items","description":"Enables the get_acknowledged_drift_items command without any pre-configured scope.","commands":{"allow":["get_acknowledged_drift_items"],"deny":[]}},"allow-get-cached-definitions":{"identifier":"allow-get-cached-definitions","description":"Enables the get_cached_definitions command without any pre-configured scope.","commands":{"allow":["get_cached_definitions"],"deny":[]}},"allow-get-comparator-analytics":{"identifier":"allow-get-comparator-analytics","description":"Enables the get_comparator_analytics command without any pre-configured scope.","commands":{"allow":["get_comparator_analytics"],"deny":[]}},"allow-get-comparison":{"identifier":"allow-get-comparison","description":"Enables the get_comparison command without any pre-configured scope.","commands":{"allow":["get_comparison"],"deny":[]}},"allow-get-comparison-diffs":{"identifier":"allow-get-comparison-diffs","description":"Enables the get_comparison_diffs command without any pre-configured scope.","commands":{"allow":["get_comparison_diffs"],"deny":[]}},"allow-get-custom-profile":{"identifier":"allow-get-custom-profile","description":"Enables the get_custom_profile command without any pre-configured scope.","commands":{"allow":["get_custom_profile"],"deny":[]}},"allow-get-diff-against-commit":{"identifier":"allow-get-diff-against-commit","description":"Enables the get_diff_against_commit command without any pre-configured scope.","commands":{"allow":["get_diff_against_commit"],"deny":[]}},"allow-get-evaluation-session":{"identifier":"allow-get-evaluation-session","description":"Enables the get_evaluation_session command without any pre-configured scope.","commands":{"allow":["get_evaluation_session"],"deny":[]}},"allow-get-evaluations":{"identifier":"allow-get-evaluations","description":"Enables the get_evaluations command without any pre-configured scope.","commands":{"allow":["get_evaluations"],"deny":[]}},"allow-get-harness-recommendations":{"identifier":"allow-get-harness-recommendations","description":"Enables the get_harness_recommendations command without any pre-configured scope.","commands":{"allow":["get_harness_recommendations"],"deny":[]}},"allow-get-highest-bundle-number":{"identifier":"allow-get-highest-bundle-number","description":"Enables the get_highest_bundle_number command without any pre-configured scope.","commands":{"allow":["get_highest_bundle_number"],"deny":[]}},"allow-get-history-size":{"identifier":"allow-get-history-size","description":"Enables the get_history_size command without any pre-configured scope.","commands":{"allow":["get_history_size"],"deny":[]}},"allow-get-pairwise-analytics":{"identifier":"allow-get-pairwise-analytics","description":"Enables the get_pairwise_analytics command without any pre-configured scope.","commands":{"allow":["get_pairwise_analytics"],"deny":[]}},"allow-get-pairwise-votes":{"identifier":"allow-get-pairwise-votes","description":"Enables the get_pairwise_votes command without any pre-configured scope.","commands":{"allow":["get_pairwise_votes"],"deny":[]}},"allow-get-panel-diffs":{"identifier":"allow-get-panel-diffs","description":"Enables the get_panel_diffs command without any pre-configured scope.","commands":{"allow":["get_panel_diffs"],"deny":[]}},"allow-get-system-info":{"identifier":"allow-get-system-info","description":"Enables the get_system_info command without any pre-configured scope.","commands":{"allow":["get_system_info"],"deny":[]}},"allow-grant-project-scope":{"identifier":"allow-grant-project-scope","description":"Enables the grant_project_scope command without any pre-configured scope.","commands":{"allow":["grant_project_scope"],"deny":[]}},"allow-guarded-remove-file":{"identifier":"allow-guarded-remove-file","description":"Enables the guarded_remove_file command without any pre-configured scope.","commands":{"allow":["guarded_remove_file"],"deny":[]}},"allow-guarded-rename-file":{"identifier":"allow-guarded-rename-file","description":"Enables the guarded_rename_file command without any pre-configured scope.","commands":{"allow":["guarded_rename_file"],"deny":[]}},"allow-guarded-write-file":{"identifier":"allow-guarded-write-file","description":"Enables the guarded_write_file command without any pre-configured scope.","commands":{"allow":["guarded_write_file"],"deny":[]}},"allow-import-plugin-from-path":{"identifier":"allow-import-plugin-from-path","description":"Enables the import_plugin_from_path command without any pre-configured scope.","commands":{"allow":["import_plugin_from_path"],"deny":[]}},"allow-import-plugin-from-zip":{"identifier":"allow-import-plugin-from-zip","description":"Enables the import_plugin_from_zip command without any pre-configured scope.","commands":{"allow":["import_plugin_from_zip"],"deny":[]}},"allow-list-active-sessions":{"identifier":"allow-list-active-sessions","description":"Enables the list_active_sessions command without any pre-configured scope.","commands":{"allow":["list_active_sessions"],"deny":[]}},"allow-list-audit-entries":{"identifier":"allow-list-audit-entries","description":"Enables the list_audit_entries command without any pre-configured scope.","commands":{"allow":["list_audit_entries"],"deny":[]}},"allow-list-claude-dir":{"identifier":"allow-list-claude-dir","description":"Enables the list_claude_dir command without any pre-configured scope.","commands":{"allow":["list_claude_dir"],"deny":[]}},"allow-list-comparisons":{"identifier":"allow-list-comparisons","description":"Enables the list_comparisons command without any pre-configured scope.","commands":{"allow":["list_comparisons"],"deny":[]}},"allow-list-custom-profiles":{"identifier":"allow-list-custom-profiles","description":"Enables the list_custom_profiles command without any pre-configured scope.","commands":{"allow":["list_custom_profiles"],"deny":[]}},"allow-list-drift-acknowledgements":{"identifier":"allow-list-drift-acknowledgements","description":"Enables the list_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":["list_drift_acknowledgements"],"deny":[]}},"allow-list-installed-plugins":{"identifier":"allow-list-installed-plugins","description":"Enables the list_installed_plugins command without any pre-configured scope.","commands":{"allow":["list_installed_plugins"],"deny":[]}},"allow-list-marketplaces":{"identifier":"allow-list-marketplaces","description":"Enables the list_marketplaces command without any pre-configured scope.","commands":{"allow":["list_marketplaces"],"deny":[]}},"allow-list-required-env":{"identifier":"allow-list-required-env","description":"Enables the list_required_env command without any pre-configured scope.","commands":{"allow":["list_required_env"],"deny":[]}},"allow-list-security-presets":{"identifier":"allow-list-security-presets","description":"Enables the list_security_presets command without any pre-configured scope.","commands":{"allow":["list_security_presets"],"deny":[]}},"allow-list-sessions-summary":{"identifier":"allow-list-sessions-summary","description":"Enables the list_sessions_summary command without any pre-configured scope.","commands":{"allow":["list_sessions_summary"],"deny":[]}},"allow-migrate-drift-acknowledgements":{"identifier":"allow-migrate-drift-acknowledgements","description":"Enables the migrate_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":["migrate_drift_acknowledgements"],"deny":[]}},"allow-push-file-history":{"identifier":"allow-push-file-history","description":"Enables the push_file_history command without any pre-configured scope.","commands":{"allow":["push_file_history"],"deny":[]}},"allow-put-cached-definitions":{"identifier":"allow-put-cached-definitions","description":"Enables the put_cached_definitions command without any pre-configured scope.","commands":{"allow":["put_cached_definitions"],"deny":[]}},"allow-read-claude-md":{"identifier":"allow-read-claude-md","description":"Enables the read_claude_md command without any pre-configured scope.","commands":{"allow":["read_claude_md"],"deny":[]}},"allow-read-env-config":{"identifier":"allow-read-env-config","description":"Enables the read_env_config command without any pre-configured scope.","commands":{"allow":["read_env_config"],"deny":[]}},"allow-read-file-history":{"identifier":"allow-read-file-history","description":"Enables the read_file_history command without any pre-configured scope.","commands":{"allow":["read_file_history"],"deny":[]}},"allow-read-harness-file":{"identifier":"allow-read-harness-file","description":"Enables the read_harness_file command without any pre-configured scope.","commands":{"allow":["read_harness_file"],"deny":[]}},"allow-read-hooks":{"identifier":"allow-read-hooks","description":"Enables the read_hooks command without any pre-configured scope.","commands":{"allow":["read_hooks"],"deny":[]}},"allow-read-live-activity":{"identifier":"allow-read-live-activity","description":"Enables the read_live_activity command without any pre-configured scope.","commands":{"allow":["read_live_activity"],"deny":[]}},"allow-read-permissions":{"identifier":"allow-read-permissions","description":"Enables the read_permissions command without any pre-configured scope.","commands":{"allow":["read_permissions"],"deny":[]}},"allow-read-plugin-file":{"identifier":"allow-read-plugin-file","description":"Enables the read_plugin_file command without any pre-configured scope.","commands":{"allow":["read_plugin_file"],"deny":[]}},"allow-read-plugin-tree":{"identifier":"allow-read-plugin-tree","description":"Enables the read_plugin_tree command without any pre-configured scope.","commands":{"allow":["read_plugin_tree"],"deny":[]}},"allow-read-session-facet":{"identifier":"allow-read-session-facet","description":"Enables the read_session_facet command without any pre-configured scope.","commands":{"allow":["read_session_facet"],"deny":[]}},"allow-read-session-transcript":{"identifier":"allow-read-session-transcript","description":"Enables the read_session_transcript command without any pre-configured scope.","commands":{"allow":["read_session_transcript"],"deny":[]}},"allow-read-stats-cache":{"identifier":"allow-read-stats-cache","description":"Enables the read_stats_cache command without any pre-configured scope.","commands":{"allow":["read_stats_cache"],"deny":[]}},"allow-record-bundle-number":{"identifier":"allow-record-bundle-number","description":"Enables the record_bundle_number command without any pre-configured scope.","commands":{"allow":["record_bundle_number"],"deny":[]}},"allow-record-transaction":{"identifier":"allow-record-transaction","description":"Enables the record_transaction command without any pre-configured scope.","commands":{"allow":["record_transaction"],"deny":[]}},"allow-remove-worktrees":{"identifier":"allow-remove-worktrees","description":"Enables the remove_worktrees command without any pre-configured scope.","commands":{"allow":["remove_worktrees"],"deny":[]}},"allow-reveal-evaluation-session":{"identifier":"allow-reveal-evaluation-session","description":"Enables the reveal_evaluation_session command without any pre-configured scope.","commands":{"allow":["reveal_evaluation_session"],"deny":[]}},"allow-save-comparison":{"identifier":"allow-save-comparison","description":"Enables the save_comparison command without any pre-configured scope.","commands":{"allow":["save_comparison"],"deny":[]}},"allow-save-custom-profile":{"identifier":"allow-save-custom-profile","description":"Enables the save_custom_profile command without any pre-configured scope.","commands":{"allow":["save_custom_profile"],"deny":[]}},"allow-save-evaluation":{"identifier":"allow-save-evaluation","description":"Enables the save_evaluation command without any pre-configured scope.","commands":{"allow":["save_evaluation"],"deny":[]}},"allow-save-file-diffs":{"identifier":"allow-save-file-diffs","description":"Enables the save_file_diffs command without any pre-configured scope.","commands":{"allow":["save_file_diffs"],"deny":[]}},"allow-save-pairwise-vote":{"identifier":"allow-save-pairwise-vote","description":"Enables the save_pairwise_vote command without any pre-configured scope.","commands":{"allow":["save_pairwise_vote"],"deny":[]}},"allow-save-panel":{"identifier":"allow-save-panel","description":"Enables the save_panel command without any pre-configured scope.","commands":{"allow":["save_panel"],"deny":[]}},"allow-scan-claude-config":{"identifier":"allow-scan-claude-config","description":"Enables the scan_claude_config command without any pre-configured scope.","commands":{"allow":["scan_claude_config"],"deny":[]}},"allow-set-keychain-secret":{"identifier":"allow-set-keychain-secret","description":"Enables the set_keychain_secret command without any pre-configured scope.","commands":{"allow":["set_keychain_secret"],"deny":[]}},"allow-submit-feedback":{"identifier":"allow-submit-feedback","description":"Enables the submit_feedback command without any pre-configured scope.","commands":{"allow":["submit_feedback"],"deny":[]}},"allow-sync-create-backup":{"identifier":"allow-sync-create-backup","description":"Enables the sync_create_backup command without any pre-configured scope.","commands":{"allow":["sync_create_backup"],"deny":[]}},"allow-sync-file-exists":{"identifier":"allow-sync-file-exists","description":"Enables the sync_file_exists command without any pre-configured scope.","commands":{"allow":["sync_file_exists"],"deny":[]}},"allow-sync-list-backups":{"identifier":"allow-sync-list-backups","description":"Enables the sync_list_backups command without any pre-configured scope.","commands":{"allow":["sync_list_backups"],"deny":[]}},"allow-sync-read-dir":{"identifier":"allow-sync-read-dir","description":"Enables the sync_read_dir command without any pre-configured scope.","commands":{"allow":["sync_read_dir"],"deny":[]}},"allow-sync-read-file":{"identifier":"allow-sync-read-file","description":"Enables the sync_read_file command without any pre-configured scope.","commands":{"allow":["sync_read_file"],"deny":[]}},"allow-sync-restore-backup":{"identifier":"allow-sync-restore-backup","description":"Enables the sync_restore_backup command without any pre-configured scope.","commands":{"allow":["sync_restore_backup"],"deny":[]}},"allow-sync-write-files":{"identifier":"allow-sync-write-files","description":"Enables the sync_write_files command without any pre-configured scope.","commands":{"allow":["sync_write_files"],"deny":[]}},"allow-tag-comparison-task-type":{"identifier":"allow-tag-comparison-task-type","description":"Enables the tag_comparison_task_type command without any pre-configured scope.","commands":{"allow":["tag_comparison_task_type"],"deny":[]}},"allow-trigger-rebuild":{"identifier":"allow-trigger-rebuild","description":"Enables the trigger_rebuild command without any pre-configured scope.","commands":{"allow":["trigger_rebuild"],"deny":[]}},"allow-unacknowledge-drift":{"identifier":"allow-unacknowledge-drift","description":"Enables the unacknowledge_drift command without any pre-configured scope.","commands":{"allow":["unacknowledge_drift"],"deny":[]}},"allow-unacknowledge-drift-item":{"identifier":"allow-unacknowledge-drift-item","description":"Enables the unacknowledge_drift_item command without any pre-configured scope.","commands":{"allow":["unacknowledge_drift_item"],"deny":[]}},"allow-uninstall-plugin":{"identifier":"allow-uninstall-plugin","description":"Enables the uninstall_plugin command without any pre-configured scope.","commands":{"allow":["uninstall_plugin"],"deny":[]}},"allow-update-comparison-status":{"identifier":"allow-update-comparison-status","description":"Enables the update_comparison_status command without any pre-configured scope.","commands":{"allow":["update_comparison_status"],"deny":[]}},"allow-update-comparison-title":{"identifier":"allow-update-comparison-title","description":"Enables the update_comparison_title command without any pre-configured scope.","commands":{"allow":["update_comparison_title"],"deny":[]}},"allow-update-evaluation-score":{"identifier":"allow-update-evaluation-score","description":"Enables the update_evaluation_score command without any pre-configured scope.","commands":{"allow":["update_evaluation_score"],"deny":[]}},"allow-update-panel-result":{"identifier":"allow-update-panel-result","description":"Enables the update_panel_result command without any pre-configured scope.","commands":{"allow":["update_panel_result"],"deny":[]}},"allow-update-permissions":{"identifier":"allow-update-permissions","description":"Enables the update_permissions command without any pre-configured scope.","commands":{"allow":["update_permissions"],"deny":[]}},"allow-verify-definitions-signature":{"identifier":"allow-verify-definitions-signature","description":"Enables the verify_definitions_signature command without any pre-configured scope.","commands":{"allow":["verify_definitions_signature"],"deny":[]}},"allow-write-config-file":{"identifier":"allow-write-config-file","description":"Enables the write_config_file command without any pre-configured scope.","commands":{"allow":["write_config_file"],"deny":[]}},"allow-write-env-config":{"identifier":"allow-write-env-config","description":"Enables the write_env_config command without any pre-configured scope.","commands":{"allow":["write_env_config"],"deny":[]}},"allow-write-harness-file":{"identifier":"allow-write-harness-file","description":"Enables the write_harness_file command without any pre-configured scope.","commands":{"allow":["write_harness_file"],"deny":[]}},"allow-write-plugin-file":{"identifier":"allow-write-plugin-file","description":"Enables the write_plugin_file command without any pre-configured scope.","commands":{"allow":["write_plugin_file"],"deny":[]}},"deny-acknowledge-drift":{"identifier":"deny-acknowledge-drift","description":"Denies the acknowledge_drift command without any pre-configured scope.","commands":{"allow":[],"deny":["acknowledge_drift"]}},"deny-acknowledge-drift-item":{"identifier":"deny-acknowledge-drift-item","description":"Denies the acknowledge_drift_item command without any pre-configured scope.","commands":{"allow":[],"deny":["acknowledge_drift_item"]}},"deny-apply-security-preset":{"identifier":"deny-apply-security-preset","description":"Denies the apply_security_preset command without any pre-configured scope.","commands":{"allow":[],"deny":["apply_security_preset"]}},"deny-apply-surface-transaction":{"identifier":"deny-apply-surface-transaction","description":"Denies the apply_surface_transaction command without any pre-configured scope.","commands":{"allow":[],"deny":["apply_surface_transaction"]}},"deny-check-for-updates":{"identifier":"deny-check-for-updates","description":"Denies the check_for_updates command without any pre-configured scope.","commands":{"allow":[],"deny":["check_for_updates"]}},"deny-check-git-repo":{"identifier":"deny-check-git-repo","description":"Denies the check_git_repo command without any pre-configured scope.","commands":{"allow":[],"deny":["check_git_repo"]}},"deny-check-plugin-updates":{"identifier":"deny-check-plugin-updates","description":"Denies the check_plugin_updates command without any pre-configured scope.","commands":{"allow":[],"deny":["check_plugin_updates"]}},"deny-choose-project-dir":{"identifier":"deny-choose-project-dir","description":"Denies the choose_project_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["choose_project_dir"]}},"deny-clear-audit-entries":{"identifier":"deny-clear-audit-entries","description":"Denies the clear_audit_entries command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_audit_entries"]}},"deny-compute-live-stats":{"identifier":"deny-compute-live-stats","description":"Denies the compute_live_stats command without any pre-configured scope.","commands":{"allow":[],"deny":["compute_live_stats"]}},"deny-create-evaluation-session":{"identifier":"deny-create-evaluation-session","description":"Denies the create_evaluation_session command without any pre-configured scope.","commands":{"allow":[],"deny":["create_evaluation_session"]}},"deny-create-worktrees":{"identifier":"deny-create-worktrees","description":"Denies the create_worktrees command without any pre-configured scope.","commands":{"allow":[],"deny":["create_worktrees"]}},"deny-delete-comparison":{"identifier":"deny-delete-comparison","description":"Denies the delete_comparison command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_comparison"]}},"deny-delete-custom-profile":{"identifier":"deny-delete-custom-profile","description":"Denies the delete_custom_profile command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_custom_profile"]}},"deny-delete-keychain-secret":{"identifier":"deny-delete-keychain-secret","description":"Denies the delete_keychain_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_keychain_secret"]}},"deny-delete-pairwise-vote":{"identifier":"deny-delete-pairwise-vote","description":"Denies the delete_pairwise_vote command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_pairwise_vote"]}},"deny-detect-claude-account":{"identifier":"deny-detect-claude-account","description":"Denies the detect_claude_account command without any pre-configured scope.","commands":{"allow":[],"deny":["detect_claude_account"]}},"deny-detect-harnesses":{"identifier":"deny-detect-harnesses","description":"Denies the detect_harnesses command without any pre-configured scope.","commands":{"allow":[],"deny":["detect_harnesses"]}},"deny-export-comparison-json":{"identifier":"deny-export-comparison-json","description":"Denies the export_comparison_json command without any pre-configured scope.","commands":{"allow":[],"deny":["export_comparison_json"]}},"deny-export-plugin-as-zip":{"identifier":"deny-export-plugin-as-zip","description":"Denies the export_plugin_as_zip command without any pre-configured scope.","commands":{"allow":[],"deny":["export_plugin_as_zip"]}},"deny-export-plugin-to-folder":{"identifier":"deny-export-plugin-to-folder","description":"Denies the export_plugin_to_folder command without any pre-configured scope.","commands":{"allow":[],"deny":["export_plugin_to_folder"]}},"deny-get-acknowledged-drift-items":{"identifier":"deny-get-acknowledged-drift-items","description":"Denies the get_acknowledged_drift_items command without any pre-configured scope.","commands":{"allow":[],"deny":["get_acknowledged_drift_items"]}},"deny-get-cached-definitions":{"identifier":"deny-get-cached-definitions","description":"Denies the get_cached_definitions command without any pre-configured scope.","commands":{"allow":[],"deny":["get_cached_definitions"]}},"deny-get-comparator-analytics":{"identifier":"deny-get-comparator-analytics","description":"Denies the get_comparator_analytics command without any pre-configured scope.","commands":{"allow":[],"deny":["get_comparator_analytics"]}},"deny-get-comparison":{"identifier":"deny-get-comparison","description":"Denies the get_comparison command without any pre-configured scope.","commands":{"allow":[],"deny":["get_comparison"]}},"deny-get-comparison-diffs":{"identifier":"deny-get-comparison-diffs","description":"Denies the get_comparison_diffs command without any pre-configured scope.","commands":{"allow":[],"deny":["get_comparison_diffs"]}},"deny-get-custom-profile":{"identifier":"deny-get-custom-profile","description":"Denies the get_custom_profile command without any pre-configured scope.","commands":{"allow":[],"deny":["get_custom_profile"]}},"deny-get-diff-against-commit":{"identifier":"deny-get-diff-against-commit","description":"Denies the get_diff_against_commit command without any pre-configured scope.","commands":{"allow":[],"deny":["get_diff_against_commit"]}},"deny-get-evaluation-session":{"identifier":"deny-get-evaluation-session","description":"Denies the get_evaluation_session command without any pre-configured scope.","commands":{"allow":[],"deny":["get_evaluation_session"]}},"deny-get-evaluations":{"identifier":"deny-get-evaluations","description":"Denies the get_evaluations command without any pre-configured scope.","commands":{"allow":[],"deny":["get_evaluations"]}},"deny-get-harness-recommendations":{"identifier":"deny-get-harness-recommendations","description":"Denies the get_harness_recommendations command without any pre-configured scope.","commands":{"allow":[],"deny":["get_harness_recommendations"]}},"deny-get-highest-bundle-number":{"identifier":"deny-get-highest-bundle-number","description":"Denies the get_highest_bundle_number command without any pre-configured scope.","commands":{"allow":[],"deny":["get_highest_bundle_number"]}},"deny-get-history-size":{"identifier":"deny-get-history-size","description":"Denies the get_history_size command without any pre-configured scope.","commands":{"allow":[],"deny":["get_history_size"]}},"deny-get-pairwise-analytics":{"identifier":"deny-get-pairwise-analytics","description":"Denies the get_pairwise_analytics command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pairwise_analytics"]}},"deny-get-pairwise-votes":{"identifier":"deny-get-pairwise-votes","description":"Denies the get_pairwise_votes command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pairwise_votes"]}},"deny-get-panel-diffs":{"identifier":"deny-get-panel-diffs","description":"Denies the get_panel_diffs command without any pre-configured scope.","commands":{"allow":[],"deny":["get_panel_diffs"]}},"deny-get-system-info":{"identifier":"deny-get-system-info","description":"Denies the get_system_info command without any pre-configured scope.","commands":{"allow":[],"deny":["get_system_info"]}},"deny-grant-project-scope":{"identifier":"deny-grant-project-scope","description":"Denies the grant_project_scope command without any pre-configured scope.","commands":{"allow":[],"deny":["grant_project_scope"]}},"deny-guarded-remove-file":{"identifier":"deny-guarded-remove-file","description":"Denies the guarded_remove_file command without any pre-configured scope.","commands":{"allow":[],"deny":["guarded_remove_file"]}},"deny-guarded-rename-file":{"identifier":"deny-guarded-rename-file","description":"Denies the guarded_rename_file command without any pre-configured scope.","commands":{"allow":[],"deny":["guarded_rename_file"]}},"deny-guarded-write-file":{"identifier":"deny-guarded-write-file","description":"Denies the guarded_write_file command without any pre-configured scope.","commands":{"allow":[],"deny":["guarded_write_file"]}},"deny-import-plugin-from-path":{"identifier":"deny-import-plugin-from-path","description":"Denies the import_plugin_from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["import_plugin_from_path"]}},"deny-import-plugin-from-zip":{"identifier":"deny-import-plugin-from-zip","description":"Denies the import_plugin_from_zip command without any pre-configured scope.","commands":{"allow":[],"deny":["import_plugin_from_zip"]}},"deny-list-active-sessions":{"identifier":"deny-list-active-sessions","description":"Denies the list_active_sessions command without any pre-configured scope.","commands":{"allow":[],"deny":["list_active_sessions"]}},"deny-list-audit-entries":{"identifier":"deny-list-audit-entries","description":"Denies the list_audit_entries command without any pre-configured scope.","commands":{"allow":[],"deny":["list_audit_entries"]}},"deny-list-claude-dir":{"identifier":"deny-list-claude-dir","description":"Denies the list_claude_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["list_claude_dir"]}},"deny-list-comparisons":{"identifier":"deny-list-comparisons","description":"Denies the list_comparisons command without any pre-configured scope.","commands":{"allow":[],"deny":["list_comparisons"]}},"deny-list-custom-profiles":{"identifier":"deny-list-custom-profiles","description":"Denies the list_custom_profiles command without any pre-configured scope.","commands":{"allow":[],"deny":["list_custom_profiles"]}},"deny-list-drift-acknowledgements":{"identifier":"deny-list-drift-acknowledgements","description":"Denies the list_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":[],"deny":["list_drift_acknowledgements"]}},"deny-list-installed-plugins":{"identifier":"deny-list-installed-plugins","description":"Denies the list_installed_plugins command without any pre-configured scope.","commands":{"allow":[],"deny":["list_installed_plugins"]}},"deny-list-marketplaces":{"identifier":"deny-list-marketplaces","description":"Denies the list_marketplaces command without any pre-configured scope.","commands":{"allow":[],"deny":["list_marketplaces"]}},"deny-list-required-env":{"identifier":"deny-list-required-env","description":"Denies the list_required_env command without any pre-configured scope.","commands":{"allow":[],"deny":["list_required_env"]}},"deny-list-security-presets":{"identifier":"deny-list-security-presets","description":"Denies the list_security_presets command without any pre-configured scope.","commands":{"allow":[],"deny":["list_security_presets"]}},"deny-list-sessions-summary":{"identifier":"deny-list-sessions-summary","description":"Denies the list_sessions_summary command without any pre-configured scope.","commands":{"allow":[],"deny":["list_sessions_summary"]}},"deny-migrate-drift-acknowledgements":{"identifier":"deny-migrate-drift-acknowledgements","description":"Denies the migrate_drift_acknowledgements command without any pre-configured scope.","commands":{"allow":[],"deny":["migrate_drift_acknowledgements"]}},"deny-push-file-history":{"identifier":"deny-push-file-history","description":"Denies the push_file_history command without any pre-configured scope.","commands":{"allow":[],"deny":["push_file_history"]}},"deny-put-cached-definitions":{"identifier":"deny-put-cached-definitions","description":"Denies the put_cached_definitions command without any pre-configured scope.","commands":{"allow":[],"deny":["put_cached_definitions"]}},"deny-read-claude-md":{"identifier":"deny-read-claude-md","description":"Denies the read_claude_md command without any pre-configured scope.","commands":{"allow":[],"deny":["read_claude_md"]}},"deny-read-env-config":{"identifier":"deny-read-env-config","description":"Denies the read_env_config command without any pre-configured scope.","commands":{"allow":[],"deny":["read_env_config"]}},"deny-read-file-history":{"identifier":"deny-read-file-history","description":"Denies the read_file_history command without any pre-configured scope.","commands":{"allow":[],"deny":["read_file_history"]}},"deny-read-harness-file":{"identifier":"deny-read-harness-file","description":"Denies the read_harness_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_harness_file"]}},"deny-read-hooks":{"identifier":"deny-read-hooks","description":"Denies the read_hooks command without any pre-configured scope.","commands":{"allow":[],"deny":["read_hooks"]}},"deny-read-live-activity":{"identifier":"deny-read-live-activity","description":"Denies the read_live_activity command without any pre-configured scope.","commands":{"allow":[],"deny":["read_live_activity"]}},"deny-read-permissions":{"identifier":"deny-read-permissions","description":"Denies the read_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["read_permissions"]}},"deny-read-plugin-file":{"identifier":"deny-read-plugin-file","description":"Denies the read_plugin_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_plugin_file"]}},"deny-read-plugin-tree":{"identifier":"deny-read-plugin-tree","description":"Denies the read_plugin_tree command without any pre-configured scope.","commands":{"allow":[],"deny":["read_plugin_tree"]}},"deny-read-session-facet":{"identifier":"deny-read-session-facet","description":"Denies the read_session_facet command without any pre-configured scope.","commands":{"allow":[],"deny":["read_session_facet"]}},"deny-read-session-transcript":{"identifier":"deny-read-session-transcript","description":"Denies the read_session_transcript command without any pre-configured scope.","commands":{"allow":[],"deny":["read_session_transcript"]}},"deny-read-stats-cache":{"identifier":"deny-read-stats-cache","description":"Denies the read_stats_cache command without any pre-configured scope.","commands":{"allow":[],"deny":["read_stats_cache"]}},"deny-record-bundle-number":{"identifier":"deny-record-bundle-number","description":"Denies the record_bundle_number command without any pre-configured scope.","commands":{"allow":[],"deny":["record_bundle_number"]}},"deny-record-transaction":{"identifier":"deny-record-transaction","description":"Denies the record_transaction command without any pre-configured scope.","commands":{"allow":[],"deny":["record_transaction"]}},"deny-remove-worktrees":{"identifier":"deny-remove-worktrees","description":"Denies the remove_worktrees command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_worktrees"]}},"deny-reveal-evaluation-session":{"identifier":"deny-reveal-evaluation-session","description":"Denies the reveal_evaluation_session command without any pre-configured scope.","commands":{"allow":[],"deny":["reveal_evaluation_session"]}},"deny-save-comparison":{"identifier":"deny-save-comparison","description":"Denies the save_comparison command without any pre-configured scope.","commands":{"allow":[],"deny":["save_comparison"]}},"deny-save-custom-profile":{"identifier":"deny-save-custom-profile","description":"Denies the save_custom_profile command without any pre-configured scope.","commands":{"allow":[],"deny":["save_custom_profile"]}},"deny-save-evaluation":{"identifier":"deny-save-evaluation","description":"Denies the save_evaluation command without any pre-configured scope.","commands":{"allow":[],"deny":["save_evaluation"]}},"deny-save-file-diffs":{"identifier":"deny-save-file-diffs","description":"Denies the save_file_diffs command without any pre-configured scope.","commands":{"allow":[],"deny":["save_file_diffs"]}},"deny-save-pairwise-vote":{"identifier":"deny-save-pairwise-vote","description":"Denies the save_pairwise_vote command without any pre-configured scope.","commands":{"allow":[],"deny":["save_pairwise_vote"]}},"deny-save-panel":{"identifier":"deny-save-panel","description":"Denies the save_panel command without any pre-configured scope.","commands":{"allow":[],"deny":["save_panel"]}},"deny-scan-claude-config":{"identifier":"deny-scan-claude-config","description":"Denies the scan_claude_config command without any pre-configured scope.","commands":{"allow":[],"deny":["scan_claude_config"]}},"deny-set-keychain-secret":{"identifier":"deny-set-keychain-secret","description":"Denies the set_keychain_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["set_keychain_secret"]}},"deny-submit-feedback":{"identifier":"deny-submit-feedback","description":"Denies the submit_feedback command without any pre-configured scope.","commands":{"allow":[],"deny":["submit_feedback"]}},"deny-sync-create-backup":{"identifier":"deny-sync-create-backup","description":"Denies the sync_create_backup command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_create_backup"]}},"deny-sync-file-exists":{"identifier":"deny-sync-file-exists","description":"Denies the sync_file_exists command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_file_exists"]}},"deny-sync-list-backups":{"identifier":"deny-sync-list-backups","description":"Denies the sync_list_backups command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_list_backups"]}},"deny-sync-read-dir":{"identifier":"deny-sync-read-dir","description":"Denies the sync_read_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_read_dir"]}},"deny-sync-read-file":{"identifier":"deny-sync-read-file","description":"Denies the sync_read_file command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_read_file"]}},"deny-sync-restore-backup":{"identifier":"deny-sync-restore-backup","description":"Denies the sync_restore_backup command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_restore_backup"]}},"deny-sync-write-files":{"identifier":"deny-sync-write-files","description":"Denies the sync_write_files command without any pre-configured scope.","commands":{"allow":[],"deny":["sync_write_files"]}},"deny-tag-comparison-task-type":{"identifier":"deny-tag-comparison-task-type","description":"Denies the tag_comparison_task_type command without any pre-configured scope.","commands":{"allow":[],"deny":["tag_comparison_task_type"]}},"deny-trigger-rebuild":{"identifier":"deny-trigger-rebuild","description":"Denies the trigger_rebuild command without any pre-configured scope.","commands":{"allow":[],"deny":["trigger_rebuild"]}},"deny-unacknowledge-drift":{"identifier":"deny-unacknowledge-drift","description":"Denies the unacknowledge_drift command without any pre-configured scope.","commands":{"allow":[],"deny":["unacknowledge_drift"]}},"deny-unacknowledge-drift-item":{"identifier":"deny-unacknowledge-drift-item","description":"Denies the unacknowledge_drift_item command without any pre-configured scope.","commands":{"allow":[],"deny":["unacknowledge_drift_item"]}},"deny-uninstall-plugin":{"identifier":"deny-uninstall-plugin","description":"Denies the uninstall_plugin command without any pre-configured scope.","commands":{"allow":[],"deny":["uninstall_plugin"]}},"deny-update-comparison-status":{"identifier":"deny-update-comparison-status","description":"Denies the update_comparison_status command without any pre-configured scope.","commands":{"allow":[],"deny":["update_comparison_status"]}},"deny-update-comparison-title":{"identifier":"deny-update-comparison-title","description":"Denies the update_comparison_title command without any pre-configured scope.","commands":{"allow":[],"deny":["update_comparison_title"]}},"deny-update-evaluation-score":{"identifier":"deny-update-evaluation-score","description":"Denies the update_evaluation_score command without any pre-configured scope.","commands":{"allow":[],"deny":["update_evaluation_score"]}},"deny-update-panel-result":{"identifier":"deny-update-panel-result","description":"Denies the update_panel_result command without any pre-configured scope.","commands":{"allow":[],"deny":["update_panel_result"]}},"deny-update-permissions":{"identifier":"deny-update-permissions","description":"Denies the update_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["update_permissions"]}},"deny-verify-definitions-signature":{"identifier":"deny-verify-definitions-signature","description":"Denies the verify_definitions_signature command without any pre-configured scope.","commands":{"allow":[],"deny":["verify_definitions_signature"]}},"deny-write-config-file":{"identifier":"deny-write-config-file","description":"Denies the write_config_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_config_file"]}},"deny-write-env-config":{"identifier":"deny-write-env-config","description":"Denies the write_env_config command without any pre-configured scope.","commands":{"allow":[],"deny":["write_env_config"]}},"deny-write-harness-file":{"identifier":"deny-write-harness-file","description":"Denies the write_harness_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_harness_file"]}},"deny-write-plugin-file":{"identifier":"deny-write-plugin-file","description":"Denies the write_plugin_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_plugin_file"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-data-store":{"identifier":"allow-remove-data-store","description":"Enables the remove_data_store command without any pre-configured scope.","commands":{"allow":["remove_data_store"],"deny":[]}},"allow-remove-listener":{"identifier":"allow-remove-listener","description":"Enables the remove_listener command without any pre-configured scope.","commands":{"allow":["remove_listener"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-set-dock-visibility":{"identifier":"allow-set-dock-visibility","description":"Enables the set_dock_visibility command without any pre-configured scope.","commands":{"allow":["set_dock_visibility"],"deny":[]}},"allow-supports-multiple-windows":{"identifier":"allow-supports-multiple-windows","description":"Enables the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":["supports_multiple_windows"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-bundle-type":{"identifier":"deny-bundle-type","description":"Denies the bundle_type command without any pre-configured scope.","commands":{"allow":[],"deny":["bundle_type"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-fetch-data-store-identifiers":{"identifier":"deny-fetch-data-store-identifiers","description":"Denies the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_data_store_identifiers"]}},"deny-identifier":{"identifier":"deny-identifier","description":"Denies the identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["identifier"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-data-store":{"identifier":"deny-remove-data-store","description":"Denies the remove_data_store command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_data_store"]}},"deny-remove-listener":{"identifier":"deny-remove-listener","description":"Denies the remove_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_listener"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-set-dock-visibility":{"identifier":"deny-set-dock-visibility","description":"Denies the set_dock_visibility command without any pre-configured scope.","commands":{"allow":[],"deny":["set_dock_visibility"]}},"deny-supports-multiple-windows":{"identifier":"deny-supports-multiple-windows","description":"Denies the supports_multiple_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["supports_multiple_windows"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-icon-with-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-icon-with-as-template":{"identifier":"allow-set-icon-with-as-template","description":"Enables the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_with_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-icon-with-as-template":{"identifier":"deny-set-icon-with-as-template","description":"Denies the set_icon_with_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_with_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-auto-resize":{"identifier":"allow-set-webview-auto-resize","description":"Enables the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":["set_webview_auto_resize"],"deny":[]}},"allow-set-webview-background-color":{"identifier":"allow-set-webview-background-color","description":"Enables the set_webview_background_color command without any pre-configured scope.","commands":{"allow":["set_webview_background_color"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-auto-resize":{"identifier":"deny-set-webview-auto-resize","description":"Denies the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_auto_resize"]}},"deny-set-webview-background-color":{"identifier":"deny-set-webview-background-color","description":"Denies the set_webview_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_background_color"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-is-always-on-top","allow-activity-name","allow-scene-identifier","allow-internal-toggle-maximize"]},"permissions":{"allow-activity-name":{"identifier":"allow-activity-name","description":"Enables the activity_name command without any pre-configured scope.","commands":{"allow":["activity_name"],"deny":[]}},"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-always-on-top":{"identifier":"allow-is-always-on-top","description":"Enables the is_always_on_top command without any pre-configured scope.","commands":{"allow":["is_always_on_top"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-scene-identifier":{"identifier":"allow-scene-identifier","description":"Enables the scene_identifier command without any pre-configured scope.","commands":{"allow":["scene_identifier"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-background-color":{"identifier":"allow-set-background-color","description":"Enables the set_background_color command without any pre-configured scope.","commands":{"allow":["set_background_color"],"deny":[]}},"allow-set-badge-count":{"identifier":"allow-set-badge-count","description":"Enables the set_badge_count command without any pre-configured scope.","commands":{"allow":["set_badge_count"],"deny":[]}},"allow-set-badge-label":{"identifier":"allow-set-badge-label","description":"Enables the set_badge_label command without any pre-configured scope.","commands":{"allow":["set_badge_label"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-focusable":{"identifier":"allow-set-focusable","description":"Enables the set_focusable command without any pre-configured scope.","commands":{"allow":["set_focusable"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-fullscreen-on-monitor":{"identifier":"allow-set-fullscreen-on-monitor","description":"Enables the set_fullscreen_on_monitor command without any pre-configured scope.","commands":{"allow":["set_fullscreen_on_monitor"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-overlay-icon":{"identifier":"allow-set-overlay-icon","description":"Enables the set_overlay_icon command without any pre-configured scope.","commands":{"allow":["set_overlay_icon"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-simple-fullscreen":{"identifier":"allow-set-simple-fullscreen","description":"Enables the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":["set_simple_fullscreen"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-activity-name":{"identifier":"deny-activity-name","description":"Denies the activity_name command without any pre-configured scope.","commands":{"allow":[],"deny":["activity_name"]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-always-on-top":{"identifier":"deny-is-always-on-top","description":"Denies the is_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["is_always_on_top"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-scene-identifier":{"identifier":"deny-scene-identifier","description":"Denies the scene_identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["scene_identifier"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-background-color":{"identifier":"deny-set-background-color","description":"Denies the set_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_background_color"]}},"deny-set-badge-count":{"identifier":"deny-set-badge-count","description":"Denies the set_badge_count command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_count"]}},"deny-set-badge-label":{"identifier":"deny-set-badge-label","description":"Denies the set_badge_label command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_label"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-focusable":{"identifier":"deny-set-focusable","description":"Denies the set_focusable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focusable"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-fullscreen-on-monitor":{"identifier":"deny-set-fullscreen-on-monitor","description":"Denies the set_fullscreen_on_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen_on_monitor"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-overlay-icon":{"identifier":"deny-set-overlay-icon","description":"Denies the set_overlay_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_overlay_icon"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-simple-fullscreen":{"identifier":"deny-set-simple-fullscreen","description":"Denies the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_simple_fullscreen"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `allow-message` and will be removed in v3)","commands":{"allow":["message"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope. (**DEPRECATED**: This is now an alias to `deny-message` and will be removed in v3)","commands":{"allow":[],"deny":["message"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"fs":{"default_permission":{"identifier":"default","description":"This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\n\n- On Windows the access to webview data folder `$APPLOCALDATA/EBWebView` is denied.\n- On Linux the access to webview data paths inside `$APPLOCALDATA` are denied.\n","permissions":["create-app-specific-dirs","read-app-specific-dirs-recursive","deny-default"]},"permissions":{"allow-copy-file":{"identifier":"allow-copy-file","description":"Enables the copy_file command without any pre-configured scope.","commands":{"allow":["copy_file"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-exists":{"identifier":"allow-exists","description":"Enables the exists command without any pre-configured scope.","commands":{"allow":["exists"],"deny":[]}},"allow-fstat":{"identifier":"allow-fstat","description":"Enables the fstat command without any pre-configured scope.","commands":{"allow":["fstat"],"deny":[]}},"allow-ftruncate":{"identifier":"allow-ftruncate","description":"Enables the ftruncate command without any pre-configured scope.","commands":{"allow":["ftruncate"],"deny":[]}},"allow-lstat":{"identifier":"allow-lstat","description":"Enables the lstat command without any pre-configured scope.","commands":{"allow":["lstat"],"deny":[]}},"allow-mkdir":{"identifier":"allow-mkdir","description":"Enables the mkdir command without any pre-configured scope.","commands":{"allow":["mkdir"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-read":{"identifier":"allow-read","description":"Enables the read command without any pre-configured scope.","commands":{"allow":["read"],"deny":[]}},"allow-read-dir":{"identifier":"allow-read-dir","description":"Enables the read_dir command without any pre-configured scope.","commands":{"allow":["read_dir"],"deny":[]}},"allow-read-file":{"identifier":"allow-read-file","description":"Enables the read_file command without any pre-configured scope.","commands":{"allow":["read_file"],"deny":[]}},"allow-read-text-file":{"identifier":"allow-read-text-file","description":"Enables the read_text_file command without any pre-configured scope.","commands":{"allow":["read_text_file"],"deny":[]}},"allow-read-text-file-lines":{"identifier":"allow-read-text-file-lines","description":"Enables the read_text_file_lines command without any pre-configured scope.","commands":{"allow":["read_text_file_lines","read_text_file_lines_next"],"deny":[]}},"allow-read-text-file-lines-next":{"identifier":"allow-read-text-file-lines-next","description":"Enables the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":["read_text_file_lines_next"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-rename":{"identifier":"allow-rename","description":"Enables the rename command without any pre-configured scope.","commands":{"allow":["rename"],"deny":[]}},"allow-seek":{"identifier":"allow-seek","description":"Enables the seek command without any pre-configured scope.","commands":{"allow":["seek"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"allow-start-accessing-security-scoped-resource":{"identifier":"allow-start-accessing-security-scoped-resource","description":"Enables the start_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":["start_accessing_security_scoped_resource"],"deny":[]}},"allow-stat":{"identifier":"allow-stat","description":"Enables the stat command without any pre-configured scope.","commands":{"allow":["stat"],"deny":[]}},"allow-stop-accessing-security-scoped-resource":{"identifier":"allow-stop-accessing-security-scoped-resource","description":"Enables the stop_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":["stop_accessing_security_scoped_resource"],"deny":[]}},"allow-truncate":{"identifier":"allow-truncate","description":"Enables the truncate command without any pre-configured scope.","commands":{"allow":["truncate"],"deny":[]}},"allow-unwatch":{"identifier":"allow-unwatch","description":"Enables the unwatch command without any pre-configured scope.","commands":{"allow":["unwatch"],"deny":[]}},"allow-watch":{"identifier":"allow-watch","description":"Enables the watch command without any pre-configured scope.","commands":{"allow":["watch"],"deny":[]}},"allow-write":{"identifier":"allow-write","description":"Enables the write command without any pre-configured scope.","commands":{"allow":["write"],"deny":[]}},"allow-write-file":{"identifier":"allow-write-file","description":"Enables the write_file command without any pre-configured scope.","commands":{"allow":["write_file","open","write"],"deny":[]}},"allow-write-text-file":{"identifier":"allow-write-text-file","description":"Enables the write_text_file command without any pre-configured scope.","commands":{"allow":["write_text_file"],"deny":[]}},"deny-copy-file":{"identifier":"deny-copy-file","description":"Denies the copy_file command without any pre-configured scope.","commands":{"allow":[],"deny":["copy_file"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-exists":{"identifier":"deny-exists","description":"Denies the exists command without any pre-configured scope.","commands":{"allow":[],"deny":["exists"]}},"deny-fstat":{"identifier":"deny-fstat","description":"Denies the fstat command without any pre-configured scope.","commands":{"allow":[],"deny":["fstat"]}},"deny-ftruncate":{"identifier":"deny-ftruncate","description":"Denies the ftruncate command without any pre-configured scope.","commands":{"allow":[],"deny":["ftruncate"]}},"deny-lstat":{"identifier":"deny-lstat","description":"Denies the lstat command without any pre-configured scope.","commands":{"allow":[],"deny":["lstat"]}},"deny-mkdir":{"identifier":"deny-mkdir","description":"Denies the mkdir command without any pre-configured scope.","commands":{"allow":[],"deny":["mkdir"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-read":{"identifier":"deny-read","description":"Denies the read command without any pre-configured scope.","commands":{"allow":[],"deny":["read"]}},"deny-read-dir":{"identifier":"deny-read-dir","description":"Denies the read_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["read_dir"]}},"deny-read-file":{"identifier":"deny-read-file","description":"Denies the read_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_file"]}},"deny-read-text-file":{"identifier":"deny-read-text-file","description":"Denies the read_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file"]}},"deny-read-text-file-lines":{"identifier":"deny-read-text-file-lines","description":"Denies the read_text_file_lines command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines"]}},"deny-read-text-file-lines-next":{"identifier":"deny-read-text-file-lines-next","description":"Denies the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines_next"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-rename":{"identifier":"deny-rename","description":"Denies the rename command without any pre-configured scope.","commands":{"allow":[],"deny":["rename"]}},"deny-seek":{"identifier":"deny-seek","description":"Denies the seek command without any pre-configured scope.","commands":{"allow":[],"deny":["seek"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}},"deny-start-accessing-security-scoped-resource":{"identifier":"deny-start-accessing-security-scoped-resource","description":"Denies the start_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":[],"deny":["start_accessing_security_scoped_resource"]}},"deny-stat":{"identifier":"deny-stat","description":"Denies the stat command without any pre-configured scope.","commands":{"allow":[],"deny":["stat"]}},"deny-stop-accessing-security-scoped-resource":{"identifier":"deny-stop-accessing-security-scoped-resource","description":"Denies the stop_accessing_security_scoped_resource command without any pre-configured scope.","commands":{"allow":[],"deny":["stop_accessing_security_scoped_resource"]}},"deny-truncate":{"identifier":"deny-truncate","description":"Denies the truncate command without any pre-configured scope.","commands":{"allow":[],"deny":["truncate"]}},"deny-unwatch":{"identifier":"deny-unwatch","description":"Denies the unwatch command without any pre-configured scope.","commands":{"allow":[],"deny":["unwatch"]}},"deny-watch":{"identifier":"deny-watch","description":"Denies the watch command without any pre-configured scope.","commands":{"allow":[],"deny":["watch"]}},"deny-webview-data-linux":{"identifier":"deny-webview-data-linux","description":"This denies access to the following paths\n\n- `$APPLOCALDATA/CacheStorage/**`\n- `$APPLOCALDATA/cookies`\n- `$APPLOCALDATA/hsts-storage.sqlite`\n- `$APPLOCALDATA/serviceworkers/**`\n- `$APPLOCALDATA/WebKitCache/**`\n- `$APPLOCALDATA/databases/**`\n- `$APPLOCALDATA/localstorage/**`\n- `$APPLOCALDATA/mediakeys/**`\n- `$APPLOCALDATA/storage/**`\n\non linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]},"scope":{"deny":[{"path":"$APPLOCALDATA/CacheStorage/**"},{"path":"$APPLOCALDATA/cookies"},{"path":"$APPLOCALDATA/hsts-storage.sqlite"},{"path":"$APPLOCALDATA/serviceworkers/**"},{"path":"$APPLOCALDATA/WebKitCache/**"},{"path":"$APPLOCALDATA/databases/**"},{"path":"$APPLOCALDATA/localstorage/**"},{"path":"$APPLOCALDATA/mediakeys/**"},{"path":"$APPLOCALDATA/storage/**"}]},"platforms":["linux"]},"deny-webview-data-windows":{"identifier":"deny-webview-data-windows","description":"This denies access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]},"scope":{"deny":[{"path":"$APPLOCALDATA/EBWebView/**"}]},"platforms":["windows"]},"deny-write":{"identifier":"deny-write","description":"Denies the write command without any pre-configured scope.","commands":{"allow":[],"deny":["write"]}},"deny-write-file":{"identifier":"deny-write-file","description":"Denies the write_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_file"]}},"deny-write-text-file":{"identifier":"deny-write-text-file","description":"Denies the write_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text_file"]}},"read-all":{"identifier":"read-all","description":"This enables all read related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists","watch","unwatch"],"deny":[]}},"read-dirs":{"identifier":"read-dirs","description":"This enables directory read and file metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"read-files":{"identifier":"read-files","description":"This enables file read related commands without any pre-configured accessible paths.","commands":{"allow":["read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists"],"deny":[]}},"read-meta":{"identifier":"read-meta","description":"This enables all index or metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists","size"],"deny":[]}},"scope":{"identifier":"scope","description":"An empty permission you can use to modify the global scope.\n\n## Example\n\n```json\n{\n \"identifier\": \"read-documents\",\n \"windows\": [\"main\"],\n \"permissions\": [\n \"fs:allow-read\",\n {\n \"identifier\": \"fs:scope\",\n \"allow\": [\n \"$APPDATA/documents/**/*\"\n ],\n \"deny\": [\n \"$APPDATA/documents/secret.txt\"\n ]\n }\n ]\n}\n```\n","commands":{"allow":[],"deny":[]}},"scope-app":{"identifier":"scope-app","description":"This scope permits access to all files and list content of top level directories in the application folders.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"},{"path":"$APPDATA"},{"path":"$APPDATA/*"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"},{"path":"$APPCACHE"},{"path":"$APPCACHE/*"},{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-app-index":{"identifier":"scope-app-index","description":"This scope permits to list all files and folders in the application directories.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPDATA"},{"path":"$APPLOCALDATA"},{"path":"$APPCACHE"},{"path":"$APPLOG"}]}},"scope-app-recursive":{"identifier":"scope-app-recursive","description":"This scope permits recursive access to the complete application folders, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"},{"path":"$APPDATA"},{"path":"$APPDATA/**"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$APPCACHE"},{"path":"$APPCACHE/**"},{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-appcache":{"identifier":"scope-appcache","description":"This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/*"}]}},"scope-appcache-index":{"identifier":"scope-appcache-index","description":"This scope permits to list all files and folders in the `$APPCACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"}]}},"scope-appcache-recursive":{"identifier":"scope-appcache-recursive","description":"This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/**"}]}},"scope-appconfig":{"identifier":"scope-appconfig","description":"This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"}]}},"scope-appconfig-index":{"identifier":"scope-appconfig-index","description":"This scope permits to list all files and folders in the `$APPCONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"}]}},"scope-appconfig-recursive":{"identifier":"scope-appconfig-recursive","description":"This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"}]}},"scope-appdata":{"identifier":"scope-appdata","description":"This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/*"}]}},"scope-appdata-index":{"identifier":"scope-appdata-index","description":"This scope permits to list all files and folders in the `$APPDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"}]}},"scope-appdata-recursive":{"identifier":"scope-appdata-recursive","description":"This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/**"}]}},"scope-applocaldata":{"identifier":"scope-applocaldata","description":"This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"}]}},"scope-applocaldata-index":{"identifier":"scope-applocaldata-index","description":"This scope permits to list all files and folders in the `$APPLOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"}]}},"scope-applocaldata-recursive":{"identifier":"scope-applocaldata-recursive","description":"This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"}]}},"scope-applog":{"identifier":"scope-applog","description":"This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-applog-index":{"identifier":"scope-applog-index","description":"This scope permits to list all files and folders in the `$APPLOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"}]}},"scope-applog-recursive":{"identifier":"scope-applog-recursive","description":"This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-audio":{"identifier":"scope-audio","description":"This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/*"}]}},"scope-audio-index":{"identifier":"scope-audio-index","description":"This scope permits to list all files and folders in the `$AUDIO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"}]}},"scope-audio-recursive":{"identifier":"scope-audio-recursive","description":"This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/**"}]}},"scope-cache":{"identifier":"scope-cache","description":"This scope permits access to all files and list content of top level directories in the `$CACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/*"}]}},"scope-cache-index":{"identifier":"scope-cache-index","description":"This scope permits to list all files and folders in the `$CACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"}]}},"scope-cache-recursive":{"identifier":"scope-cache-recursive","description":"This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/**"}]}},"scope-config":{"identifier":"scope-config","description":"This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/*"}]}},"scope-config-index":{"identifier":"scope-config-index","description":"This scope permits to list all files and folders in the `$CONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"}]}},"scope-config-recursive":{"identifier":"scope-config-recursive","description":"This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/**"}]}},"scope-data":{"identifier":"scope-data","description":"This scope permits access to all files and list content of top level directories in the `$DATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/*"}]}},"scope-data-index":{"identifier":"scope-data-index","description":"This scope permits to list all files and folders in the `$DATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"}]}},"scope-data-recursive":{"identifier":"scope-data-recursive","description":"This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/**"}]}},"scope-desktop":{"identifier":"scope-desktop","description":"This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/*"}]}},"scope-desktop-index":{"identifier":"scope-desktop-index","description":"This scope permits to list all files and folders in the `$DESKTOP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"}]}},"scope-desktop-recursive":{"identifier":"scope-desktop-recursive","description":"This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/**"}]}},"scope-document":{"identifier":"scope-document","description":"This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/*"}]}},"scope-document-index":{"identifier":"scope-document-index","description":"This scope permits to list all files and folders in the `$DOCUMENT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"}]}},"scope-document-recursive":{"identifier":"scope-document-recursive","description":"This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/**"}]}},"scope-download":{"identifier":"scope-download","description":"This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/*"}]}},"scope-download-index":{"identifier":"scope-download-index","description":"This scope permits to list all files and folders in the `$DOWNLOAD`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"}]}},"scope-download-recursive":{"identifier":"scope-download-recursive","description":"This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/**"}]}},"scope-exe":{"identifier":"scope-exe","description":"This scope permits access to all files and list content of top level directories in the `$EXE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/*"}]}},"scope-exe-index":{"identifier":"scope-exe-index","description":"This scope permits to list all files and folders in the `$EXE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"}]}},"scope-exe-recursive":{"identifier":"scope-exe-recursive","description":"This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/**"}]}},"scope-font":{"identifier":"scope-font","description":"This scope permits access to all files and list content of top level directories in the `$FONT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/*"}]}},"scope-font-index":{"identifier":"scope-font-index","description":"This scope permits to list all files and folders in the `$FONT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"}]}},"scope-font-recursive":{"identifier":"scope-font-recursive","description":"This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/**"}]}},"scope-home":{"identifier":"scope-home","description":"This scope permits access to all files and list content of top level directories in the `$HOME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/*"}]}},"scope-home-index":{"identifier":"scope-home-index","description":"This scope permits to list all files and folders in the `$HOME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"}]}},"scope-home-recursive":{"identifier":"scope-home-recursive","description":"This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/**"}]}},"scope-localdata":{"identifier":"scope-localdata","description":"This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/*"}]}},"scope-localdata-index":{"identifier":"scope-localdata-index","description":"This scope permits to list all files and folders in the `$LOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"}]}},"scope-localdata-recursive":{"identifier":"scope-localdata-recursive","description":"This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/**"}]}},"scope-log":{"identifier":"scope-log","description":"This scope permits access to all files and list content of top level directories in the `$LOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/*"}]}},"scope-log-index":{"identifier":"scope-log-index","description":"This scope permits to list all files and folders in the `$LOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"}]}},"scope-log-recursive":{"identifier":"scope-log-recursive","description":"This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/**"}]}},"scope-picture":{"identifier":"scope-picture","description":"This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/*"}]}},"scope-picture-index":{"identifier":"scope-picture-index","description":"This scope permits to list all files and folders in the `$PICTURE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"}]}},"scope-picture-recursive":{"identifier":"scope-picture-recursive","description":"This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/**"}]}},"scope-public":{"identifier":"scope-public","description":"This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/*"}]}},"scope-public-index":{"identifier":"scope-public-index","description":"This scope permits to list all files and folders in the `$PUBLIC`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"}]}},"scope-public-recursive":{"identifier":"scope-public-recursive","description":"This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/**"}]}},"scope-resource":{"identifier":"scope-resource","description":"This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/*"}]}},"scope-resource-index":{"identifier":"scope-resource-index","description":"This scope permits to list all files and folders in the `$RESOURCE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"}]}},"scope-resource-recursive":{"identifier":"scope-resource-recursive","description":"This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/**"}]}},"scope-runtime":{"identifier":"scope-runtime","description":"This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/*"}]}},"scope-runtime-index":{"identifier":"scope-runtime-index","description":"This scope permits to list all files and folders in the `$RUNTIME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"}]}},"scope-runtime-recursive":{"identifier":"scope-runtime-recursive","description":"This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/**"}]}},"scope-temp":{"identifier":"scope-temp","description":"This scope permits access to all files and list content of top level directories in the `$TEMP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/*"}]}},"scope-temp-index":{"identifier":"scope-temp-index","description":"This scope permits to list all files and folders in the `$TEMP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"}]}},"scope-temp-recursive":{"identifier":"scope-temp-recursive","description":"This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/**"}]}},"scope-template":{"identifier":"scope-template","description":"This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/*"}]}},"scope-template-index":{"identifier":"scope-template-index","description":"This scope permits to list all files and folders in the `$TEMPLATE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"}]}},"scope-template-recursive":{"identifier":"scope-template-recursive","description":"This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/**"}]}},"scope-video":{"identifier":"scope-video","description":"This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/*"}]}},"scope-video-index":{"identifier":"scope-video-index","description":"This scope permits to list all files and folders in the `$VIDEO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"}]}},"scope-video-recursive":{"identifier":"scope-video-recursive","description":"This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/**"}]}}},"permission_sets":{"allow-app-meta":{"identifier":"allow-app-meta","description":"This allows non-recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-index"]},"allow-app-meta-recursive":{"identifier":"allow-app-meta-recursive","description":"This allows full recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-recursive"]},"allow-app-read":{"identifier":"allow-app-read","description":"This allows non-recursive read access to the application folders.","permissions":["read-all","scope-app"]},"allow-app-read-recursive":{"identifier":"allow-app-read-recursive","description":"This allows full recursive read access to the complete application folders, files and subdirectories.","permissions":["read-all","scope-app-recursive"]},"allow-app-write":{"identifier":"allow-app-write","description":"This allows non-recursive write access to the application folders.","permissions":["write-all","scope-app"]},"allow-app-write-recursive":{"identifier":"allow-app-write-recursive","description":"This allows full recursive write access to the complete application folders, files and subdirectories.","permissions":["write-all","scope-app-recursive"]},"allow-appcache-meta":{"identifier":"allow-appcache-meta","description":"This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-index"]},"allow-appcache-meta-recursive":{"identifier":"allow-appcache-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-recursive"]},"allow-appcache-read":{"identifier":"allow-appcache-read","description":"This allows non-recursive read access to the `$APPCACHE` folder.","permissions":["read-all","scope-appcache"]},"allow-appcache-read-recursive":{"identifier":"allow-appcache-read-recursive","description":"This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["read-all","scope-appcache-recursive"]},"allow-appcache-write":{"identifier":"allow-appcache-write","description":"This allows non-recursive write access to the `$APPCACHE` folder.","permissions":["write-all","scope-appcache"]},"allow-appcache-write-recursive":{"identifier":"allow-appcache-write-recursive","description":"This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["write-all","scope-appcache-recursive"]},"allow-appconfig-meta":{"identifier":"allow-appconfig-meta","description":"This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-index"]},"allow-appconfig-meta-recursive":{"identifier":"allow-appconfig-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-recursive"]},"allow-appconfig-read":{"identifier":"allow-appconfig-read","description":"This allows non-recursive read access to the `$APPCONFIG` folder.","permissions":["read-all","scope-appconfig"]},"allow-appconfig-read-recursive":{"identifier":"allow-appconfig-read-recursive","description":"This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["read-all","scope-appconfig-recursive"]},"allow-appconfig-write":{"identifier":"allow-appconfig-write","description":"This allows non-recursive write access to the `$APPCONFIG` folder.","permissions":["write-all","scope-appconfig"]},"allow-appconfig-write-recursive":{"identifier":"allow-appconfig-write-recursive","description":"This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["write-all","scope-appconfig-recursive"]},"allow-appdata-meta":{"identifier":"allow-appdata-meta","description":"This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-index"]},"allow-appdata-meta-recursive":{"identifier":"allow-appdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-recursive"]},"allow-appdata-read":{"identifier":"allow-appdata-read","description":"This allows non-recursive read access to the `$APPDATA` folder.","permissions":["read-all","scope-appdata"]},"allow-appdata-read-recursive":{"identifier":"allow-appdata-read-recursive","description":"This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["read-all","scope-appdata-recursive"]},"allow-appdata-write":{"identifier":"allow-appdata-write","description":"This allows non-recursive write access to the `$APPDATA` folder.","permissions":["write-all","scope-appdata"]},"allow-appdata-write-recursive":{"identifier":"allow-appdata-write-recursive","description":"This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["write-all","scope-appdata-recursive"]},"allow-applocaldata-meta":{"identifier":"allow-applocaldata-meta","description":"This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-index"]},"allow-applocaldata-meta-recursive":{"identifier":"allow-applocaldata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-recursive"]},"allow-applocaldata-read":{"identifier":"allow-applocaldata-read","description":"This allows non-recursive read access to the `$APPLOCALDATA` folder.","permissions":["read-all","scope-applocaldata"]},"allow-applocaldata-read-recursive":{"identifier":"allow-applocaldata-read-recursive","description":"This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-applocaldata-recursive"]},"allow-applocaldata-write":{"identifier":"allow-applocaldata-write","description":"This allows non-recursive write access to the `$APPLOCALDATA` folder.","permissions":["write-all","scope-applocaldata"]},"allow-applocaldata-write-recursive":{"identifier":"allow-applocaldata-write-recursive","description":"This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-applocaldata-recursive"]},"allow-applog-meta":{"identifier":"allow-applog-meta","description":"This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-index"]},"allow-applog-meta-recursive":{"identifier":"allow-applog-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-recursive"]},"allow-applog-read":{"identifier":"allow-applog-read","description":"This allows non-recursive read access to the `$APPLOG` folder.","permissions":["read-all","scope-applog"]},"allow-applog-read-recursive":{"identifier":"allow-applog-read-recursive","description":"This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["read-all","scope-applog-recursive"]},"allow-applog-write":{"identifier":"allow-applog-write","description":"This allows non-recursive write access to the `$APPLOG` folder.","permissions":["write-all","scope-applog"]},"allow-applog-write-recursive":{"identifier":"allow-applog-write-recursive","description":"This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["write-all","scope-applog-recursive"]},"allow-audio-meta":{"identifier":"allow-audio-meta","description":"This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-index"]},"allow-audio-meta-recursive":{"identifier":"allow-audio-meta-recursive","description":"This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-recursive"]},"allow-audio-read":{"identifier":"allow-audio-read","description":"This allows non-recursive read access to the `$AUDIO` folder.","permissions":["read-all","scope-audio"]},"allow-audio-read-recursive":{"identifier":"allow-audio-read-recursive","description":"This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["read-all","scope-audio-recursive"]},"allow-audio-write":{"identifier":"allow-audio-write","description":"This allows non-recursive write access to the `$AUDIO` folder.","permissions":["write-all","scope-audio"]},"allow-audio-write-recursive":{"identifier":"allow-audio-write-recursive","description":"This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["write-all","scope-audio-recursive"]},"allow-cache-meta":{"identifier":"allow-cache-meta","description":"This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-index"]},"allow-cache-meta-recursive":{"identifier":"allow-cache-meta-recursive","description":"This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-recursive"]},"allow-cache-read":{"identifier":"allow-cache-read","description":"This allows non-recursive read access to the `$CACHE` folder.","permissions":["read-all","scope-cache"]},"allow-cache-read-recursive":{"identifier":"allow-cache-read-recursive","description":"This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.","permissions":["read-all","scope-cache-recursive"]},"allow-cache-write":{"identifier":"allow-cache-write","description":"This allows non-recursive write access to the `$CACHE` folder.","permissions":["write-all","scope-cache"]},"allow-cache-write-recursive":{"identifier":"allow-cache-write-recursive","description":"This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.","permissions":["write-all","scope-cache-recursive"]},"allow-config-meta":{"identifier":"allow-config-meta","description":"This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-index"]},"allow-config-meta-recursive":{"identifier":"allow-config-meta-recursive","description":"This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-recursive"]},"allow-config-read":{"identifier":"allow-config-read","description":"This allows non-recursive read access to the `$CONFIG` folder.","permissions":["read-all","scope-config"]},"allow-config-read-recursive":{"identifier":"allow-config-read-recursive","description":"This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["read-all","scope-config-recursive"]},"allow-config-write":{"identifier":"allow-config-write","description":"This allows non-recursive write access to the `$CONFIG` folder.","permissions":["write-all","scope-config"]},"allow-config-write-recursive":{"identifier":"allow-config-write-recursive","description":"This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["write-all","scope-config-recursive"]},"allow-data-meta":{"identifier":"allow-data-meta","description":"This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-index"]},"allow-data-meta-recursive":{"identifier":"allow-data-meta-recursive","description":"This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-recursive"]},"allow-data-read":{"identifier":"allow-data-read","description":"This allows non-recursive read access to the `$DATA` folder.","permissions":["read-all","scope-data"]},"allow-data-read-recursive":{"identifier":"allow-data-read-recursive","description":"This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.","permissions":["read-all","scope-data-recursive"]},"allow-data-write":{"identifier":"allow-data-write","description":"This allows non-recursive write access to the `$DATA` folder.","permissions":["write-all","scope-data"]},"allow-data-write-recursive":{"identifier":"allow-data-write-recursive","description":"This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.","permissions":["write-all","scope-data-recursive"]},"allow-desktop-meta":{"identifier":"allow-desktop-meta","description":"This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-index"]},"allow-desktop-meta-recursive":{"identifier":"allow-desktop-meta-recursive","description":"This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-recursive"]},"allow-desktop-read":{"identifier":"allow-desktop-read","description":"This allows non-recursive read access to the `$DESKTOP` folder.","permissions":["read-all","scope-desktop"]},"allow-desktop-read-recursive":{"identifier":"allow-desktop-read-recursive","description":"This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["read-all","scope-desktop-recursive"]},"allow-desktop-write":{"identifier":"allow-desktop-write","description":"This allows non-recursive write access to the `$DESKTOP` folder.","permissions":["write-all","scope-desktop"]},"allow-desktop-write-recursive":{"identifier":"allow-desktop-write-recursive","description":"This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["write-all","scope-desktop-recursive"]},"allow-document-meta":{"identifier":"allow-document-meta","description":"This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-index"]},"allow-document-meta-recursive":{"identifier":"allow-document-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-recursive"]},"allow-document-read":{"identifier":"allow-document-read","description":"This allows non-recursive read access to the `$DOCUMENT` folder.","permissions":["read-all","scope-document"]},"allow-document-read-recursive":{"identifier":"allow-document-read-recursive","description":"This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["read-all","scope-document-recursive"]},"allow-document-write":{"identifier":"allow-document-write","description":"This allows non-recursive write access to the `$DOCUMENT` folder.","permissions":["write-all","scope-document"]},"allow-document-write-recursive":{"identifier":"allow-document-write-recursive","description":"This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["write-all","scope-document-recursive"]},"allow-download-meta":{"identifier":"allow-download-meta","description":"This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-index"]},"allow-download-meta-recursive":{"identifier":"allow-download-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-recursive"]},"allow-download-read":{"identifier":"allow-download-read","description":"This allows non-recursive read access to the `$DOWNLOAD` folder.","permissions":["read-all","scope-download"]},"allow-download-read-recursive":{"identifier":"allow-download-read-recursive","description":"This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["read-all","scope-download-recursive"]},"allow-download-write":{"identifier":"allow-download-write","description":"This allows non-recursive write access to the `$DOWNLOAD` folder.","permissions":["write-all","scope-download"]},"allow-download-write-recursive":{"identifier":"allow-download-write-recursive","description":"This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["write-all","scope-download-recursive"]},"allow-exe-meta":{"identifier":"allow-exe-meta","description":"This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-index"]},"allow-exe-meta-recursive":{"identifier":"allow-exe-meta-recursive","description":"This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-recursive"]},"allow-exe-read":{"identifier":"allow-exe-read","description":"This allows non-recursive read access to the `$EXE` folder.","permissions":["read-all","scope-exe"]},"allow-exe-read-recursive":{"identifier":"allow-exe-read-recursive","description":"This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.","permissions":["read-all","scope-exe-recursive"]},"allow-exe-write":{"identifier":"allow-exe-write","description":"This allows non-recursive write access to the `$EXE` folder.","permissions":["write-all","scope-exe"]},"allow-exe-write-recursive":{"identifier":"allow-exe-write-recursive","description":"This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.","permissions":["write-all","scope-exe-recursive"]},"allow-font-meta":{"identifier":"allow-font-meta","description":"This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-index"]},"allow-font-meta-recursive":{"identifier":"allow-font-meta-recursive","description":"This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-recursive"]},"allow-font-read":{"identifier":"allow-font-read","description":"This allows non-recursive read access to the `$FONT` folder.","permissions":["read-all","scope-font"]},"allow-font-read-recursive":{"identifier":"allow-font-read-recursive","description":"This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.","permissions":["read-all","scope-font-recursive"]},"allow-font-write":{"identifier":"allow-font-write","description":"This allows non-recursive write access to the `$FONT` folder.","permissions":["write-all","scope-font"]},"allow-font-write-recursive":{"identifier":"allow-font-write-recursive","description":"This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.","permissions":["write-all","scope-font-recursive"]},"allow-home-meta":{"identifier":"allow-home-meta","description":"This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-index"]},"allow-home-meta-recursive":{"identifier":"allow-home-meta-recursive","description":"This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-recursive"]},"allow-home-read":{"identifier":"allow-home-read","description":"This allows non-recursive read access to the `$HOME` folder.","permissions":["read-all","scope-home"]},"allow-home-read-recursive":{"identifier":"allow-home-read-recursive","description":"This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.","permissions":["read-all","scope-home-recursive"]},"allow-home-write":{"identifier":"allow-home-write","description":"This allows non-recursive write access to the `$HOME` folder.","permissions":["write-all","scope-home"]},"allow-home-write-recursive":{"identifier":"allow-home-write-recursive","description":"This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.","permissions":["write-all","scope-home-recursive"]},"allow-localdata-meta":{"identifier":"allow-localdata-meta","description":"This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-index"]},"allow-localdata-meta-recursive":{"identifier":"allow-localdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-recursive"]},"allow-localdata-read":{"identifier":"allow-localdata-read","description":"This allows non-recursive read access to the `$LOCALDATA` folder.","permissions":["read-all","scope-localdata"]},"allow-localdata-read-recursive":{"identifier":"allow-localdata-read-recursive","description":"This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-localdata-recursive"]},"allow-localdata-write":{"identifier":"allow-localdata-write","description":"This allows non-recursive write access to the `$LOCALDATA` folder.","permissions":["write-all","scope-localdata"]},"allow-localdata-write-recursive":{"identifier":"allow-localdata-write-recursive","description":"This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-localdata-recursive"]},"allow-log-meta":{"identifier":"allow-log-meta","description":"This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-index"]},"allow-log-meta-recursive":{"identifier":"allow-log-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-recursive"]},"allow-log-read":{"identifier":"allow-log-read","description":"This allows non-recursive read access to the `$LOG` folder.","permissions":["read-all","scope-log"]},"allow-log-read-recursive":{"identifier":"allow-log-read-recursive","description":"This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.","permissions":["read-all","scope-log-recursive"]},"allow-log-write":{"identifier":"allow-log-write","description":"This allows non-recursive write access to the `$LOG` folder.","permissions":["write-all","scope-log"]},"allow-log-write-recursive":{"identifier":"allow-log-write-recursive","description":"This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.","permissions":["write-all","scope-log-recursive"]},"allow-picture-meta":{"identifier":"allow-picture-meta","description":"This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-index"]},"allow-picture-meta-recursive":{"identifier":"allow-picture-meta-recursive","description":"This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-recursive"]},"allow-picture-read":{"identifier":"allow-picture-read","description":"This allows non-recursive read access to the `$PICTURE` folder.","permissions":["read-all","scope-picture"]},"allow-picture-read-recursive":{"identifier":"allow-picture-read-recursive","description":"This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["read-all","scope-picture-recursive"]},"allow-picture-write":{"identifier":"allow-picture-write","description":"This allows non-recursive write access to the `$PICTURE` folder.","permissions":["write-all","scope-picture"]},"allow-picture-write-recursive":{"identifier":"allow-picture-write-recursive","description":"This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["write-all","scope-picture-recursive"]},"allow-public-meta":{"identifier":"allow-public-meta","description":"This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-index"]},"allow-public-meta-recursive":{"identifier":"allow-public-meta-recursive","description":"This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-recursive"]},"allow-public-read":{"identifier":"allow-public-read","description":"This allows non-recursive read access to the `$PUBLIC` folder.","permissions":["read-all","scope-public"]},"allow-public-read-recursive":{"identifier":"allow-public-read-recursive","description":"This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["read-all","scope-public-recursive"]},"allow-public-write":{"identifier":"allow-public-write","description":"This allows non-recursive write access to the `$PUBLIC` folder.","permissions":["write-all","scope-public"]},"allow-public-write-recursive":{"identifier":"allow-public-write-recursive","description":"This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["write-all","scope-public-recursive"]},"allow-resource-meta":{"identifier":"allow-resource-meta","description":"This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-index"]},"allow-resource-meta-recursive":{"identifier":"allow-resource-meta-recursive","description":"This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-recursive"]},"allow-resource-read":{"identifier":"allow-resource-read","description":"This allows non-recursive read access to the `$RESOURCE` folder.","permissions":["read-all","scope-resource"]},"allow-resource-read-recursive":{"identifier":"allow-resource-read-recursive","description":"This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["read-all","scope-resource-recursive"]},"allow-resource-write":{"identifier":"allow-resource-write","description":"This allows non-recursive write access to the `$RESOURCE` folder.","permissions":["write-all","scope-resource"]},"allow-resource-write-recursive":{"identifier":"allow-resource-write-recursive","description":"This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["write-all","scope-resource-recursive"]},"allow-runtime-meta":{"identifier":"allow-runtime-meta","description":"This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-index"]},"allow-runtime-meta-recursive":{"identifier":"allow-runtime-meta-recursive","description":"This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-recursive"]},"allow-runtime-read":{"identifier":"allow-runtime-read","description":"This allows non-recursive read access to the `$RUNTIME` folder.","permissions":["read-all","scope-runtime"]},"allow-runtime-read-recursive":{"identifier":"allow-runtime-read-recursive","description":"This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["read-all","scope-runtime-recursive"]},"allow-runtime-write":{"identifier":"allow-runtime-write","description":"This allows non-recursive write access to the `$RUNTIME` folder.","permissions":["write-all","scope-runtime"]},"allow-runtime-write-recursive":{"identifier":"allow-runtime-write-recursive","description":"This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["write-all","scope-runtime-recursive"]},"allow-temp-meta":{"identifier":"allow-temp-meta","description":"This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-index"]},"allow-temp-meta-recursive":{"identifier":"allow-temp-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-recursive"]},"allow-temp-read":{"identifier":"allow-temp-read","description":"This allows non-recursive read access to the `$TEMP` folder.","permissions":["read-all","scope-temp"]},"allow-temp-read-recursive":{"identifier":"allow-temp-read-recursive","description":"This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.","permissions":["read-all","scope-temp-recursive"]},"allow-temp-write":{"identifier":"allow-temp-write","description":"This allows non-recursive write access to the `$TEMP` folder.","permissions":["write-all","scope-temp"]},"allow-temp-write-recursive":{"identifier":"allow-temp-write-recursive","description":"This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.","permissions":["write-all","scope-temp-recursive"]},"allow-template-meta":{"identifier":"allow-template-meta","description":"This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-index"]},"allow-template-meta-recursive":{"identifier":"allow-template-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-recursive"]},"allow-template-read":{"identifier":"allow-template-read","description":"This allows non-recursive read access to the `$TEMPLATE` folder.","permissions":["read-all","scope-template"]},"allow-template-read-recursive":{"identifier":"allow-template-read-recursive","description":"This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["read-all","scope-template-recursive"]},"allow-template-write":{"identifier":"allow-template-write","description":"This allows non-recursive write access to the `$TEMPLATE` folder.","permissions":["write-all","scope-template"]},"allow-template-write-recursive":{"identifier":"allow-template-write-recursive","description":"This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["write-all","scope-template-recursive"]},"allow-video-meta":{"identifier":"allow-video-meta","description":"This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-index"]},"allow-video-meta-recursive":{"identifier":"allow-video-meta-recursive","description":"This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-recursive"]},"allow-video-read":{"identifier":"allow-video-read","description":"This allows non-recursive read access to the `$VIDEO` folder.","permissions":["read-all","scope-video"]},"allow-video-read-recursive":{"identifier":"allow-video-read-recursive","description":"This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["read-all","scope-video-recursive"]},"allow-video-write":{"identifier":"allow-video-write","description":"This allows non-recursive write access to the `$VIDEO` folder.","permissions":["write-all","scope-video"]},"allow-video-write-recursive":{"identifier":"allow-video-write-recursive","description":"This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["write-all","scope-video-recursive"]},"create-app-specific-dirs":{"identifier":"create-app-specific-dirs","description":"This permissions allows to create the application specific directories.\n","permissions":["allow-mkdir","scope-app-index"]},"deny-default":{"identifier":"deny-default","description":"This denies access to dangerous Tauri relevant files and folders by default.","permissions":["deny-webview-data-linux","deny-webview-data-windows"]},"read-app-specific-dirs-recursive":{"identifier":"read-app-specific-dirs-recursive","description":"This permission allows recursive read functionality on the application\nspecific base directories.\n","permissions":["allow-read-dir","allow-read-file","allow-read-text-file","allow-read-text-file-lines","allow-read-text-file-lines-next","allow-exists","scope-app-recursive"]},"write-all":{"identifier":"write-all","description":"This enables all write related commands without any pre-configured accessible paths.","permissions":["allow-mkdir","allow-create","allow-copy-file","allow-remove","allow-rename","allow-truncate","allow-ftruncate","allow-write","allow-write-file","allow-write-text-file"]},"write-files":{"identifier":"write-files","description":"This enables all file write related commands without any pre-configured accessible paths.","permissions":["allow-create","allow-copy-file","allow-remove","allow-rename","allow-truncate","allow-ftruncate","allow-write","allow-write-file","allow-write-text-file"]}},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"A path that can be accessed by the webview when using the fs APIs. FS scope path pattern.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"},{"properties":{"path":{"description":"A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"}},"required":["path"],"type":"object"}],"description":"FS scope entry.","title":"FsScopeEntry"}},"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]: ","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"}},"window-state":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-filename","allow-restore-state","allow-save-window-state"]},"permissions":{"allow-filename":{"identifier":"allow-filename","description":"Enables the filename command without any pre-configured scope.","commands":{"allow":["filename"],"deny":[]}},"allow-restore-state":{"identifier":"allow-restore-state","description":"Enables the restore_state command without any pre-configured scope.","commands":{"allow":["restore_state"],"deny":[]}},"allow-save-window-state":{"identifier":"allow-save-window-state","description":"Enables the save_window_state command without any pre-configured scope.","commands":{"allow":["save_window_state"],"deny":[]}},"deny-filename":{"identifier":"deny-filename","description":"Denies the filename command without any pre-configured scope.","commands":{"allow":[],"deny":["filename"]}},"deny-restore-state":{"identifier":"deny-restore-state","description":"Denies the restore_state command without any pre-configured scope.","commands":{"allow":[],"deny":["restore_state"]}},"deny-save-window-state":{"identifier":"deny-save-window-state","description":"Denies the save_window_state command without any pre-configured scope.","commands":{"allow":[],"deny":["save_window_state"]}}},"permission_sets":{},"global_scope_schema":null}} \ No newline at end of file diff --git a/apps/desktop/src-tauri/gen/schemas/capabilities.json b/apps/desktop/src-tauri/gen/schemas/capabilities.json index 4e1e9cb7..d324e77d 100644 --- a/apps/desktop/src-tauri/gen/schemas/capabilities.json +++ b/apps/desktop/src-tauri/gen/schemas/capabilities.json @@ -1 +1 @@ -{"default":{"identifier":"default","description":"Default capability — grants core API, read access to harness config roots under $HOME (read-ONLY for the Machine-observation paths: .claude.json, the exact Claude Desktop / VS Code User config files the surface registry declares, .copilot, .agents), and shell spawn for comparator","local":true,"windows":["main"],"permissions":["core:default","core:window:allow-start-dragging","core:event:allow-listen","core:event:allow-emit","fs:allow-read-text-file","fs:allow-read-dir","fs:allow-exists","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$HOME/CLAUDE.md"},{"path":"$HOME/AGENTS.md"},{"path":"$HOME/.mcp.json"},{"path":"$HOME/.claude"},{"path":"$HOME/.claude/**"},{"path":"$HOME/.cursor"},{"path":"$HOME/.cursor/**"},{"path":"$HOME/.github"},{"path":"$HOME/.github/**"},{"path":"$HOME/.vscode"},{"path":"$HOME/.vscode/**"},{"path":"$HOME/.codex"},{"path":"$HOME/.codex/**"},{"path":"$HOME/.opencode"},{"path":"$HOME/.opencode/**"},{"path":"$HOME/.config/opencode"},{"path":"$HOME/.config/opencode/**"},{"path":"$HOME/.windsurf"},{"path":"$HOME/.windsurf/**"},{"path":"$HOME/.gemini"},{"path":"$HOME/.gemini/**"},{"path":"$HOME/.junie"},{"path":"$HOME/.junie/**"},{"path":"$HOME/.pi"},{"path":"$HOME/.pi/**"},{"path":"$HOME/.harness-kit"},{"path":"$HOME/.harness-kit/**"}]},{"identifier":"fs:allow-read-text-file","allow":[{"path":"$HOME/.claude.json"},{"path":"$HOME/Library/Application Support/Claude/claude_desktop_config.json"},{"path":"$HOME/AppData/Roaming/Claude/claude_desktop_config.json"},{"path":"$HOME/Library/Application Support/Code/User/mcp.json"},{"path":"$HOME/.config/Code/User/mcp.json"},{"path":"$HOME/AppData/Roaming/Code/User/mcp.json"},{"path":"$HOME/.copilot"},{"path":"$HOME/.copilot/**"},{"path":"$HOME/.agents"},{"path":"$HOME/.agents/**"}]},{"identifier":"fs:allow-read-dir","allow":[{"path":"$HOME/.claude.json"},{"path":"$HOME/Library/Application Support/Claude/claude_desktop_config.json"},{"path":"$HOME/AppData/Roaming/Claude/claude_desktop_config.json"},{"path":"$HOME/Library/Application Support/Code/User/mcp.json"},{"path":"$HOME/.config/Code/User/mcp.json"},{"path":"$HOME/AppData/Roaming/Code/User/mcp.json"},{"path":"$HOME/.copilot"},{"path":"$HOME/.copilot/**"},{"path":"$HOME/.agents"},{"path":"$HOME/.agents/**"}]},{"identifier":"fs:allow-exists","allow":[{"path":"$HOME/.claude.json"},{"path":"$HOME/Library/Application Support/Claude/claude_desktop_config.json"},{"path":"$HOME/AppData/Roaming/Claude/claude_desktop_config.json"},{"path":"$HOME/Library/Application Support/Code/User/mcp.json"},{"path":"$HOME/.config/Code/User/mcp.json"},{"path":"$HOME/AppData/Roaming/Code/User/mcp.json"},{"path":"$HOME/.copilot"},{"path":"$HOME/.copilot/**"},{"path":"$HOME/.agents"},{"path":"$HOME/.agents/**"}]},"dialog:default","dialog:allow-open","dialog:allow-save","shell:default","shell:allow-spawn","shell:allow-stdin-write","shell:allow-kill","shell:allow-open",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"claude","name":"claude"},{"args":["--version"],"cmd":"cursor-agent","name":"cursor-agent"},{"args":["--version"],"cmd":"copilot","name":"copilot"},{"args":["--version"],"cmd":"codex","name":"codex"},{"args":["--version"],"cmd":"opencode","name":"opencode"},{"args":true,"cmd":"gh","name":"gh"},{"args":true,"cmd":"git","name":"git"},{"args":true,"cmd":"security","name":"security"}]},"allow-list-installed-plugins","allow-list-marketplaces","allow-check-plugin-updates","allow-uninstall-plugin","allow-read-plugin-tree","allow-read-plugin-file","allow-write-plugin-file","allow-import-plugin-from-path","allow-import-plugin-from-zip","allow-export-plugin-as-zip","allow-export-plugin-to-folder","allow-read-hooks","allow-read-claude-md","allow-write-config-file","allow-read-harness-file","allow-write-harness-file","allow-scan-claude-config","allow-list-custom-profiles","allow-get-custom-profile","allow-save-custom-profile","allow-delete-custom-profile","allow-list-claude-dir","allow-detect-claude-account","allow-read-stats-cache","allow-list-sessions-summary","allow-read-session-facet","allow-list-active-sessions","allow-read-live-activity","allow-compute-live-stats","allow-read-session-transcript","allow-check-git-repo","allow-create-worktrees","allow-remove-worktrees","allow-get-diff-against-commit","allow-check-for-updates","allow-trigger-rebuild","allow-save-evaluation","allow-get-evaluations","allow-update-evaluation-score","allow-create-evaluation-session","allow-get-evaluation-session","allow-reveal-evaluation-session","allow-save-pairwise-vote","allow-get-pairwise-votes","allow-get-pairwise-analytics","allow-delete-pairwise-vote","allow-export-comparison-json","allow-get-comparator-analytics","allow-save-comparison","allow-update-comparison-title","allow-update-comparison-status","allow-list-comparisons","allow-get-comparison","allow-delete-comparison","allow-tag-comparison-task-type","allow-get-harness-recommendations","allow-save-panel","allow-update-panel-result","allow-save-file-diffs","allow-get-comparison-diffs","allow-get-panel-diffs","allow-read-permissions","allow-update-permissions","allow-list-security-presets","allow-apply-security-preset","allow-list-required-env","allow-set-keychain-secret","allow-delete-keychain-secret","allow-read-env-config","allow-write-env-config","allow-list-audit-entries","allow-clear-audit-entries","allow-read-file-history","allow-push-file-history","allow-get-history-size","allow-sync-read-file","allow-sync-file-exists","allow-sync-read-dir","allow-sync-write-files","allow-verify-definitions-signature","allow-get-cached-definitions","allow-put-cached-definitions","allow-get-highest-bundle-number","allow-record-bundle-number","allow-apply-surface-transaction","allow-record-transaction","allow-migrate-drift-acknowledgements","allow-acknowledge-drift","allow-unacknowledge-drift","allow-list-drift-acknowledgements","allow-sync-create-backup","allow-sync-list-backups","allow-sync-restore-backup","allow-detect-harnesses","allow-grant-project-scope","allow-acknowledge-drift-item","allow-unacknowledge-drift-item","allow-get-acknowledged-drift-items","allow-get-system-info","allow-submit-feedback"]}} \ No newline at end of file +{"default":{"identifier":"default","description":"Default capability — grants core API, read access to harness config roots under $HOME (the Machine-observation paths .claude.json, the exact Claude Desktop / VS Code User config files the surface registry declares, .copilot and .agents are reachable only by the read, read-dir and exists permissions), mkdir and lstat inside the fs scope, and shell open. No shell execute, spawn, stdin or kill: production code runs processes from Rust only. fs write, rename and remove are not granted to the webview; they go through guarded_write_file, guarded_rename_file and guarded_remove_file, which write and rename only the engine's .harness-tmp- files, and delete only those and its backups (removing a store moves it to ~/.harness/backups/quarantine/ instead)","local":true,"windows":["main"],"permissions":["core:default","core:window:allow-start-dragging","core:event:allow-listen","core:event:allow-emit","fs:allow-read-text-file","fs:allow-read-dir","fs:allow-exists","fs:allow-lstat","fs:allow-mkdir",{"identifier":"fs:scope","allow":[{"path":"$HOME/CLAUDE.md"},{"path":"$HOME/AGENTS.md"},{"path":"$HOME/.mcp.json"},{"path":"$HOME/.claude"},{"path":"$HOME/.claude/**"},{"path":"$HOME/.cursor"},{"path":"$HOME/.cursor/**"},{"path":"$HOME/.github"},{"path":"$HOME/.github/**"},{"path":"$HOME/.vscode"},{"path":"$HOME/.vscode/**"},{"path":"$HOME/.codex"},{"path":"$HOME/.codex/**"},{"path":"$HOME/.opencode"},{"path":"$HOME/.opencode/**"},{"path":"$HOME/.config/opencode"},{"path":"$HOME/.config/opencode/**"},{"path":"$HOME/.windsurf"},{"path":"$HOME/.windsurf/**"},{"path":"$HOME/.gemini"},{"path":"$HOME/.gemini/**"},{"path":"$HOME/.junie"},{"path":"$HOME/.junie/**"},{"path":"$HOME/.pi"},{"path":"$HOME/.pi/**"},{"path":"$HOME/.harness-kit"},{"path":"$HOME/.harness-kit/**"},{"path":"$HOME/.harness/backups"},{"path":"$HOME/.harness/backups/**"}]},{"identifier":"fs:allow-read-text-file","allow":[{"path":"$HOME/.claude.json"},{"path":"$HOME/Library/Application Support/Claude/claude_desktop_config.json"},{"path":"$HOME/AppData/Roaming/Claude/claude_desktop_config.json"},{"path":"$HOME/Library/Application Support/Code/User/mcp.json"},{"path":"$HOME/.config/Code/User/mcp.json"},{"path":"$HOME/AppData/Roaming/Code/User/mcp.json"},{"path":"$HOME/.copilot"},{"path":"$HOME/.copilot/**"},{"path":"$HOME/.agents"},{"path":"$HOME/.agents/**"}]},{"identifier":"fs:allow-read-dir","allow":[{"path":"$HOME/.claude.json"},{"path":"$HOME/Library/Application Support/Claude/claude_desktop_config.json"},{"path":"$HOME/AppData/Roaming/Claude/claude_desktop_config.json"},{"path":"$HOME/Library/Application Support/Code/User/mcp.json"},{"path":"$HOME/.config/Code/User/mcp.json"},{"path":"$HOME/AppData/Roaming/Code/User/mcp.json"},{"path":"$HOME/.copilot"},{"path":"$HOME/.copilot/**"},{"path":"$HOME/.agents"},{"path":"$HOME/.agents/**"}]},{"identifier":"fs:allow-exists","allow":[{"path":"$HOME/.claude.json"},{"path":"$HOME/Library/Application Support/Claude/claude_desktop_config.json"},{"path":"$HOME/AppData/Roaming/Claude/claude_desktop_config.json"},{"path":"$HOME/Library/Application Support/Code/User/mcp.json"},{"path":"$HOME/.config/Code/User/mcp.json"},{"path":"$HOME/AppData/Roaming/Code/User/mcp.json"},{"path":"$HOME/.copilot"},{"path":"$HOME/.copilot/**"},{"path":"$HOME/.agents"},{"path":"$HOME/.agents/**"}]},"dialog:default","dialog:allow-open","dialog:allow-save","shell:default","shell:allow-open","allow-list-installed-plugins","allow-list-marketplaces","allow-check-plugin-updates","allow-uninstall-plugin","allow-read-plugin-tree","allow-read-plugin-file","allow-write-plugin-file","allow-import-plugin-from-path","allow-import-plugin-from-zip","allow-export-plugin-as-zip","allow-export-plugin-to-folder","allow-read-hooks","allow-read-claude-md","allow-write-config-file","allow-read-harness-file","allow-write-harness-file","allow-scan-claude-config","allow-list-custom-profiles","allow-get-custom-profile","allow-save-custom-profile","allow-delete-custom-profile","allow-list-claude-dir","allow-detect-claude-account","allow-read-stats-cache","allow-list-sessions-summary","allow-read-session-facet","allow-list-active-sessions","allow-read-live-activity","allow-compute-live-stats","allow-read-session-transcript","allow-check-git-repo","allow-check-for-updates","allow-trigger-rebuild","allow-save-evaluation","allow-get-evaluations","allow-update-evaluation-score","allow-create-evaluation-session","allow-get-evaluation-session","allow-reveal-evaluation-session","allow-save-pairwise-vote","allow-get-pairwise-votes","allow-get-pairwise-analytics","allow-delete-pairwise-vote","allow-export-comparison-json","allow-get-comparator-analytics","allow-save-comparison","allow-update-comparison-title","allow-update-comparison-status","allow-list-comparisons","allow-get-comparison","allow-delete-comparison","allow-tag-comparison-task-type","allow-get-harness-recommendations","allow-save-panel","allow-update-panel-result","allow-save-file-diffs","allow-get-comparison-diffs","allow-get-panel-diffs","allow-read-permissions","allow-update-permissions","allow-list-security-presets","allow-apply-security-preset","allow-list-required-env","allow-set-keychain-secret","allow-delete-keychain-secret","allow-read-env-config","allow-write-env-config","allow-list-audit-entries","allow-clear-audit-entries","allow-read-file-history","allow-push-file-history","allow-get-history-size","allow-sync-read-file","allow-sync-file-exists","allow-sync-read-dir","allow-sync-write-files","allow-verify-definitions-signature","allow-get-cached-definitions","allow-put-cached-definitions","allow-get-highest-bundle-number","allow-record-bundle-number","allow-apply-surface-transaction","allow-record-transaction","allow-migrate-drift-acknowledgements","allow-acknowledge-drift","allow-unacknowledge-drift","allow-list-drift-acknowledgements","allow-sync-create-backup","allow-sync-list-backups","allow-sync-restore-backup","allow-detect-harnesses","allow-grant-project-scope","allow-choose-project-dir","allow-guarded-write-file","allow-guarded-rename-file","allow-guarded-remove-file","allow-acknowledge-drift-item","allow-unacknowledge-drift-item","allow-get-acknowledged-drift-items","allow-get-system-info","allow-submit-feedback"]}} \ No newline at end of file diff --git a/apps/desktop/src-tauri/gen/schemas/desktop-schema.json b/apps/desktop/src-tauri/gen/schemas/desktop-schema.json index f895fe44..32195a7b 100644 --- a/apps/desktop/src-tauri/gen/schemas/desktop-schema.json +++ b/apps/desktop/src-tauri/gen/schemas/desktop-schema.json @@ -1063,6 +1063,18 @@ "const": "fs:read-app-specific-dirs-recursive", "markdownDescription": "This permission allows recursive read functionality on the application\nspecific base directories.\n\n#### This permission set includes:\n\n- `allow-read-dir`\n- `allow-read-file`\n- `allow-read-text-file`\n- `allow-read-text-file-lines`\n- `allow-read-text-file-lines-next`\n- `allow-exists`\n- `scope-app-recursive`" }, + { + "description": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-all", + "markdownDescription": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, + { + "description": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-files", + "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, { "description": "Enables the copy_file command without any pre-configured scope.", "type": "string", @@ -1878,18 +1890,6 @@ "type": "string", "const": "fs:scope-video-recursive", "markdownDescription": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files." - }, - { - "description": "This enables all write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-all", - "markdownDescription": "This enables all write related commands without any pre-configured accessible paths." - }, - { - "description": "This enables all file write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-files", - "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths." } ] } @@ -2252,6 +2252,12 @@ "const": "allow-check-plugin-updates", "markdownDescription": "Enables the check_plugin_updates command without any pre-configured scope." }, + { + "description": "Enables the choose_project_dir command without any pre-configured scope.", + "type": "string", + "const": "allow-choose-project-dir", + "markdownDescription": "Enables the choose_project_dir command without any pre-configured scope." + }, { "description": "Enables the clear_audit_entries command without any pre-configured scope.", "type": "string", @@ -2432,6 +2438,24 @@ "const": "allow-grant-project-scope", "markdownDescription": "Enables the grant_project_scope command without any pre-configured scope." }, + { + "description": "Enables the guarded_remove_file command without any pre-configured scope.", + "type": "string", + "const": "allow-guarded-remove-file", + "markdownDescription": "Enables the guarded_remove_file command without any pre-configured scope." + }, + { + "description": "Enables the guarded_rename_file command without any pre-configured scope.", + "type": "string", + "const": "allow-guarded-rename-file", + "markdownDescription": "Enables the guarded_rename_file command without any pre-configured scope." + }, + { + "description": "Enables the guarded_write_file command without any pre-configured scope.", + "type": "string", + "const": "allow-guarded-write-file", + "markdownDescription": "Enables the guarded_write_file command without any pre-configured scope." + }, { "description": "Enables the import_plugin_from_path command without any pre-configured scope.", "type": "string", @@ -2852,6 +2876,12 @@ "const": "deny-check-plugin-updates", "markdownDescription": "Denies the check_plugin_updates command without any pre-configured scope." }, + { + "description": "Denies the choose_project_dir command without any pre-configured scope.", + "type": "string", + "const": "deny-choose-project-dir", + "markdownDescription": "Denies the choose_project_dir command without any pre-configured scope." + }, { "description": "Denies the clear_audit_entries command without any pre-configured scope.", "type": "string", @@ -3032,6 +3062,24 @@ "const": "deny-grant-project-scope", "markdownDescription": "Denies the grant_project_scope command without any pre-configured scope." }, + { + "description": "Denies the guarded_remove_file command without any pre-configured scope.", + "type": "string", + "const": "deny-guarded-remove-file", + "markdownDescription": "Denies the guarded_remove_file command without any pre-configured scope." + }, + { + "description": "Denies the guarded_rename_file command without any pre-configured scope.", + "type": "string", + "const": "deny-guarded-rename-file", + "markdownDescription": "Denies the guarded_rename_file command without any pre-configured scope." + }, + { + "description": "Denies the guarded_write_file command without any pre-configured scope.", + "type": "string", + "const": "deny-guarded-write-file", + "markdownDescription": "Denies the guarded_write_file command without any pre-configured scope." + }, { "description": "Denies the import_plugin_from_path command without any pre-configured scope.", "type": "string", @@ -3446,6 +3494,12 @@ "const": "core:app:allow-default-window-icon", "markdownDescription": "Enables the default_window_icon command without any pre-configured scope." }, + { + "description": "Enables the exit command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-exit", + "markdownDescription": "Enables the exit command without any pre-configured scope." + }, { "description": "Enables the fetch_data_store_identifiers command without any pre-configured scope.", "type": "string", @@ -3536,6 +3590,12 @@ "const": "core:app:deny-default-window-icon", "markdownDescription": "Denies the default_window_icon command without any pre-configured scope." }, + { + "description": "Denies the exit command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-exit", + "markdownDescription": "Denies the exit command without any pre-configured scope." + }, { "description": "Denies the fetch_data_store_identifiers command without any pre-configured scope.", "type": "string", @@ -4796,6 +4856,12 @@ "const": "core:window:allow-set-fullscreen", "markdownDescription": "Enables the set_fullscreen command without any pre-configured scope." }, + { + "description": "Enables the set_fullscreen_on_monitor command without any pre-configured scope.", + "type": "string", + "const": "core:window:allow-set-fullscreen-on-monitor", + "markdownDescription": "Enables the set_fullscreen_on_monitor command without any pre-configured scope." + }, { "description": "Enables the set_icon command without any pre-configured scope.", "type": "string", @@ -5264,6 +5330,12 @@ "const": "core:window:deny-set-fullscreen", "markdownDescription": "Denies the set_fullscreen command without any pre-configured scope." }, + { + "description": "Denies the set_fullscreen_on_monitor command without any pre-configured scope.", + "type": "string", + "const": "core:window:deny-set-fullscreen-on-monitor", + "markdownDescription": "Denies the set_fullscreen_on_monitor command without any pre-configured scope." + }, { "description": "Denies the set_icon command without any pre-configured scope.", "type": "string", @@ -6416,6 +6488,18 @@ "const": "fs:read-app-specific-dirs-recursive", "markdownDescription": "This permission allows recursive read functionality on the application\nspecific base directories.\n\n#### This permission set includes:\n\n- `allow-read-dir`\n- `allow-read-file`\n- `allow-read-text-file`\n- `allow-read-text-file-lines`\n- `allow-read-text-file-lines-next`\n- `allow-exists`\n- `scope-app-recursive`" }, + { + "description": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-all", + "markdownDescription": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, + { + "description": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-files", + "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, { "description": "Enables the copy_file command without any pre-configured scope.", "type": "string", @@ -7232,18 +7316,6 @@ "const": "fs:scope-video-recursive", "markdownDescription": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files." }, - { - "description": "This enables all write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-all", - "markdownDescription": "This enables all write related commands without any pre-configured accessible paths." - }, - { - "description": "This enables all file write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-files", - "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths." - }, { "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/apps/desktop/src-tauri/gen/schemas/macOS-schema.json b/apps/desktop/src-tauri/gen/schemas/macOS-schema.json index f895fe44..32195a7b 100644 --- a/apps/desktop/src-tauri/gen/schemas/macOS-schema.json +++ b/apps/desktop/src-tauri/gen/schemas/macOS-schema.json @@ -1063,6 +1063,18 @@ "const": "fs:read-app-specific-dirs-recursive", "markdownDescription": "This permission allows recursive read functionality on the application\nspecific base directories.\n\n#### This permission set includes:\n\n- `allow-read-dir`\n- `allow-read-file`\n- `allow-read-text-file`\n- `allow-read-text-file-lines`\n- `allow-read-text-file-lines-next`\n- `allow-exists`\n- `scope-app-recursive`" }, + { + "description": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-all", + "markdownDescription": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, + { + "description": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-files", + "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, { "description": "Enables the copy_file command without any pre-configured scope.", "type": "string", @@ -1878,18 +1890,6 @@ "type": "string", "const": "fs:scope-video-recursive", "markdownDescription": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files." - }, - { - "description": "This enables all write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-all", - "markdownDescription": "This enables all write related commands without any pre-configured accessible paths." - }, - { - "description": "This enables all file write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-files", - "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths." } ] } @@ -2252,6 +2252,12 @@ "const": "allow-check-plugin-updates", "markdownDescription": "Enables the check_plugin_updates command without any pre-configured scope." }, + { + "description": "Enables the choose_project_dir command without any pre-configured scope.", + "type": "string", + "const": "allow-choose-project-dir", + "markdownDescription": "Enables the choose_project_dir command without any pre-configured scope." + }, { "description": "Enables the clear_audit_entries command without any pre-configured scope.", "type": "string", @@ -2432,6 +2438,24 @@ "const": "allow-grant-project-scope", "markdownDescription": "Enables the grant_project_scope command without any pre-configured scope." }, + { + "description": "Enables the guarded_remove_file command without any pre-configured scope.", + "type": "string", + "const": "allow-guarded-remove-file", + "markdownDescription": "Enables the guarded_remove_file command without any pre-configured scope." + }, + { + "description": "Enables the guarded_rename_file command without any pre-configured scope.", + "type": "string", + "const": "allow-guarded-rename-file", + "markdownDescription": "Enables the guarded_rename_file command without any pre-configured scope." + }, + { + "description": "Enables the guarded_write_file command without any pre-configured scope.", + "type": "string", + "const": "allow-guarded-write-file", + "markdownDescription": "Enables the guarded_write_file command without any pre-configured scope." + }, { "description": "Enables the import_plugin_from_path command without any pre-configured scope.", "type": "string", @@ -2852,6 +2876,12 @@ "const": "deny-check-plugin-updates", "markdownDescription": "Denies the check_plugin_updates command without any pre-configured scope." }, + { + "description": "Denies the choose_project_dir command without any pre-configured scope.", + "type": "string", + "const": "deny-choose-project-dir", + "markdownDescription": "Denies the choose_project_dir command without any pre-configured scope." + }, { "description": "Denies the clear_audit_entries command without any pre-configured scope.", "type": "string", @@ -3032,6 +3062,24 @@ "const": "deny-grant-project-scope", "markdownDescription": "Denies the grant_project_scope command without any pre-configured scope." }, + { + "description": "Denies the guarded_remove_file command without any pre-configured scope.", + "type": "string", + "const": "deny-guarded-remove-file", + "markdownDescription": "Denies the guarded_remove_file command without any pre-configured scope." + }, + { + "description": "Denies the guarded_rename_file command without any pre-configured scope.", + "type": "string", + "const": "deny-guarded-rename-file", + "markdownDescription": "Denies the guarded_rename_file command without any pre-configured scope." + }, + { + "description": "Denies the guarded_write_file command without any pre-configured scope.", + "type": "string", + "const": "deny-guarded-write-file", + "markdownDescription": "Denies the guarded_write_file command without any pre-configured scope." + }, { "description": "Denies the import_plugin_from_path command without any pre-configured scope.", "type": "string", @@ -3446,6 +3494,12 @@ "const": "core:app:allow-default-window-icon", "markdownDescription": "Enables the default_window_icon command without any pre-configured scope." }, + { + "description": "Enables the exit command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-exit", + "markdownDescription": "Enables the exit command without any pre-configured scope." + }, { "description": "Enables the fetch_data_store_identifiers command without any pre-configured scope.", "type": "string", @@ -3536,6 +3590,12 @@ "const": "core:app:deny-default-window-icon", "markdownDescription": "Denies the default_window_icon command without any pre-configured scope." }, + { + "description": "Denies the exit command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-exit", + "markdownDescription": "Denies the exit command without any pre-configured scope." + }, { "description": "Denies the fetch_data_store_identifiers command without any pre-configured scope.", "type": "string", @@ -4796,6 +4856,12 @@ "const": "core:window:allow-set-fullscreen", "markdownDescription": "Enables the set_fullscreen command without any pre-configured scope." }, + { + "description": "Enables the set_fullscreen_on_monitor command without any pre-configured scope.", + "type": "string", + "const": "core:window:allow-set-fullscreen-on-monitor", + "markdownDescription": "Enables the set_fullscreen_on_monitor command without any pre-configured scope." + }, { "description": "Enables the set_icon command without any pre-configured scope.", "type": "string", @@ -5264,6 +5330,12 @@ "const": "core:window:deny-set-fullscreen", "markdownDescription": "Denies the set_fullscreen command without any pre-configured scope." }, + { + "description": "Denies the set_fullscreen_on_monitor command without any pre-configured scope.", + "type": "string", + "const": "core:window:deny-set-fullscreen-on-monitor", + "markdownDescription": "Denies the set_fullscreen_on_monitor command without any pre-configured scope." + }, { "description": "Denies the set_icon command without any pre-configured scope.", "type": "string", @@ -6416,6 +6488,18 @@ "const": "fs:read-app-specific-dirs-recursive", "markdownDescription": "This permission allows recursive read functionality on the application\nspecific base directories.\n\n#### This permission set includes:\n\n- `allow-read-dir`\n- `allow-read-file`\n- `allow-read-text-file`\n- `allow-read-text-file-lines`\n- `allow-read-text-file-lines-next`\n- `allow-exists`\n- `scope-app-recursive`" }, + { + "description": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-all", + "markdownDescription": "This enables all write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-mkdir`\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, + { + "description": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`", + "type": "string", + "const": "fs:write-files", + "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths.\n#### This permission set includes:\n\n- `allow-create`\n- `allow-copy-file`\n- `allow-remove`\n- `allow-rename`\n- `allow-truncate`\n- `allow-ftruncate`\n- `allow-write`\n- `allow-write-file`\n- `allow-write-text-file`" + }, { "description": "Enables the copy_file command without any pre-configured scope.", "type": "string", @@ -7232,18 +7316,6 @@ "const": "fs:scope-video-recursive", "markdownDescription": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files." }, - { - "description": "This enables all write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-all", - "markdownDescription": "This enables all write related commands without any pre-configured accessible paths." - }, - { - "description": "This enables all file write related commands without any pre-configured accessible paths.", - "type": "string", - "const": "fs:write-files", - "markdownDescription": "This enables all file write related commands without any pre-configured accessible paths." - }, { "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/apps/desktop/src-tauri/generated/write-scope.json b/apps/desktop/src-tauri/generated/write-scope.json index 5cf2ef10..e4e3117b 100644 --- a/apps/desktop/src-tauri/generated/write-scope.json +++ b/apps/desktop/src-tauri/generated/write-scope.json @@ -82,5 +82,32 @@ ".pi/agent/skills", ".windsurf/skills" ] + }, + "project": { + "files": [ + ".codex/config.toml", + ".cursor/mcp.json", + ".gemini/settings.json", + ".github/copilot-instructions.md", + ".junie/mcp/mcp.json", + ".mcp.json", + ".pi/APPEND_SYSTEM.md", + ".vscode/mcp.json", + "AGENTS.md", + "CLAUDE.md", + "opencode.json" + ], + "directories": [ + ".agents/skills", + ".claude/skills", + ".cursor/rules", + ".cursor/skills", + ".gemini/skills", + ".github/skills", + ".junie/skills", + ".opencode/skills", + ".pi/skills", + ".windsurf/skills" + ] } } diff --git a/apps/desktop/src-tauri/permissions/autogenerated/choose_project_dir.toml b/apps/desktop/src-tauri/permissions/autogenerated/choose_project_dir.toml new file mode 100644 index 00000000..2ee605f8 --- /dev/null +++ b/apps/desktop/src-tauri/permissions/autogenerated/choose_project_dir.toml @@ -0,0 +1,11 @@ +# Automatically generated - DO NOT EDIT! + +[[permission]] +identifier = "allow-choose-project-dir" +description = "Enables the choose_project_dir command without any pre-configured scope." +commands.allow = ["choose_project_dir"] + +[[permission]] +identifier = "deny-choose-project-dir" +description = "Denies the choose_project_dir command without any pre-configured scope." +commands.deny = ["choose_project_dir"] diff --git a/apps/desktop/src-tauri/permissions/autogenerated/guarded_remove_file.toml b/apps/desktop/src-tauri/permissions/autogenerated/guarded_remove_file.toml new file mode 100644 index 00000000..1eb358a9 --- /dev/null +++ b/apps/desktop/src-tauri/permissions/autogenerated/guarded_remove_file.toml @@ -0,0 +1,11 @@ +# Automatically generated - DO NOT EDIT! + +[[permission]] +identifier = "allow-guarded-remove-file" +description = "Enables the guarded_remove_file command without any pre-configured scope." +commands.allow = ["guarded_remove_file"] + +[[permission]] +identifier = "deny-guarded-remove-file" +description = "Denies the guarded_remove_file command without any pre-configured scope." +commands.deny = ["guarded_remove_file"] diff --git a/apps/desktop/src-tauri/permissions/autogenerated/guarded_rename_file.toml b/apps/desktop/src-tauri/permissions/autogenerated/guarded_rename_file.toml new file mode 100644 index 00000000..06913698 --- /dev/null +++ b/apps/desktop/src-tauri/permissions/autogenerated/guarded_rename_file.toml @@ -0,0 +1,11 @@ +# Automatically generated - DO NOT EDIT! + +[[permission]] +identifier = "allow-guarded-rename-file" +description = "Enables the guarded_rename_file command without any pre-configured scope." +commands.allow = ["guarded_rename_file"] + +[[permission]] +identifier = "deny-guarded-rename-file" +description = "Denies the guarded_rename_file command without any pre-configured scope." +commands.deny = ["guarded_rename_file"] diff --git a/apps/desktop/src-tauri/permissions/autogenerated/guarded_write_file.toml b/apps/desktop/src-tauri/permissions/autogenerated/guarded_write_file.toml new file mode 100644 index 00000000..5baa3894 --- /dev/null +++ b/apps/desktop/src-tauri/permissions/autogenerated/guarded_write_file.toml @@ -0,0 +1,11 @@ +# Automatically generated - DO NOT EDIT! + +[[permission]] +identifier = "allow-guarded-write-file" +description = "Enables the guarded_write_file command without any pre-configured scope." +commands.allow = ["guarded_write_file"] + +[[permission]] +identifier = "deny-guarded-write-file" +description = "Denies the guarded_write_file command without any pre-configured scope." +commands.deny = ["guarded_write_file"] diff --git a/apps/desktop/src-tauri/src/commands/claude_md.rs b/apps/desktop/src-tauri/src/commands/claude_md.rs index 166a5a44..75cb60a2 100644 --- a/apps/desktop/src-tauri/src/commands/claude_md.rs +++ b/apps/desktop/src-tauri/src/commands/claude_md.rs @@ -1,57 +1,124 @@ +use std::path::{Component, Path, PathBuf}; + +use super::surface_write::write_user_file; + +fn home_dir() -> Result { + dirs::home_dir().ok_or_else(|| "Could not resolve home directory".to_string()) +} + +/// Expand a leading `~/` against `home`. +fn expand(home: &Path, path: &str) -> PathBuf { + match path.strip_prefix("~/") { + Some(stripped) => home.join(stripped), + None => PathBuf::from(path), + } +} + +/// Read a file under `~/.claude`. Every caller edits a file there; nothing +/// else in the home directory is reachable through this command. #[tauri::command] pub fn read_claude_md(path: String) -> Result { - let home = dirs::home_dir() - .ok_or_else(|| "Could not resolve home directory".to_string())?; - - // Expand ~ to home directory - let expanded = if let Some(stripped) = path.strip_prefix("~/") { - home.join(stripped) - } else { - std::path::PathBuf::from(&path) - }; + read_claude_md_in(&home_dir()?, &path) +} - if !expanded.exists() { - return Err(format!("File not found: {}", expanded.display())); +fn read_claude_md_in(home: &Path, path: &str) -> Result { + let expanded = expand(home, path); + let outside = || "Access denied: path is outside ~/.claude".to_string(); + + // The path must sit inside ~/.claude as written, with no `.` or `..`. + if has_dot_components(&expanded) || !expanded.starts_with(home.join(".claude")) { + return Err(outside()); } + let file_name = expanded.file_name().ok_or_else(outside)?; + let parent = expanded.parent().ok_or_else(outside)?; + let Ok(canonical_parent) = parent.canonicalize() else { + return Err(format!("File not found: {}", expanded.display())); + }; - // Canonicalize and restrict to home directory - let canonical = expanded + // Compare the containing directory, not the file. `~/.claude` itself may + // be a symlink (canonicalized here), and so may the file: a + // `~/.claude/CLAUDE.md` linked into a dotfiles repo is read through the + // link. A symlinked directory below ~/.claude that leaves it is refused. + let claude_dir = home + .join(".claude") .canonicalize() .map_err(|e| format!("Invalid path: {}", e))?; - if !canonical.starts_with(&home) { - return Err("Access denied: path is outside home directory".to_string()); + if !canonical_parent.starts_with(&claude_dir) { + return Err(outside()); + } + let target = canonical_parent.join(file_name); + if !target.exists() { + return Err(format!("File not found: {}", expanded.display())); } - std::fs::read_to_string(&canonical) - .map_err(|e| format!("Failed to read {}: {}", canonical.display(), e)) + std::fs::read_to_string(&target) + .map_err(|e| format!("Failed to read {}: {}", target.display(), e)) +} + +fn has_dot_components(path: &Path) -> bool { + path.components() + .any(|c| matches!(c, Component::ParentDir | Component::CurDir)) } +/// Save a file under `~/.claude` (AC-50). `expected_sha256` is the digest of +/// what the page loaded; `None` means the file must not exist yet. A +/// mismatch is refused with a "changed on disk" error, and the old content is +/// copied to `~/.harness/backups/user//` before the +/// file is replaced atomically. #[tauri::command] -pub fn write_config_file(path: String, content: String) -> Result<(), String> { - let home = dirs::home_dir() - .ok_or_else(|| "Could not resolve home directory".to_string())?; - - // Expand ~ to home directory - let expanded = if let Some(stripped) = path.strip_prefix("~/") { - home.join(stripped) - } else { - std::path::PathBuf::from(&path) - }; +pub fn write_config_file( + path: String, + content: String, + expected_sha256: Option, +) -> Result<(), String> { + write_config_file_in(&home_dir()?, &path, &content, expected_sha256.as_deref()) +} + +fn write_config_file_in( + home: &Path, + path: &str, + content: &str, + expected_sha256: Option<&str>, +) -> Result<(), String> { + let expanded = expand(home, path); - // Pre-check: path must nominally start within ~/.claude/ before any resolution + // Pre-check: the path must start within ~/.claude/ as written, and carry + // no `.` or `..` (Path::starts_with compares components, so + // `~/.claude/../x` would pass it). Nothing is created before this passes. let claude_dir = home.join(".claude"); - if !expanded.starts_with(&claude_dir) { + if has_dot_components(&expanded) || !expanded.starts_with(&claude_dir) { return Err("write_config_file: path must be within ~/.claude/".to_string()); } + // The deepest directory that already exists below the path must not leave + // ~/.claude through a symlink; check that before create_dir_all makes + // directories on the far side of it. When ~/.claude itself does not exist + // yet, nothing below it can be a link. + let mut existing = expanded.parent(); + while let Some(dir) = existing { + if dir.exists() { + break; + } + existing = dir.parent(); + } + if let Some(dir) = existing.filter(|d| d.starts_with(&claude_dir)) { + let within = match (dir.canonicalize(), claude_dir.canonicalize()) { + (Ok(real), Ok(root)) => real.starts_with(root), + _ => false, + }; + if !within { + return Err("write_config_file: path must be within ~/.claude/".to_string()); + } + } + // Ensure parent directory exists before canonicalization if let Some(parent) = expanded.parent() { std::fs::create_dir_all(parent) .map_err(|e| format!("Failed to create parent directory: {}", e))?; } - // Canonicalize parent (now guaranteed to exist) and rejoin filename - // This resolves any .. traversals in the path + // Canonicalize parent (now guaranteed to exist) and rejoin filename. + // This resolves any .. traversals in the path. let canonical_parent = expanded .parent() .ok_or_else(|| "Invalid path: no parent directory".to_string())? @@ -65,10 +132,194 @@ pub fn write_config_file(path: String, content: String) -> Result<(), String> { let safe_path = canonical_parent.join(filename); // Post-canonicalization check: resolved path must still be within ~/.claude/ - if !safe_path.starts_with(&claude_dir) { + let canonical_claude = claude_dir + .canonicalize() + .map_err(|e| format!("Failed to resolve ~/.claude: {}", e))?; + if !safe_path.starts_with(&canonical_claude) { return Err("write_config_file: path must be within ~/.claude/".to_string()); } - std::fs::write(&safe_path, content) - .map_err(|e| format!("Failed to write {}: {}", safe_path.display(), e)) + write_user_file(&safe_path, content, expected_sha256).map(|_| ()) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::commands::surface_write::loaded_text_digest; + use tempfile::TempDir; + + fn home_with(file: &str, content: &str) -> TempDir { + let home = TempDir::new().unwrap(); + crate::commands::surface_write::set_test_home(home.path()); + let path = home.path().join(".claude").join(file); + std::fs::create_dir_all(path.parent().unwrap()).unwrap(); + std::fs::write(path, content).unwrap(); + home + } + + /// Backups of `name`, which live under `~/.harness/backups/user`, never + /// beside the file. + fn backups(home: &Path, name: &str) -> Vec { + let beside: Vec<_> = std::fs::read_dir(home.join(".claude")) + .unwrap() + .map(|e| e.unwrap().file_name().to_string_lossy().into_owned()) + .filter(|n| n.contains(".bak-")) + .collect(); + assert!(beside.is_empty(), "backup beside the file: {beside:?}"); + crate::commands::surface_write::user_backups(home) + .into_iter() + .filter(|p| p.file_name().unwrap().to_string_lossy() == name) + .collect() + } + + #[test] + fn matching_digest_writes_and_keeps_a_backup() { + let home = home_with("CLAUDE.md", "old\n"); + let digest = loaded_text_digest("old\n"); + write_config_file_in(home.path(), "~/.claude/CLAUDE.md", "new\n", Some(&digest)).unwrap(); + let file = home.path().join(".claude/CLAUDE.md"); + assert_eq!(std::fs::read_to_string(&file).unwrap(), "new\n"); + let found = backups(home.path(), "CLAUDE.md"); + assert_eq!(found.len(), 1); + assert_eq!(std::fs::read_to_string(&found[0]).unwrap(), "old\n"); + } + + #[test] + fn mismatched_digest_refuses_and_leaves_the_file_alone() { + let home = home_with("CLAUDE.md", "changed elsewhere\n"); + let stale = loaded_text_digest("what the page loaded\n"); + let err = write_config_file_in(home.path(), "~/.claude/CLAUDE.md", "new\n", Some(&stale)) + .unwrap_err(); + assert!(err.contains("changed on disk"), "{}", err); + let file = home.path().join(".claude/CLAUDE.md"); + assert_eq!(std::fs::read_to_string(&file).unwrap(), "changed elsewhere\n"); + assert!(backups(home.path(), "CLAUDE.md").is_empty()); + } + + #[test] + fn none_digest_on_an_existing_file_refuses() { + let home = home_with("CLAUDE.md", "mine\n"); + let err = write_config_file_in(home.path(), "~/.claude/CLAUDE.md", "new\n", None).unwrap_err(); + assert!(err.contains("changed on disk"), "{}", err); + let file = home.path().join(".claude/CLAUDE.md"); + assert_eq!(std::fs::read_to_string(&file).unwrap(), "mine\n"); + } + + #[test] + fn none_digest_creates_a_new_file_without_a_backup() { + let home = TempDir::new().unwrap(); + crate::commands::surface_write::set_test_home(home.path()); + write_config_file_in(home.path(), "~/.claude/new.md", "hi\n", None).unwrap(); + assert_eq!(std::fs::read_to_string(home.path().join(".claude/new.md")).unwrap(), "hi\n"); + assert!(backups(home.path(), "new.md").is_empty()); + } + + #[cfg(unix)] + #[test] + fn write_replaces_the_inode_instead_of_truncating_in_place() { + use std::os::unix::fs::MetadataExt; + let home = home_with("CLAUDE.md", "old\n"); + let file = home.path().join(".claude/CLAUDE.md"); + let before = std::fs::metadata(&file).unwrap().ino(); + let digest = loaded_text_digest("old\n"); + write_config_file_in(home.path(), "~/.claude/CLAUDE.md", "new\n", Some(&digest)).unwrap(); + assert_ne!(std::fs::metadata(&file).unwrap().ino(), before); + } + + #[test] + fn paths_outside_claude_dir_are_refused() { + let home = home_with("CLAUDE.md", "x"); + let err = write_config_file_in(home.path(), "~/.zshrc", "x", None).unwrap_err(); + assert!(err.contains("within ~/.claude"), "{}", err); + let err = write_config_file_in(home.path(), "~/.claude/../.zshrc", "x", None).unwrap_err(); + assert!(err.contains("within ~/.claude"), "{}", err); + } + + #[test] + fn read_is_limited_to_claude_dir() { + let home = home_with("CLAUDE.md", "inside"); + std::fs::write(home.path().join(".zshrc"), "outside").unwrap(); + assert_eq!(read_claude_md_in(home.path(), "~/.claude/CLAUDE.md").unwrap(), "inside"); + let err = read_claude_md_in(home.path(), "~/.zshrc").unwrap_err(); + assert!(err.contains("outside ~/.claude"), "{}", err); + let err = read_claude_md_in(home.path(), "~/.claude/../.zshrc").unwrap_err(); + assert!(err.contains("outside ~/.claude"), "{}", err); + } +} + +#[cfg(test)] +mod round2_tests { + use super::*; + use tempfile::TempDir; + + #[test] + fn dotdot_path_creates_no_directory_outside_claude_dir() { + let tmp = TempDir::new().unwrap(); + let base = tmp.path().canonicalize().unwrap(); + let home = base.join("home"); + std::fs::create_dir_all(home.join(".claude")).unwrap(); + let err = write_config_file_in(&home, "~/.claude/../../escape/a/b", "x", None).unwrap_err(); + assert!(err.contains("within ~/.claude"), "{err}"); + assert!(!base.join("escape").exists()); + } + + #[test] + fn dotdot_is_refused_even_when_it_stays_inside() { + let tmp = TempDir::new().unwrap(); + let home = tmp.path().canonicalize().unwrap(); + std::fs::create_dir_all(home.join(".claude")).unwrap(); + let err = write_config_file_in(&home, "~/.claude/sub/../x.md", "x", None).unwrap_err(); + assert!(err.contains("within ~/.claude"), "{err}"); + assert!(!home.join(".claude/sub").exists()); + assert!(!home.join(".claude/x.md").exists()); + } + + #[cfg(unix)] + #[test] + fn symlinked_subdir_leaving_claude_dir_creates_no_directory_outside() { + let tmp = TempDir::new().unwrap(); + let base = tmp.path().canonicalize().unwrap(); + let home = base.join("home"); + let outside = base.join("outside"); + std::fs::create_dir_all(home.join(".claude")).unwrap(); + std::fs::create_dir_all(&outside).unwrap(); + std::os::unix::fs::symlink(&outside, home.join(".claude/link")).unwrap(); + let err = write_config_file_in(&home, "~/.claude/link/new/f.md", "x", None).unwrap_err(); + assert!(err.contains("within ~/.claude"), "{err}"); + assert!(!outside.join("new").exists()); + } + + #[cfg(unix)] + #[test] + fn symlinked_claude_md_into_dotfiles_is_readable() { + let tmp = TempDir::new().unwrap(); + let base = tmp.path().canonicalize().unwrap(); + let home = base.join("home"); + let dotfiles = base.join("dotfiles"); + std::fs::create_dir_all(home.join(".claude")).unwrap(); + std::fs::create_dir_all(&dotfiles).unwrap(); + std::fs::write(dotfiles.join("CLAUDE.md"), "from dotfiles").unwrap(); + std::os::unix::fs::symlink(dotfiles.join("CLAUDE.md"), home.join(".claude/CLAUDE.md")).unwrap(); + assert_eq!(read_claude_md_in(&home, "~/.claude/CLAUDE.md").unwrap(), "from dotfiles"); + } + + #[cfg(unix)] + #[test] + fn symlinked_claude_dir_is_readable_and_a_linked_subdir_is_not() { + let tmp = TempDir::new().unwrap(); + let base = tmp.path().canonicalize().unwrap(); + let home = base.join("home"); + let dotfiles = base.join("dotfiles/claude"); + let outside = base.join("outside"); + std::fs::create_dir_all(&home).unwrap(); + std::fs::create_dir_all(&dotfiles).unwrap(); + std::fs::create_dir_all(&outside).unwrap(); + std::fs::write(dotfiles.join("CLAUDE.md"), "dir link").unwrap(); + std::fs::write(outside.join("secret"), "secret").unwrap(); + std::os::unix::fs::symlink(&dotfiles, home.join(".claude")).unwrap(); + assert_eq!(read_claude_md_in(&home, "~/.claude/CLAUDE.md").unwrap(), "dir link"); + std::os::unix::fs::symlink(&outside, dotfiles.join("sub")).unwrap(); + let err = read_claude_md_in(&home, "~/.claude/sub/secret").unwrap_err(); + assert!(err.contains("outside ~/.claude"), "{err}"); + } } diff --git a/apps/desktop/src-tauri/src/commands/fs_guarded.rs b/apps/desktop/src-tauri/src/commands/fs_guarded.rs new file mode 100644 index 00000000..0f930334 --- /dev/null +++ b/apps/desktop/src-tauri/src/commands/fs_guarded.rs @@ -0,0 +1,974 @@ +//! Guarded write, rename and remove for the webview's `TauriFsProvider`. +//! +//! The fs plugin's `write_text_file`, `rename` and `remove` are not granted to +//! the webview: a capability scope cannot say "no symlinks", "no recursive +//! delete" or "only the engine's temp files", and the webview is not trusted. +//! These three commands take their place and enforce their own limits. +//! +//! What each one accepts, after its paths are resolved natively: +//! +//! - `guarded_write_file` writes one `.harness-tmp-` file, and only +//! when that file is a temp sibling of a registry-declared config store under +//! the home directory (`surface_write::is_declared_store`, which also covers +//! the transaction engine's `.harness/backups/` subtree) or a temp sibling of +//! a declared PROJECT store (`surface_write::is_declared_project_store`: the +//! writable project-scope stores of the registry, generated into +//! `write-scope.json`, plus the engine's project `.harness/backups/`) inside +//! a project root the user picked in the native folder dialog +//! (`fs_scope::granted_root_for`). It never writes the store itself. +//! - `guarded_rename_file` moves a regular file, and only a store's own +//! `.harness-tmp-` sibling onto that store (a home store, or a +//! project store inside one granted root), so a file written under one store +//! cannot be renamed onto another (`~/.claude.json` carries MCP commands) and +//! a granted root is not a license to replace `foo.txt` or `.claude/settings.json`. +//! - `guarded_remove_file` deletes one regular file only when it is a +//! `.harness-tmp-` file of a declared store (home or project) or a +//! file under `~/.harness/backups/` outside the quarantine. A declared home +//! store or declared project store is not deleted: it is moved to +//! `~/.harness/backups/quarantine//` (directories +//! 0700, file mode kept), which is how rollback removes a file it created. +//! Anything else is refused. +//! +//! Three refusals apply to all three commands, whatever else matches: a path +//! with a `.git` component (any case) is refused, a path inside the quarantine +//! is never a write or rename target (a quarantined file is not deleted either; +//! removing it only moves it again), and a symlink source is refused. +//! +//! Symlinks are refused at the source (`symlink_metadata`, so a link is never +//! followed), directories are refused outright (no recursive removal exists +//! here), and every path must be absolute with no `.` or `..`. The parent +//! directory is canonicalized, so a symlinked ancestor that leaves the roots is +//! caught. The home-relative top directory (`~/.claude`) is canonicalized too, +//! so a `~/.claude` the user symlinked into a dotfiles repo still counts as +//! the declared location. + +use std::fs; +use std::path::{Component, Path, PathBuf}; + +use super::fs_scope::granted_root_for; +use super::surface_write::{is_declared_project_store, is_declared_store}; + +/// Marker the transaction engine puts in the sibling file it renames over a +/// store (`.harness-tmp-`). +const TEMP_MARKER: &str = ".harness-tmp-"; + +/// Home-relative prefix of the engine's backups, the only non-temp files the +/// webview may delete. +const BACKUPS_PREFIX: &str = ".harness/backups/"; + +struct Roots<'a> { + /// Canonical home directory. + home: &'a Path, + /// The outermost dialog-granted project root that contains a canonical + /// path, if any. + granted: &'a dyn Fn(&Path) -> Option, +} + +/// Absolute, `..`-free path whose parent exists, returned with the parent +/// canonicalized. The final component is not resolved: it may not exist yet +/// (a rename destination) and is inspected with `symlink_metadata` instead. +fn resolve(path: &str) -> Result { + let p = Path::new(path); + if !p.is_absolute() { + return Err(format!("{path}: path must be absolute")); + } + if p.components() + .any(|c| matches!(c, Component::ParentDir | Component::CurDir)) + { + return Err(format!("{path}: path must not contain '.' or '..'")); + } + let name = p + .file_name() + .ok_or_else(|| format!("{path}: path has no file name"))?; + let parent = p + .parent() + .ok_or_else(|| format!("{path}: path has no parent"))?; + let canonical_parent = parent + .canonicalize() + .map_err(|e| format!("{path}: parent directory is not accessible: {e}"))?; + Ok(canonical_parent.join(name)) +} + +fn strip_temp_suffix(relative: &str) -> &str { + let last_segment_start = relative.rfind('/').map_or(0, |i| i + 1); + match relative[last_segment_start..].rfind(TEMP_MARKER) { + Some(i) => &relative[..last_segment_start + i], + None => relative, + } +} + +/// Whether the final component is an engine temp name (`.harness-tmp-` +/// with a non-empty name and suffix). +fn is_temp_name(path: &Path) -> bool { + let Some(name) = path.file_name().and_then(|n| n.to_str()) else { + return false; + }; + match name.rfind(TEMP_MARKER) { + Some(i) => i > 0 && name.len() > i + TEMP_MARKER.len(), + None => false, + } +} + +/// The home-relative path (with `/` separators) of `resolved`, as the +/// registry names it, or `None` when `original` is not under `home`. +/// +/// `resolved` has a canonical parent, so with `~/.claude` symlinked into a +/// dotfiles repo it no longer starts with `home`. The home-relative top +/// directory is canonicalized and substituted back, so such a path compares by +/// the location the user and the registry mean. A path that leaves the top +/// directory through a deeper symlink does not start with the canonical top +/// and yields `None`. +fn store_relative(original: &str, resolved: &Path, home: &Path) -> Option { + let lexical = Path::new(original).strip_prefix(home).ok()?; + let mut components = lexical.components(); + let top = components.next()?.as_os_str().to_str()?; + if components.next().is_none() { + // A direct child of home: the parent is home itself. + return resolved + .strip_prefix(home) + .ok() + .and_then(|r| r.to_str()) + .map(str::to_owned); + } + let canonical_top = home.join(top).canonicalize().ok()?; + let rest = resolved.strip_prefix(&canonical_top).ok()?.to_str()?; + Some(format!("{top}/{rest}")) +} + +/// A declared store, or a declared store's temp sibling, by home-relative path. +fn declared_or_temp(relative: &str) -> bool { + is_declared_store(strip_temp_suffix(relative)) +} + +/// Any `.git` path component, in any case (macOS volumes are case-insensitive, +/// so `.GIT/config` is the same file). A git directory runs code (`core.fsmonitor`, +/// hooks), so nothing under one is ever written, renamed onto or removed here. +fn has_git_component(path: &Path) -> bool { + path.components().any(|c| { + c.as_os_str() + .to_str() + .is_some_and(|name| name.eq_ignore_ascii_case(".git")) + }) +} + +/// A path inside the quarantine, found by its resolved location or by its +/// home-relative name (a `~/.harness` that is itself a symlink). +fn is_quarantined(original: &str, resolved: &Path, roots: &Roots) -> bool { + resolved.starts_with(roots.home.join(QUARANTINE_DIR)) + || store_relative(original, resolved, roots.home) + .is_some_and(|rel| rel.starts_with(QUARANTINE_PREFIX)) +} + +/// The path of `resolved` below the granted root that holds it. +fn project_relative(resolved: &Path, roots: &Roots) -> Option { + let root = (roots.granted)(resolved)?; + resolved.strip_prefix(root).ok()?.to_str().map(str::to_owned) +} + +/// A project store the app compiles to (or the engine's project backups) by +/// root-relative path. +fn project_store(relative: &str) -> bool { + is_declared_project_store(relative) +} + +/// Writes and temp-file removal: the engine's temp file next to a declared +/// home store, or next to a declared project store inside a granted root. Never +/// under `.git`, never in the quarantine. +fn temp_in_roots(original: &str, resolved: &Path, roots: &Roots) -> bool { + if !is_temp_name(resolved) + || has_git_component(resolved) + || is_quarantined(original, resolved, roots) + { + return false; + } + if let Some(rel) = project_relative(resolved, roots) { + if project_store(strip_temp_suffix(&rel)) { + return true; + } + } + store_relative(original, resolved, roots.home).is_some_and(|rel| declared_or_temp(&rel)) +} + +/// A rename is allowed only when the source is the destination's own temp +/// sibling and the destination is a declared store: a home store, or a project +/// store inside the granted root that holds both ends. Never involving `.git` +/// or the quarantine. +fn rename_allowed(from: &str, source: &Path, to: &str, dest: &Path, roots: &Roots) -> bool { + if !is_temp_name(source) + || has_git_component(source) + || has_git_component(dest) + || is_quarantined(from, source, roots) + || is_quarantined(to, dest, roots) + { + return false; + } + if let (Some(a), Some(b)) = ((roots.granted)(source), (roots.granted)(dest)) { + if a == b { + if let (Some(from_rel), Some(to_rel)) = + (project_relative(source, roots), project_relative(dest, roots)) + { + if project_store(&to_rel) && strip_temp_suffix(&from_rel) == to_rel { + return true; + } + } + } + } + let (Some(from_rel), Some(to_rel)) = ( + store_relative(from, source, roots.home), + store_relative(to, dest, roots.home), + ) else { + return false; + }; + is_declared_store(&to_rel) && strip_temp_suffix(&from_rel) == to_rel +} + +/// A removal is allowed for an engine temp file of a declared store, or a file +/// the engine keeps under `~/.harness/backups/` outside the quarantine and any +/// `.git` directory. Quarantined files are not deleted from the webview. +fn remove_allowed(original: &str, resolved: &Path, roots: &Roots) -> bool { + if temp_in_roots(original, resolved, roots) { + return true; + } + if has_git_component(resolved) { + return false; + } + store_relative(original, resolved, roots.home).is_some_and(|rel| { + rel.starts_with(BACKUPS_PREFIX) + && !rel.starts_with(QUARANTINE_PREFIX) + && is_declared_store(&rel) + }) +} + +/// The source must be an existing regular file: not a symlink, not a directory. +fn require_regular_file(resolved: &Path, shown: &str) -> Result<(), String> { + let meta = fs::symlink_metadata(resolved).map_err(|e| format!("{shown}: {e}"))?; + if meta.file_type().is_symlink() { + return Err(format!("{shown}: refusing to act on a symlink")); + } + if !meta.is_file() { + return Err(format!("{shown}: refusing to act on a directory")); + } + Ok(()) +} + +fn guarded_write(path: &str, content: &str, roots: &Roots) -> Result<(), String> { + let target = resolve(path)?; + if !temp_in_roots(path, &target, roots) { + return Err(format!( + "{path}: the webview may only write the engine's {TEMP_MARKER} files beside a declared config store (home, or a declared project store inside a project root); never under .git or in the quarantine" + )); + } + match fs::symlink_metadata(&target) { + Ok(existing) if existing.file_type().is_symlink() || existing.is_dir() => { + return Err(format!("{path}: target is a symlink or directory")); + } + _ => {} + } + fs::write(&target, content).map_err(|e| format!("write {path}: {e}")) +} + +fn guarded_rename(from: &str, to: &str, roots: &Roots) -> Result<(), String> { + let source = resolve(from)?; + let dest = resolve(to)?; + if !rename_allowed(from, &source, to, &dest, roots) { + return Err(format!( + "{from} -> {to}: outside the moves this app may make (a temp file onto its own declared store)" + )); + } + require_regular_file(&source, from)?; + if let Ok(existing) = fs::symlink_metadata(&dest) { + if existing.file_type().is_symlink() || existing.is_dir() { + return Err(format!("{to}: destination is a symlink or directory")); + } + } + fs::rename(&source, &dest).map_err(|e| format!("rename {from} -> {to}: {e}")) +} + +/// Where a quarantined file goes, relative to the home directory. +const QUARANTINE_DIR: &str = ".harness/backups/quarantine"; +const QUARANTINE_PREFIX: &str = ".harness/backups/quarantine/"; + +/// The path a file keeps below its quarantine stamp: root-relative for a +/// declared project store inside a granted root, home-relative for a declared +/// home store. `None` for anything else, and for anything under `.git`. +fn quarantine_relative(original: &str, resolved: &Path, roots: &Roots) -> Option { + if has_git_component(resolved) { + return None; + } + if let Some(rel) = project_relative(resolved, roots).filter(|rel| project_store(rel)) { + return Some(rel); + } + store_relative(original, resolved, roots.home).filter(|rel| is_declared_store(rel)) +} + +/// Move a regular file to `~/.harness/backups/quarantine//` +/// instead of deleting it. Directories are created 0700; the file keeps its +/// mode. Rollback of a file the engine created has to remove it, and this keeps +/// the bytes recoverable if the webview asks for a store it should not lose. +fn quarantine(target: &Path, relative: &str, home: &Path) -> Result<(), String> { + let stamp = chrono::Utc::now().format("%Y%m%dT%H%M%S%.3fZ").to_string(); + let base = home.join(QUARANTINE_DIR); + let mut dest = base.join(&stamp).join(relative); + let mut n = 1; + while fs::symlink_metadata(&dest).is_ok() { + dest = base.join(format!("{stamp}-{n}")).join(relative); + n += 1; + } + let dir = dest.parent().ok_or("quarantine: no parent directory")?; + make_private_dirs(dir)?; + let real = dir.canonicalize().map_err(|e| format!("quarantine: {e}"))?; + if !real.starts_with(home) { + return Err("quarantine: directory resolves outside the home directory".to_string()); + } + if fs::rename(target, &dest).is_err() { + // Another volume (a project root): copy keeps the mode, then remove. + fs::copy(target, &dest).map_err(|e| format!("quarantine copy: {e}"))?; + fs::remove_file(target).map_err(|e| format!("quarantine remove: {e}"))?; + } + Ok(()) +} + +fn make_private_dirs(dir: &Path) -> Result<(), String> { + let mut builder = fs::DirBuilder::new(); + builder.recursive(true); + #[cfg(unix)] + { + use std::os::unix::fs::DirBuilderExt; + builder.mode(0o700); + } + builder + .create(dir) + .map_err(|e| format!("quarantine: {}: {e}", dir.display())) +} + +fn guarded_remove(path: &str, roots: &Roots) -> Result<(), String> { + let target = resolve(path)?; + if remove_allowed(path, &target, roots) { + require_regular_file(&target, path)?; + return fs::remove_file(&target).map_err(|e| format!("remove {path}: {e}")); + } + let Some(relative) = quarantine_relative(path, &target, roots) else { + return Err(format!( + "{path}: outside the roots this app may modify (only declared home and project stores can be removed, never under .git)" + )); + }; + require_regular_file(&target, path)?; + quarantine(&target, &relative, roots.home) +} + +fn home() -> Result { + let home = dirs::home_dir().ok_or("Could not resolve home directory")?; + Ok(home.canonicalize().unwrap_or(home)) +} + +/// Write one engine temp file (`.harness-tmp-`). Never a store. +#[tauri::command] +pub fn guarded_write_file(path: String, content: String) -> Result<(), String> { + let home = home()?; + guarded_write(&path, &content, &Roots { home: &home, granted: &granted_root_for }) +} + +/// Rename one regular file: a temp file onto its own declared store (home, or +/// a project store inside one granted root). +#[tauri::command] +pub fn guarded_rename_file(from: String, to: String) -> Result<(), String> { + let home = home()?; + guarded_rename(&from, &to, &Roots { home: &home, granted: &granted_root_for }) +} + +/// Remove one regular file: delete an engine temp file or a backup, move a +/// declared home or project store to quarantine. Never a directory, never +/// under `.git`. +#[tauri::command] +pub fn guarded_remove_file(path: String) -> Result<(), String> { + let home = home()?; + guarded_remove(&path, &Roots { home: &home, granted: &granted_root_for }) +} + +#[cfg(test)] +mod tests { + use super::*; + use std::os::unix::fs::symlink; + use tempfile::TempDir; + + const STORE: &str = ".claude/skills/review/SKILL.md"; + /// A second declared store; a file written under `STORE`'s tree must not + /// be renamed onto it. + const OTHER_STORE: &str = ".claude.json"; + + struct Fixture { + _tmp: TempDir, + home: PathBuf, + project: PathBuf, + outside: PathBuf, + } + + fn fixture() -> Fixture { + let tmp = tempfile::tempdir().unwrap(); + let base = tmp.path().canonicalize().unwrap(); + let home = base.join("home"); + let project = base.join("project"); + let outside = base.join("outside"); + for dir in [&home, &project, &outside] { + fs::create_dir_all(dir).unwrap(); + } + fs::create_dir_all(home.join(".claude/skills/review")).unwrap(); + Fixture { _tmp: tmp, home, project, outside } + } + + impl Fixture { + fn roots<'a>(&'a self, granted: &'a dyn Fn(&Path) -> Option) -> Roots<'a> { + Roots { home: &self.home, granted } + } + fn s(path: &Path) -> String { + path.to_string_lossy().into_owned() + } + fn temp(&self, rel: &str) -> PathBuf { + self.home.join(format!("{rel}{TEMP_MARKER}abc")) + } + } + + fn no_roots(_: &Path) -> Option { + None + } + + fn root_at(root: &Path) -> impl Fn(&Path) -> Option { + let root = root.to_path_buf(); + move |p: &Path| p.starts_with(&root).then(|| root.clone()) + } + + fn project_granted(f: &Fixture) -> impl Fn(&Path) -> Option { + root_at(&f.project) + } + + #[test] + fn declared_other_store_is_really_declared() { + assert!(is_declared_store(STORE)); + assert!(is_declared_store(OTHER_STORE)); + } + + #[test] + fn rename_declared_store_temp_over_store() { + let f = fixture(); + let store = f.home.join(STORE); + let temp = f.temp(STORE); + fs::write(&store, "old").unwrap(); + fs::write(&temp, "new").unwrap(); + guarded_rename(&Fixture::s(&temp), &Fixture::s(&store), &f.roots(&no_roots)).unwrap(); + assert_eq!(fs::read_to_string(&store).unwrap(), "new"); + assert!(!temp.exists()); + } + + #[test] + fn rename_store_file_onto_another_store_refused() { + let f = fixture(); + let source = f.home.join(STORE); + let target = f.home.join(OTHER_STORE); + fs::write(&source, "{\"mcpServers\":{\"x\":{\"command\":\"evil\"}}}").unwrap(); + fs::write(&target, "{}").unwrap(); + let err = guarded_rename(&Fixture::s(&source), &Fixture::s(&target), &f.roots(&no_roots)) + .unwrap_err(); + assert!(err.contains("outside the moves"), "{err}"); + assert_eq!(fs::read_to_string(&target).unwrap(), "{}"); + assert!(source.exists()); + } + + #[test] + fn rename_temp_of_one_store_onto_another_store_refused() { + let f = fixture(); + let temp = f.temp(STORE); + let target = f.home.join(OTHER_STORE); + fs::write(&temp, "evil").unwrap(); + fs::write(&target, "{}").unwrap(); + assert!(guarded_rename(&Fixture::s(&temp), &Fixture::s(&target), &f.roots(&no_roots)).is_err()); + assert_eq!(fs::read_to_string(&target).unwrap(), "{}"); + assert!(temp.exists()); + } + + #[test] + fn rename_temp_onto_a_non_store_in_home_refused() { + let f = fixture(); + let temp = f.temp(STORE); + fs::write(&temp, "x").unwrap(); + let zshrc = f.home.join(".zshrc"); + assert!(guarded_rename(&Fixture::s(&temp), &Fixture::s(&zshrc), &f.roots(&no_roots)).is_err()); + assert!(!zshrc.exists()); + } + + #[test] + fn rename_inside_granted_project_root() { + let f = fixture(); + let temp = f.project.join(format!("AGENTS.md{TEMP_MARKER}1")); + let store = f.project.join("AGENTS.md"); + fs::write(&store, "old").unwrap(); + fs::write(&temp, "new").unwrap(); + let granted = project_granted(&f); + guarded_rename(&Fixture::s(&temp), &Fixture::s(&store), &f.roots(&granted)).unwrap(); + assert_eq!(fs::read_to_string(&store).unwrap(), "new"); + assert!(!temp.exists()); + } + + #[test] + fn plain_move_inside_a_granted_root_refused() { + let f = fixture(); + let a = f.project.join("a.txt"); + let b = f.project.join("b.txt"); + fs::write(&a, "x").unwrap(); + let granted = project_granted(&f); + assert!(guarded_rename(&Fixture::s(&a), &Fixture::s(&b), &f.roots(&granted)).is_err()); + assert!(a.exists() && !b.exists()); + } + + #[test] + fn rename_between_two_granted_roots_refused() { + let f = fixture(); + let other_root = f.outside.clone(); + let project = f.project.clone(); + let granted = move |p: &Path| { + [&project, &other_root] + .into_iter() + .find(|r| p.starts_with(r)) + .cloned() + }; + let a = f.project.join("a.txt"); + let b = f.outside.join("a.txt"); + fs::write(&a, "x").unwrap(); + assert!(guarded_rename(&Fixture::s(&a), &Fixture::s(&b), &f.roots(&granted)).is_err()); + assert!(a.exists() && !b.exists()); + } + + #[test] + fn rename_granted_root_file_onto_a_store_refused() { + let f = fixture(); + let a = f.project.join("a.txt"); + fs::write(&a, "x").unwrap(); + let target = f.home.join(OTHER_STORE); + fs::write(&target, "{}").unwrap(); + let granted = project_granted(&f); + assert!(guarded_rename(&Fixture::s(&a), &Fixture::s(&target), &f.roots(&granted)).is_err()); + assert_eq!(fs::read_to_string(&target).unwrap(), "{}"); + } + + #[test] + fn remove_declared_store_moves_it_to_quarantine() { + use std::os::unix::fs::PermissionsExt; + let f = fixture(); + let store = f.home.join(OTHER_STORE); + fs::write(&store, "{\"keep\":true}").unwrap(); + fs::set_permissions(&store, fs::Permissions::from_mode(0o600)).unwrap(); + let nested = f.home.join(STORE); + fs::write(&nested, "nested bytes").unwrap(); + for path in [&store, &nested] { + guarded_remove(&Fixture::s(path), &f.roots(&no_roots)).unwrap(); + assert!(!path.exists(), "original is gone"); + } + let quarantine = f.home.join(QUARANTINE_DIR); + let files = walk(&quarantine); + let find = |suffix: &str| files.iter().find(|p| p.ends_with(suffix)).unwrap().clone(); + let kept = find(OTHER_STORE); + assert_eq!(fs::read_to_string(&kept).unwrap(), "{\"keep\":true}"); + assert_eq!(fs::metadata(&kept).unwrap().permissions().mode() & 0o777, 0o600); + assert_eq!(fs::read_to_string(find(STORE)).unwrap(), "nested bytes"); + let stamp_dir = kept.parent().unwrap(); + assert_eq!(fs::metadata(stamp_dir).unwrap().permissions().mode() & 0o777, 0o700); + } + + #[test] + fn removing_a_quarantined_file_never_deletes_its_bytes() { + let f = fixture(); + let store = f.home.join(OTHER_STORE); + fs::write(&store, "precious").unwrap(); + guarded_remove(&Fixture::s(&store), &f.roots(&no_roots)).unwrap(); + let held = walk(&f.home.join(QUARANTINE_DIR)).pop().unwrap(); + let _ = guarded_remove(&Fixture::s(&held), &f.roots(&no_roots)); + let bodies: Vec = walk(&f.home.join(QUARANTINE_DIR)) + .into_iter() + .map(|p| fs::read_to_string(p).unwrap()) + .collect(); + assert_eq!(bodies, ["precious"], "the quarantined bytes survive a remove"); + } + + #[test] + fn removing_the_same_store_twice_keeps_both_copies() { + let f = fixture(); + let store = f.home.join(OTHER_STORE); + for body in ["one", "two"] { + fs::write(&store, body).unwrap(); + guarded_remove(&Fixture::s(&store), &f.roots(&no_roots)).unwrap(); + } + let mut bodies: Vec = Vec::new(); + for stamp in fs::read_dir(f.home.join(QUARANTINE_DIR)).unwrap() { + let dir = stamp.unwrap().path(); + for entry in walk(&dir) { + bodies.push(fs::read_to_string(entry).unwrap()); + } + } + bodies.sort(); + assert_eq!(bodies, ["one", "two"]); + } + + fn walk(dir: &Path) -> Vec { + let mut out = Vec::new(); + for e in fs::read_dir(dir).unwrap() { + let p = e.unwrap().path(); + if p.is_dir() { out.extend(walk(&p)) } else { out.push(p) } + } + out + } + + #[test] + fn remove_undeclared_directory_and_symlinked_store_still_refused() { + let f = fixture(); + let dir = f.home.join(".claude/skills/review/sub"); + fs::create_dir_all(&dir).unwrap(); + assert!(guarded_remove(&Fixture::s(&dir), &f.roots(&no_roots)).is_err()); + assert!(dir.exists()); + let target = f.outside.join("t"); + fs::write(&target, "t").unwrap(); + let link = f.home.join(OTHER_STORE); + symlink(&target, &link).unwrap(); + assert!(guarded_remove(&Fixture::s(&link), &f.roots(&no_roots)).is_err()); + assert!(fs::symlink_metadata(&link).is_ok() && target.exists()); + } + + #[test] + fn remove_store_temp_and_backup() { + let f = fixture(); + let temp = f.temp(STORE); + fs::write(&temp, "x").unwrap(); + let backups = f.home.join(".harness/backups/2026-01-01"); + fs::create_dir_all(&backups).unwrap(); + let backup = backups.join("transaction.json"); + fs::write(&backup, "{}").unwrap(); + guarded_remove(&Fixture::s(&temp), &f.roots(&no_roots)).unwrap(); + guarded_remove(&Fixture::s(&backup), &f.roots(&no_roots)).unwrap(); + assert!(!temp.exists() && !backup.exists()); + } + + #[test] + fn remove_in_granted_root_deletes_temp_files_and_quarantines_the_rest() { + let f = fixture(); + let plain = f.project.join(".claude/skills/keep/SKILL.md"); + fs::create_dir_all(plain.parent().unwrap()).unwrap(); + let temp = f.project.join(format!("AGENTS.md{TEMP_MARKER}1")); + fs::write(&plain, "precious").unwrap(); + fs::write(&temp, "x").unwrap(); + let granted = project_granted(&f); + guarded_remove(&Fixture::s(&plain), &f.roots(&granted)).unwrap(); + assert!(!plain.exists()); + let stamp = fs::read_dir(f.home.join(QUARANTINE_DIR)).unwrap().next().unwrap().unwrap().path(); + assert_eq!(fs::read_to_string(stamp.join(".claude/skills/keep/SKILL.md")).unwrap(), "precious"); + guarded_remove(&Fixture::s(&temp), &f.roots(&granted)).unwrap(); + assert!(!temp.exists()); + assert_eq!(walk(&f.home.join(QUARANTINE_DIR)).len(), 1, "a temp file is deleted, not quarantined"); + } + + #[test] + fn remove_outside_roots_refused() { + let f = fixture(); + let victim = f.outside.join(format!("victim.txt{TEMP_MARKER}1")); + fs::write(&victim, "x").unwrap(); + let granted = project_granted(&f); + let err = guarded_remove(&Fixture::s(&victim), &f.roots(&granted)).unwrap_err(); + assert!(err.contains("outside the roots"), "{err}"); + assert!(victim.exists()); + } + + #[test] + fn remove_undeclared_home_file_refused() { + let f = fixture(); + let zshrc = f.home.join(".zshrc"); + fs::write(&zshrc, "x").unwrap(); + assert!(guarded_remove(&Fixture::s(&zshrc), &f.roots(&no_roots)).is_err()); + assert!(zshrc.exists()); + } + + #[test] + fn write_store_temp_ok_and_the_store_itself_refused() { + let f = fixture(); + let temp = f.temp(STORE); + guarded_write(&Fixture::s(&temp), "new", &f.roots(&no_roots)).unwrap(); + assert_eq!(fs::read_to_string(&temp).unwrap(), "new"); + + let store = f.home.join(OTHER_STORE); + fs::write(&store, "{}").unwrap(); + let err = guarded_write(&Fixture::s(&store), "evil", &f.roots(&no_roots)).unwrap_err(); + assert!(err.contains("may only write"), "{err}"); + assert_eq!(fs::read_to_string(&store).unwrap(), "{}"); + } + + #[test] + fn write_temp_of_an_undeclared_name_refused() { + let f = fixture(); + let temp = f.home.join(format!(".zshrc{TEMP_MARKER}1")); + assert!(guarded_write(&Fixture::s(&temp), "x", &f.roots(&no_roots)).is_err()); + assert!(!temp.exists()); + // The bare name of a store is never writable, declared or not. + let bare = f.home.join(".claude/settings.json"); + assert!(guarded_write(&Fixture::s(&bare), "x", &f.roots(&no_roots)).is_err()); + assert!(!bare.exists()); + } + + #[test] + fn write_inside_granted_root_only_temp_files() { + let f = fixture(); + let granted = project_granted(&f); + let temp = f.project.join(format!("AGENTS.md{TEMP_MARKER}1")); + guarded_write(&Fixture::s(&temp), "x", &f.roots(&granted)).unwrap(); + assert!(temp.exists()); + let plain = f.project.join("AGENTS.md"); + assert!(guarded_write(&Fixture::s(&plain), "x", &f.roots(&granted)).is_err()); + assert!(!plain.exists()); + let elsewhere = f.outside.join(format!("a.txt{TEMP_MARKER}1")); + assert!(guarded_write(&Fixture::s(&elsewhere), "x", &f.roots(&granted)).is_err()); + assert!(!elsewhere.exists()); + } + + #[test] + fn write_through_a_symlinked_temp_refused() { + let f = fixture(); + let target = f.outside.join("secret.txt"); + fs::write(&target, "secret").unwrap(); + let temp = f.temp(STORE); + symlink(&target, &temp).unwrap(); + assert!(guarded_write(&Fixture::s(&temp), "evil", &f.roots(&no_roots)).is_err()); + assert_eq!(fs::read_to_string(&target).unwrap(), "secret"); + } + + #[test] + fn symlinked_claude_dir_still_accepts_store_rename_and_write() { + let tmp = tempfile::tempdir().unwrap(); + let base = tmp.path().canonicalize().unwrap(); + let home = base.join("home"); + let dotfiles = base.join("dotfiles/claude"); + fs::create_dir_all(&home).unwrap(); + fs::create_dir_all(dotfiles.join("skills/review")).unwrap(); + symlink(&dotfiles, home.join(".claude")).unwrap(); + let roots = Roots { home: &home, granted: &no_roots }; + + let store = home.join(STORE); + let temp = home.join(format!("{STORE}{TEMP_MARKER}abc")); + fs::write(dotfiles.join("skills/review/SKILL.md"), "old").unwrap(); + guarded_write(&Fixture::s(&temp), "new", &roots).unwrap(); + guarded_rename(&Fixture::s(&temp), &Fixture::s(&store), &roots).unwrap(); + assert_eq!(fs::read_to_string(dotfiles.join("skills/review/SKILL.md")).unwrap(), "new"); + } + + #[test] + fn symlinked_subdirectory_leaving_the_top_dir_refused() { + let f = fixture(); + fs::remove_dir_all(f.home.join(".claude/skills/review")).unwrap(); + symlink(&f.outside, f.home.join(".claude/skills/review")).unwrap(); + let temp = f.temp(STORE); + assert!(guarded_write(&Fixture::s(&temp), "x", &f.roots(&no_roots)).is_err()); + assert!(!f.outside.join("SKILL.md.harness-tmp-abc").exists()); + } + + #[test] + fn rename_destination_outside_roots_refused() { + let f = fixture(); + let a = f.project.join("a.txt"); + fs::write(&a, "x").unwrap(); + let dest = f.outside.join("a.txt"); + let granted = project_granted(&f); + assert!(guarded_rename(&Fixture::s(&a), &Fixture::s(&dest), &f.roots(&granted)).is_err()); + assert!(a.exists() && !dest.exists()); + } + + #[test] + fn dotdot_escape_refused() { + let f = fixture(); + let victim = f.outside.join(format!("victim.txt{TEMP_MARKER}1")); + fs::write(&victim, "x").unwrap(); + let escape = format!("{}/../outside/victim.txt{TEMP_MARKER}1", Fixture::s(&f.project)); + let granted = project_granted(&f); + let err = guarded_remove(&escape, &f.roots(&granted)).unwrap_err(); + assert!(err.contains("'..'"), "{err}"); + assert!(victim.exists()); + } + + #[test] + fn relative_path_refused() { + let f = fixture(); + let granted = project_granted(&f); + assert!(guarded_remove("a.txt", &f.roots(&granted)).is_err()); + } + + #[test] + fn symlinked_ancestor_leaving_roots_refused() { + let f = fixture(); + let victim = f.outside.join(format!("victim.txt{TEMP_MARKER}1")); + fs::write(&victim, "x").unwrap(); + let link = f.project.join("link"); + symlink(&f.outside, &link).unwrap(); + let through = link.join(format!("victim.txt{TEMP_MARKER}1")); + let granted = project_granted(&f); + assert!(guarded_remove(&Fixture::s(&through), &f.roots(&granted)).is_err()); + assert!(victim.exists()); + } + + #[test] + fn symlink_source_refused_and_link_untouched() { + let f = fixture(); + let target = f.outside.join("secret.txt"); + fs::write(&target, "secret").unwrap(); + let link = f.project.join(format!("AGENTS.md{TEMP_MARKER}1")); + symlink(&target, &link).unwrap(); + let granted = project_granted(&f); + let dest = f.project.join("AGENTS.md"); + let err = guarded_rename(&Fixture::s(&link), &Fixture::s(&dest), &f.roots(&granted)) + .unwrap_err(); + assert!(err.contains("symlink"), "{err}"); + let err = guarded_remove(&Fixture::s(&link), &f.roots(&granted)).unwrap_err(); + assert!(err.contains("symlink"), "{err}"); + assert!(fs::symlink_metadata(&link).is_ok()); + assert!(target.exists() && !dest.exists()); + } + + #[test] + fn directory_remove_refused() { + let f = fixture(); + let dir = f.project.join(format!("AGENTS.md{TEMP_MARKER}1")); + fs::create_dir_all(dir.join("nested")).unwrap(); + fs::write(dir.join("nested/file.txt"), "x").unwrap(); + let granted = project_granted(&f); + let err = guarded_remove(&Fixture::s(&dir), &f.roots(&granted)).unwrap_err(); + assert!(err.contains("directory"), "{err}"); + assert!(dir.join("nested/file.txt").exists()); + } + + #[test] + fn directory_rename_refused() { + let f = fixture(); + let dir = f.project.join("tree"); + fs::create_dir_all(&dir).unwrap(); + let granted = project_granted(&f); + let dest = f.project.join("tree2"); + assert!(guarded_rename(&Fixture::s(&dir), &Fixture::s(&dest), &f.roots(&granted)).is_err()); + assert!(dir.exists()); + } + + fn ptemp(f: &Fixture, rel: &str) -> PathBuf { + let path = f.project.join(format!("{rel}{TEMP_MARKER}1")); + fs::create_dir_all(path.parent().unwrap()).unwrap(); + path + } + + #[test] + fn project_git_config_write_rename_and_remove_refused() { + let f = fixture(); + let granted = project_granted(&f); + let config = f.project.join(".git/config"); + fs::create_dir_all(config.parent().unwrap()).unwrap(); + fs::write(&config, "[core]\n").unwrap(); + let temp = ptemp(&f, ".git/config"); + let err = guarded_write(&Fixture::s(&temp), "[core]\nfsmonitor = evil", &f.roots(&granted)).unwrap_err(); + assert!(err.contains("may only write"), "{err}"); + assert!(!temp.exists()); + // Even a temp file that got there another way cannot be renamed onto it. + fs::write(&temp, "[core]\nfsmonitor = evil").unwrap(); + assert!(guarded_rename(&Fixture::s(&temp), &Fixture::s(&config), &f.roots(&granted)).is_err()); + assert!(guarded_remove(&Fixture::s(&temp), &f.roots(&granted)).is_err()); + assert!(guarded_remove(&Fixture::s(&config), &f.roots(&granted)).is_err()); + assert_eq!(fs::read_to_string(&config).unwrap(), "[core]\n"); + assert!(temp.exists()); + } + + #[test] + fn git_component_refused_even_under_a_declared_directory_in_home_and_project() { + let f = fixture(); + let granted = project_granted(&f); + let home_temp = f.home.join(format!(".claude/skills/review/.git/hooks/pre-commit{TEMP_MARKER}1")); + fs::create_dir_all(home_temp.parent().unwrap()).unwrap(); + assert!(guarded_write(&Fixture::s(&home_temp), "x", &f.roots(&no_roots)).is_err()); + let proj_temp = ptemp(&f, ".claude/skills/x/.GIT/config"); + assert!(guarded_write(&Fixture::s(&proj_temp), "x", &f.roots(&granted)).is_err()); + assert!(!home_temp.exists() && !proj_temp.exists()); + } + + #[test] + fn arbitrary_project_file_write_rename_and_remove_refused() { + let f = fixture(); + let granted = project_granted(&f); + let temp = ptemp(&f, "foo.txt"); + assert!(guarded_write(&Fixture::s(&temp), "x", &f.roots(&granted)).is_err()); + assert!(!temp.exists()); + fs::write(&temp, "x").unwrap(); + let dest = f.project.join("foo.txt"); + assert!(guarded_rename(&Fixture::s(&temp), &Fixture::s(&dest), &f.roots(&granted)).is_err()); + assert!(!dest.exists()); + assert!(guarded_remove(&Fixture::s(&temp), &f.roots(&granted)).is_err()); + assert!(temp.exists()); + fs::write(&dest, "keep").unwrap(); + assert!(guarded_remove(&Fixture::s(&dest), &f.roots(&granted)).is_err()); + assert_eq!(fs::read_to_string(&dest).unwrap(), "keep"); + // The project's own hooks file is not a store the app compiles to. + let settings = ptemp(&f, ".claude/settings.json"); + assert!(guarded_write(&Fixture::s(&settings), "x", &f.roots(&granted)).is_err()); + } + + #[test] + fn declared_project_outputs_write_then_rename_onto_their_own_store_only() { + let f = fixture(); + let granted = project_granted(&f); + for rel in ["AGENTS.md", ".mcp.json", ".claude/skills/review/SKILL.md"] { + let temp = ptemp(&f, rel); + let store = f.project.join(rel); + guarded_write(&Fixture::s(&temp), "new", &f.roots(&granted)).unwrap(); + guarded_rename(&Fixture::s(&temp), &Fixture::s(&store), &f.roots(&granted)).unwrap(); + assert_eq!(fs::read_to_string(&store).unwrap(), "new", "{rel}"); + } + // One store's temp cannot land on another store. + let temp = ptemp(&f, "AGENTS.md"); + fs::write(&temp, "evil").unwrap(); + let mcp = f.project.join(".mcp.json"); + assert!(guarded_rename(&Fixture::s(&temp), &Fixture::s(&mcp), &f.roots(&granted)).is_err()); + assert_eq!(fs::read_to_string(&mcp).unwrap(), "new"); + } + + #[test] + fn project_engine_backups_and_manifest_temp_files_are_writable() { + let f = fixture(); + let granted = project_granted(&f); + let temp = ptemp(&f, ".harness/backups/20260101/transaction.json"); + let manifest = f.project.join(".harness/backups/20260101/transaction.json"); + guarded_write(&Fixture::s(&temp), "{}", &f.roots(&granted)).unwrap(); + guarded_rename(&Fixture::s(&temp), &Fixture::s(&manifest), &f.roots(&granted)).unwrap(); + assert_eq!(fs::read_to_string(&manifest).unwrap(), "{}"); + } + + #[test] + fn writing_or_renaming_over_a_quarantined_file_never_changes_its_bytes() { + let f = fixture(); + let store = f.home.join(OTHER_STORE); + fs::write(&store, "precious").unwrap(); + guarded_remove(&Fixture::s(&store), &f.roots(&no_roots)).unwrap(); + let held = walk(&f.home.join(QUARANTINE_DIR)).pop().unwrap(); + let held_s = Fixture::s(&held); + let temp = PathBuf::from(format!("{held_s}{TEMP_MARKER}1")); + // Write a temp beside the quarantined file, then rename it over it. + let _ = guarded_write(&Fixture::s(&temp), "evil", &f.roots(&no_roots)); + fs::write(&temp, "evil").unwrap(); + assert!(guarded_rename(&Fixture::s(&temp), &held_s, &f.roots(&no_roots)).is_err()); + assert!(guarded_write(&held_s, "evil", &f.roots(&no_roots)).is_err()); + // The same through a granted root that happens to contain the quarantine. + let granted = root_at(&f.home.join(QUARANTINE_DIR)); + assert!(guarded_write(&Fixture::s(&temp), "evil", &f.roots(&granted)).is_err()); + assert!(guarded_rename(&Fixture::s(&temp), &held_s, &f.roots(&granted)).is_err()); + assert_eq!(fs::read_to_string(&held).unwrap(), "precious"); + } + + #[test] + fn temp_suffix_only_stripped_from_last_segment() { + assert_eq!(strip_temp_suffix(".claude.json.harness-tmp-9"), ".claude.json"); + assert_eq!( + strip_temp_suffix(".claude/skills/x.harness-tmp-1/y.md"), + ".claude/skills/x.harness-tmp-1/y.md" + ); + let f = fixture(); + let sneaky = f.home.join(".ssh/id_rsa.harness-tmp-1"); + fs::create_dir_all(sneaky.parent().unwrap()).unwrap(); + fs::write(&sneaky, "x").unwrap(); + assert!(guarded_remove(&Fixture::s(&sneaky), &f.roots(&no_roots)).is_err()); + } +} diff --git a/apps/desktop/src-tauri/src/commands/fs_scope.rs b/apps/desktop/src-tauri/src/commands/fs_scope.rs index cef7f5cf..a0990106 100644 --- a/apps/desktop/src-tauri/src/commands/fs_scope.rs +++ b/apps/desktop/src-tauri/src/commands/fs_scope.rs @@ -19,12 +19,19 @@ fn granted_roots() -> &'static Mutex> { /// Whether `candidate` is a granted root or lives inside one. pub(crate) fn is_granted_root(candidate: &Path) -> bool { - let Ok(roots) = granted_roots().lock() else { - return false; - }; + granted_root_for(candidate).is_some() +} + +/// The outermost granted root that is `candidate` or contains it. Two paths +/// with the same outermost root lie inside one granted root, which is the +/// test a move between them has to pass. +pub(crate) fn granted_root_for(candidate: &Path) -> Option { + let roots = granted_roots().lock().ok()?; roots .iter() - .any(|root| candidate == root || candidate.starts_with(root)) + .filter(|root| candidate == root.as_path() || candidate.starts_with(root)) + .min_by_key(|root| root.components().count()) + .cloned() } /// Record a canonical root as granted. Test-visible so the sync bridge's @@ -63,27 +70,71 @@ pub(crate) fn is_home_or_ancestor(candidate: &Path, home: &Path) -> bool { /// `$HOME/**`. Fleet/Drift's project scope is an arbitrary directory the user /// picked via a folder dialog (see SyncPage's `open({ directory: true })` and /// `getCurrentProjectDir()`), so it can't be listed ahead of time. This -/// command extends the runtime scope to cover exactly that directory, -/// in-memory only (not persisted to disk, not retroactively trusting any -/// other path) — it must be called again each launch before the project -/// scope is used. +/// command extends the runtime scope to cover exactly that directory +/// (not retroactively trusting any other path). The scope itself lasts one +/// launch, so this must be called again each launch before the project scope +/// is used; the user's pick is what persists: `picked-project-roots.json` +/// in the app data directory keeps it with no expiry, and a later grant of +/// that directory or one inside it is accepted without the dialog. /// /// This command is reachable from any webview JS, so it can't just trust the /// caller: it's the trust boundary the static scope tightening above exists /// to enforce. Reject any target that is the home directory or an ancestor /// of it (`/`, `/Users`, `~`, etc.) — granting one of those would silently /// recreate the `$HOME/**` grant this change removes, or worse. +/// +/// It also refuses any directory the user did not pick in the native folder +/// dialog (`choose_project_dir`, which opens that dialog from Rust). A webview +/// that could name any non-home directory would otherwise grant itself +/// `~/.ssh` or `~/Library`. A pick is remembered for the session and in the +/// app data directory, so a remembered project still works after a restart; +/// the webview cannot write that file. #[tauri::command] pub fn grant_project_scope(app: AppHandle, path: String) -> Result<(), String> { - let expanded = expand_tilde(&path); - let candidate = Path::new(&expanded); - let canonical: PathBuf = candidate + let canonical = canonical_project_dir(&path)?; + let picked = picked_roots_file(&app).map(|f| load_picked(&f)).unwrap_or_default(); + if !is_granted_root(&canonical) && !is_under_pick(&canonical, &picked) { + return Err( + "Refusing to grant scope over a directory that was not chosen in the folder dialog" + .to_string(), + ); + } + allow_and_remember(&app, canonical) +} + +/// Open the native folder dialog from Rust and grant scope to the pick. +/// The directory never passes through the webview before it is trusted. +/// Resolves `None` when the user cancels. +#[tauri::command] +pub async fn choose_project_dir(app: AppHandle) -> Result, String> { + use tauri_plugin_dialog::DialogExt; + let Some(picked) = app + .dialog() + .file() + .set_title("Select project directory") + .blocking_pick_folder() + else { + return Ok(None); + }; + let path = picked.into_path().map_err(|e| e.to_string())?; + let shown = path.to_string_lossy().into_owned(); + let canonical = canonical_project_dir(&shown)?; + if let Some(file) = picked_roots_file(&app) { + persist_pick(&file, &canonical); + } + allow_and_remember(&app, canonical)?; + Ok(Some(shown)) +} + +/// Canonical, existing directory that is not the home directory or an ancestor. +fn canonical_project_dir(path: &str) -> Result { + let expanded = expand_tilde(path); + let canonical: PathBuf = Path::new(&expanded) .canonicalize() .map_err(|e| format!("Project directory does not exist: {}", e))?; if !canonical.is_dir() { return Err("Project scope target is not a directory".to_string()); } - if let Some(home) = dirs::home_dir() { let canonical_home = home.canonicalize().unwrap_or(home); if is_home_or_ancestor(&canonical, &canonical_home) { @@ -93,7 +144,10 @@ pub fn grant_project_scope(app: AppHandle, path: String) -> Result<(), String> { ); } } + Ok(canonical) +} +fn allow_and_remember(app: &AppHandle, canonical: PathBuf) -> Result<(), String> { app.fs_scope() .allow_directory(&canonical, true) .map_err(|e| format!("Failed to grant project scope: {}", e))?; @@ -101,6 +155,40 @@ pub fn grant_project_scope(app: AppHandle, path: String) -> Result<(), String> { Ok(()) } +fn picked_roots_file(app: &AppHandle) -> Option { + use tauri::Manager; + app.path() + .app_data_dir() + .ok() + .map(|dir| dir.join("picked-project-roots.json")) +} + +fn load_picked(file: &Path) -> Vec { + std::fs::read_to_string(file) + .ok() + .and_then(|text| serde_json::from_str::>(&text).ok()) + .unwrap_or_default() +} + +/// Best effort: a failed write only means the user re-picks next launch. +fn persist_pick(file: &Path, canonical: &Path) { + let mut picked = load_picked(file); + if picked.iter().any(|p| p == canonical) { + return; + } + picked.push(canonical.to_path_buf()); + if let Some(parent) = file.parent() { + let _ = std::fs::create_dir_all(parent); + } + if let Ok(text) = serde_json::to_string(&picked) { + let _ = std::fs::write(file, text); + } +} + +fn is_under_pick(candidate: &Path, picked: &[PathBuf]) -> bool { + picked.iter().any(|root| candidate.starts_with(root)) +} + #[cfg(test)] mod tests { use super::*; @@ -150,6 +238,36 @@ mod tests { } } + #[test] + fn only_dialog_picked_directories_may_be_granted() { + let tmp = tempfile::tempdir().unwrap(); + let base = tmp.path().canonicalize().unwrap(); + let picked_dir = base.join("project"); + let sub = picked_dir.join("packages/app"); + let other = base.join("projectile"); + let file = base.join("state/picked.json"); + + assert!(load_picked(&file).is_empty()); + persist_pick(&file, &picked_dir); + persist_pick(&file, &picked_dir); // idempotent + let picked = load_picked(&file); + assert_eq!(picked, vec![picked_dir.clone()]); + + assert!(is_under_pick(&picked_dir, &picked)); + assert!(is_under_pick(&sub, &picked)); + assert!(!is_under_pick(&other, &picked), "name-prefix sibling is not under the pick"); + assert!(!is_under_pick(&base.join(".ssh"), &picked)); + assert!(!is_under_pick(&picked_dir, &[])); + } + + #[test] + fn corrupt_pick_file_grants_nothing() { + let tmp = tempfile::tempdir().unwrap(); + let file = tmp.path().join("picked.json"); + std::fs::write(&file, "not json").unwrap(); + assert!(load_picked(&file).is_empty()); + } + #[test] fn sibling_with_shared_name_prefix_is_allowed() { // /Users/exampleother must not be treated as an ancestor of diff --git a/apps/desktop/src-tauri/src/commands/git.rs b/apps/desktop/src-tauri/src/commands/git.rs index 7e62495f..b319e3cc 100644 --- a/apps/desktop/src-tauri/src/commands/git.rs +++ b/apps/desktop/src-tauri/src/commands/git.rs @@ -1,9 +1,8 @@ use serde::Serialize; +use std::path::{Path, PathBuf}; use tauri::AppHandle; use tauri_plugin_shell::ShellExt; -pub use super::types::FileDiffEntry; - // ── Types ─────────────────────────────────────────────────── #[derive(Debug, Serialize, Clone)] @@ -14,13 +13,6 @@ pub struct GitRepoInfo { pub branch: Option, } -#[derive(Debug, Serialize, Clone)] -#[serde(rename_all = "camelCase")] -pub struct WorktreeResult { - pub panel_id: String, - pub worktree_path: String, -} - #[derive(Debug, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct UpdateStatus { @@ -80,150 +72,6 @@ pub async fn check_git_repo(app: AppHandle, dir: String) -> Result, - commit: String, -) -> Result, String> { - let base_dir = format!("{}/.comparator-worktrees/{}", repo_dir, comparison_id); - let shell = app.shell(); - - let mut results = Vec::new(); - for panel_id in &panel_ids { - let worktree_path = format!("{}/{}", base_dir, panel_id); - - let output = shell.command("git") - .args(["worktree", "add", "-d", &worktree_path, &commit]) - .current_dir(&repo_dir) - .output() - .await - .map_err(|e| format!("Failed to create worktree for {}: {}", panel_id, e))?; - - if !output.status.success() { - let stderr = String::from_utf8_lossy(&output.stderr); - return Err(format!("Failed to create worktree for {}: {}", panel_id, stderr)); - } - - results.push(WorktreeResult { - panel_id: panel_id.clone(), - worktree_path, - }); - } - - Ok(results) -} - - -#[tauri::command] -pub async fn remove_worktrees( - app: AppHandle, - repo_dir: String, - comparison_id: String, -) -> Result<(), String> { - let base_dir = format!("{}/.comparator-worktrees/{}", repo_dir, comparison_id); - let shell = app.shell(); - - // List all worktrees and remove ones in our directory - let list_out = shell.command("git") - .args(["worktree", "list", "--porcelain"]) - .current_dir(&repo_dir) - .output() - .await - .map_err(|e| e.to_string())?; - - if list_out.status.success() { - let output = String::from_utf8_lossy(&list_out.stdout); - for line in output.lines() { - if let Some(path) = line.strip_prefix("worktree ") { - if path.starts_with(&base_dir) { - let _ = shell.command("git") - .args(["worktree", "remove", "--force", path]) - .current_dir(&repo_dir) - .output() - .await; - } - } - } - } - - // Clean up directory - let _ = std::fs::remove_dir_all(&base_dir); - - // Also try to remove parent .comparator-worktrees if empty - let parent = format!("{}/.comparator-worktrees", repo_dir); - let _ = std::fs::remove_dir(&parent); - - Ok(()) -} - -#[tauri::command] -pub async fn get_diff_against_commit( - app: AppHandle, - worktree_path: String, - base_commit: String, -) -> Result, String> { - // Validate base_commit to prevent flag injection (e.g. "--output=/tmp/evil") - if base_commit.starts_with('-') || !base_commit.chars().all(|c| c.is_alphanumeric() || "~^-_/.".contains(c)) { - return Err("Invalid base_commit reference".to_string()); - } - - let shell = app.shell(); - - // Get list of changed files - let name_status = shell.command("git") - .args(["diff", &base_commit, "--name-status"]) - .current_dir(&worktree_path) - .output() - .await - .map_err(|e| e.to_string())?; - - if !name_status.status.success() { - return Ok(vec![]); - } - - let output = String::from_utf8_lossy(&name_status.stdout); - let mut results = Vec::new(); - - for line in output.lines() { - let line = line.trim(); - if line.is_empty() { continue; } - - let parts: Vec<&str> = line.splitn(2, '\t').collect(); - if parts.len() < 2 { continue; } - - let change_type = match parts[0].chars().next() { - Some('A') => "added", - Some('M') => "modified", - Some('D') => "deleted", - Some('R') => "renamed", - _ => "modified", - }; - - let file_path = parts[1].to_string(); - - // Get the actual diff for this file - let diff_out = shell.command("git") - .args(["diff", &base_commit, "--", &file_path]) - .current_dir(&worktree_path) - .output() - .await - .map_err(|e| e.to_string())?; - - let diff_text = if diff_out.status.success() { - String::from_utf8_lossy(&diff_out.stdout).to_string() - } else { - String::new() - }; - - results.push(FileDiffEntry { file_path, diff_text, change_type: change_type.to_string() }); - } - - Ok(results) -} - /// Check whether a newer release is available on GitHub. /// /// Hits the GitHub Releases API — no local git repo required. @@ -291,10 +139,36 @@ pub async fn check_for_updates(app: AppHandle) -> UpdateStatus { } } +/// The checkout this binary was compiled from: `CARGO_MANIFEST_DIR` is +/// `/apps/desktop/src-tauri`. A shipped build points at a CI path that +/// does not exist on the user's machine, so rebuild is refused there. +fn build_checkout() -> PathBuf { + Path::new(env!("CARGO_MANIFEST_DIR")).join("../../..") +} + +/// `repo_path` comes from the webview, so it is not trusted: the only +/// directory the build may run in is the checkout this binary was built from. +/// Anything else would let webview JS run `pnpm install:desktop` (a package +/// script, so arbitrary code) in a directory of its choosing. +fn validate_rebuild_path(repo_path: &str, checkout: &Path) -> Result { + let requested = Path::new(repo_path) + .canonicalize() + .map_err(|e| format!("Repo path is not accessible: {}", e))?; + let expected = checkout + .canonicalize() + .map_err(|_| "This build was not made from a local checkout".to_string())?; + if requested != expected { + return Err("Refusing to rebuild: not the checkout this app was built from".to_string()); + } + Ok(requested) +} + /// Run `pnpm install:desktop` in the background and restart the app when done. /// No Terminal window — build runs silently, app relaunches automatically on success. #[tauri::command] pub async fn trigger_rebuild(app: AppHandle, repo_path: String) -> Result<(), String> { + let repo_path = validate_rebuild_path(&repo_path, &build_checkout())?; + // macOS GUI apps launch with a minimal PATH that omits Homebrew, nvm, pnpm, etc. // Use a login shell so the user's full shell environment (including pnpm) is available. // Use .current_dir() instead of interpolating the path into the shell string — this @@ -326,3 +200,32 @@ pub async fn trigger_rebuild(app: AppHandle, repo_path: String) -> Result<(), St Ok(()) // unreachable but satisfies the return type } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn rebuild_accepts_only_the_build_checkout() { + let tmp = tempfile::tempdir().unwrap(); + let checkout = tmp.path().join("checkout"); + let other = tmp.path().join("other"); + std::fs::create_dir_all(&checkout).unwrap(); + std::fs::create_dir_all(&other).unwrap(); + + assert!(validate_rebuild_path(checkout.to_str().unwrap(), &checkout).is_ok()); + let err = validate_rebuild_path(other.to_str().unwrap(), &checkout).unwrap_err(); + assert!(err.contains("not the checkout"), "{err}"); + // A `..` route to a different directory resolves before the comparison. + let sneaky = format!("{}/../other", checkout.display()); + assert!(validate_rebuild_path(&sneaky, &checkout).is_err()); + } + + #[test] + fn rebuild_refused_when_checkout_is_missing() { + let tmp = tempfile::tempdir().unwrap(); + let gone = tmp.path().join("gone"); + let err = validate_rebuild_path(tmp.path().to_str().unwrap(), &gone).unwrap_err(); + assert!(err.contains("local checkout"), "{err}"); + } +} diff --git a/apps/desktop/src-tauri/src/commands/harness_file.rs b/apps/desktop/src-tauri/src/commands/harness_file.rs index 4a8a33f2..5e1a84dc 100644 --- a/apps/desktop/src-tauri/src/commands/harness_file.rs +++ b/apps/desktop/src-tauri/src/commands/harness_file.rs @@ -1,5 +1,7 @@ use std::path::Path; +use super::surface_write::write_user_file; + /// Resolve the user's home directory. The `*_in` functions below take the /// home directory as a parameter so tests can pass a tempdir instead of /// mutating the process-global `HOME`. @@ -64,12 +66,21 @@ fn read_harness_file_in(home_raw: &Path) -> Result { /// Write content to ~/.claude/harness.yaml, creating the directory if needed. /// Returns the display path on success. +/// +/// `expected_sha256` is the digest of the file the page loaded from that path +/// (`None`: it did not exist). A mismatch is refused as "changed on disk"; the +/// old content is copied to `~/.harness/backups/user//.claude/harness.yaml` +/// and the file is replaced atomically (AC-50). #[tauri::command] -pub fn write_harness_file(content: String) -> Result { - write_harness_file_in(&home_dir()?, content) +pub fn write_harness_file(content: String, expected_sha256: Option) -> Result { + write_harness_file_in(&home_dir()?, content, expected_sha256.as_deref()) } -fn write_harness_file_in(home: &Path, content: String) -> Result { +fn write_harness_file_in( + home: &Path, + content: String, + expected_sha256: Option<&str>, +) -> Result { let claude_dir = home.join(".claude"); if !claude_dir.exists() { std::fs::create_dir_all(&claude_dir) @@ -77,8 +88,7 @@ fn write_harness_file_in(home: &Path, content: String) -> Result } let path = claude_dir.join("harness.yaml"); - std::fs::write(&path, content) - .map_err(|e| format!("Failed to write harness.yaml: {}", e))?; + write_user_file(&path, &content, expected_sha256)?; Ok("~/.claude/harness.yaml".to_string()) } @@ -173,12 +183,77 @@ mod tests { #[test] fn write_harness_file_creates_claude_dir_and_file() { let dir = TempDir::new().unwrap(); - let path = write_harness_file_in(dir.path(), "content: test".to_string()).unwrap(); + let path = write_harness_file_in(dir.path(), "content: test".to_string(), None).unwrap(); assert_eq!(path, "~/.claude/harness.yaml"); let written = std::fs::read_to_string(dir.path().join(".claude/harness.yaml")).unwrap(); assert_eq!(written, "content: test"); } + fn home_with_harness(content: &str) -> TempDir { + let dir = TempDir::new().unwrap(); + super::super::surface_write::set_test_home(dir.path()); + std::fs::create_dir(dir.path().join(".claude")).unwrap(); + std::fs::write(dir.path().join(".claude/harness.yaml"), content).unwrap(); + dir + } + + /// Backups of harness.yaml: under `~/.harness/backups/user`, never beside it. + fn harness_backups(home: &Path) -> Vec { + let beside = std::fs::read_dir(home.join(".claude")) + .unwrap() + .filter(|e| e.as_ref().unwrap().file_name().to_string_lossy().contains(".bak-")) + .count(); + assert_eq!(beside, 0, "a backup was written beside the file"); + super::super::surface_write::user_backups(home) + .into_iter() + .filter(|p| p.file_name().unwrap().to_string_lossy() == "harness.yaml") + .collect() + } + + #[test] + fn write_harness_file_matching_digest_writes_and_backs_up() { + let dir = home_with_harness("old: 1\n"); + let digest = super::super::surface_write::loaded_text_digest("old: 1\n"); + write_harness_file_in(dir.path(), "new: 2\n".to_string(), Some(&digest)).unwrap(); + let written = std::fs::read_to_string(dir.path().join(".claude/harness.yaml")).unwrap(); + assert_eq!(written, "new: 2\n"); + let backups = harness_backups(dir.path()); + assert_eq!(backups.len(), 1); + assert_eq!(std::fs::read_to_string(&backups[0]).unwrap(), "old: 1\n"); + } + + #[test] + fn write_harness_file_mismatched_digest_refuses() { + let dir = home_with_harness("edited elsewhere\n"); + let stale = super::super::surface_write::loaded_text_digest("loaded\n"); + let err = write_harness_file_in(dir.path(), "new\n".to_string(), Some(&stale)).unwrap_err(); + assert!(err.contains("changed on disk"), "{}", err); + let written = std::fs::read_to_string(dir.path().join(".claude/harness.yaml")).unwrap(); + assert_eq!(written, "edited elsewhere\n"); + assert!(harness_backups(dir.path()).is_empty()); + } + + #[test] + fn write_harness_file_none_digest_on_existing_file_refuses() { + let dir = home_with_harness("mine\n"); + let err = write_harness_file_in(dir.path(), "new\n".to_string(), None).unwrap_err(); + assert!(err.contains("changed on disk"), "{}", err); + let written = std::fs::read_to_string(dir.path().join(".claude/harness.yaml")).unwrap(); + assert_eq!(written, "mine\n"); + } + + #[cfg(unix)] + #[test] + fn write_harness_file_replaces_the_inode() { + use std::os::unix::fs::MetadataExt; + let dir = home_with_harness("old\n"); + let file = dir.path().join(".claude/harness.yaml"); + let before = std::fs::metadata(&file).unwrap().ino(); + let digest = super::super::surface_write::loaded_text_digest("old\n"); + write_harness_file_in(dir.path(), "new\n".to_string(), Some(&digest)).unwrap(); + assert_ne!(std::fs::metadata(&file).unwrap().ino(), before); + } + #[test] fn scan_claude_config_returns_none_when_files_absent() { let dir = TempDir::new().unwrap(); diff --git a/apps/desktop/src-tauri/src/commands/mod.rs b/apps/desktop/src-tauri/src/commands/mod.rs index 7e3f2d00..0697819b 100644 --- a/apps/desktop/src-tauri/src/commands/mod.rs +++ b/apps/desktop/src-tauri/src/commands/mod.rs @@ -24,3 +24,4 @@ pub mod comparator_panels; pub mod harnesses; pub mod feedback; pub mod fs_scope; +pub mod fs_guarded; diff --git a/apps/desktop/src-tauri/src/commands/plugin_explorer.rs b/apps/desktop/src-tauri/src/commands/plugin_explorer.rs index de4114d3..a76aeba3 100644 --- a/apps/desktop/src-tauri/src/commands/plugin_explorer.rs +++ b/apps/desktop/src-tauri/src/commands/plugin_explorer.rs @@ -183,24 +183,94 @@ pub fn read_plugin_file(file_path: String) -> Result { } #[tauri::command] -pub fn write_plugin_file(file_path: String, content: String) -> Result<(), String> { +pub fn write_plugin_file( + file_path: String, + content: String, + expected_sha256: Option, +) -> Result<(), String> { let path = validate_plugin_write_path(&file_path)?; - fs::write(path, content) - .map_err(|e| format!("Failed to write file: {}", e)) + // AC-50: changed-on-disk check, timestamped backup, atomic replace. + super::surface_write::write_user_file(&path, &content, expected_sha256.as_deref()) + .map(|_| ()) } /// Error text from `import_plugin_from_path` / `import_plugin_from_zip` is /// matched by prefix in apps/desktop/src/pages/harness/plugins/import-errors.ts /// to reword it for the Plugins page. Changing any of these strings breaks /// that rewording; `tests::import_error_prefixes_match_import_errors_ts` pins them. +/// +/// The webview never names the source. With `source_path` `None` the native +/// folder dialog opens here; with `Some`, the path must be one the user +/// dropped on the window, recorded by `record_dropped_paths` from the native +/// drag-drop event (and spent by this call). Resolves `None` when the user +/// cancels the dialog. #[tauri::command] -pub fn import_plugin_from_path(source_path: String) -> Result { - let plugins_dir = dirs::home_dir() +pub async fn import_plugin_from_path( + app: tauri::AppHandle, + source_path: Option, +) -> Result, String> { + use tauri_plugin_dialog::DialogExt; + let source = match source_path { + Some(path) => take_dropped(&path)?, + None => { + let Some(picked) = app + .dialog() + .file() + .set_title("Select plugin folder") + .blocking_pick_folder() + else { + return Ok(None); + }; + picked.into_path().map_err(|e| e.to_string())? + } + }; + import_plugin_into(&source.to_string_lossy(), &user_plugins_dir()?).map(Some) +} + +fn user_plugins_dir() -> Result { + Ok(dirs::home_dir() .ok_or("Could not resolve home directory")? .join(".claude") - .join("plugins"); - import_plugin_into(&source_path, &plugins_dir) + .join("plugins")) +} + +/// Paths the user dropped on the window, as reported by the OS to the native +/// layer. The webview hears about a drop too, but only a path recorded here +/// is accepted back from it, so it cannot name a folder or zip of its own. +fn dropped_paths() -> &'static std::sync::Mutex> { + static DROPPED: std::sync::OnceLock>> = std::sync::OnceLock::new(); + DROPPED.get_or_init(|| std::sync::Mutex::new(Vec::new())) +} + +/// Keep the most recent drops; a drop that is never imported must not pile up. +const MAX_REMEMBERED_DROPS: usize = 256; + +/// Called from the window's native drag-drop event (lib.rs). +pub(crate) fn record_dropped_paths(paths: &[PathBuf]) { + if let Ok(mut dropped) = dropped_paths().lock() { + for path in paths { + if !dropped.contains(path) { + dropped.push(path.clone()); + } + } + let excess = dropped.len().saturating_sub(MAX_REMEMBERED_DROPS); + dropped.drain(..excess); + } +} + +/// Spend one recorded drop. Refuses a path the OS never reported. +fn take_dropped(path: &str) -> Result { + let wanted = Path::new(path); + let mut dropped = dropped_paths() + .lock() + .map_err(|_| "Drop registry is unavailable".to_string())?; + match dropped.iter().position(|p| p == wanted) { + Some(i) => Ok(dropped.remove(i)), + None => Err(format!( + "Refusing to import {path}: it was not dropped on the window or chosen in the dialog" + )), + } } /// `import_plugin_from_path` with the destination `~/.claude/plugins` passed @@ -270,9 +340,48 @@ fn import_plugin_into(source_path: &str, plugins_dir: &Path) -> Result std::io::Result> { + use std::io::Read; + let copied = std::io::copy(&mut reader.take(max.saturating_add(1)), writer)?; + Ok(if copied > max { None } else { Some(copied) }) +} + +/// Same source rule as `import_plugin_from_path`: the zip is chosen in a +/// native dialog opened here (`None`), or is a path the user dropped on the +/// window (`Some`). #[tauri::command] -pub fn import_plugin_from_zip(zip_path: String) -> Result { - let zip_file = fs::File::open(&zip_path) +pub async fn import_plugin_from_zip( + app: tauri::AppHandle, + zip_path: Option, +) -> Result, String> { + use tauri_plugin_dialog::DialogExt; + let zip = match zip_path { + Some(path) => take_dropped(&path)?, + None => { + let Some(picked) = app + .dialog() + .file() + .set_title("Select plugin zip") + .add_filter("Plugin zip", &["zip"]) + .blocking_pick_file() + else { + return Ok(None); + }; + picked.into_path().map_err(|e| e.to_string())? + } + }; + import_zip_at(&zip.to_string_lossy()).map(Some) +} + +fn import_zip_at(zip_path: &str) -> Result { + let zip_file = fs::File::open(zip_path) .map_err(|e| format!("Failed to open zip: {}", e))?; let mut archive = zip::ZipArchive::new(zip_file) @@ -285,6 +394,7 @@ pub fn import_plugin_from_zip(zip_path: String) -> Result MAX_ENTRIES { let _ = fs::remove_dir_all(&temp_dir); @@ -321,8 +431,20 @@ pub fn import_plugin_from_zip(zip_path: String) -> Result n, + Ok(None) => { + let _ = fs::remove_dir_all(&temp_dir); + return Err(format!("Zip entry too large when extracted: {}", entry_name)); + } + Err(e) => { + let _ = fs::remove_dir_all(&temp_dir); + return Err(format!("Failed to extract file: {}", e)); + } + }; total_extracted += bytes_written; if total_extracted > MAX_EXTRACTED_BYTES { let _ = fs::remove_dir_all(&temp_dir); @@ -335,7 +457,8 @@ pub fn import_plugin_from_zip(zip_path: String) -> Result Result Result<(), String> { - // Validate plugin_path is within the plugins directory +pub async fn export_plugin_as_zip( + app: tauri::AppHandle, + plugin_path: String, +) -> Result { + use tauri_plugin_dialog::DialogExt; let validated = validate_plugin_path(&plugin_path)?; - let source = validated.as_path(); + let default_name = format!( + "{}.zip", + validated + .file_name() + .map(|n| n.to_string_lossy().into_owned()) + .unwrap_or_else(|| "plugin".to_string()) + ); + let Some(picked) = app + .dialog() + .file() + .set_title("Export plugin as zip") + .set_file_name(default_name) + .blocking_save_file() + else { + return Ok(false); + }; + let save_path = picked.into_path().map_err(|e| e.to_string())?; + write_plugin_zip(&validated, &save_path)?; + Ok(true) +} + +fn write_plugin_zip(source: &Path, save_path: &Path) -> Result<(), String> { if !source.is_dir() { - return Err(format!("Not a directory: {}", plugin_path)); + return Err(format!("Not a directory: {}", source.display())); } - let file = fs::File::create(&save_path) + let file = fs::File::create(save_path) .map_err(|e| format!("Failed to create zip file: {}", e))?; let mut zip_writer = zip::ZipWriter::new(file); @@ -397,20 +547,38 @@ pub fn export_plugin_as_zip(plugin_path: String, save_path: String) -> Result<() Ok(()) } +/// Export a plugin into a folder chosen in a native folder dialog opened +/// here, never named by the webview. Resolves `false` when the user cancels. #[tauri::command] -pub fn export_plugin_to_folder(plugin_path: String, dest: String) -> Result<(), String> { - // Validate plugin_path is within the plugins directory +pub async fn export_plugin_to_folder( + app: tauri::AppHandle, + plugin_path: String, +) -> Result { + use tauri_plugin_dialog::DialogExt; let validated = validate_plugin_path(&plugin_path)?; - let source = validated.as_path(); + let Some(picked) = app + .dialog() + .file() + .set_title("Export plugin to folder") + .blocking_pick_folder() + else { + return Ok(false); + }; + let dest = picked.into_path().map_err(|e| e.to_string())?; + copy_plugin_to_folder(&validated, &dest)?; + Ok(true) +} + +fn copy_plugin_to_folder(source: &Path, dest: &Path) -> Result<(), String> { if !source.is_dir() { - return Err(format!("Not a directory: {}", plugin_path)); + return Err(format!("Not a directory: {}", source.display())); } // Create a named subdirectory to avoid merging into an existing folder let dir_name = source.file_name() .map(|n| n.to_string_lossy().to_string()) .unwrap_or_else(|| "plugin".to_string()); - let destination = Path::new(&dest).join(dir_name); + let destination = dest.join(dir_name); if destination.exists() { return Err(format!("Destination already exists: {}", destination.display())); @@ -526,6 +694,31 @@ mod tests { fs::write(dir.join(".claude-plugin").join("plugin.json"), json).unwrap(); } + #[test] + fn copy_capped_refuses_an_entry_over_the_limit() { + let data = vec![7u8; 11]; + let mut out = Vec::new(); + assert_eq!(copy_capped(&mut data.as_slice(), &mut out, 10).unwrap(), None); + // Never wrote more than limit + 1 bytes of an unbounded stream. + assert!(out.len() <= 11); + } + + #[test] + fn copy_capped_stops_reading_an_endless_stream() { + let mut endless = std::io::repeat(0u8); + let mut out = Vec::new(); + assert_eq!(copy_capped(&mut endless, &mut out, 1024).unwrap(), None); + assert_eq!(out.len(), 1025); + } + + #[test] + fn copy_capped_accepts_an_entry_at_the_limit() { + let data = vec![7u8; 10]; + let mut out = Vec::new(); + assert_eq!(copy_capped(&mut data.as_slice(), &mut out, 10).unwrap(), Some(10)); + assert_eq!(out, data); + } + /// apps/desktop/src/pages/harness/plugins/import-errors.ts matches these /// prefixes to reword import failures. If one changes here, update the /// matching regex there (and this test) in the same commit. @@ -579,16 +772,64 @@ mod tests { // /^Failed to (open|read) zip/ let missing_zip = tmp.path().join("missing.zip"); - assert!(import_plugin_from_zip(missing_zip.to_string_lossy().to_string()) + assert!(import_zip_at(&missing_zip.to_string_lossy()) .unwrap_err() .starts_with("Failed to open zip: ")); let not_zip = tmp.path().join("not.zip"); fs::write(¬_zip, "not a zip").unwrap(); - assert!(import_plugin_from_zip(not_zip.to_string_lossy().to_string()) + assert!(import_zip_at(¬_zip.to_string_lossy()) .unwrap_err() .starts_with("Failed to read zip archive: ")); } + #[test] + fn only_a_path_the_os_dropped_can_be_imported_and_only_once() { + let tmp = TempDir::new().unwrap(); + let dropped = tmp.path().join("dropped-plugin"); + let invented = tmp.path().join("webview-invented"); + record_dropped_paths(&[dropped.clone()]); + + let err = take_dropped(&invented.to_string_lossy()).unwrap_err(); + assert!(err.starts_with("Refusing to import"), "{err}"); + assert_eq!(take_dropped(&dropped.to_string_lossy()).unwrap(), dropped); + assert!( + take_dropped(&dropped.to_string_lossy()).is_err(), + "a drop is spent by the import it authorises" + ); + } + + #[test] + fn remembered_drops_are_capped() { + let tmp = TempDir::new().unwrap(); + let first = tmp.path().join("first"); + record_dropped_paths(&[first.clone()]); + let flood: Vec = (0..MAX_REMEMBERED_DROPS + 5) + .map(|i| tmp.path().join(format!("flood-{i}"))) + .collect(); + record_dropped_paths(&flood); + assert!(take_dropped(&first.to_string_lossy()).is_err()); + let last = flood.last().unwrap(); + assert_eq!(&take_dropped(&last.to_string_lossy()).unwrap(), last); + } + + #[test] + fn export_helpers_write_zip_and_folder_copy() { + let tmp = TempDir::new().unwrap(); + let src = tmp.path().join("demo"); + write_manifest(&src, r#"{"name":"demo","version":"1.0.0"}"#); + + let zip_path = tmp.path().join("out.zip"); + write_plugin_zip(&src, &zip_path).unwrap(); + assert!(zip_path.metadata().unwrap().len() > 0); + + let dest = tmp.path().join("dest"); + fs::create_dir_all(&dest).unwrap(); + copy_plugin_to_folder(&src, &dest).unwrap(); + assert!(dest.join("demo/.claude-plugin/plugin.json").is_file()); + // A second export never merges into the existing folder. + assert!(copy_plugin_to_folder(&src, &dest).unwrap_err().starts_with("Destination already exists")); + } + #[test] fn import_plugin_from_zip_keeps_entries_inside_the_extraction_dir() { use std::io::Write; @@ -615,7 +856,7 @@ mod tests { }; let before = leftovers(&std::env::temp_dir()); - let err = import_plugin_from_zip(zip_path.to_string_lossy().to_string()).unwrap_err(); + let err = import_zip_at(&zip_path.to_string_lossy()).unwrap_err(); assert_eq!(err, "Could not find .claude-plugin/plugin.json in extracted archive"); assert!(!escaped.exists(), "zip entry escaped the extraction directory"); diff --git a/apps/desktop/src-tauri/src/commands/plugins.rs b/apps/desktop/src-tauri/src/commands/plugins.rs index 4c3b21d9..d419a9e2 100644 --- a/apps/desktop/src-tauri/src/commands/plugins.rs +++ b/apps/desktop/src-tauri/src/commands/plugins.rs @@ -1,3 +1,4 @@ +use super::surface_write::{precondition_digest, write_user_file}; use serde::{Deserialize, Serialize}; use std::collections::HashMap; @@ -259,57 +260,158 @@ pub fn uninstall_plugin(name: String) -> Result<(), String> { uninstall_plugin_in(&claude_dir()?, name) } +const RESERVED_PLUGIN_NAMES: [&str; 3] = ["cache", "data", "marketplaces"]; + +/// Reject names that are empty, `.`/`..`, reserved directory names, or contain +/// path separators. Applied to the whole argument and to its name part. +fn validate_plugin_name(part: &str) -> Result<(), String> { + let trimmed = part.trim(); + if trimmed.is_empty() || trimmed == "." || trimmed == ".." { + return Err(format!("Invalid plugin name: {:?}", part)); + } + if trimmed.contains('/') || trimmed.contains('\\') || trimmed.contains("..") { + return Err(format!("Invalid plugin name: {:?}", part)); + } + if RESERVED_PLUGIN_NAMES.contains(&trimmed) { + return Err(format!("Refusing to uninstall reserved name {:?}", part)); + } + Ok(()) +} + +/// Find `name` among the `installed_plugins.json` keys. Only the full +/// `name@marketplace` key matches: a bare name is refused, because it would +/// pick a record the caller did not name when two marketplaces ship the same +/// plugin. +fn resolve_plugin_key( + plugins: &serde_json::Map, + name: &str, +) -> Result, String> { + if !name.contains('@') { + return Err(format!( + "Plugin {:?} must be given as its full name@marketplace key", + name + )); + } + Ok(plugins.contains_key(name).then(|| name.to_string())) +} + +/// Split a full key into its name and marketplace parts, each of which must +/// be a single safe path segment: they name the one directory +/// (`cache//`) an uninstall may delete. +fn split_plugin_key(key: &str) -> Result<(&str, &str), String> { + let (name, marketplace) = key + .split_once('@') + .ok_or_else(|| format!("Plugin {:?} must be given as its full name@marketplace key", key))?; + validate_plugin_name(name)?; + let trimmed = marketplace.trim(); + if trimmed.is_empty() + || trimmed == "." + || trimmed == ".." + || marketplace != trimmed + || marketplace.contains(['/', '\\']) + || marketplace.contains("..") + { + return Err(format!("Invalid marketplace name: {:?}", marketplace)); + } + Ok((name, marketplace)) +} + fn uninstall_plugin_in(claude_dir: &std::path::Path, name: String) -> Result<(), String> { - // Validate name doesn't contain path traversal characters - if name.contains('/') || name.contains('\\') || name.contains("..") { - return Err("Invalid plugin name".to_string()); + uninstall_plugin_with(claude_dir, name, || {}) +} + +/// As above; `before_write` runs after the file was read and every path +/// validated, just before the record is rewritten (a test seam for a +/// concurrent writer). +fn uninstall_plugin_with( + claude_dir: &std::path::Path, + name: String, + before_write: impl FnOnce(), +) -> Result<(), String> { + validate_plugin_name(&name)?; + if let Some(base) = name.find('@').map(|i| &name[..i]) { + validate_plugin_name(base)?; } let plugins_dir = claude_dir.join("plugins"); + let json_path = plugins_dir.join("installed_plugins.json"); + if !json_path.exists() { + return Ok(()); + } + + let contents = std::fs::read_to_string(&json_path) + .map_err(|e| format!("Failed to read installed_plugins.json: {}", e))?; + let mut data: serde_json::Value = serde_json::from_str(&contents) + .map_err(|e| format!("Failed to parse installed_plugins.json: {}", e))?; + + let key = match data + .get("plugins") + .and_then(|p| p.as_object()) + .map(|p| resolve_plugin_key(p, &name)) + .transpose()? + .flatten() + { + Some(k) => k, + None => return Ok(()), + }; - // Remove plugin directory — canonicalize before removal to block symlink traversal - let plugin_dir = plugins_dir.join(&name); - if plugin_dir.exists() { - let canonical = plugin_dir.canonicalize() + // Delete only this record's own installPath, and only when it resolves to + // plugins/cache// or beneath it, with marketplace and + // name taken from the key. Canonicalize first to block symlinks and `..`. + let (key_name, key_marketplace) = split_plugin_key(&key)?; + let install_paths: Vec = data["plugins"][&key] + .as_array() + .map(|records| { + records + .iter() + .filter_map(|r| r.get("installPath").and_then(|p| p.as_str())) + .map(String::from) + .collect() + }) + .unwrap_or_default(); + + let own_dir = plugins_dir.join("cache").join(key_marketplace).join(key_name); + let mut to_remove = Vec::new(); + for install_path in &install_paths { + let path = std::path::Path::new(install_path); + if !path.exists() { + continue; + } + let canonical = path.canonicalize() .map_err(|e| format!("Invalid plugin path: {}", e))?; - let canonical_plugins = plugins_dir.canonicalize() - .map_err(|e| format!("Invalid plugins dir: {}", e))?; - if !canonical.starts_with(&canonical_plugins) { - return Err("Access denied: plugin path outside plugins directory".to_string()); + let canonical_own = own_dir.canonicalize() + .map_err(|e| format!("Invalid plugin cache dir: {}", e))?; + if !canonical.starts_with(&canonical_own) { + return Err(format!( + "Access denied: plugin path is not inside plugins/cache/{}/{}", + key_marketplace, key_name + )); } - std::fs::remove_dir_all(&canonical) - .map_err(|e| format!("Failed to remove plugin directory: {}", e))?; + to_remove.push(canonical); } - - // Remove from installed_plugins.json - let json_path = plugins_dir.join("installed_plugins.json"); - if json_path.exists() { - let contents = std::fs::read_to_string(&json_path) - .map_err(|e| format!("Failed to read installed_plugins.json: {}", e))?; - let mut data: serde_json::Value = serde_json::from_str(&contents) - .map_err(|e| format!("Failed to parse installed_plugins.json: {}", e))?; - - if let Some(plugins) = data.get_mut("plugins").and_then(|p| p.as_object_mut()) { - // Remove any key matching the name (with or without @marketplace suffix) - let keys_to_remove: Vec = plugins - .keys() - .filter(|k| { - let base = k.find('@').map_or(k.as_str(), |i| &k[..i]); - base == name - }) - .cloned() - .collect(); - for key in keys_to_remove { - plugins.remove(&key); - } - } - - let serialized = serde_json::to_string_pretty(&data).unwrap(); - let tmp_path = json_path.with_extension("json.tmp"); - std::fs::write(&tmp_path, &serialized) - .map_err(|e| format!("Failed to write installed_plugins.json: {}", e))?; - std::fs::rename(&tmp_path, &json_path) - .map_err(|e| format!("Failed to finalize installed_plugins.json: {}", e))?; + // Every path is validated above. Remove the record first: if that write is + // refused (the file changed since it was read; the claude CLI also writes + // it), nothing has been deleted. + if let Some(plugins) = data.get_mut("plugins").and_then(|p| p.as_object_mut()) { + plugins.remove(&key); + } + let serialized = serde_json::to_string_pretty(&data) + .map_err(|e| format!("Failed to serialize installed_plugins.json: {}", e))?; + let loaded = precondition_digest(contents.as_bytes()); + before_write(); + write_user_file(&json_path, &serialized, Some(&loaded)) + .map_err(|e| format!("Failed to write installed_plugins.json: {}", e))?; + + // The record is gone; a failed delete leaves a directory with no record, + // so name it. + for canonical in to_remove { + std::fs::remove_dir_all(&canonical).map_err(|e| { + format!( + "Plugin removed from installed_plugins.json, but its directory {} could not be deleted: {}", + canonical.display(), + e + ) + })?; } Ok(()) @@ -357,4 +459,241 @@ mod tests { assert_eq!(result[2].name, "research"); assert_eq!(result[2].version, "0.3.0"); } + + // --- uninstall_plugin_in --- + + /// Build `/.claude/plugins` with a cache dir, a sentinel file in the + /// plugins dir and the given installed_plugins.json body. + fn uninstall_fixture(json: &str) -> (TempDir, std::path::PathBuf) { + let dir = TempDir::new().unwrap(); + let claude = dir.path().join(".claude"); + let plugins = claude.join("plugins"); + std::fs::create_dir_all(plugins.join("cache")).unwrap(); + std::fs::write(plugins.join("cache").join("keep.txt"), "x").unwrap(); + std::fs::write(plugins.join("installed_plugins.json"), json).unwrap(); + (dir, claude) + } + + fn make_install(claude: &std::path::Path, rel: &str) -> std::path::PathBuf { + let p = claude.join("plugins").join("cache").join(rel); + std::fs::create_dir_all(&p).unwrap(); + std::fs::write(p.join("marker"), "x").unwrap(); + p + } + + fn record(path: &std::path::Path) -> String { + format!( + r#"[{{"version":"1.0.0","installedAt":"2024-01-01T00:00:00Z","installPath":{}}}]"#, + serde_json::to_string(path.to_str().unwrap()).unwrap() + ) + } + + #[test] + fn uninstall_refuses_reserved_and_degenerate_names() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + for bad in ["cache", "data", "marketplaces", ".", "..", "", "cache@x", "a/b"] { + let err = uninstall_plugin_in(&claude, bad.to_string()).unwrap_err(); + assert!(!err.is_empty(), "{bad:?} should be refused"); + } + assert!(claude.join("plugins").join("cache").join("keep.txt").exists()); + } + + #[test] + fn uninstall_happy_path_deletes_only_own_install_path() { + let (d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let a = make_install(&claude, "mkt/alpha/1.0.0"); + let b = make_install(&claude, "mkt/beta/1.0.0"); + let json = format!( + r#"{{"plugins":{{"alpha@mkt":{},"beta@mkt":{}}}}}"#, + record(&a), + record(&b) + ); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + uninstall_plugin_in(&claude, "alpha@mkt".to_string()).unwrap(); + assert!(!a.exists()); + assert!(b.exists()); + assert!(claude.join("plugins").join("cache").join("keep.txt").exists()); + let left = list_installed_plugins_in(&claude).unwrap(); + assert_eq!(left.len(), 1); + assert_eq!(left[0].name, "beta"); + drop(d); + } + + #[test] + fn uninstall_same_name_other_marketplace_is_untouched() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let a = make_install(&claude, "one/tool/1.0.0"); + let b = make_install(&claude, "two/tool/1.0.0"); + let json = format!( + r#"{{"plugins":{{"tool@one":{},"tool@two":{}}}}}"#, + record(&a), + record(&b) + ); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), &json).unwrap(); + + // A bare name is refused whether or not it is ambiguous: delete nothing. + assert!(uninstall_plugin_in(&claude, "tool".to_string()).is_err()); + assert!(a.exists() && b.exists()); + + uninstall_plugin_in(&claude, "tool@one".to_string()).unwrap(); + assert!(!a.exists()); + assert!(b.exists()); + let left = list_installed_plugins_in(&claude).unwrap(); + assert_eq!(left.len(), 1); + assert_eq!(left[0].marketplace.as_deref(), Some("two")); + } + + #[test] + fn uninstall_deletes_nothing_when_the_record_file_changed_after_it_was_read() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let a = make_install(&claude, "mkt/alpha/1.0.0"); + let json_path = claude.join("plugins").join("installed_plugins.json"); + std::fs::write( + &json_path, + format!(r#"{{"plugins":{{"alpha@mkt":{}}}}}"#, record(&a)), + ) + .unwrap(); + let err = uninstall_plugin_with(&claude, "alpha@mkt".to_string(), || { + // The claude CLI rewrites the file between our read and our write. + std::fs::write(&json_path, r#"{"plugins":{"other@mkt":[]}}"#).unwrap(); + }) + .unwrap_err(); + assert!(err.contains("changed on disk"), "got: {err}"); + assert!(a.exists(), "a directory was deleted although the record was not removed"); + } + + #[test] + fn uninstall_keeps_the_record_removed_and_names_the_leftover_when_a_delete_fails() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let a = make_install(&claude, "mkt/alpha/1.0.0"); + std::fs::write( + claude.join("plugins").join("installed_plugins.json"), + format!(r#"{{"plugins":{{"alpha@mkt":{}}}}}"#, record(&a)), + ) + .unwrap(); + // A read-only parent makes the delete fail after the record is gone. + #[cfg(unix)] + { + use std::os::unix::fs::PermissionsExt; + let parent = a.parent().unwrap(); + std::fs::set_permissions(parent, std::fs::Permissions::from_mode(0o500)).unwrap(); + let result = uninstall_plugin_in(&claude, "alpha@mkt".to_string()); + std::fs::set_permissions(parent, std::fs::Permissions::from_mode(0o700)).unwrap(); + if a.exists() { + let err = result.unwrap_err(); + assert!(err.contains("1.0.0"), "leftover dir not named: {err}"); + assert!(list_installed_plugins_in(&claude).unwrap().is_empty()); + } + } + } + + #[test] + fn uninstall_refuses_a_bare_name_even_when_only_one_key_matches() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let a = make_install(&claude, "mkt/solo/1.0.0"); + let json = format!(r#"{{"plugins":{{"solo@mkt":{}}}}}"#, record(&a)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + let err = uninstall_plugin_in(&claude, "solo".to_string()).unwrap_err(); + assert!(err.contains("name@marketplace"), "got: {err}"); + assert!(a.exists()); + assert_eq!(list_installed_plugins_in(&claude).unwrap().len(), 1); + } + + #[test] + fn uninstall_refuses_install_path_that_is_a_whole_marketplace_directory() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let other = make_install(&claude, "mkt/other/1.0.0"); + let market = claude.join("plugins").join("cache").join("mkt"); + let json = format!(r#"{{"plugins":{{"evil@mkt":{}}}}}"#, record(&market)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + assert!(uninstall_plugin_in(&claude, "evil@mkt".to_string()).is_err()); + assert!(other.exists(), "another plugin in the marketplace was deleted"); + assert_eq!(list_installed_plugins_in(&claude).unwrap().len(), 1); + } + + #[test] + fn uninstall_refuses_install_path_inside_another_plugins_directory() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let other = make_install(&claude, "mkt/other/1.0.0"); + let json = format!(r#"{{"plugins":{{"evil@mkt":{}}}}}"#, record(&other)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + assert!(uninstall_plugin_in(&claude, "evil@mkt".to_string()).is_err()); + assert!(other.exists()); + } + + #[test] + fn uninstall_refuses_install_path_in_a_different_marketplace() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let other = make_install(&claude, "two/tool/1.0.0"); + let json = format!(r#"{{"plugins":{{"tool@one":{}}}}}"#, record(&other)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + assert!(uninstall_plugin_in(&claude, "tool@one".to_string()).is_err()); + assert!(other.exists()); + } + + #[test] + fn uninstall_allows_the_plugin_directory_itself() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let plugin_dir = make_install(&claude, "mkt/alpha"); + let json = format!(r#"{{"plugins":{{"alpha@mkt":{}}}}}"#, record(&plugin_dir)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + uninstall_plugin_in(&claude, "alpha@mkt".to_string()).unwrap(); + assert!(!plugin_dir.exists()); + } + + #[test] + fn uninstall_rewrite_backs_up_installed_plugins_and_leaves_no_temp_file() { + let (d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + crate::commands::surface_write::set_test_home(d.path()); + let a = make_install(&claude, "mkt/alpha/1.0.0"); + let json = format!(r#"{{"plugins":{{"alpha@mkt":{}}}}}"#, record(&a)); + let json_path = claude.join("plugins").join("installed_plugins.json"); + std::fs::write(&json_path, &json).unwrap(); + uninstall_plugin_in(&claude, "alpha@mkt".to_string()).unwrap(); + let names: Vec = std::fs::read_dir(claude.join("plugins")) + .unwrap() + .flatten() + .map(|e| e.file_name().to_string_lossy().into_owned()) + .collect(); + assert!(!names.iter().any(|n| n.contains(".bak-")), "backup beside the file: {names:?}"); + let backups = crate::commands::surface_write::user_backups(d.path()); + assert_eq!(backups.len(), 1, "backups: {backups:?}"); + assert!(backups[0].ends_with(".claude/plugins/installed_plugins.json"), "{backups:?}"); + assert_eq!(std::fs::read_to_string(&backups[0]).unwrap(), json); + assert!(!names.iter().any(|n| n.ends_with(".tmp") || n.starts_with(".hk-tmp-")), "names: {names:?}"); + } + + #[test] + fn uninstall_refuses_install_path_outside_cache() { + let (d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let outside = d.path().join("precious"); + std::fs::create_dir_all(&outside).unwrap(); + std::fs::write(outside.join("file"), "x").unwrap(); + let json = format!(r#"{{"plugins":{{"evil@mkt":{}}}}}"#, record(&outside)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + assert!(uninstall_plugin_in(&claude, "evil@mkt".to_string()).is_err()); + assert!(outside.join("file").exists()); + // Record stays so the user can see the failure. + assert_eq!(list_installed_plugins_in(&claude).unwrap().len(), 1); + } + + #[test] + fn uninstall_refuses_install_path_equal_to_cache() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let cache = claude.join("plugins").join("cache"); + let json = format!(r#"{{"plugins":{{"evil@mkt":{}}}}}"#, record(&cache)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + assert!(uninstall_plugin_in(&claude, "evil@mkt".to_string()).is_err()); + assert!(cache.join("keep.txt").exists()); + } + + #[test] + fn uninstall_refuses_dotdot_install_path_escaping_cache() { + let (_d, claude) = uninstall_fixture(r#"{"plugins":{}}"#); + let sneaky = claude.join("plugins").join("cache").join("..").join(".."); + let json = format!(r#"{{"plugins":{{"evil@mkt":{}}}}}"#, record(&sneaky)); + std::fs::write(claude.join("plugins").join("installed_plugins.json"), json).unwrap(); + assert!(uninstall_plugin_in(&claude, "evil@mkt".to_string()).is_err()); + assert!(claude.join("plugins").join("installed_plugins.json").exists()); + } } diff --git a/apps/desktop/src-tauri/src/commands/profiles.rs b/apps/desktop/src-tauri/src/commands/profiles.rs index 85ab8126..3012cb87 100644 --- a/apps/desktop/src-tauri/src/commands/profiles.rs +++ b/apps/desktop/src-tauri/src/commands/profiles.rs @@ -145,12 +145,24 @@ pub fn get_custom_profile(id: String) -> Result { #[tauri::command] pub fn save_custom_profile(id: String, content: String) -> Result { - validate_id(&id)?; - let dir = profiles_dir()?; - std::fs::create_dir_all(&dir) + save_custom_profile_in(&profiles_dir()?, &id, &content) +} + +/// Create a profile. An existing id is refused, never overwritten (AC-50); +/// the write is atomic and expects the file to be absent, so a profile that +/// appears between the check and the write is refused too. +fn save_custom_profile_in(dir: &std::path::Path, id: &str, content: &str) -> Result { + validate_id(id)?; + std::fs::create_dir_all(dir) .map_err(|e| format!("Failed to create profiles directory: {}", e))?; let path = dir.join(format!("{}.yaml", id)); - std::fs::write(&path, &content) + if path.exists() { + return Err(format!( + "A profile named '{}' already exists. Choose a different name.", + id + )); + } + super::surface_write::write_user_file(&path, content, None) .map_err(|e| format!("Failed to write profile: {}", e))?; Ok(path.to_string_lossy().to_string()) } @@ -221,6 +233,24 @@ mod tests { assert_eq!(name, "stops-here"); } + #[test] + fn save_custom_profile_creates_a_new_profile() { + let dir = tempfile::TempDir::new().unwrap(); + let path = save_custom_profile_in(dir.path(), "mine", "version: \"1\"\n").unwrap(); + assert_eq!(std::fs::read_to_string(path).unwrap(), "version: \"1\"\n"); + } + + #[test] + fn save_custom_profile_refuses_an_existing_id() { + let dir = tempfile::TempDir::new().unwrap(); + std::fs::write(dir.path().join("mine.yaml"), "original\n").unwrap(); + let err = save_custom_profile_in(dir.path(), "mine", "replacement\n").unwrap_err(); + assert!(err.contains("already exists"), "{}", err); + assert_eq!(std::fs::read_to_string(dir.path().join("mine.yaml")).unwrap(), "original\n"); + // No backup or temp litter either. + assert_eq!(std::fs::read_dir(dir.path()).unwrap().count(), 1); + } + #[test] fn test_validate_id_valid() { assert!(validate_id("my-profile").is_ok()); diff --git a/apps/desktop/src-tauri/src/commands/security.rs b/apps/desktop/src-tauri/src/commands/security.rs index 4bc269ee..1ef71cdf 100644 --- a/apps/desktop/src-tauri/src/commands/security.rs +++ b/apps/desktop/src-tauri/src/commands/security.rs @@ -1,3 +1,4 @@ +use super::surface_write::{resolve_link_target, user_file_digest, write_user_file}; use crate::db::Db; use serde::{Deserialize, Serialize}; use tauri::{AppHandle, State}; @@ -84,37 +85,46 @@ fn env_config_path() -> Result { Ok(home.join(".harness-kit").join("env.json")) } -fn read_settings_json() -> Result { - let path = settings_path()?; +fn read_settings_at(path: &std::path::Path) -> Result { if !path.exists() { return Ok(serde_json::json!({})); } - let content = std::fs::read_to_string(&path) + let content = std::fs::read_to_string(path) .map_err(|e| format!("Failed to read settings.json: {}", e))?; serde_json::from_str(&content) .map_err(|e| format!("Failed to parse settings.json: {}", e)) } -fn write_settings_json(value: &serde_json::Value) -> Result<(), String> { - let path = settings_path()?; - - // Create backup - if path.exists() { - let backup = path.with_extension("json.bak"); - std::fs::copy(&path, &backup) - .map_err(|e| format!("Failed to create backup: {}", e))?; - } - - // Ensure parent directory exists - if let Some(parent) = path.parent() { - std::fs::create_dir_all(parent) - .map_err(|e| format!("Failed to create directory: {}", e))?; - } +/// The digest a save of settings.json checks against: what the file finally +/// names (a symlink is followed), or `"absent"` when there is none. Sent to +/// the page with the permissions so its save can say what it read. +fn settings_digest_at(path: &std::path::Path) -> Result { + user_file_digest(path) +} - let content = serde_json::to_string_pretty(value) +/// Serialize `value` and replace `path` through the shared user-file save +/// (`write_user_file`): refuse if the file's digest is no longer +/// `expected_sha256` (`None` means it must not exist), copy the old content to +/// `~/.harness/backups/user/