chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:39:12 +08:00
commit d8dcd5f6d1
8604 changed files with 2479390 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env node
/**
* Post-install warm-up for OmniRoute native runtimes.
*
* Runs after the main `scripts/build/postinstall.mjs` binary-copy step.
* Tries to pre-resolve better-sqlite3 into ~/.omniroute/runtime/ so that
* the first execution is fast and EBUSY-resilient on Windows.
*
* Non-fatal: any error is printed as a warning and install continues.
*/
if (
process.env.OMNIROUTE_SKIP_POSTINSTALL === "1" ||
process.env.CI === "true" ||
process.env.CI === "1"
) {
process.exit(0);
}
(async () => {
try {
const { warmUpRuntimes } = await import("../bin/cli/runtime/index.mjs");
await warmUpRuntimes();
} catch (err) {
console.warn(`[omniroute] postinstall warm-up skipped: ${err?.message ?? err}`);
}
})();