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
+6
View File
@@ -73,6 +73,12 @@ export interface InitDoneMsg {
hooks: string[];
/** Slots the plugin claims. Used by the host to know when a slot is offered. */
slots: Array<{ name: SlotName; hasShouldShow: boolean; order: number }>;
/**
* Keyboard shortcuts the plugin declares. The host installs a global
* keydown listener that dispatches to the `shortcut:<id>` hook when the
* combo matches. `keys` is a `+`-separated string like "Ctrl+Shift+L".
*/
shortcuts: Array<{ id: string; keys: string; label: string; category?: string }>;
}
export interface InitErrorMsg { type: 'init-error'; error: string; }