feat: harden plugin api for separate repos, signed updates and generic external login

This commit is contained in:
LukeGus committed 2026-09-29 18:11:59 -05:00
1 parent fb9c168b6b
commit 80944301dd
310 files changed
+6577 -4927

No files matched your search

@@ -50,7 +50,11 @@ async function setup() {
.run("user-1", "alice");
db.sqlite.prepare("INSERT INTO ssh_data (id) VALUES (?)").run(7);
const table = await db.database.define(sessionRecordings);
return createSessionRecordingRepository(db.database, table, fakeHosts);
return createSessionRecordingRepository(
db.database,
table,
fakeHosts as never,
);
}
describe("session recording repository", () => {
@@ -59,7 +59,11 @@ async function setup(): Promise<{
trackSession: () => () => {},
recordActivity: async () => {},
};
const repo = createSessionRecordingRepository(db.database, table, hosts);
const repo = createSessionRecordingRepository(
db.database,
table,
hosts as never,
);
const mock = createMockCtx({
pluginId: manifest.id,