orion-super-agent-dev 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/brains/darwin-arm64/orion-brain +0 -0
- package/out/brains/darwin-x64/orion-brain +0 -0
- package/out/brains/linux-arm64/orion-brain +0 -0
- package/out/brains/linux-x64/orion-brain +0 -0
- package/out/brains/win32-x64/orion-brain.exe +0 -0
- package/out/indexProcessWorker.cjs +3 -5
- package/out/main.js +1548 -939
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -5555,17 +5555,15 @@ var RENAME_CONTENTION = /* @__PURE__ */ new Set(["EPERM", "EACCES", "EBUSY"]);
|
|
|
5555
5555
|
function retriesRenameContention(code, platform = process.platform) {
|
|
5556
5556
|
return platform === "win32" && code !== void 0 && RENAME_CONTENTION.has(code);
|
|
5557
5557
|
}
|
|
5558
|
-
async function renameWhenUnlocked(tmp, target) {
|
|
5559
|
-
const ATTEMPTS = 20;
|
|
5560
|
-
const DELAY_MS = 5;
|
|
5558
|
+
async function renameWhenUnlocked(tmp, target, { attempts = 20, delayMs = 5 } = {}) {
|
|
5561
5559
|
for (let attempt = 1; ; attempt++) {
|
|
5562
5560
|
try {
|
|
5563
5561
|
await import_fs.promises.rename(tmp, target);
|
|
5564
5562
|
return;
|
|
5565
5563
|
} catch (err2) {
|
|
5566
5564
|
const code = err2.code;
|
|
5567
|
-
if (attempt >=
|
|
5568
|
-
await new Promise((resolve5) => setTimeout(resolve5,
|
|
5565
|
+
if (attempt >= attempts || !retriesRenameContention(code)) throw err2;
|
|
5566
|
+
await new Promise((resolve5) => setTimeout(resolve5, delayMs));
|
|
5569
5567
|
}
|
|
5570
5568
|
}
|
|
5571
5569
|
}
|