@delali/narsil 0.4.2-next.271 → 0.4.2

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.
Files changed (103) hide show
  1. package/dist/browser/{chunk-XBWABEL3.mjs → chunk-56UNHLAF.mjs} +1 -1
  2. package/dist/browser/{chunk-DPRCAVC2.mjs → chunk-EKISQBV2.mjs} +272 -239
  3. package/dist/browser/{chunk-WRRXR57N.mjs → chunk-VAPCFSMX.mjs} +1 -1
  4. package/dist/browser/{chunk-Y5CSZDOH.mjs → chunk-VIVG3OXM.mjs} +1 -1
  5. package/dist/browser/{msgpack-leaf-FEPCLXXY.mjs → msgpack-leaf-76Q5SZ5S.mjs} +16 -9
  6. package/dist/browser/{optional-writes-HVPPDHSY.mjs → optional-writes-3HKIVZFU.mjs} +36 -2
  7. package/dist/browser/{segment-codec-leaf-A427QJUX.mjs → segment-codec-leaf-GXSRX5VT.mjs} +47 -30
  8. package/dist/{chunk-TI4G3SIG.mjs → chunk-35RWLUVY.mjs} +3 -3
  9. package/dist/{chunk-GTBJSNN2.mjs → chunk-43T3P3BE.mjs} +1 -1
  10. package/dist/{chunk-KQWTS7AM.mjs → chunk-4JLHHEBN.mjs} +1 -1
  11. package/dist/{chunk-KX3OP6VP.mjs → chunk-4YIVY3PB.mjs} +2 -2
  12. package/dist/{react-native/chunks/chunk-XGS2UYVI.mjs → chunk-5SHWA6PE.mjs} +1 -1
  13. package/dist/{chunk-BBIAUHAB.mjs → chunk-6LVQ3GLT.mjs} +3 -3
  14. package/dist/{chunk-H6LWGMPQ.mjs → chunk-6SIEVWMG.mjs} +7 -7
  15. package/dist/{chunk-NFA3WHJU.mjs → chunk-ACNHJOGC.mjs} +1 -1
  16. package/dist/{chunk-FOGTBAYN.mjs → chunk-BWPVDIRN.mjs} +12 -12
  17. package/dist/{chunk-ATQ6JR3I.mjs → chunk-C57GWAXN.mjs} +1 -1
  18. package/dist/{chunk-5E3TJ4P3.mjs → chunk-DRZP5MSG.mjs} +5 -5
  19. package/dist/{chunk-OLXFIUIZ.mjs → chunk-DZMD4OMD.mjs} +1 -1
  20. package/dist/{chunk-4WQNWAQE.mjs → chunk-EY5U4P5V.mjs} +1 -1
  21. package/dist/{chunk-Q4NLL66U.mjs → chunk-EZJ6HBG7.mjs} +2 -2
  22. package/dist/{chunk-QJFKL4NK.mjs → chunk-FE2XILWN.mjs} +4 -4
  23. package/dist/{chunk-WIT6B5OB.mjs → chunk-G3KVEHIW.mjs} +2 -2
  24. package/dist/{chunk-TANKI7TG.mjs → chunk-GTGQLCEI.mjs} +1 -1
  25. package/dist/{chunk-EALKCTWH.mjs → chunk-H23FB267.mjs} +3 -3
  26. package/dist/{chunk-YHZSSPG3.mjs → chunk-KXA77DPZ.mjs} +2 -2
  27. package/dist/{chunk-XWPNRHTG.mjs → chunk-LRIJ7U3T.mjs} +4 -4
  28. package/dist/{chunk-SSITKQU6.mjs → chunk-PNFP5THV.mjs} +3 -3
  29. package/dist/{chunk-VHIOGDVD.mjs → chunk-PQWK7KXS.mjs} +1 -1
  30. package/dist/{chunk-TT3UDDL3.mjs → chunk-QNZJYMCF.mjs} +6 -6
  31. package/dist/{chunk-33ZMFOAR.mjs → chunk-R3PFPFME.mjs} +1 -1
  32. package/dist/{chunk-XGVSG6ZU.mjs → chunk-SPA7GXST.mjs} +3 -3
  33. package/dist/{chunk-MS746XNY.mjs → chunk-WYH3QHBK.mjs} +384 -304
  34. package/dist/{chunk-MIIJ5O3O.mjs → chunk-X5V25BPN.mjs} +1 -1
  35. package/dist/{chunk-5GYGHPCH.mjs → chunk-Y7GXGJFZ.mjs} +16 -9
  36. package/dist/{chunk-4GCHJ3XD.mjs → chunk-YGRJLI2Z.mjs} +4 -4
  37. package/dist/{react-native/chunks/chunk-LE4DTMDL.mjs → chunk-ZO7VLAIT.mjs} +2 -2
  38. package/dist/{chunk-W3JH2IK6.mjs → chunk-ZTB7AWTW.mjs} +1 -1
  39. package/dist/client.mjs +2 -2
  40. package/dist/{direct-executor-PCBB6FCO.mjs → direct-executor-7G57AYXH.mjs} +4 -4
  41. package/dist/distribution/coordinator/etcd.mjs +2 -2
  42. package/dist/distribution/transport/grpc.mjs +3 -3
  43. package/dist/distribution/transport/tcp.mjs +3 -3
  44. package/dist/distribution.mjs +29 -29
  45. package/dist/index.browser.mjs +3 -3
  46. package/dist/index.mjs +4 -4
  47. package/dist/index.react-native.mjs +4 -4
  48. package/dist/{long-query-thread-4ALYIIC4.mjs → long-query-thread-KPN7NSOC.mjs} +14 -14
  49. package/dist/{msgpack-leaf-6ZBZWFRD.mjs → msgpack-leaf-LIT7TKZW.mjs} +3 -3
  50. package/dist/{optional-writes-2OK4TOLY.mjs → optional-writes-CSULLISE.mjs} +6 -6
  51. package/dist/{paged-partition-archive-Y5OAKNRB.mjs → paged-partition-archive-BKQADXOT.mjs} +13 -13
  52. package/dist/partial-words.browser.mjs +3 -3
  53. package/dist/partial-words.mjs +4 -4
  54. package/dist/pattern.browser.mjs +2 -2
  55. package/dist/pattern.mjs +2 -2
  56. package/dist/persistence/durability/checkpoint-worker.mjs +11 -11
  57. package/dist/{query-actions-UQVQZFIJ.mjs → query-actions-HTSJKZRU.mjs} +4 -4
  58. package/dist/query-suggestions/merge-worker.mjs +7 -7
  59. package/dist/query-suggestions.browser.mjs +3 -3
  60. package/dist/query-suggestions.mjs +5 -5
  61. package/dist/react-native/chunks/{chunk-AVCMTWET.mjs → chunk-AOLLV37A.mjs} +1 -1
  62. package/dist/react-native/chunks/{chunk-VRI5XH2M.mjs → chunk-DN4FT62B.mjs} +16 -9
  63. package/dist/react-native/chunks/{chunk-VIO5IPF7.mjs → chunk-EF4Y5C3Y.mjs} +2 -2
  64. package/dist/react-native/chunks/{chunk-GS6LGXY3.mjs → chunk-ESVBC3AT.mjs} +1 -1
  65. package/dist/react-native/chunks/{chunk-4OOUY2K7.mjs → chunk-H6LK5WCF.mjs} +1 -1
  66. package/dist/react-native/chunks/{chunk-5MYHYBET.mjs → chunk-JEYZQA4Z.mjs} +384 -304
  67. package/dist/react-native/chunks/{chunk-XW6GZQWP.mjs → chunk-KJQ3BUVM.mjs} +4 -4
  68. package/dist/{chunk-DA32WXBT.mjs → react-native/chunks/chunk-QYVRD6C5.mjs} +2 -2
  69. package/dist/react-native/chunks/{chunk-Z44S6WW5.mjs → chunk-X3VY2YT4.mjs} +2 -2
  70. package/dist/{chunk-OETLM4EH.mjs → react-native/chunks/chunk-ZF3VSGEI.mjs} +1 -1
  71. package/dist/react-native/chunks/{msgpack-leaf-4MIGXWZT.mjs → msgpack-leaf-FOUPTT7J.mjs} +3 -3
  72. package/dist/react-native/chunks/{optional-writes-LZDHB7FX.mjs → optional-writes-MGFFGKYQ.mjs} +5 -5
  73. package/dist/react-native/chunks/{restore-queue-J7SB263E.mjs → restore-queue-MVJTP3E4.mjs} +7 -7
  74. package/dist/react-native/chunks/{segment-codec-leaf-PEKX7TBL.mjs → segment-codec-leaf-PSWHL55A.mjs} +5 -5
  75. package/dist/react-native/chunks/{segment-merge-leaf-I2EC7H6R.mjs → segment-merge-leaf-WOJWSDLW.mjs} +6 -6
  76. package/dist/react-native/chunks/{storage-leaf-RQXM7HBO.mjs → storage-leaf-ZUN6Y44X.mjs} +9 -9
  77. package/dist/react-native/chunks/{store-leaf-EZGCLSLM.mjs → store-leaf-K5XG46FV.mjs} +6 -6
  78. package/dist/react-native/chunks/{suggestions-leaf-JNGH2JYC.mjs → suggestions-leaf-KDPM3P27.mjs} +6 -6
  79. package/dist/react-native/chunks/{worker-copies-2OWLLBCV.mjs → worker-copies-FVFMBBH6.mjs} +5 -5
  80. package/dist/react-native/partial-words.mjs +4 -4
  81. package/dist/react-native/pattern.mjs +2 -2
  82. package/dist/react-native/query-suggestions.mjs +4 -4
  83. package/dist/react-native/sync.mjs +4 -4
  84. package/dist/react-native/synonyms.mjs +4 -4
  85. package/dist/{rerank-TQ4SU76L.mjs → rerank-3QEJNMFH.mjs} +4 -4
  86. package/dist/{restore-queue-W7U2X6V3.mjs → restore-queue-Q76Q4S35.mjs} +7 -7
  87. package/dist/{segment-codec-leaf-WGP4FBXF.mjs → segment-codec-leaf-BSDDR7DQ.mjs} +5 -5
  88. package/dist/{segment-merge-leaf-FYWJQSPL.mjs → segment-merge-leaf-6TT66HC5.mjs} +5 -5
  89. package/dist/server.mjs +20 -20
  90. package/dist/{storage-leaf-GRG44RQA.mjs → storage-leaf-R5JQ2X2M.mjs} +22 -22
  91. package/dist/{store-leaf-YDJVH73G.mjs → store-leaf-NCGETZYY.mjs} +6 -6
  92. package/dist/{suggestions-leaf-5UFJV7SC.mjs → suggestions-leaf-TX3GTD6S.mjs} +8 -8
  93. package/dist/sync/filesystem.mjs +9 -9
  94. package/dist/sync/indexeddb.browser.mjs +1 -1
  95. package/dist/sync/indexeddb.mjs +2 -2
  96. package/dist/sync.browser.mjs +4 -4
  97. package/dist/sync.mjs +4 -4
  98. package/dist/synonyms.browser.mjs +3 -3
  99. package/dist/synonyms.mjs +4 -4
  100. package/dist/{thread-6YLVL2NC.mjs → thread-VLVPAUWC.mjs} +13 -13
  101. package/dist/{worker-copies-IP4L7KEW.mjs → worker-copies-NZSBQZKG.mjs} +7 -7
  102. package/dist/workers/entry.mjs +10 -10
  103. package/package.json +7 -5
@@ -1649,6 +1649,7 @@ var getVectorFieldPaths;
1649
1649
  var indexChangeOutsideExternalWaits;
1650
1650
  var insertDocument;
1651
1651
  var insertDocumentVectors;
1652
+ var isCompositePartition;
1652
1653
  var isSyncEpoch;
1653
1654
  var loadEmbedCode;
1654
1655
  var loadSchemaCodeFor;
@@ -1665,6 +1666,7 @@ var requireDocumentObject;
1665
1666
  var requireDocumentWithinSizeLimit;
1666
1667
  var requireMatchingDocId;
1667
1668
  var requireSurfaceFormsForPartialFields;
1669
+ var setNestedValue;
1668
1670
  var storedBM25Params;
1669
1671
  var turnIsSpent;
1670
1672
  var turnsAreBudgeted;
@@ -1721,6 +1723,7 @@ function bindOptionalWritesHost(host, segmentCodec) {
1721
1723
  indexChangeOutsideExternalWaits,
1722
1724
  insertDocument,
1723
1725
  insertDocumentVectors,
1726
+ isCompositePartition,
1724
1727
  isSyncEpoch,
1725
1728
  loadEmbedCode,
1726
1729
  loadSchemaCodeFor,
@@ -1737,6 +1740,7 @@ function bindOptionalWritesHost(host, segmentCodec) {
1737
1740
  requireDocumentWithinSizeLimit,
1738
1741
  requireMatchingDocId,
1739
1742
  requireSurfaceFormsForPartialFields,
1743
+ setNestedValue,
1740
1744
  storedBM25Params,
1741
1745
  turnIsSpent,
1742
1746
  turnsAreBudgeted,
@@ -2445,7 +2449,7 @@ async function rollbackRemovedDocument(ctx, indexName, docId, restoreDoc, origin
2445
2449
  await manager.publication.write(
2446
2450
  () => changeIndexOutsideExternalWaits(async () => {
2447
2451
  if (manager.has(docId)) return;
2448
- const previous = prepareDocumentVectors(restoreDoc, ctx.requireIndex(indexName).vectorFieldPaths);
2452
+ const previous = prepareDocumentVectors(restoreDoc(), ctx.requireIndex(indexName).vectorFieldPaths);
2449
2453
  manager.insert(docId, previous.partitionDoc, {
2450
2454
  preparedText: { after: preparedText?.before }
2451
2455
  });
@@ -3142,6 +3146,36 @@ async function insertDocumentBatch(ctx, indexName, documents, options, hold) {
3142
3146
  return { succeeded: inserts.succeeded, failed };
3143
3147
  }
3144
3148
 
3149
+ // src/engine/mutations/rollback-copy.ts
3150
+ function frozenRollbackCopy(manager, docId) {
3151
+ const partitionId = manager.partitionIdOf(docId);
3152
+ if (partitionId === void 0) return void 0;
3153
+ const partition = manager.getPartition(partitionId);
3154
+ if (!isCompositePartition(partition)) return void 0;
3155
+ for (const segment of partition.frozenSegments()) {
3156
+ const ordinal = segment.docStore.getInternalId(docId);
3157
+ if (ordinal !== void 0) return segment.documentSource.copyForRollbackAt?.(ordinal);
3158
+ }
3159
+ return void 0;
3160
+ }
3161
+ function rollbackCopyOf(manager, docId) {
3162
+ const frozenCopy = frozenRollbackCopy(manager, docId);
3163
+ if (frozenCopy === void 0) {
3164
+ const document = manager.get(docId);
3165
+ return document === void 0 ? void 0 : () => document;
3166
+ }
3167
+ const vectors = [];
3168
+ for (const [fieldPath, vectorIndex] of manager.getVectorIndexes()) {
3169
+ const vector = vectorIndex.getVector(docId);
3170
+ if (vector) vectors.push([fieldPath, vector]);
3171
+ }
3172
+ return () => {
3173
+ const document = frozenCopy();
3174
+ for (const [fieldPath, vector] of vectors) setNestedValue(document, fieldPath, vector);
3175
+ return document;
3176
+ };
3177
+ }
3178
+
3145
3179
  // src/engine/mutations/remove.ts
3146
3180
  function asRemoveError(ctx, err) {
3147
3181
  return batchFailureOf(ctx, err, ErrorCodes.DOC_NOT_FOUND);
@@ -3180,7 +3214,7 @@ function applyOfRemoval(ctx, indexName, prepared) {
3180
3214
  prepared.buffered = true;
3181
3215
  return queued;
3182
3216
  }
3183
- prepared.restoreDoc = ctx.durability ? manager.get(docId) : void 0;
3217
+ prepared.restoreDoc = ctx.durability ? rollbackCopyOf(manager, docId) : void 0;
3184
3218
  if (ctx.durability !== null) prepared.releaseVectorHolds = holdVectorsForRollback(manager.getVectorIndexes(), docId);
3185
3219
  manager.remove(docId, void 0, {
3186
3220
  onRemovedSpellings: (spellings) => {
@@ -250,11 +250,12 @@ async function rebuildTextIndexes(manager, hooks, target) {
250
250
  // src/serialization/msgpack-without-fields.ts
251
251
  var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
252
252
  var keyDecoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
253
+ var walkedHeader = { headerBytes: 0, bodyBytes: 0, children: 0 };
253
254
  function endOfValue(view, start) {
254
255
  let offset = start;
255
256
  let pending = 1;
256
257
  while (pending > 0) {
257
- const header = headerAt(view, offset);
258
+ const header = headerAt(view, offset, walkedHeader);
258
259
  if (header === null) return null;
259
260
  offset += header.headerBytes + header.bodyBytes;
260
261
  if (offset > view.byteLength) return null;
@@ -323,6 +324,8 @@ function decodeMapWithoutFields(bytes, skippedFields) {
323
324
  var encoder = new TextEncoder();
324
325
  var PROTO_KEY_BYTES = encoder.encode("__proto__");
325
326
  var MISSING = { found: false, value: void 0 };
327
+ var mapHeader = { headerBytes: 0, bodyBytes: 0, children: 0 };
328
+ var keyHeader = { headerBytes: 0, bodyBytes: 0, children: 0 };
326
329
  var pathDecoder = null;
327
330
  function encodePathSegments(segments) {
328
331
  if (segments.length === 0) return null;
@@ -349,14 +352,12 @@ function sameBytes(bytes, start, end, target) {
349
352
  }
350
353
  return true;
351
354
  }
352
- function keyRangeAt(view, offset) {
353
- if (!isStringTag(view.getUint8(offset))) return null;
354
- const header = headerAt(view, offset);
355
- if (header === null) return null;
356
- const start = offset + header.headerBytes;
357
- return { start, end: start + header.bodyBytes };
355
+ function keyEndAt(view, offset) {
356
+ if (!isStringTag(view.getUint8(offset))) return -1;
357
+ if (headerAt(view, offset, keyHeader) === null) return -1;
358
+ return offset + keyHeader.headerBytes + keyHeader.bodyBytes;
358
359
  }
359
- function readEncodedPath(bytes, segments, arrays) {
360
+ function readEncodedPath(bytes, segments, arrays, foundRead) {
360
361
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
361
362
  let start = 0;
362
363
  let end = bytes.length;
@@ -368,20 +369,21 @@ function readEncodedPath(bytes, segments, arrays) {
368
369
  if (isArrayTag(tag)) return arrays === "missing" ? MISSING : null;
369
370
  return isScalarTag(tag) ? MISSING : null;
370
371
  }
371
- const header = headerAt(view, start);
372
- if (header === null) return null;
373
- let offset = start + header.headerBytes;
372
+ if (headerAt(view, start, mapHeader) === null) return null;
373
+ const pairs = mapHeader.children / 2;
374
+ let offset = start + mapHeader.headerBytes;
374
375
  let valueStart = -1;
375
376
  let valueEnd = -1;
376
- for (let pair = 0; pair < header.children / 2; pair++) {
377
+ for (let pair = 0; pair < pairs; pair++) {
377
378
  if (offset >= end) return null;
378
- const key = keyRangeAt(view, offset);
379
- if (key === null || key.end > end) return null;
380
- if (sameBytes(bytes, key.start, key.end, PROTO_KEY_BYTES)) return null;
381
- const next = endOfValue(view, key.end);
379
+ const keyEnd = keyEndAt(view, offset);
380
+ if (keyEnd < 0 || keyEnd > end) return null;
381
+ const keyStart = offset + keyHeader.headerBytes;
382
+ if (sameBytes(bytes, keyStart, keyEnd, PROTO_KEY_BYTES)) return null;
383
+ const next = endOfValue(view, keyEnd);
382
384
  if (next === null || next > end) return null;
383
- if (sameBytes(bytes, key.start, key.end, segments[depth])) {
384
- valueStart = key.end;
385
+ if (sameBytes(bytes, keyStart, keyEnd, segments[depth])) {
386
+ valueStart = keyEnd;
385
387
  valueEnd = next;
386
388
  }
387
389
  offset = next;
@@ -393,7 +395,8 @@ function readEncodedPath(bytes, segments, arrays) {
393
395
  }
394
396
  try {
395
397
  pathDecoder ??= new Decoder();
396
- return { found: true, value: pathDecoder.decode(bytes.subarray(start, end)) };
398
+ foundRead.value = pathDecoder.decode(bytes.subarray(start, end));
399
+ return foundRead;
397
400
  } catch {
398
401
  return null;
399
402
  }
@@ -489,20 +492,35 @@ function wrapEncodedDocumentTable(data) {
489
492
  }
490
493
  function createEncodedDocumentSource(count, byteLength, bytesAt, discardedFields) {
491
494
  const discarded = (discardedFields ?? []).map((fieldPath) => fieldPath.split("."));
492
- const touchesDiscarded = (path) => discarded.some((discardedPath) => sharesPrefix(discardedPath, path));
495
+ const touchesDiscarded = (path) => {
496
+ for (const discardedPath of discarded) {
497
+ if (sharesPrefix(discardedPath, path)) return true;
498
+ }
499
+ return false;
500
+ };
493
501
  const docAt = (ordinal) => documentWithOwnBuffers(decodeStoredDocument(bytesAt(ordinal), discardedFields));
494
- function projectedPathAt(ordinal, path) {
502
+ function projectedPathAt(ordinal, path, result) {
495
503
  const segments = encodedProjectionPathOf(path);
496
504
  if (segments === null) return { found: false, value: void 0 };
497
- const read = touchesDiscarded(path) ? null : readEncodedPath(bytesAt(ordinal), segments, "missing");
505
+ const read = touchesDiscarded(path) ? null : readEncodedPath(bytesAt(ordinal), segments, "missing", result);
498
506
  if (read === null) return readProjectedPath(docAt(ordinal), path);
499
- return read.found ? { found: true, value: valueWithOwnBuffers(read.value) } : read;
507
+ if (!read.found) return read;
508
+ read.value = valueWithOwnBuffers(read.value);
509
+ return read;
510
+ }
511
+ function projectedAt(ordinal, projection) {
512
+ if (projection === void 0 || projection.kind === "full") return docAt(ordinal);
513
+ if (projection.kind === "none") return {};
514
+ if (projection.include === null) return cloneProjected(docAt(ordinal), projection);
515
+ const result = { found: true, value: void 0 };
516
+ return projectIncludedPaths(projection.include, projection.exclude, (path) => projectedPathAt(ordinal, path, result));
500
517
  }
501
518
  return {
502
519
  count,
503
520
  byteLength,
504
521
  docAt,
505
- readAt(ordinal) {
522
+ readAt(ordinal, fields) {
523
+ if (fields !== void 0) return projectedAt(ordinal, fields);
506
524
  return decodeStoredDocument(bytesAt(ordinal), discardedFields);
507
525
  },
508
526
  fieldReader(fieldPath) {
@@ -511,16 +529,15 @@ function createEncodedDocumentSource(count, byteLength, bytesAt, discardedFields
511
529
  if (segments === null) return () => void 0;
512
530
  const decodesDocument = touchesDiscarded(path);
513
531
  return (ordinal) => {
514
- const read = decodesDocument ? null : readEncodedPath(bytesAt(ordinal), segments, "decode-document");
532
+ const read = decodesDocument ? null : readEncodedPath(bytesAt(ordinal), segments, "decode-document", { found: true, value: void 0 });
515
533
  if (read !== null) return valueWithOwnBuffers(read.value);
516
534
  return getNestedValue(docAt(ordinal), fieldPath);
517
535
  };
518
536
  },
519
- projectedAt(ordinal, projection) {
520
- if (projection === void 0 || projection.kind === "full") return docAt(ordinal);
521
- if (projection.kind === "none") return {};
522
- if (projection.include === null) return cloneProjected(docAt(ordinal), projection);
523
- return projectIncludedPaths(projection.include, projection.exclude, (path) => projectedPathAt(ordinal, path));
537
+ projectedAt,
538
+ copyForRollbackAt(ordinal) {
539
+ const bytes = bytesAt(ordinal).slice();
540
+ return () => documentWithOwnBuffers(decodeStoredDocument(bytes, discardedFields));
524
541
  }
525
542
  };
526
543
  }
@@ -1,7 +1,7 @@
1
- import { responseStopOf, sendRelayed, readQueryBody, withServerQueryLimits, requestSignal, respondJson, encodeQueryResult, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, registerServerRoutes, closeWhenTheProcessExits, acknowledgeThreadClose, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, LeavingResponse, refuseAndClose, serverRoutes, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, threadCloseRequested, departureConfirmed, serverCloseDeadline, REQUEST_THREAD_DRAIN_DEADLINE_MS, departureConfirmation, serverCloseSignalled, stopResponse, parseJsonObject, validateSuggest, rejectInvalid, isMainFeedNote, SEARCH_CLOCK_SAMPLE_UNITS, REQUEST_THREAD_DEPARTURE_DRAIN_MS, awaitDepartureConfirmation } from './chunk-4GCHJ3XD.mjs';
1
+ import { responseStopOf, sendRelayed, readQueryBody, withServerQueryLimits, requestSignal, respondJson, encodeQueryResult, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, registerServerRoutes, closeWhenTheProcessExits, acknowledgeThreadClose, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, LeavingResponse, refuseAndClose, serverRoutes, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, threadCloseRequested, departureConfirmed, serverCloseDeadline, REQUEST_THREAD_DRAIN_DEADLINE_MS, departureConfirmation, serverCloseSignalled, stopResponse, parseJsonObject, validateSuggest, rejectInvalid, isMainFeedNote, SEARCH_CLOCK_SAMPLE_UNITS, REQUEST_THREAD_DEPARTURE_DRAIN_MS, awaitDepartureConfirmation } from './chunk-YGRJLI2Z.mjs';
2
2
  import { SYNC_CLOSE_GOING_AWAY } from './chunk-TACP6VK6.mjs';
3
- import { importOptionalReads, loadSortingFor, holdsQuotedText, loadQueryCode, executeQuery, lazyQueryBinding, executePreflight, resolveProjection, projectionKeepsField, loadRerankRuntime, setNestedValue } from './chunk-MS746XNY.mjs';
4
- import { loadedMessagePack, loadMessagePack, extractVectorFieldsFromSchema } from './chunk-4WQNWAQE.mjs';
3
+ import { importOptionalReads, loadSortingFor, holdsQuotedText, loadQueryCode, executeQuery, lazyQueryBinding, executePreflight, resolveProjection, projectionKeepsField, loadRerankRuntime, setNestedValue } from './chunk-WYH3QHBK.mjs';
4
+ import { loadedMessagePack, loadMessagePack, extractVectorFieldsFromSchema } from './chunk-EY5U4P5V.mjs';
5
5
  import { answerFromOneState } from './chunk-FJXJZUWF.mjs';
6
6
  import { ServerErrorCodes, ErrorCodes, NarsilError, isNarsilError } from './chunk-ZKOQR7EA.mjs';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
2
- import { requireLoadedMessagePack } from './chunk-4WQNWAQE.mjs';
2
+ import { requireLoadedMessagePack } from './chunk-EY5U4P5V.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/sync/device/stores/records.ts
@@ -1,4 +1,4 @@
1
- import { requireLoadedMessagePack, getNestedValue, parsedTypeOf } from './chunk-4WQNWAQE.mjs';
1
+ import { requireLoadedMessagePack, getNestedValue, parsedTypeOf } from './chunk-EY5U4P5V.mjs';
2
2
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
3
3
  import { codePointCount, exceedsCodePoints } from './chunk-TGPKS2UM.mjs';
4
4
 
@@ -1,5 +1,5 @@
1
- import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-WIT6B5OB.mjs';
2
- import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-MS746XNY.mjs';
1
+ import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-G3KVEHIW.mjs';
2
+ import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-WYH3QHBK.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/query-suggestions/engine-hooks.ts
@@ -1,4 +1,4 @@
1
- import { getNestedValue } from './chunk-AVCMTWET.mjs';
1
+ import { getNestedValue } from './chunk-EY5U4P5V.mjs';
2
2
 
3
3
  // src/serialization/vector-field-bytes.ts
4
4
  var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
@@ -1,8 +1,8 @@
1
1
  import { restoredEmbedding, restoredPartitionConfig, readSharedConfigFields } from './chunk-M2Z5WVWW.mjs';
2
2
  import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR } from './chunk-JDDXV6UF.mjs';
3
- import { storedStateOf } from './chunk-WIT6B5OB.mjs';
4
- import { getLanguage, generateId, decodeSynonymRules } from './chunk-MS746XNY.mjs';
5
- import { decode } from './chunk-5GYGHPCH.mjs';
3
+ import { storedStateOf } from './chunk-G3KVEHIW.mjs';
4
+ import { getLanguage, generateId, decodeSynonymRules } from './chunk-WYH3QHBK.mjs';
5
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
6
6
  import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
7
7
  import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-3ECIRFS5.mjs';
8
8
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
@@ -1,14 +1,14 @@
1
- import { PAGED_SEGMENT_ENVELOPE_VERSION, loadFailed, checkEverySectionPage, openPagedFile, sectionNamed, createSectionReader, closePagedFile, readWholeSectionChecked, readCacheOfThisThread, createReadCache, MERGE_READ_CACHE_BYTES, encodePagedSegmentHead, SECTION_ALIGNMENT_BYTES, SEGMENT_PAGE_BYTES, FILE_ASSEMBLY_CHUNK_BYTES, readListedFile, requireListedChecksum, encodeSegmentManifest, requireNativePage, ID_SAMPLE_INTERVAL, SMALLEST_BLOCK_POSTINGS, readFileRange, PAYLOAD_PREFIX_BYTES, decodePagedSegmentHead, BLOCK_SUMMARY_BYTES, DOCUMENT_BLOCK_BYTES, MAX_DOCUMENT_BLOCK_RAW_BYTES, resumePagedFile, suspendPagedFile, cachedFileBytes, LIST_VIEWS_HELD_PER_SEGMENT, WRITER_YIELD_INTERVAL_TOKENS, DOCUMENT_BLOCK_MIN_RAW_BYTES, CACHED_POSITIONS, POSITION_WIDTH_BYTES, CACHED_LIST, POSTING_WIDTH_BYTES, readFileRangeLater, CACHED_DOCUMENT_BLOCK, failNativePage, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, POSTING_WRITE_ROWS, POSTING_WRITE_POSITIONS, SECTION_WRITE_BUFFER_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, MERGED_SEGMENT_GROWTH_ALLOWANCE, MERGED_SEGMENT_TARGET_BYTES } from './chunk-EALKCTWH.mjs';
1
+ import { PAGED_SEGMENT_ENVELOPE_VERSION, loadFailed, checkEverySectionPage, openPagedFile, sectionNamed, createSectionReader, closePagedFile, readWholeSectionChecked, readCacheOfThisThread, createReadCache, MERGE_READ_CACHE_BYTES, encodePagedSegmentHead, SECTION_ALIGNMENT_BYTES, SEGMENT_PAGE_BYTES, FILE_ASSEMBLY_CHUNK_BYTES, readListedFile, requireListedChecksum, encodeSegmentManifest, requireNativePage, ID_SAMPLE_INTERVAL, SMALLEST_BLOCK_POSTINGS, readFileRange, PAYLOAD_PREFIX_BYTES, decodePagedSegmentHead, BLOCK_SUMMARY_BYTES, DOCUMENT_BLOCK_BYTES, MAX_DOCUMENT_BLOCK_RAW_BYTES, resumePagedFile, suspendPagedFile, cachedFileBytes, LIST_VIEWS_HELD_PER_SEGMENT, WRITER_YIELD_INTERVAL_TOKENS, DOCUMENT_BLOCK_MIN_RAW_BYTES, CACHED_POSITIONS, POSITION_WIDTH_BYTES, CACHED_LIST, POSTING_WIDTH_BYTES, readFileRangeLater, CACHED_DOCUMENT_BLOCK, failNativePage, REMOVAL_BUCKET_WRITE_BUFFER_BYTES, POSTING_WRITE_ROWS, POSTING_WRITE_POSITIONS, SECTION_WRITE_BUFFER_BYTES, LARGEST_REMOVAL_BUCKET_COUNT, REMOVAL_BUCKET_TARGET_BYTES, MERGED_SEGMENT_GROWTH_ALLOWANCE, MERGED_SEGMENT_TARGET_BYTES } from './chunk-H23FB267.mjs';
2
2
  import { ReplicationMessageTypes } from './chunk-5FLRXF73.mjs';
3
3
  import { WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
4
- import { SEGMENT_MANIFEST_VERSION, manifestKey, manifestReferencedKeys, segmentsPrefix, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION, segmentKey } from './chunk-TANKI7TG.mjs';
4
+ import { SEGMENT_MANIFEST_VERSION, manifestKey, manifestReferencedKeys, segmentsPrefix, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION, segmentKey } from './chunk-GTGQLCEI.mjs';
5
5
  import { encode } from './chunk-S5QMWECL.mjs';
6
- import { restoreVectorFields } from './chunk-OETLM4EH.mjs';
7
- import { requireWithinFileLimit, HEADER_SIZE, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, openChecksummedEnvelope, readHeader, packChecksummedEnvelope } from './chunk-WIT6B5OB.mjs';
8
- import { decodeStoredDocument, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, buildPartialWordTableFrom, mergeFieldIndexes, isCompositePartition, reconstructSchemaFromMetadata, decodeSurfaceTable, mergeDocFrequencies, TermLookup, createFrozenRemovals, selectionKeeps, fieldIndexRemapOf, mergeKeywordSources, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, createSharedFrozenSegment, shareSegmentArrays, getLanguage, emptyPendingRegions, mergePostings2, scanPostingBlocks, holdsADiscardedField, SegmentRefusal, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayloads, resolvePartitionInsertOptions, endOfValue, segmentArraysOf, mergeSegmentContents, decodeMapWithoutFields, prepareDocumentVectors, resolveIndexAnalysis } from './chunk-MS746XNY.mjs';
6
+ import { restoreVectorFields } from './chunk-5SHWA6PE.mjs';
7
+ import { requireWithinFileLimit, HEADER_SIZE, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, openChecksummedEnvelope, readHeader, packChecksummedEnvelope } from './chunk-G3KVEHIW.mjs';
8
+ import { decodeStoredDocument, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, buildPartialWordTableFrom, mergeFieldIndexes, isCompositePartition, reconstructSchemaFromMetadata, decodeSurfaceTable, mergeDocFrequencies, TermLookup, createFrozenRemovals, selectionKeeps, fieldIndexRemapOf, mergeKeywordSources, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, createSharedFrozenSegment, shareSegmentArrays, getLanguage, emptyPendingRegions, mergePostings2, scanPostingBlocks, holdsADiscardedField, SegmentRefusal, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayloads, resolvePartitionInsertOptions, endOfValue, segmentArraysOf, mergeSegmentContents, decodeMapWithoutFields, prepareDocumentVectors, resolveIndexAnalysis } from './chunk-WYH3QHBK.mjs';
9
9
  import { encodeDocument } from './chunk-2CKDCC65.mjs';
10
- import { decode } from './chunk-5GYGHPCH.mjs';
11
- import { extractVectorFieldsFromSchema, VECTOR_PATTERN, requireValidFieldTypes, partialFieldsOf, messagePackUpperBoundBytes } from './chunk-4WQNWAQE.mjs';
10
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
11
+ import { extractVectorFieldsFromSchema, VECTOR_PATTERN, requireValidFieldTypes, partialFieldsOf, messagePackUpperBoundBytes } from './chunk-EY5U4P5V.mjs';
12
12
  import { DEFAULT_REWRITE_BYTES_PER_CHECKPOINT, DEFAULT_COMPACTION_THRESHOLD, SEGMENT_FILE_FRAMING_SLACK_BYTES, REWRITE_ABOVE_REMOVED_DOCUMENT_SHARE, COMPACTION_LARGEST_MERGED_DOCUMENT_COUNT, SEGMENT_TOKEN_TABLE_SHARE_OF_FILE } from './chunk-S3JHYPH7.mjs';
13
13
  import { MAX_FILE_BYTES } from './chunk-4PY4JYMY.mjs';
14
14
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
@@ -1,4 +1,4 @@
1
- import { readRecentMemoryFigures, readMemoryFigures } from './chunk-MS746XNY.mjs';
1
+ import { readRecentMemoryFigures, readMemoryFigures } from './chunk-WYH3QHBK.mjs';
2
2
  import { collectGarbageBeforeAnswerRefusal, collectYoungGenerationBeforeRefusal, reservedHeapBytes, admitHeapBytes } from './chunk-2AFZE7Y3.mjs';
3
3
  import { NarsilError, ErrorCodes, ServerErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
@@ -1,20 +1,20 @@
1
- import { loadVectorField, openColdVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-QJFKL4NK.mjs';
2
- import { engineChangeSource, ChangeCursor, createSemaphore, changePositionList, changesNotEnabled, previousDocumentRequired, invalidPositions, changePositionsOf, requireConfigurationShape, RESTORE_ESTIMATE_MARGIN, persistEpochStates, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_WORST_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_STORED_BYTE, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE } from './chunk-SSITKQU6.mjs';
1
+ import { loadVectorField, openColdVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-FE2XILWN.mjs';
2
+ import { engineChangeSource, ChangeCursor, createSemaphore, changePositionList, changesNotEnabled, previousDocumentRequired, invalidPositions, changePositionsOf, requireConfigurationShape, RESTORE_ESTIMATE_MARGIN, persistEpochStates, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_WORST_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_STORED_BYTE, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE } from './chunk-PNFP5THV.mjs';
3
3
  import { restoredConfigFields, restoredEmbedding } from './chunk-M2Z5WVWW.mjs';
4
- import { ENTRIES_MESSAGE_LIMIT_BYTES, FEED_HEAD_RETRY_MS, decodeSegmentManifest, isRecord, isUint32, isSequenceNumber, ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-XWPNRHTG.mjs';
5
- import { isPagedSegmentFile, openPagedSegmentScan, countsAsLatestHolder, writeCheckpointSegments, commitCheckpointManifest, readSegmentFile, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, removeUnusedSegmentFiles, readWalSegments, durableRecordMissing, checkpointLastSeqNo, pagedListingOf, residentSectionsOf, filePathOf, partitionContentsOf, checkPagedSegmentFully, openPagedSnapshot, createPagedFrozenSegment, SEGMENT_HEADER_SIZE, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-H6LWGMPQ.mjs';
6
- import { decodeSections, READS_AHEAD_AT_ONCE, readFileRangeLater, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, READ_AHEAD_CHUNK_BYTES, STABLE_HEAD_ATTEMPTS, directoryCheckpointStore } from './chunk-EALKCTWH.mjs';
7
- import { manifestKey, segmentsPrefix, vectorFileKey, manifestFileRefs, graphPartKey } from './chunk-TANKI7TG.mjs';
4
+ import { ENTRIES_MESSAGE_LIMIT_BYTES, FEED_HEAD_RETRY_MS, decodeSegmentManifest, isRecord, isUint32, isSequenceNumber, ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-LRIJ7U3T.mjs';
5
+ import { isPagedSegmentFile, openPagedSegmentScan, countsAsLatestHolder, writeCheckpointSegments, commitCheckpointManifest, readSegmentFile, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, removeUnusedSegmentFiles, readWalSegments, durableRecordMissing, checkpointLastSeqNo, pagedListingOf, residentSectionsOf, filePathOf, partitionContentsOf, checkPagedSegmentFully, openPagedSnapshot, createPagedFrozenSegment, SEGMENT_HEADER_SIZE, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-6SIEVWMG.mjs';
6
+ import { decodeSections, READS_AHEAD_AT_ONCE, readFileRangeLater, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, READ_AHEAD_CHUNK_BYTES, STABLE_HEAD_ATTEMPTS, directoryCheckpointStore } from './chunk-H23FB267.mjs';
7
+ import { manifestKey, segmentsPrefix, vectorFileKey, manifestFileRefs, graphPartKey } from './chunk-GTGQLCEI.mjs';
8
8
  import { encode } from './chunk-S5QMWECL.mjs';
9
- import { setNestedValue, restoreVectorFields } from './chunk-OETLM4EH.mjs';
10
- import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-VHIOGDVD.mjs';
9
+ import { setNestedValue, restoreVectorFields } from './chunk-5SHWA6PE.mjs';
10
+ import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-PQWK7KXS.mjs';
11
11
  import { DEFAULT_VECTOR_METRIC, defaultQuantizationFor, vectorsPerFile, vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION, decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-R724DJSG.mjs';
12
12
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
13
- import { openChecksummedEnvelope, HEADER_SIZE, packChecksummedEnvelope, packEnvelopeWithChecksum, checksumOfChunks, readHeader, crc32, engineVersionParts, writeHeader, storedStateToWire, storedStateFromWire } from './chunk-WIT6B5OB.mjs';
14
- import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, loadSchemaCodeFor, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, noteDocumentChurn, createPartitionIndex, writePartitionDocument, yieldToEventLoop, createPublicationGate, removedSurfaceSpellings, readHeapStatistics, readProcessMemoryUse, prepareConfiguredSynonyms, withOpenIndex, loadGzip, prepareRemovalText, prepareDocumentText, updateDocumentVectors, holdSyncEpochChange, decodeStoredDocument, emitSyncChange, ARRAY_POSITION_GAP } from './chunk-MS746XNY.mjs';
15
- import { decode } from './chunk-5GYGHPCH.mjs';
13
+ import { openChecksummedEnvelope, HEADER_SIZE, packChecksummedEnvelope, packEnvelopeWithChecksum, checksumOfChunks, readHeader, crc32, engineVersionParts, writeHeader, storedStateToWire, storedStateFromWire } from './chunk-G3KVEHIW.mjs';
14
+ import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, loadSchemaCodeFor, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, noteDocumentChurn, createPartitionIndex, writePartitionDocument, yieldToEventLoop, createPublicationGate, removedSurfaceSpellings, readHeapStatistics, readProcessMemoryUse, prepareConfiguredSynonyms, withOpenIndex, loadGzip, prepareRemovalText, prepareDocumentText, updateDocumentVectors, holdSyncEpochChange, decodeStoredDocument, emitSyncChange, ARRAY_POSITION_GAP } from './chunk-WYH3QHBK.mjs';
15
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
16
16
  import { isSyncEpoch, newSyncEpoch } from './chunk-BUMREPLU.mjs';
17
- import { extractVectorFieldsFromSchema, flattenSchema, VECTOR_PATTERN, validateDocument, validateDocumentStrict, schemaFieldsOf, parseVectorDimension, requireValidFieldTypes, isQuantizationMode, isStorageMode, MAX_DOCUMENT_NESTING_DEPTH } from './chunk-4WQNWAQE.mjs';
17
+ import { extractVectorFieldsFromSchema, flattenSchema, VECTOR_PATTERN, validateDocument, validateDocumentStrict, schemaFieldsOf, parseVectorDimension, requireValidFieldTypes, isQuantizationMode, isStorageMode, MAX_DOCUMENT_NESTING_DEPTH } from './chunk-EY5U4P5V.mjs';
18
18
  import { turnsAreBudgeted, turnIsSpent, yieldTurn, collectAndReturnPages, countWrite } from './chunk-5EI5CXO6.mjs';
19
19
  import { DEFAULT_MAX_PARTITIONS, ANALYSIS_CHANGE_MEMBERS, EXPORT_CHUNK_BYTES, MAX_PARTITIONS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, ANALYSIS_HOLD_APPLY_INTERVAL_MS, MAX_IMPORT_REFUSALS_REPORTED } from './chunk-3ECIRFS5.mjs';
20
20
  import { DEFAULT_COMPACTION_THRESHOLD } from './chunk-S3JHYPH7.mjs';
@@ -1,5 +1,5 @@
1
1
  import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
2
- import { isCompositePartition, encodeSegmentState, freezeSegmentShared } from './chunk-MS746XNY.mjs';
2
+ import { isCompositePartition, encodeSegmentState, freezeSegmentShared } from './chunk-WYH3QHBK.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/core/partition/frozen/share.ts
@@ -1,9 +1,9 @@
1
- import { encode, Merger } from './chunk-YHZSSPG3.mjs';
2
- import { DayStore, RestoredHistory, dayOf, sameBytes } from './chunk-KX3OP6VP.mjs';
1
+ import { encode, Merger } from './chunk-KXA77DPZ.mjs';
2
+ import { DayStore, RestoredHistory, dayOf, sameBytes } from './chunk-4YIVY3PB.mjs';
3
3
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
4
- import { isGroup, invalidSetting, historyFilesOf, buildRecordKey, MIN_KEY_BYTES, resolveSetting, isPerson, acceptedPhrase, removeHistoryFolder, normaliseBan, banListFromInput, validateSetting, withState, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, MAX_TIMER_DELAY_MS, BUILD_WRITE_BATCH, BYTES_PER_MIB, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-WIT6B5OB.mjs';
5
- import { GROUP_FORMAT, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, loadDigest, SUGGESTIONS_INDEX_INFIX } from './chunk-MS746XNY.mjs';
6
- import { decode } from './chunk-5GYGHPCH.mjs';
4
+ import { isGroup, invalidSetting, historyFilesOf, buildRecordKey, MIN_KEY_BYTES, resolveSetting, isPerson, acceptedPhrase, removeHistoryFolder, normaliseBan, banListFromInput, validateSetting, withState, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, MAX_TIMER_DELAY_MS, BUILD_WRITE_BATCH, BYTES_PER_MIB, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-G3KVEHIW.mjs';
5
+ import { GROUP_FORMAT, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, loadDigest, SUGGESTIONS_INDEX_INFIX } from './chunk-WYH3QHBK.mjs';
6
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
7
7
  import { spawnNodeWorker, resolveWorkerEntry } from './chunk-FJXJZUWF.mjs';
8
8
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
9
9
  import { compareCodePoints } from './chunk-TGPKS2UM.mjs';
@@ -1,4 +1,4 @@
1
- import { withOpenIndex, oneAtATime, validateBM25Params, storedBM25Params, emitSyncChange } from './chunk-MS746XNY.mjs';
1
+ import { withOpenIndex, oneAtATime, validateBM25Params, storedBM25Params, emitSyncChange } from './chunk-WYH3QHBK.mjs';
2
2
  import { ErrorCodes } from './chunk-ZKOQR7EA.mjs';
3
3
 
4
4
  // src/engine/bm25-update.ts
@@ -867,7 +867,7 @@ var loaded = null;
867
867
  var loading = null;
868
868
  function loadMessagePack() {
869
869
  if (loaded !== null) return Promise.resolve(loaded);
870
- loading ??= import('./msgpack-leaf-6ZBZWFRD.mjs').then(
870
+ loading ??= import('./msgpack-leaf-LIT7TKZW.mjs').then(
871
871
  (code) => {
872
872
  code.bindMsgpackHost({
873
873
  BYTE_ORDER_MARK_WALK_BYTES_PER_HEADER,
@@ -1,5 +1,5 @@
1
- import { getIndexMetadata } from './chunk-BBIAUHAB.mjs';
2
- import { fnv1a } from './chunk-MS746XNY.mjs';
1
+ import { getIndexMetadata } from './chunk-6LVQ3GLT.mjs';
2
+ import { fnv1a } from './chunk-WYH3QHBK.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/distribution/cluster-node/routable-allocation.ts
@@ -1,8 +1,8 @@
1
- import { loadFailed, cachedFileBytes, COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile, COLD_GRAPH_PART_VECTORS, decodeSections, readListedFile, requireListedChecksum, requireListedSize, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, failNativePage, COLD_WALK_NODES_READ_AHEAD } from './chunk-EALKCTWH.mjs';
1
+ import { loadFailed, cachedFileBytes, COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile, COLD_GRAPH_PART_VECTORS, decodeSections, readListedFile, requireListedChecksum, requireListedSize, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, failNativePage, COLD_WALK_NODES_READ_AHEAD } from './chunk-H23FB267.mjs';
2
2
  import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, requireBoundedUpperLists, osqRecordBytes, osqBitsOf, countDead, magnitude, rescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, stageQueryLevels, scalarQueryProducts, readTrailer, osqEstimate, osqDistance, toDistance, createFixedBuffer } from './chunk-R724DJSG.mjs';
3
- import { HEADER_SIZE, openChecksummedEnvelope, crc32, readHeader } from './chunk-WIT6B5OB.mjs';
4
- import { yieldToEventLoop, compareScores } from './chunk-MS746XNY.mjs';
5
- import { decode, decodeMulti } from './chunk-5GYGHPCH.mjs';
3
+ import { HEADER_SIZE, openChecksummedEnvelope, crc32, readHeader } from './chunk-G3KVEHIW.mjs';
4
+ import { yieldToEventLoop, compareScores } from './chunk-WYH3QHBK.mjs';
5
+ import { decode, decodeMulti } from './chunk-Y7GXGJFZ.mjs';
6
6
  import { signalOfSearch, requireSearchActive } from './chunk-FJXJZUWF.mjs';
7
7
  import { MIN_M, MAX_M, MAX_LAYER_CAP } from './chunk-ZXX5GZEX.mjs';
8
8
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
@@ -1,5 +1,5 @@
1
- import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-MS746XNY.mjs';
2
- import { flattenSchema } from './chunk-4WQNWAQE.mjs';
1
+ import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-WYH3QHBK.mjs';
2
+ import { flattenSchema } from './chunk-EY5U4P5V.mjs';
3
3
  import { NATIVE_CRC32_MIN_BYTES, MAX_FILE_BYTES, CHECKSUM_YIELD_CHUNK_BYTES } from './chunk-4PY4JYMY.mjs';
4
4
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
5
5
  import { encode } from '@msgpack/msgpack';
@@ -1,4 +1,4 @@
1
- import { fnv1a } from './chunk-MS746XNY.mjs';
1
+ import { fnv1a } from './chunk-WYH3QHBK.mjs';
2
2
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
3
3
 
4
4
  // src/persistence/durability/segment/layout.ts
@@ -1,8 +1,8 @@
1
- import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION } from './chunk-TANKI7TG.mjs';
1
+ import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION } from './chunk-GTGQLCEI.mjs';
2
2
  import { encode } from './chunk-S5QMWECL.mjs';
3
3
  import { createFixedBuffer, createVectorFileReader } from './chunk-R724DJSG.mjs';
4
- import { crc32, packChecksummedEnvelope, HEADER_SIZE } from './chunk-WIT6B5OB.mjs';
5
- import { decode } from './chunk-5GYGHPCH.mjs';
4
+ import { crc32, packChecksummedEnvelope, HEADER_SIZE } from './chunk-G3KVEHIW.mjs';
5
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
6
6
  import { nativeSearchCoreIsEnabled, loadNativeCore } from './chunk-ASZLNVWW.mjs';
7
7
  import { ErrorCodes, NarsilError } from './chunk-ZKOQR7EA.mjs';
8
8
 
@@ -1,5 +1,5 @@
1
- import { openCountsFile } from './chunk-KX3OP6VP.mjs';
2
- import { SCRAMBLED_ID_BYTES } from './chunk-WIT6B5OB.mjs';
1
+ import { openCountsFile } from './chunk-4YIVY3PB.mjs';
2
+ import { SCRAMBLED_ID_BYTES } from './chunk-G3KVEHIW.mjs';
3
3
  export { encode } from '@msgpack/msgpack';
4
4
 
5
5
  function bindSuggestionsHost(_host, _msgpack, _suggestionStore) {
@@ -1,8 +1,8 @@
1
- import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, manifestFileRefs, graphPartKey, vectorFileKey } from './chunk-TANKI7TG.mjs';
1
+ import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, manifestFileRefs, graphPartKey, vectorFileKey } from './chunk-GTGQLCEI.mjs';
2
2
  import { VECTOR_FILE_MAX_VECTORS, deadBytesFor } from './chunk-R724DJSG.mjs';
3
- import { openChecksummedEnvelope, HEADER_SIZE, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES } from './chunk-WIT6B5OB.mjs';
4
- import { decode } from './chunk-5GYGHPCH.mjs';
5
- import { requireValidFieldTypes } from './chunk-4WQNWAQE.mjs';
3
+ import { openChecksummedEnvelope, HEADER_SIZE, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES } from './chunk-G3KVEHIW.mjs';
4
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
5
+ import { requireValidFieldTypes } from './chunk-EY5U4P5V.mjs';
6
6
  import { MAX_FILE_BYTES } from './chunk-4PY4JYMY.mjs';
7
7
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
8
8
 
@@ -1,8 +1,8 @@
1
1
  import { encode } from './chunk-S5QMWECL.mjs';
2
2
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
3
- import { openChecksummedEnvelope, packChecksummedEnvelope } from './chunk-WIT6B5OB.mjs';
4
- import { rulesOfStoredSynonyms, configurationPayloadOf, withOpenIndex, emitSyncChange, validQueryFilter, createPartitionIndex, prepareDocumentVectors, createPatternWorkMeter, resolvePartitionInsertOptions } from './chunk-MS746XNY.mjs';
5
- import { decode } from './chunk-5GYGHPCH.mjs';
3
+ import { openChecksummedEnvelope, packChecksummedEnvelope } from './chunk-G3KVEHIW.mjs';
4
+ import { rulesOfStoredSynonyms, configurationPayloadOf, withOpenIndex, emitSyncChange, validQueryFilter, createPartitionIndex, prepareDocumentVectors, createPatternWorkMeter, resolvePartitionInsertOptions } from './chunk-WYH3QHBK.mjs';
5
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
6
6
  import { newSyncEpoch, isSyncEpoch } from './chunk-BUMREPLU.mjs';
7
7
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
8
8
 
@@ -1,4 +1,4 @@
1
- import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-MS746XNY.mjs';
1
+ import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-WYH3QHBK.mjs';
2
2
 
3
3
  // src/partitioning/constants.ts
4
4
  var REBALANCE_CHUNK_SIZE = 1e3;
@@ -1,10 +1,10 @@
1
- import { syncStorageOf, INDEX_CONFIGURATION_ENVELOPE_VERSION, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration } from './chunk-SSITKQU6.mjs';
2
- import { archiveLayout } from './chunk-XWPNRHTG.mjs';
3
- import { manifestFileRefs } from './chunk-TANKI7TG.mjs';
1
+ import { syncStorageOf, INDEX_CONFIGURATION_ENVELOPE_VERSION, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration } from './chunk-PNFP5THV.mjs';
2
+ import { archiveLayout } from './chunk-LRIJ7U3T.mjs';
3
+ import { manifestFileRefs } from './chunk-GTGQLCEI.mjs';
4
4
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
5
- import { openChecksummedEnvelope } from './chunk-WIT6B5OB.mjs';
6
- import { withOpenIndex, emitEngineEvent } from './chunk-MS746XNY.mjs';
7
- import { decode } from './chunk-5GYGHPCH.mjs';
5
+ import { openChecksummedEnvelope } from './chunk-G3KVEHIW.mjs';
6
+ import { withOpenIndex, emitEngineEvent } from './chunk-WYH3QHBK.mjs';
7
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
8
8
  import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
9
9
  import { DIRECTORY_IDENTITY_CHECK_INTERVAL_MS } from './chunk-S3JHYPH7.mjs';
10
10
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
@@ -1,5 +1,5 @@
1
1
  import { boundQuerySuggestionsOf } from './chunk-S2POFTLN.mjs';
2
- import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunk-MS746XNY.mjs';
2
+ import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunk-WYH3QHBK.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/query-suggestions/index.ts
@@ -1,7 +1,7 @@
1
- import { isValidInteger, isRecord } from './chunk-BBIAUHAB.mjs';
1
+ import { isValidInteger, isRecord } from './chunk-6LVQ3GLT.mjs';
2
2
  import { MAX_REPLICATION_FACTOR, MAX_PARTITION_COUNT } from './chunk-JDDXV6UF.mjs';
3
- import { openChecksummedEnvelope, packChecksummedEnvelope, MAX_HISTORY_FILE_BYTES } from './chunk-WIT6B5OB.mjs';
4
- import { decode } from './chunk-5GYGHPCH.mjs';
3
+ import { openChecksummedEnvelope, packChecksummedEnvelope, MAX_HISTORY_FILE_BYTES } from './chunk-G3KVEHIW.mjs';
4
+ import { decode } from './chunk-Y7GXGJFZ.mjs';
5
5
  import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
6
6
  import { joinChunks } from './chunk-GR5GMFJJ.mjs';
7
7
  import { MAX_FILE_BYTES } from './chunk-4PY4JYMY.mjs';