From 33c7942fb212b470cb0c90b6da27d86d3aff6407 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 5 May 2026 18:52:34 +0200 Subject: [PATCH] chore: regen migration --- .../migration.sql | 0 .../snapshot.json | 44 ++++++++++++++++++- .../__tests__/controller-runtime.test.ts | 3 +- 3 files changed, 44 insertions(+), 3 deletions(-) rename app/drizzle/{20260414064347_common_skin => 20260505165117_early_purple_man}/migration.sql (100%) rename app/drizzle/{20260414064347_common_skin => 20260505165117_early_purple_man}/snapshot.json (98%) diff --git a/app/drizzle/20260414064347_common_skin/migration.sql b/app/drizzle/20260505165117_early_purple_man/migration.sql similarity index 100% rename from app/drizzle/20260414064347_common_skin/migration.sql rename to app/drizzle/20260505165117_early_purple_man/migration.sql diff --git a/app/drizzle/20260414064347_common_skin/snapshot.json b/app/drizzle/20260505165117_early_purple_man/snapshot.json similarity index 98% rename from app/drizzle/20260414064347_common_skin/snapshot.json rename to app/drizzle/20260505165117_early_purple_man/snapshot.json index 6d449e93..524d847f 100644 --- a/app/drizzle/20260414064347_common_skin/snapshot.json +++ b/app/drizzle/20260505165117_early_purple_man/snapshot.json @@ -1,8 +1,8 @@ { "version": "7", "dialect": "sqlite", - "id": "e39438f8-a15d-4c9c-8f6d-fee498150505", - "prevIds": ["11dfb429-048c-4f65-abf1-f25ac2ae9d93"], + "id": "cea82b0d-bdb9-4d89-b190-614b90efd1f5", + "prevIds": ["b644a331-6c76-4d56-b4c4-c5b0701183f2"], "ddl": [ { "name": "account", @@ -672,6 +672,16 @@ "entityType": "columns", "table": "backup_schedules_table" }, + { + "type": "text", + "notNull": false, + "autoincrement": false, + "default": null, + "generated": null, + "name": "backup_webhooks", + "entityType": "columns", + "table": "backup_schedules_table" + }, { "type": "integer", "notNull": true, @@ -902,6 +912,36 @@ "entityType": "columns", "table": "notification_destinations_table" }, + { + "type": "text", + "notNull": true, + "autoincrement": false, + "default": "'unknown'", + "generated": null, + "name": "status", + "entityType": "columns", + "table": "notification_destinations_table" + }, + { + "type": "integer", + "notNull": false, + "autoincrement": false, + "default": null, + "generated": null, + "name": "last_checked", + "entityType": "columns", + "table": "notification_destinations_table" + }, + { + "type": "text", + "notNull": false, + "autoincrement": false, + "default": null, + "generated": null, + "name": "last_error", + "entityType": "columns", + "table": "notification_destinations_table" + }, { "type": "text", "notNull": true, diff --git a/app/server/modules/agents/__tests__/controller-runtime.test.ts b/app/server/modules/agents/__tests__/controller-runtime.test.ts index b96eb6b3..1841f36d 100644 --- a/app/server/modules/agents/__tests__/controller-runtime.test.ts +++ b/app/server/modules/agents/__tests__/controller-runtime.test.ts @@ -174,11 +174,11 @@ test("closing a replaced connection does not report the active agent as disconne await websocket?.open?.(fromPartial(oldSocket)); await websocket?.open?.(fromPartial(newSocket)); await websocket?.close?.(fromPartial(oldSocket), 1000, "replaced"); - await Effect.runPromise(runtime.stop); expect(onEvent).not.toHaveBeenCalledWith( expect.objectContaining({ type: "agent.disconnected", agentId: LOCAL_AGENT_ID }), ); + await Effect.runPromise(runtime.stop); }); test("sendBackup is only delivered after the agent is ready", async () => { @@ -204,6 +204,7 @@ test("sendBackup is only delivered after the agent is ready", async () => { }, webhooks: { pre: null, post: null }, webhookAllowedOrigins: [], + webhookTimeoutMs: 60_000, }; await websocket?.open?.(fromPartial(socket));