Huakun de3886d416
feat: implement clipboard data cleaning for data older than 10 days (#267)
* Update drizzle-orm to version 0.41.0 and implement clipboard cleanup functionality

- Updated drizzle-orm dependency in package.json and pnpm-lock.yaml to version 0.41.0.
- Added a new utility function `cleanClipboard` to remove clipboard entries older than 10 days.
- Integrated clipboard cleanup into the initialization process, logging success or failure.
- Refactored drizzle exports to include `proxyDB` for better access to the database proxy.
- Minor cleanup in the proxy.ts file to remove commented-out debug logs.

* Refactor clipboard cleanup logic to use configurable days parameter

- Introduced a variable `nDays` to allow dynamic adjustment of the clipboard cleanup threshold.
- Updated logging to reflect the configurable number of days for clipboard entry deletion instead of a hardcoded value.

* Enhance clipboard and database management in initialization process

- Added logging to `cleanClipboard` to indicate the number of clipboard entries older than a specified number of days.
- Introduced a new utility function `vacuumSqlite` for database maintenance, which is now called during app initialization.
- Updated the `init` function to await the completion of `cleanClipboard` and `vacuumSqlite` for better error handling and flow control.
- Ensured that the console attachment in `onMount` is awaited for proper synchronization.

* Update version in package.json from 0.1.37-beta.1 to 0.1.37

* Adds C11 standard flag for builds

Try to fix windows build beta CI
Adds the C11 standard flag to the build environment. This ensures
that the code is compiled using the C11 standard, potentially
improving compatibility and avoiding compiler-specific behavior.

* Remove CFLAGS for C11 standard from beta build workflow

This change eliminates the CFLAGS environment variable previously set for C11 standard compliance in the beta build process, streamlining the build configuration.
2025-04-03 12:42:27 -04:00

26 KiB

Permission Table

Identifier Description

jarvis:allow-all

This enables all permissions for Jarvis

jarvis:allow-add-to-history

Enables the add_to_history command without any pre-configured scope.

jarvis:deny-add-to-history

Denies the add_to_history command without any pre-configured scope.

jarvis:allow-app-is-dev

Enables the app_is_dev command without any pre-configured scope.

jarvis:deny-app-is-dev

Denies the app_is_dev command without any pre-configured scope.

jarvis:allow-check-screen-capture-access

Enables the check_screen_capture_access command without any pre-configured scope.

jarvis:deny-check-screen-capture-access

Denies the check_screen_capture_access command without any pre-configured scope.

jarvis:allow-close-devtools

Enables the close_devtools command without any pre-configured scope.

jarvis:deny-close-devtools

Denies the close_devtools command without any pre-configured scope.

jarvis:allow-compress-tarball

Enables the compress_tarball command without any pre-configured scope.

jarvis:deny-compress-tarball

Denies the compress_tarball command without any pre-configured scope.

jarvis:allow-copy-dir-all

Enables the copy_dir_all command without any pre-configured scope.

jarvis:deny-copy-dir-all

Denies the copy_dir_all command without any pre-configured scope.

jarvis:allow-create-command

Enables the create_command command without any pre-configured scope.

jarvis:deny-create-command

Denies the create_command command without any pre-configured scope.

jarvis:allow-create-extension

Enables the create_extension command without any pre-configured scope.

jarvis:deny-create-extension

Denies the create_extension command without any pre-configured scope.

jarvis:allow-create-extension-data

Enables the create_extension_data command without any pre-configured scope.

jarvis:deny-create-extension-data

Denies the create_extension_data command without any pre-configured scope.

jarvis:allow-decompress-tarball

Enables the decompress_tarball command without any pre-configured scope.

jarvis:deny-decompress-tarball

Denies the decompress_tarball command without any pre-configured scope.

jarvis:allow-delete-command-by-id

Enables the delete_command_by_id command without any pre-configured scope.

jarvis:deny-delete-command-by-id

Denies the delete_command_by_id command without any pre-configured scope.

jarvis:allow-delete-extension-by-ext-id

Enables the delete_extension_by_ext_id command without any pre-configured scope.

jarvis:deny-delete-extension-by-ext-id

Denies the delete_extension_by_ext_id command without any pre-configured scope.

jarvis:allow-delete-extension-by-path

Enables the delete_extension_by_path command without any pre-configured scope.

jarvis:deny-delete-extension-by-path

Denies the delete_extension_by_path command without any pre-configured scope.

jarvis:allow-delete-extension-data-by-id

Enables the delete_extension_data_by_id command without any pre-configured scope.

jarvis:deny-delete-extension-data-by-id

Denies the delete_extension_data_by_id command without any pre-configured scope.

jarvis:allow-download-file

Enables the download_file command without any pre-configured scope.

jarvis:deny-download-file

Denies the download_file command without any pre-configured scope.

jarvis:allow-download-files

Enables the download_files command without any pre-configured scope.

jarvis:deny-download-files

Denies the download_files command without any pre-configured scope.

jarvis:allow-eject-all-disks

Enables the eject_all_disks command without any pre-configured scope.

jarvis:deny-eject-all-disks

Denies the eject_all_disks command without any pre-configured scope.

jarvis:allow-empty-trash

Enables the empty_trash command without any pre-configured scope.

jarvis:deny-empty-trash

Denies the empty_trash command without any pre-configured scope.

jarvis:allow-execute

Enables the execute command without any pre-configured scope.

jarvis:deny-execute

Denies the execute command without any pre-configured scope.

jarvis:allow-file-search

Enables the file_search command without any pre-configured scope.

jarvis:deny-file-search

Denies the file_search command without any pre-configured scope.

jarvis:allow-file-transfer-preview-bucket

Enables the file_transfer_preview_bucket command without any pre-configured scope.

jarvis:deny-file-transfer-preview-bucket

Denies the file_transfer_preview_bucket command without any pre-configured scope.

jarvis:allow-get-all-extensions

Enables the get_all_extensions command without any pre-configured scope.

jarvis:deny-get-all-extensions

Denies the get_all_extensions command without any pre-configured scope.

jarvis:allow-get-all-extensions-by-identifier

Enables the get_all_extensions_by_identifier command without any pre-configured scope.

jarvis:deny-get-all-extensions-by-identifier

Denies the get_all_extensions_by_identifier command without any pre-configured scope.

jarvis:allow-get-applications

Enables the get_applications command without any pre-configured scope.

jarvis:deny-get-applications

Denies the get_applications command without any pre-configured scope.

jarvis:allow-get-command-by-id

Enables the get_command_by_id command without any pre-configured scope.

jarvis:deny-get-command-by-id

Denies the get_command_by_id command without any pre-configured scope.

jarvis:allow-get-commands-by-ext-id

Enables the get_commands_by_ext_id command without any pre-configured scope.

jarvis:deny-get-commands-by-ext-id

Denies the get_commands_by_ext_id command without any pre-configured scope.

jarvis:allow-get-default-extensions-dir

Enables the get_default_extensions_dir command without any pre-configured scope.

jarvis:deny-get-default-extensions-dir

Denies the get_default_extensions_dir command without any pre-configured scope.

jarvis:allow-get-default-extensions-storage-dir

Enables the get_default_extensions_storage_dir command without any pre-configured scope.

jarvis:deny-get-default-extensions-storage-dir

Denies the get_default_extensions_storage_dir command without any pre-configured scope.

jarvis:allow-get-dev-extension-folder

Enables the get_dev_extension_folder command without any pre-configured scope.

jarvis:deny-get-dev-extension-folder

Denies the get_dev_extension_folder command without any pre-configured scope.

jarvis:allow-get-ext-label-map

Enables the get_ext_label_map command without any pre-configured scope.

jarvis:deny-get-ext-label-map

Denies the get_ext_label_map command without any pre-configured scope.

jarvis:allow-get-extension-data-by-id

Enables the get_extension_data_by_id command without any pre-configured scope.

jarvis:deny-get-extension-data-by-id

Denies the get_extension_data_by_id command without any pre-configured scope.

jarvis:allow-get-extension-folder

Enables the get_extension_folder command without any pre-configured scope.

jarvis:deny-get-extension-folder

Denies the get_extension_folder command without any pre-configured scope.

jarvis:allow-get-file-transfer-bucket-by-key

Enables the get_file_transfer_bucket_by_key command without any pre-configured scope.

jarvis:deny-get-file-transfer-bucket-by-key

Denies the get_file_transfer_bucket_by_key command without any pre-configured scope.

jarvis:allow-get-file-transfer-bucket-keys

Enables the get_file_transfer_bucket_keys command without any pre-configured scope.

jarvis:deny-get-file-transfer-bucket-keys

Denies the get_file_transfer_bucket_keys command without any pre-configured scope.

jarvis:allow-get-files-to-send

Enables the get_files_to_send command without any pre-configured scope.

jarvis:deny-get-files-to-send

Denies the get_files_to_send command without any pre-configured scope.

jarvis:allow-get-history

Enables the get_history command without any pre-configured scope.

jarvis:deny-get-history

Denies the get_history command without any pre-configured scope.

jarvis:allow-get-peers

Enables the get_peers command without any pre-configured scope.

jarvis:deny-get-peers

Denies the get_peers command without any pre-configured scope.

jarvis:allow-get-selected-files-in-file-explorer

Enables the get_selected_files_in_file_explorer command without any pre-configured scope.

jarvis:deny-get-selected-files-in-file-explorer

Denies the get_selected_files_in_file_explorer command without any pre-configured scope.

jarvis:allow-get-server-port

Enables the get_server_port command without any pre-configured scope.

jarvis:deny-get-server-port

Denies the get_server_port command without any pre-configured scope.

jarvis:allow-get-unique-extension-by-identifier

Enables the get_unique_extension_by_identifier command without any pre-configured scope.

jarvis:deny-get-unique-extension-by-identifier

Denies the get_unique_extension_by_identifier command without any pre-configured scope.

jarvis:allow-get-unique-extension-by-path

Enables the get_unique_extension_by_path command without any pre-configured scope.

jarvis:deny-get-unique-extension-by-path

Denies the get_unique_extension_by_path command without any pre-configured scope.

jarvis:allow-hide-all-apps-except-frontmost

Enables the hide_all_apps_except_frontmost command without any pre-configured scope.

jarvis:deny-hide-all-apps-except-frontmost

Denies the hide_all_apps_except_frontmost command without any pre-configured scope.

jarvis:allow-is-devtools-open

Enables the is_devtools_open command without any pre-configured scope.

jarvis:deny-is-devtools-open

Denies the is_devtools_open command without any pre-configured scope.

jarvis:allow-is-window-label-registered

Enables the is_window_label_registered command without any pre-configured scope.

jarvis:deny-is-window-label-registered

Denies the is_window_label_registered command without any pre-configured scope.

jarvis:allow-local-net-send-file

Enables the local_net_send_file command without any pre-configured scope.

jarvis:deny-local-net-send-file

Denies the local_net_send_file command without any pre-configured scope.

jarvis:allow-logout-user

Enables the logout_user command without any pre-configured scope.

jarvis:deny-logout-user

Denies the logout_user command without any pre-configured scope.

jarvis:allow-mute

Enables the mute command without any pre-configured scope.

jarvis:deny-mute

Denies the mute command without any pre-configured scope.

jarvis:allow-open-devtools

Enables the open_devtools command without any pre-configured scope.

jarvis:deny-open-devtools

Denies the open_devtools command without any pre-configured scope.

jarvis:allow-open-trash

Enables the open_trash command without any pre-configured scope.

jarvis:deny-open-trash

Denies the open_trash command without any pre-configured scope.

jarvis:allow-path-exists

Enables the path_exists command without any pre-configured scope.

jarvis:deny-path-exists

Denies the path_exists command without any pre-configured scope.

jarvis:allow-plist-to-json

Enables the plist_to_json command without any pre-configured scope.

jarvis:deny-plist-to-json

Denies the plist_to_json command without any pre-configured scope.

jarvis:allow-quit-all-apps

Enables the quit_all_apps command without any pre-configured scope.

jarvis:deny-quit-all-apps

Denies the quit_all_apps command without any pre-configured scope.

jarvis:allow-reboot

Enables the reboot command without any pre-configured scope.

jarvis:deny-reboot

Denies the reboot command without any pre-configured scope.

jarvis:allow-refresh-applications-list

Enables the refresh_applications_list command without any pre-configured scope.

jarvis:deny-refresh-applications-list

Denies the refresh_applications_list command without any pre-configured scope.

jarvis:allow-refresh-applications-list-in-bg

Enables the refresh_applications_list_in_bg command without any pre-configured scope.

jarvis:deny-refresh-applications-list-in-bg

Denies the refresh_applications_list_in_bg command without any pre-configured scope.

jarvis:allow-register-extension-spawned-process

Enables the register_extension_spawned_process command without any pre-configured scope.

jarvis:deny-register-extension-spawned-process

Denies the register_extension_spawned_process command without any pre-configured scope.

jarvis:allow-register-extension-window

Enables the register_extension_window command without any pre-configured scope.

jarvis:deny-register-extension-window

Denies the register_extension_window command without any pre-configured scope.

jarvis:allow-request-screen-capture-access

Enables the request_screen_capture_access command without any pre-configured scope.

jarvis:deny-request-screen-capture-access

Denies the request_screen_capture_access command without any pre-configured scope.

jarvis:allow-restart-server

Enables the restart_server command without any pre-configured scope.

jarvis:deny-restart-server

Denies the restart_server command without any pre-configured scope.

jarvis:allow-run-apple-script

Enables the run_apple_script command without any pre-configured scope.

jarvis:deny-run-apple-script

Denies the run_apple_script command without any pre-configured scope.

jarvis:allow-run-powershell

Enables the run_powershell command without any pre-configured scope.

jarvis:deny-run-powershell

Denies the run_powershell command without any pre-configured scope.

jarvis:allow-search-extension-data

Enables the search_extension_data command without any pre-configured scope.

jarvis:deny-search-extension-data

Denies the search_extension_data command without any pre-configured scope.

jarvis:allow-select

Enables the select command without any pre-configured scope.

jarvis:deny-select

Denies the select command without any pre-configured scope.

jarvis:allow-server-is-running

Enables the server_is_running command without any pre-configured scope.

jarvis:deny-server-is-running

Denies the server_is_running command without any pre-configured scope.

jarvis:allow-set-dev-extension-folder

Enables the set_dev_extension_folder command without any pre-configured scope.

jarvis:deny-set-dev-extension-folder

Denies the set_dev_extension_folder command without any pre-configured scope.

jarvis:allow-set-extension-folder

Enables the set_extension_folder command without any pre-configured scope.

jarvis:deny-set-extension-folder

Denies the set_extension_folder command without any pre-configured scope.

jarvis:allow-set-transparent-titlebar

Enables the set_transparent_titlebar command without any pre-configured scope.

jarvis:deny-set-transparent-titlebar

Denies the set_transparent_titlebar command without any pre-configured scope.

jarvis:allow-set-volume

Enables the set_volume command without any pre-configured scope.

jarvis:deny-set-volume

Denies the set_volume command without any pre-configured scope.

jarvis:allow-show-desktop

Enables the show_desktop command without any pre-configured scope.

jarvis:deny-show-desktop

Denies the show_desktop command without any pre-configured scope.

jarvis:allow-shutdown

Enables the shutdown command without any pre-configured scope.

jarvis:deny-shutdown

Denies the shutdown command without any pre-configured scope.

jarvis:allow-sleep

Enables the sleep command without any pre-configured scope.

jarvis:deny-sleep

Denies the sleep command without any pre-configured scope.

jarvis:allow-sleep-displays

Enables the sleep_displays command without any pre-configured scope.

jarvis:deny-sleep-displays

Denies the sleep_displays command without any pre-configured scope.

jarvis:allow-spawn-extension-file-server

Enables the spawn_extension_file_server command without any pre-configured scope.

jarvis:deny-spawn-extension-file-server

Denies the spawn_extension_file_server command without any pre-configured scope.

jarvis:allow-start-server

Enables the start_server command without any pre-configured scope.

jarvis:deny-start-server

Denies the start_server command without any pre-configured scope.

jarvis:allow-stop-server

Enables the stop_server command without any pre-configured scope.

jarvis:deny-stop-server

Denies the stop_server command without any pre-configured scope.

jarvis:allow-toggle-bluetooth

Enables the toggle_bluetooth command without any pre-configured scope.

jarvis:deny-toggle-bluetooth

Denies the toggle_bluetooth command without any pre-configured scope.

jarvis:allow-toggle-devtools

Enables the toggle_devtools command without any pre-configured scope.

jarvis:deny-toggle-devtools

Denies the toggle_devtools command without any pre-configured scope.

jarvis:allow-toggle-hidden-files

Enables the toggle_hidden_files command without any pre-configured scope.

jarvis:deny-toggle-hidden-files

Denies the toggle_hidden_files command without any pre-configured scope.

jarvis:allow-toggle-mute

Enables the toggle_mute command without any pre-configured scope.

jarvis:deny-toggle-mute

Denies the toggle_mute command without any pre-configured scope.

jarvis:allow-toggle-stage-manager

Enables the toggle_stage_manager command without any pre-configured scope.

jarvis:deny-toggle-stage-manager

Denies the toggle_stage_manager command without any pre-configured scope.

jarvis:allow-toggle-system-appearance

Enables the toggle_system_appearance command without any pre-configured scope.

jarvis:deny-toggle-system-appearance

Denies the toggle_system_appearance command without any pre-configured scope.

jarvis:allow-turn-volume-down

Enables the turn_volume_down command without any pre-configured scope.

jarvis:deny-turn-volume-down

Denies the turn_volume_down command without any pre-configured scope.

jarvis:allow-turn-volume-up

Enables the turn_volume_up command without any pre-configured scope.

jarvis:deny-turn-volume-up

Denies the turn_volume_up command without any pre-configured scope.

jarvis:allow-unmute

Enables the unmute command without any pre-configured scope.

jarvis:deny-unmute

Denies the unmute command without any pre-configured scope.

jarvis:allow-unregister-extension-spawned-process

Enables the unregister_extension_spawned_process command without any pre-configured scope.

jarvis:deny-unregister-extension-spawned-process

Denies the unregister_extension_spawned_process command without any pre-configured scope.

jarvis:allow-unregister-extension-window

Enables the unregister_extension_window command without any pre-configured scope.

jarvis:deny-unregister-extension-window

Denies the unregister_extension_window command without any pre-configured scope.

jarvis:allow-unzip

Enables the unzip command without any pre-configured scope.

jarvis:deny-unzip

Denies the unzip command without any pre-configured scope.

jarvis:allow-update-command-by-id

Enables the update_command_by_id command without any pre-configured scope.

jarvis:deny-update-command-by-id

Denies the update_command_by_id command without any pre-configured scope.

jarvis:allow-update-extension-data-by-id

Enables the update_extension_data_by_id command without any pre-configured scope.

jarvis:deny-update-extension-data-by-id

Denies the update_extension_data_by_id command without any pre-configured scope.

jarvis:allow-verify-auth

Enables the verify_auth command without any pre-configured scope.

jarvis:deny-verify-auth

Denies the verify_auth command without any pre-configured scope.

jarvis:allow-all-store

This enables all permissions for Jarvis