feat: collapse plugin runtime to one tier behind a plugin SDK

This commit is contained in:
LukeGus committed 2026-09-22 14:11:50 -05:00
1 parent 6e058f6e9e
commit 4758016f41
96 files changed
+34631 -8551

No files matched your search

@@ -0,0 +1,18 @@
PRAGMA foreign_keys=OFF;--> statement-breakpoint
CREATE TABLE `__new_plugin_permission_grants` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`plugin_id` text NOT NULL,
`capability` text NOT NULL,
`granted_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
`granted_by` text,
`source` text DEFAULT 'admin' NOT NULL,
FOREIGN KEY (`plugin_id`) REFERENCES `plugins`(`id`) ON UPDATE no action ON DELETE cascade,
FOREIGN KEY (`granted_by`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
INSERT INTO `__new_plugin_permission_grants`("id", "plugin_id", "capability", "granted_at", "granted_by", "source") SELECT "id", "plugin_id", "capability", "granted_at", "granted_by", 'admin' FROM `plugin_permission_grants`;--> statement-breakpoint
DROP TABLE `plugin_permission_grants`;--> statement-breakpoint
ALTER TABLE `__new_plugin_permission_grants` RENAME TO `plugin_permission_grants`;--> statement-breakpoint
PRAGMA foreign_keys=ON;--> statement-breakpoint
CREATE UNIQUE INDEX `idx_plugin_permission_grants_plugin_capability` ON `plugin_permission_grants` (`plugin_id`,`capability`);--> statement-breakpoint
ALTER TABLE `plugins` ADD `last_error` text;
File diff suppressed because it is too large. Load diff
+7
View File
@@ -162,6 +162,13 @@
"when": 1790083818524,
"tag": "0022_steady_the_hood",
"breakpoints": true
},
{
"idx": 23,
"version": "6",
"when": 1790102858837,
"tag": "0023_talented_shooting_star",
"breakpoints": true
}
]
}