feat: add plugin packing, signing, pinned trust and tmxplug bundling

This commit is contained in:
LukeGus committed 2026-09-25 09:21:28 -05:00
1 parent c6a44b7ff3
commit 2ee9b3592c
25 files changed
+1764 -56

No files matched your search

+7 -1
View File
@@ -1846,7 +1846,13 @@ export async function createTestDb(
);
const handle = drizzle(sqlite);
const pluginId = path.basename(pluginDir);
// The manifest id, not the folder name: a plugin's own repo is rarely
// named after its id.
const manifestPath = path.join(pluginDir, "manifest.json");
const pluginId: string =
(fs.existsSync(manifestPath) &&
JSON.parse(fs.readFileSync(manifestPath, "utf8")).id) ||
path.basename(pluginDir);
const applied: string[] = [];
let persisted = 0;