feat: move automations into a first-party plugin

This commit is contained in:
LukeGus committed 2026-09-22 08:14:03 -05:00
1 parent a6f6a0439c
commit e0f14f2ecf
47 files changed
+384 -125

No files matched your search

@@ -12,7 +12,7 @@
*/
import { pluginEvents, TOPICS } from "../../../src/backend/plugins/events.js";
import type { MetricsSnapshot } from "../../../src/backend/automations/conditions.js";
import type { MetricsSnapshot } from "../../automations/backend/conditions.js";
export interface HostMetricsPayload {
hostId: number;
+1 -1
View File
@@ -3046,7 +3046,7 @@ app.post("/metrics/connect-totp", async (req, res) => {
// Lets automations keep metrics flowing for hosts they watch, through the same
// viewer refcount the UI uses rather than around it.
import("../../../src/backend/automations/headless-viewer.js")
import("../../automations/backend/headless-viewer.js")
.then(({ setViewerRegistry }) => {
setViewerRegistry({
registerViewer: (hostId, sessionId, userId) =>