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

@@ -61,7 +61,7 @@ describe("automations activate", () => {
capabilities: manifest.capabilities.filter((c) => c !== "notify:send"),
});
await expect(
withoutNotify.ctx.notify.send([1], { title: "t", body: "b" }),
withoutNotify.ctx.notify.send({ title: "t", body: "b" } as never),
).rejects.toBeInstanceOf(PluginCapabilityError);
});
@@ -99,7 +99,7 @@ describe("onMetrics", () => {
});
expect(run).toHaveBeenCalledTimes(1);
expect(run.mock.calls[0][0]).toMatchObject({
expect((run.mock.calls[0] as unknown[])[0]).toMatchObject({
triggerType: "metric_threshold",
triggerHostId: 7,
});