Download bin/cli/runtime/index.mjs from rais133/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/rais133/omniroute/resolve/main/bin/cli/runtime/index.mjs
- Command line
-
hf download hf://spaces/rais133/omniroute/bin/cli/runtime/index.mjs
-
curl -L -o index.mjs https://huggingface.co/spaces/rais133/omniroute/resolve/main/bin/cli/runtime/index.mjs
440 Bytes
| import { loadSqliteRuntime } from "./sqliteRuntime.mjs"; | |
| let warmed = false; | |
| /** | |
| * Pre-resolves native runtimes at startup so the first DB access is fast | |
| * and EBUSY-resilient on Windows. | |
| * | |
| * Tray runtime (systray2) is warmed lazily by initTray() in bin/cli/tray/. | |
| */ | |
| export async function warmUpRuntimes() { | |
| if (warmed) return; | |
| warmed = true; | |
| try { | |
| await loadSqliteRuntime(); | |
| } catch {} | |
| } | |
| export { loadSqliteRuntime }; | |