import { closeDbExec, withMigrationRuntime } from "@agent-native/core/db"; import { loadEnv } from "@agent-native/core/scripts"; import { runAppReleaseMigrations, runFrameworkReleaseMigrations, } from "@agent-native/core/server"; loadEnv(); async function main(): Promise { await withMigrationRuntime(async () => { await runFrameworkReleaseMigrations(null); await runAppReleaseMigrations(); }); } try { await main(); } finally { await closeDbExec(); }