Merge branch 'main' into agents/daily/style-agent-7331917025368212480

This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-21 14:40:02 -05:00
commit cb8ded018a
11 files changed
+22 -59

No files matched your search

-9
View File
@@ -51,15 +51,6 @@ export async function getCompletedAgents(cadence, logDir, deps) {
return completed;
}
export function withTimeout(promise, timeoutMs, timeoutMessage) {
let timeoutHandle;
const timeoutPromise = new Promise((_, reject) => {
timeoutHandle = setTimeout(() => reject(new Error(timeoutMessage)), timeoutMs);
});
return Promise.race([promise, timeoutPromise]).finally(() => {
if (timeoutHandle) clearTimeout(timeoutHandle);
});
}
const MAX_RANDOM = 281474976710655; // 2**48 - 1