This commit is contained in:
Oleg Maslov
2026-09-02 10:14:22 +02:00
parent 0c3e2ead3b
commit b20b138fe4
771 changed files with 161561 additions and 9027 deletions

View File

@@ -0,0 +1,16 @@
const t0 = Date.now();
try {
const m = await import("./dist/agent-loop.js");
const hasRun = typeof m.runAgentLoop === "function";
// verify better-sqlite3 was never loaded into the module cache
let sqliteLoaded = false;
try { await import("better-sqlite3"); sqliteLoaded = true; } catch { sqliteLoaded = false; }
console.log(JSON.stringify({
import_ok: true,
runAgentLoop_exported: hasRun,
better_sqlite3_resolvable: sqliteLoaded, // false = not even installed = proof loop didn't need it
ms: Date.now() - t0,
}, null, 2));
} catch (e) {
console.log(JSON.stringify({ import_ok: false, error: String(e).slice(0, 300) }, null, 2));
}