OmniRoute/scripts/scratch/debug-handles.mjs
diegosouzapw 7bd8ace1a2 fix(auth): remove fallback gemini oauth client secret
Stop shipping a default Gemini OAuth client secret and require it to
come from the environment instead.

Also tighten proxy fetch typing to avoid any-based undici calls and
move db setup utilities under scripts while removing generated debug
and scratch artifacts.
2026-04-08 17:29:28 -03:00

17 lines
580 B
JavaScript

import process from "node:process";
import fs from "node:fs";
setTimeout(() => {
const activeHandles = process._getActiveHandles();
console.log("ACTIVE HANDLES: " + activeHandles.length);
activeHandles.forEach((handle, i) => {
console.log(`Handle ${i}:`, handle?.constructor?.name);
// if it's a timer or socket, let's see more
if (handle?.constructor?.name === "Timeout") {
console.log(" Timer wrapper:", handle?._onTimeout?.toString().slice(0, 50));
}
});
process.exit(1);
}, 2000);
await import("./tests/integration/chat-pipeline.test.mjs");