diff --git a/apps/shinkai-desktop/src-tauri/capabilities/migrated.json b/apps/shinkai-desktop/src-tauri/capabilities/main.json similarity index 92% rename from apps/shinkai-desktop/src-tauri/capabilities/migrated.json rename to apps/shinkai-desktop/src-tauri/capabilities/main.json index 56d1d260..667d7949 100644 --- a/apps/shinkai-desktop/src-tauri/capabilities/migrated.json +++ b/apps/shinkai-desktop/src-tauri/capabilities/main.json @@ -1,5 +1,5 @@ { - "identifier": "migrated", + "identifier": "main", "description": "permissions that were migrated from v1", "local": true, "windows": [ @@ -8,7 +8,6 @@ ], "permissions": [ "core:default", - "core:webview:allow-create-webview-window", "dialog:allow-save", "fs:allow-download-write", "shell:allow-open", diff --git a/apps/shinkai-desktop/src-tauri/capabilities/shinkai-node-manager.json b/apps/shinkai-desktop/src-tauri/capabilities/shinkai-node-manager.json new file mode 100644 index 00000000..1ac1662b --- /dev/null +++ b/apps/shinkai-desktop/src-tauri/capabilities/shinkai-node-manager.json @@ -0,0 +1,25 @@ +{ + "identifier": "shinkai-node-manager", + "description": "permissions that were migrated from v1", + "local": true, + "windows": [ + "shinkai-node-manager" + ], + "permissions": [ + "core:default", + "core:window:allow-start-dragging", + "log:default" + ], + "commands.allow": [ + "shinkai_node_is_running", + "shinkai_node_get_last_n_logs", + "shinkai_node_get_options", + "shinkai_node_set_options", + "shinkai_node_spawn", + "shinkai_node_kill", + "shinkai_node_remove_storage", + "shinkai_node_set_default_options", + "shinkai_node_get_ollama_api_url", + "shinkai_node_get_default_model" + ] +} diff --git a/apps/shinkai-desktop/src-tauri/capabilities/spotlight.json b/apps/shinkai-desktop/src-tauri/capabilities/spotlight.json new file mode 100644 index 00000000..84f702a0 --- /dev/null +++ b/apps/shinkai-desktop/src-tauri/capabilities/spotlight.json @@ -0,0 +1,15 @@ +{ + "identifier": "spotlight", + "description": "permissions for spotlight window", + "local": true, + "windows": [ + "spotlight" + ], + "permissions": [ + "core:event:allow-listen", + "core:event:allow-unlisten", + "core:event:allow-emit", + "log:default" + ], + "commands.allow": [] +} diff --git a/apps/shinkai-desktop/vite.config.ts b/apps/shinkai-desktop/vite.config.ts index f91816c9..bb3cedfd 100644 --- a/apps/shinkai-desktop/vite.config.ts +++ b/apps/shinkai-desktop/vite.config.ts @@ -59,6 +59,7 @@ export default defineConfig(() => ({ __dirname, 'src/windows/shinkai-node-manager/index.html', ), + spotlight: resolve(__dirname, 'src/windows/spotlight/index.html'), }, }, }, diff --git a/package-lock.json b/package-lock.json index 0422224f..e31c5ba9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@shinkai/source", - "version": "0.8.10", + "version": "0.8.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@shinkai/source", - "version": "0.8.10", + "version": "0.8.11", "hasInstallScript": true, "license": "SEE LICENSE IN LICENSE", "dependencies": { diff --git a/package.json b/package.json index 4485b90e..e423a628 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shinkai/source", - "version": "0.8.10", + "version": "0.8.11", "license": "SEE LICENSE IN LICENSE", "files": [ "LICENSE"