mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
feat: move automations into a first-party plugin
This commit is contained in:
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;
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
Reference in new issue
Block a user