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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunnyquery",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Embeddable BunnyQuery AI chat widget + its framework-agnostic chat engine",
5
5
  "main": "bunnyquery.js",
6
6
  "exports": {
@@ -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
- // CAN be flagged for the worker to re-mint just before the upstream call,
317
- // so a request that waited in the queue never hands over a stale link.
318
- //
319
- // It is off, and must stay off until the worker mints a url that answers
320
- // HEAD. What it mints today is an S3 SigV4 query presign, and a presign is
321
- // bound to the ONE method it was signed for: `get_object`. HEAD the same
322
- // url and S3 rejects the signature with 403 — measured, and the CDN url it
323
- // replaces answers both. OpenAI probes a file url before downloading it,
324
- // so from the day this went live EVERY chat carrying an image or PDF came
325
- // back "Error while downloading file. Upstream status code: 403." — 100%
326
- // of the requests that carried the directive, none of the ones that did
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
  : [];