AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning

This commit is contained in:
Krilly
2026-03-04 13:29:22 +00:00
parent 29a98137a7
commit 57dd294675
13706 changed files with 2114953 additions and 237629 deletions

View File

@@ -0,0 +1,15 @@
function sleepSync(ms) {
if (ms <= 0) return;
try {
const sab = new SharedArrayBuffer(4);
const int32 = new Int32Array(sab);
Atomics.wait(int32, 0, 0, ms);
} catch (e) {
// Fallback for environments without SharedArrayBuffer (rare in Node 22)
const end = Date.now() + ms;
while (Date.now() < end) {}
}
}
module.exports = { sleepSync };