feat: move desktop, status, import, audit and branding features into plugins

This commit is contained in:
LukeGus committed 2026-10-18 21:17:54 -05:00
1 parent 9d93fb0893
commit 1cdbfc674c
166 files changed
+21298 -12041

No files matched your search

+10 -9
View File
@@ -110,14 +110,14 @@ vi.mock("../../database/repositories/factory.js", () => ({
listDecryptedByUserId: async () => h.ownedHosts,
}),
}));
vi.mock("../../services/recent-activity.js", () => ({
recordRecentActivity: async (
userId: string,
entry: Record<string, unknown>,
) => {
h.activities.push({ userId, ...entry });
return { status: "logged", id: 1 };
vi.mock("../../plugins/activity-provider.js", () => ({
recentActivity: {
record: async (userId: string, entry: Record<string, unknown>) => {
h.activities.push({ userId, ...entry });
return { status: "logged", id: 1 };
},
},
provideActivity: vi.fn(() => () => {}),
}));
vi.mock("../../hosts/host-session-status.js", () => ({
hostSessionStatus: {
@@ -127,8 +127,9 @@ vi.mock("../../hosts/host-session-status.js", () => ({
},
},
}));
vi.mock("../../hosts/status/host-status-service.js", () => ({
hostStatusService: {
vi.mock("../../plugins/host-status-provider.js", () => ({
provideHostStatus: vi.fn(() => () => {}),
hostStatus: {
get: (hostId: number) =>
hostId === 4 ? { status: "online", lastChecked: "t" } : null,
check: async (hostId: number) => ({