feat: harden plugin sandbox and migrate in-tree plugins

This commit is contained in:
Linus Rath
2026-05-18 12:17:54 +02:00
parent e16f572252
commit 088810bd20
16 changed files with 728 additions and 1263 deletions
+8
View File
@@ -224,6 +224,14 @@ export interface InstalledPlugin {
* `api.http.fetch()`. Carried over from the manifest at install time.
*/
httpOrigins?: string[];
/**
* Permissions the user has explicitly granted. Populated by the in-app
* consent dialog the first time the plugin is enabled. The host API gate
* checks this set in addition to `permissions`, so an unapproved permission
* cannot be exercised even if it appears in the manifest. Managed plugins
* skip the consent prompt (admin pre-approval).
*/
grantedPermissions?: string[];
}
// ─── UI Slots ────────────────────────────────────────────────