bunnyquery 1.16.0 → 1.16.1
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/bunnyquery.js +2 -2
- package/dist/engine.cjs +1 -1
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.mjs +1 -1
- package/dist/engine.mjs.map +1 -1
- package/package.json +1 -1
- package/src/engine/office.ts +11 -16
package/package.json
CHANGED
package/src/engine/office.ts
CHANGED
|
@@ -313,22 +313,17 @@ export function composeUserMessage(
|
|
|
313
313
|
sections.join('\n\n');
|
|
314
314
|
}
|
|
315
315
|
// Files the model fetches by url (NOT server-extractable: PDFs, images)
|
|
316
|
-
//
|
|
317
|
-
// so a request that waited in the queue never hands over
|
|
318
|
-
//
|
|
319
|
-
//
|
|
320
|
-
//
|
|
321
|
-
// bound to the
|
|
322
|
-
//
|
|
323
|
-
//
|
|
324
|
-
//
|
|
325
|
-
//
|
|
326
|
-
|
|
327
|
-
// not. Sending no directive leaves the CDN url in place, which is what
|
|
328
|
-
// worked before and answers HEAD; the drain gate (awaitIndexingDrained)
|
|
329
|
-
// covers the staleness this was meant to solve, since the turn is now
|
|
330
|
-
// dispatched only once the queue is empty rather than sitting in it.
|
|
331
|
-
const WORKER_URL_REMINT_ENABLED = false;
|
|
316
|
+
// are flagged for the worker to mint a fresh link just before the
|
|
317
|
+
// upstream call, so a request that waited in the queue never hands over
|
|
318
|
+
// a stale link. A store file link now lives 10 minutes for anything but
|
|
319
|
+
// a public file (dev/CDN_FILE_PLAN.md 4.2), so this is what keeps a
|
|
320
|
+
// queued request working. The worker mints the CDN link (never an S3
|
|
321
|
+
// presign: a presign is bound to the one method it was signed for and
|
|
322
|
+
// a provider's HEAD probe got 403 from it, which is why this was off
|
|
323
|
+
// from 2026-07-27 to 2026-10-24); the CDN link answers HEAD and GET.
|
|
324
|
+
// The worker also checks that the user who asked may read each path
|
|
325
|
+
// before it mints or extracts anything.
|
|
326
|
+
const WORKER_URL_REMINT_ENABLED = true;
|
|
332
327
|
const urlFiles = WORKER_URL_REMINT_ENABLED
|
|
333
328
|
? attachmentUrls.filter((u) => u.url && !isServerExtractable(u.name))
|
|
334
329
|
: [];
|