feat: lock down plugin runtime in sandbox + signing + approval

This commit is contained in:
Linus Rath
2026-05-18 12:44:23 +02:00
parent 088810bd20
commit 48aa607b56
22 changed files with 986 additions and 21 deletions
+2 -1
View File
@@ -72,6 +72,7 @@ export interface SlotOptions {
export interface InitDoneInfo {
hooks: string[];
slots: Array<{ name: SlotName; hasShouldShow: boolean; order: number }>;
shortcuts: Array<{ id: string; keys: string; label: string; category?: string }>;
}
// ─── Sandbox instance ────────────────────────────────────────
@@ -169,7 +170,7 @@ export class SandboxInstance {
return;
case 'init-done':
this.resolveInit({ hooks: msg.hooks, slots: msg.slots });
this.resolveInit({ hooks: msg.hooks, slots: msg.slots, shortcuts: msg.shortcuts ?? [] });
return;
case 'init-error':