@delali/narsil 0.4.6-next.333 → 0.4.6-next.334

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 (80) hide show
  1. package/dist/browser/{chunk-75MBWQFW.mjs → chunk-J343PP7Q.mjs} +23 -10
  2. package/dist/browser/{optional-writes-3HKIVZFU.mjs → optional-writes-OFPF77WY.mjs} +2 -1
  3. package/dist/browser/{segment-codec-leaf-NDVBIBJJ.mjs → segment-codec-leaf-E4YHXUAI.mjs} +4 -2
  4. package/dist/browser/{storage-leaf-NCOXQTXQ.mjs → storage-leaf-WJMD66YX.mjs} +3 -2
  5. package/dist/{chunk-FBGUKBW2.mjs → chunk-2QQCR7KF.mjs} +2 -2
  6. package/dist/{chunk-GYQKMYPG.mjs → chunk-4QNWK42S.mjs} +35 -19
  7. package/dist/{chunk-NOEMVUBS.mjs → chunk-5PUNOJC7.mjs} +1 -1
  8. package/dist/{chunk-43UYNPPC.mjs → chunk-6S5QPDPP.mjs} +2 -2
  9. package/dist/{chunk-2M55WPWK.mjs → chunk-AKLCYPUY.mjs} +1 -1
  10. package/dist/{chunk-5E46Y42F.mjs → chunk-B276ZQIH.mjs} +2 -2
  11. package/dist/{chunk-26AKUBDX.mjs → chunk-B6VO3BCX.mjs} +4 -4
  12. package/dist/{chunk-HFF2R73P.mjs → chunk-BVFJ5XAU.mjs} +2 -2
  13. package/dist/{chunk-3EFLY5LQ.mjs → chunk-CHGJGKST.mjs} +2 -2
  14. package/dist/{chunk-3TENTQKL.mjs → chunk-CVCBVUH4.mjs} +2 -2
  15. package/dist/{chunk-E6CHNSMY.mjs → chunk-HB3EBTKC.mjs} +5 -5
  16. package/dist/{chunk-3UAYJW6R.mjs → chunk-HNE4HNC2.mjs} +1 -1
  17. package/dist/{chunk-H2R4BTSO.mjs → chunk-I255IQTR.mjs} +2 -2
  18. package/dist/{chunk-NSMF4OHE.mjs → chunk-IALJ2X74.mjs} +3 -3
  19. package/dist/{chunk-HJCYLTVA.mjs → chunk-ICEZRKIS.mjs} +1 -1
  20. package/dist/{chunk-GZ4YU36L.mjs → chunk-IVVNKTHC.mjs} +1 -1
  21. package/dist/{chunk-34QTB6O7.mjs → chunk-KHZ6LAFB.mjs} +1 -1
  22. package/dist/{chunk-L2W4FGTD.mjs → chunk-N3DJTTKK.mjs} +2 -2
  23. package/dist/{chunk-47NXBGQG.mjs → chunk-QWYIMVYT.mjs} +2 -2
  24. package/dist/{chunk-5CYLXJYQ.mjs → chunk-R5OFJZNI.mjs} +1 -1
  25. package/dist/{chunk-PBVLCGCW.mjs → chunk-RHFUQ76T.mjs} +1 -1
  26. package/dist/{chunk-U6B3HHTP.mjs → chunk-SCUYG24W.mjs} +4 -4
  27. package/dist/{chunk-OPWZ7PZZ.mjs → chunk-TNBOFWDS.mjs} +1 -1
  28. package/dist/{chunk-6U4C7VAD.mjs → chunk-UFDD57KD.mjs} +3 -3
  29. package/dist/{chunk-3WYTRM24.mjs → chunk-UJQ2S5QU.mjs} +2 -2
  30. package/dist/{chunk-KFUHQC6X.mjs → chunk-Z622PLNH.mjs} +12 -11
  31. package/dist/{direct-executor-2Y3JPVXT.mjs → direct-executor-P2Z7T57F.mjs} +1 -1
  32. package/dist/distribution.mjs +27 -27
  33. package/dist/index.browser.mjs +1 -1
  34. package/dist/index.mjs +1 -1
  35. package/dist/index.react-native.mjs +1 -1
  36. package/dist/{long-query-thread-6B2HXSBI.mjs → long-query-thread-SOJ25FZU.mjs} +10 -10
  37. package/dist/{optional-writes-27NHTIAL.mjs → optional-writes-GVHTEENI.mjs} +3 -3
  38. package/dist/{paged-partition-archive-EFCEC4TD.mjs → paged-partition-archive-XCETVLZW.mjs} +9 -9
  39. package/dist/partial-words.browser.mjs +1 -1
  40. package/dist/partial-words.mjs +1 -1
  41. package/dist/persistence/durability/checkpoint-worker.mjs +7 -7
  42. package/dist/{query-actions-H6H54EJE.mjs → query-actions-WKC4SQEZ.mjs} +1 -1
  43. package/dist/query-suggestions/merge-worker.mjs +4 -4
  44. package/dist/query-suggestions.browser.mjs +1 -1
  45. package/dist/query-suggestions.mjs +2 -2
  46. package/dist/react-native/chunks/{chunk-YMIPG3VC.mjs → chunk-4JY2CZWV.mjs} +1 -1
  47. package/dist/react-native/chunks/{chunk-XCJVLU6J.mjs → chunk-FN3HBVNY.mjs} +2 -2
  48. package/dist/react-native/chunks/{chunk-DYAAQB5R.mjs → chunk-LR6OK725.mjs} +1 -1
  49. package/dist/react-native/chunks/{chunk-GCD64RZ2.mjs → chunk-MPNHORPY.mjs} +1 -1
  50. package/dist/react-native/chunks/{chunk-7TURQEZZ.mjs → chunk-QT2G6OMI.mjs} +34 -18
  51. package/dist/react-native/chunks/{chunk-UTYWL2W6.mjs → chunk-QZUFYRFX.mjs} +1 -1
  52. package/dist/react-native/chunks/{optional-writes-NYFF5NTC.mjs → optional-writes-TCVHZRRM.mjs} +2 -2
  53. package/dist/react-native/chunks/{restore-queue-4OXFRQ6N.mjs → restore-queue-RLQ3L223.mjs} +4 -4
  54. package/dist/react-native/chunks/{segment-codec-leaf-YKUO5DU6.mjs → segment-codec-leaf-IM6YCP7M.mjs} +2 -2
  55. package/dist/react-native/chunks/{segment-merge-leaf-HIOWV5UN.mjs → segment-merge-leaf-32YR2ZTM.mjs} +3 -3
  56. package/dist/react-native/chunks/{storage-leaf-H64VNQKE.mjs → storage-leaf-RKI6S6T5.mjs} +8 -7
  57. package/dist/react-native/chunks/{store-leaf-ZG5DR7QA.mjs → store-leaf-YQXG6NOD.mjs} +3 -3
  58. package/dist/react-native/chunks/{suggestions-leaf-AJZ3SHZO.mjs → suggestions-leaf-Q3ABULFB.mjs} +3 -3
  59. package/dist/react-native/chunks/{worker-copies-IY4ZIA6W.mjs → worker-copies-W63KWZZN.mjs} +2 -2
  60. package/dist/react-native/partial-words.mjs +1 -1
  61. package/dist/react-native/query-suggestions.mjs +1 -1
  62. package/dist/react-native/sync.mjs +1 -1
  63. package/dist/react-native/synonyms.mjs +1 -1
  64. package/dist/{rerank-JTIQNROU.mjs → rerank-OJLSVUYV.mjs} +6 -6
  65. package/dist/{restore-queue-JIJW3XKK.mjs → restore-queue-BYO4AJLZ.mjs} +4 -4
  66. package/dist/{segment-codec-leaf-LTIODLBH.mjs → segment-codec-leaf-V52PQEVL.mjs} +2 -2
  67. package/dist/{segment-merge-leaf-CXOMXPAP.mjs → segment-merge-leaf-M3ZLJYDD.mjs} +2 -2
  68. package/dist/server.mjs +19 -21
  69. package/dist/{storage-leaf-VB5OG66O.mjs → storage-leaf-YYO4FLHQ.mjs} +18 -18
  70. package/dist/{store-leaf-RBK3Y2H4.mjs → store-leaf-KK7VD3P3.mjs} +3 -3
  71. package/dist/{suggestions-leaf-27TNMJ37.mjs → suggestions-leaf-EJCNU3NM.mjs} +5 -5
  72. package/dist/sync/filesystem.mjs +4 -4
  73. package/dist/sync.browser.mjs +1 -1
  74. package/dist/sync.mjs +1 -1
  75. package/dist/synonyms.browser.mjs +1 -1
  76. package/dist/synonyms.mjs +1 -1
  77. package/dist/{thread-J32AOE3H.mjs → thread-6BVFFMP7.mjs} +9 -9
  78. package/dist/{worker-copies-F2WVSQQO.mjs → worker-copies-5V5JGCWU.mjs} +4 -4
  79. package/dist/workers/entry.mjs +7 -7
  80. package/package.json +5 -5
@@ -2496,6 +2496,15 @@ function requireVectorsSwitch(vectors) {
2496
2496
  received: vectors === null ? "null" : typeof vectors
2497
2497
  });
2498
2498
  }
2499
+ function projectionFields(projection) {
2500
+ if (projection === void 0 || projection === null || projection === true) return void 0;
2501
+ if (typeof projection === "object" && !Array.isArray(projection)) return projection;
2502
+ throw new NarsilError(
2503
+ ErrorCodes.SEARCH_INVALID_FIELD,
2504
+ 'The "document" option takes true, false, or an object of field path lists',
2505
+ { option: "document", received: Array.isArray(projection) ? "array" : typeof projection }
2506
+ );
2507
+ }
2499
2508
  function samePath(a, b) {
2500
2509
  return a.length === b.length && covers(a, b);
2501
2510
  }
@@ -2506,7 +2515,7 @@ function returnsVectorField(field, vectors, include, returnVectors) {
2506
2515
  }
2507
2516
  function resolveProjection(projection, index) {
2508
2517
  if (projection === false) return NO_FIELD;
2509
- const shaped = typeof projection === "object" && projection !== null ? projection : void 0;
2518
+ const shaped = projectionFields(projection);
2510
2519
  if (shaped !== void 0) {
2511
2520
  requireFieldPathList(shaped.include, "include");
2512
2521
  requireFieldPathList(shaped.exclude, "exclude");
@@ -5346,11 +5355,15 @@ function validatePatternValueLimit(limit) {
5346
5355
  );
5347
5356
  }
5348
5357
  }
5349
- function validateReturnVectors(returnVectors) {
5350
- if (returnVectors === void 0 || typeof returnVectors === "boolean") return;
5351
- throw new NarsilError(ErrorCodes.CONFIG_INVALID, "returnVectors must be true or false", {
5352
- returnVectors: returnVectors === null ? "null" : typeof returnVectors
5353
- });
5358
+ var BOOLEAN_ONLY_SETTINGS = ["returnVectors", "strict", "surfaceForms", "trackPositions"];
5359
+ function validateBooleanOnlySettings(config) {
5360
+ for (const setting of BOOLEAN_ONLY_SETTINGS) {
5361
+ const given = config[setting];
5362
+ if (given === void 0 || typeof given === "boolean") continue;
5363
+ throw new NarsilError(ErrorCodes.CONFIG_INVALID, `${setting} must be true or false`, {
5364
+ [setting]: given === null ? "null" : typeof given
5365
+ });
5366
+ }
5354
5367
  }
5355
5368
  function requirePositiveSafeInteger(field, value) {
5356
5369
  if (value === void 0) return;
@@ -12411,7 +12424,7 @@ function segmentsHostPart() {
12411
12424
 
12412
12425
  // src/core/segment-codec-code.ts
12413
12426
  var segmentCodec = codeLoader(async () => {
12414
- const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-NDVBIBJJ.mjs')]);
12427
+ const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-E4YHXUAI.mjs')]);
12415
12428
  code7.bindSegmentCodecHost(optionalCodeHost(), msgpack);
12416
12429
  return code7;
12417
12430
  }, "segment codec");
@@ -12419,7 +12432,7 @@ var loadSegmentCodec = segmentCodec.load;
12419
12432
 
12420
12433
  // src/engine/optional-writes-code.ts
12421
12434
  var optionalWrites = codeLoader(async () => {
12422
- const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-3HKIVZFU.mjs')]);
12435
+ const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-OFPF77WY.mjs')]);
12423
12436
  code7.bindOptionalWritesHost(optionalCodeHost(), segmentCodec2);
12424
12437
  return code7;
12425
12438
  }, "write");
@@ -14056,7 +14069,7 @@ async function createEngineIndex(core2, config, name, requestedConfig, creation
14056
14069
  requirePatternSearchFor(schema);
14057
14070
  requirePartialWordSearchFor(schema);
14058
14071
  validatePatternValueLimit(indexConfig.patternValueLimit);
14059
- validateReturnVectors(indexConfig.returnVectors);
14072
+ validateBooleanOnlySettings(indexConfig);
14060
14073
  requireSurfaceFormsForPartialFields(schema, indexConfig.surfaceForms);
14061
14074
  validateVectorPromotion(indexConfig.vectorPromotion);
14062
14075
  validateVectorStorage(indexConfig.vectorPromotion, core2.filesystemDurability);
@@ -19270,7 +19283,7 @@ var storageCode = codeLoader(async () => {
19270
19283
  loadSegmentMerge(),
19271
19284
  loadSuggestionStore(),
19272
19285
  loadVectorCore(),
19273
- import('./storage-leaf-NCOXQTXQ.mjs')
19286
+ import('./storage-leaf-WJMD66YX.mjs')
19274
19287
  ]);
19275
19288
  code7.bindStorageHost(optionalCodeHost(), digest2, msgpack, segmentCodec2, segmentMerge2, suggestionStore2, vectorCore2);
19276
19289
  return code7;
@@ -3428,7 +3428,8 @@ function prepareUpdatePartitionDoc(document, extractedVectors) {
3428
3428
  }
3429
3429
  const partitionDoc = structuredClone(source);
3430
3430
  for (const [fieldPath, vector] of extractedVectors) {
3431
- if (vector !== null || getNestedValue(partitionDoc, fieldPath) == null) deleteNestedValue(partitionDoc, fieldPath);
3431
+ if (vector !== null || getNestedValue(partitionDoc, fieldPath) === void 0)
3432
+ deleteNestedValue(partitionDoc, fieldPath);
3432
3433
  }
3433
3434
  return { partitionDoc };
3434
3435
  }
@@ -252,6 +252,7 @@ async function rebuildTextIndexes(manager, hooks, target) {
252
252
 
253
253
  // src/serialization/msgpack-without-fields.ts
254
254
  var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
255
+ var MSGPACK_NIL = 192;
255
256
  var keyDecoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
256
257
  var walkedHeader = { headerBytes: 0, bodyBytes: 0, children: 0 };
257
258
  function endOfValue(view, start) {
@@ -311,7 +312,7 @@ function decodeMapWithoutFields(bytes, skippedFields) {
311
312
  if (key === null || FORBIDDEN_KEYS.has(key.key)) return null;
312
313
  const valueEnd = endOfValue(view, key.end);
313
314
  if (valueEnd === null) return null;
314
- if (!skippedFields.has(key.key)) {
315
+ if (!skippedFields.has(key.key) || view.getUint8(key.end) === MSGPACK_NIL) {
315
316
  try {
316
317
  document[key.key] = decode(bytes.subarray(key.end, valueEnd));
317
318
  } catch {
@@ -430,7 +431,8 @@ function removeFieldAtPath(document, fieldPath) {
430
431
  if (next === null || typeof next !== "object" || Array.isArray(next)) return;
431
432
  current = next;
432
433
  }
433
- delete current[segments[segments.length - 1]];
434
+ const leaf = segments[segments.length - 1];
435
+ if (current[leaf] !== null) delete current[leaf];
434
436
  }
435
437
  function decodeStoredDocument(bytes, discardedFields) {
436
438
  let decoded;
@@ -12597,7 +12597,7 @@ function dropStoredVectorValues(documents, schema) {
12597
12597
  }
12598
12598
  function removeFieldAtPath(fields, fieldPath) {
12599
12599
  if (!fieldPath.includes(".")) {
12600
- delete fields[fieldPath];
12600
+ if (fields[fieldPath] !== null) delete fields[fieldPath];
12601
12601
  return;
12602
12602
  }
12603
12603
  const segments = fieldPath.split(".");
@@ -12609,7 +12609,8 @@ function removeFieldAtPath(fields, fieldPath) {
12609
12609
  }
12610
12610
  current = next;
12611
12611
  }
12612
- delete current[segments[segments.length - 1]];
12612
+ const leaf = segments[segments.length - 1];
12613
+ if (current[leaf] !== null) delete current[leaf];
12613
12614
  }
12614
12615
 
12615
12616
  // src/serialization/payload-v1/partition.ts
@@ -1,6 +1,6 @@
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-6U4C7VAD.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-UFDD57KD.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-GYQKMYPG.mjs';
3
+ import { importOptionalReads, loadSortingFor, holdsQuotedText, loadQueryCode, executeQuery, lazyQueryBinding, executePreflight, resolveProjection, projectionKeepsField, loadRerankRuntime, setNestedValue } from './chunk-4QNWK42S.mjs';
4
4
  import { loadedMessagePack, loadMessagePack, extractVectorFieldsFromSchema } from './chunk-7NMLFP2T.mjs';
5
5
  import { answerFromOneState } from './chunk-PSZEGK6W.mjs';
6
6
  import { ServerErrorCodes, ErrorCodes, NarsilError, isNarsilError } from './chunk-ZKOQR7EA.mjs';
@@ -2804,6 +2804,15 @@ function requireVectorsSwitch(vectors) {
2804
2804
  received: vectors === null ? "null" : typeof vectors
2805
2805
  });
2806
2806
  }
2807
+ function projectionFields(projection) {
2808
+ if (projection === void 0 || projection === null || projection === true) return void 0;
2809
+ if (typeof projection === "object" && !Array.isArray(projection)) return projection;
2810
+ throw new NarsilError(
2811
+ ErrorCodes.SEARCH_INVALID_FIELD,
2812
+ 'The "document" option takes true, false, or an object of field path lists',
2813
+ { option: "document", received: Array.isArray(projection) ? "array" : typeof projection }
2814
+ );
2815
+ }
2807
2816
  function samePath(a, b) {
2808
2817
  return a.length === b.length && covers(a, b);
2809
2818
  }
@@ -2814,7 +2823,7 @@ function returnsVectorField(field, vectors, include, returnVectors) {
2814
2823
  }
2815
2824
  function resolveProjection(projection, index) {
2816
2825
  if (projection === false) return NO_FIELD;
2817
- const shaped = typeof projection === "object" && projection !== null ? projection : void 0;
2826
+ const shaped = projectionFields(projection);
2818
2827
  if (shaped !== void 0) {
2819
2828
  requireFieldPathList(shaped.include, "include");
2820
2829
  requireFieldPathList(shaped.exclude, "exclude");
@@ -11427,11 +11436,15 @@ function validatePatternValueLimit(limit) {
11427
11436
  );
11428
11437
  }
11429
11438
  }
11430
- function validateReturnVectors(returnVectors) {
11431
- if (returnVectors === void 0 || typeof returnVectors === "boolean") return;
11432
- throw new NarsilError(ErrorCodes.CONFIG_INVALID, "returnVectors must be true or false", {
11433
- returnVectors: returnVectors === null ? "null" : typeof returnVectors
11434
- });
11439
+ var BOOLEAN_ONLY_SETTINGS = ["returnVectors", "strict", "surfaceForms", "trackPositions"];
11440
+ function validateBooleanOnlySettings(config) {
11441
+ for (const setting of BOOLEAN_ONLY_SETTINGS) {
11442
+ const given = config[setting];
11443
+ if (given === void 0 || typeof given === "boolean") continue;
11444
+ throw new NarsilError(ErrorCodes.CONFIG_INVALID, `${setting} must be true or false`, {
11445
+ [setting]: given === null ? "null" : typeof given
11446
+ });
11447
+ }
11435
11448
  }
11436
11449
  function requirePositiveSafeInteger(field, value) {
11437
11450
  if (value === void 0) return;
@@ -12716,7 +12729,7 @@ function resolvePartitionInsertOptions(config, analysis, options) {
12716
12729
 
12717
12730
  // src/core/segment-codec-code.ts
12718
12731
  var segmentCodec = codeLoader(async () => {
12719
- const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-LTIODLBH.mjs')]);
12732
+ const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-V52PQEVL.mjs')]);
12720
12733
  code7.bindSegmentCodecHost(optionalCodeHost(), msgpack);
12721
12734
  return code7;
12722
12735
  }, "segment codec");
@@ -12724,7 +12737,7 @@ var loadSegmentCodec = segmentCodec.load;
12724
12737
 
12725
12738
  // src/query-suggestions/store-code.ts
12726
12739
  var suggestionStore = codeLoader(async () => {
12727
- const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-RBK3Y2H4.mjs')]);
12740
+ const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-KK7VD3P3.mjs')]);
12728
12741
  code7.bindSuggestionStoreHost(optionalCodeHost(), msgpack);
12729
12742
  return code7;
12730
12743
  }, "query suggestions store");
@@ -12805,7 +12818,7 @@ var storageCode = codeLoader(async () => {
12805
12818
  loadSegmentMerge(),
12806
12819
  loadSuggestionStore(),
12807
12820
  loadVectorCore(),
12808
- import('./storage-leaf-VB5OG66O.mjs')
12821
+ import('./storage-leaf-YYO4FLHQ.mjs')
12809
12822
  ]);
12810
12823
  code7.bindStorageHost(optionalCodeHost(), digest2, msgpack, segmentCodec2, segmentMerge2, suggestionStore2, vectorCore2);
12811
12824
  return code7;
@@ -20166,6 +20179,7 @@ function bindSegmentCodecHost(_host, _msgpack) {
20166
20179
 
20167
20180
  // src/serialization/msgpack-without-fields.ts
20168
20181
  var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
20182
+ var MSGPACK_NIL = 192;
20169
20183
  var keyDecoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
20170
20184
  var walkedHeader = { headerBytes: 0, bodyBytes: 0, children: 0 };
20171
20185
  function endOfValue(view, start) {
@@ -20225,7 +20239,7 @@ function decodeMapWithoutFields(bytes, skippedFields) {
20225
20239
  if (key === null || FORBIDDEN_KEYS.has(key.key)) return null;
20226
20240
  const valueEnd = endOfValue(view, key.end);
20227
20241
  if (valueEnd === null) return null;
20228
- if (!skippedFields.has(key.key)) {
20242
+ if (!skippedFields.has(key.key) || view.getUint8(key.end) === MSGPACK_NIL) {
20229
20243
  try {
20230
20244
  document[key.key] = decode(bytes.subarray(key.end, valueEnd));
20231
20245
  } catch {
@@ -20344,7 +20358,8 @@ function removeFieldAtPath(document, fieldPath) {
20344
20358
  if (next === null || typeof next !== "object" || Array.isArray(next)) return;
20345
20359
  current = next;
20346
20360
  }
20347
- delete current[segments2[segments2.length - 1]];
20361
+ const leaf = segments2[segments2.length - 1];
20362
+ if (current[leaf] !== null) delete current[leaf];
20348
20363
  }
20349
20364
  function decodeStoredDocument(bytes, discardedFields) {
20350
20365
  let decoded;
@@ -21628,7 +21643,7 @@ function hasLanguage(name) {
21628
21643
 
21629
21644
  // src/narsil/restore-queue-code.ts
21630
21645
  var restoreQueue = codeLoader(async () => {
21631
- const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-JIJW3XKK.mjs')]);
21646
+ const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-BYO4AJLZ.mjs')]);
21632
21647
  code7.bindRestoreQueueHost(optionalCodeHost(), suggestionStore2);
21633
21648
  return code7;
21634
21649
  }, "restore");
@@ -22001,7 +22016,7 @@ async function createEngineIndex(core2, config, name, requestedConfig, creation
22001
22016
  requirePatternSearchFor(schema);
22002
22017
  requirePartialWordSearchFor(schema);
22003
22018
  validatePatternValueLimit(indexConfig.patternValueLimit);
22004
- validateReturnVectors(indexConfig.returnVectors);
22019
+ validateBooleanOnlySettings(indexConfig);
22005
22020
  requireSurfaceFormsForPartialFields(schema, indexConfig.surfaceForms);
22006
22021
  validateVectorPromotion(indexConfig.vectorPromotion);
22007
22022
  validateVectorStorage(indexConfig.vectorPromotion, core2.filesystemDurability);
@@ -22233,7 +22248,7 @@ var loadEmbedCode = embedCode.load;
22233
22248
 
22234
22249
  // src/engine/optional-writes-code.ts
22235
22250
  var optionalWrites = codeLoader(async () => {
22236
- const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-27NHTIAL.mjs')]);
22251
+ const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-GVHTEENI.mjs')]);
22237
22252
  code7.bindOptionalWritesHost(optionalCodeHost(), segmentCodec2);
22238
22253
  return code7;
22239
22254
  }, "write");
@@ -24092,7 +24107,8 @@ function prepareUpdatePartitionDoc(document, extractedVectors) {
24092
24107
  }
24093
24108
  const partitionDoc = structuredClone(source2);
24094
24109
  for (const [fieldPath, vector] of extractedVectors) {
24095
- if (vector !== null || getNestedValue(partitionDoc, fieldPath) == null) deleteNestedValue(partitionDoc, fieldPath);
24110
+ if (vector !== null || getNestedValue(partitionDoc, fieldPath) === void 0)
24111
+ deleteNestedValue(partitionDoc, fieldPath);
24096
24112
  }
24097
24113
  return { partitionDoc };
24098
24114
  }
@@ -25929,7 +25945,7 @@ var workerCopies = codeLoader(async () => {
25929
25945
  const [segmentCodec2, segmentMerge2, code7] = await Promise.all([
25930
25946
  loadSegmentCodec(),
25931
25947
  loadSegmentMerge(),
25932
- import('./worker-copies-F2WVSQQO.mjs')
25948
+ import('./worker-copies-5V5JGCWU.mjs')
25933
25949
  ]);
25934
25950
  code7.bindWorkerCopiesHost(optionalCodeHost(), segmentCodec2, segmentMerge2);
25935
25951
  return code7;
@@ -30419,7 +30435,7 @@ var suggestionsCode = codeLoader(async () => {
30419
30435
  const [msgpack, suggestionStore2, code7] = await Promise.all([
30420
30436
  loadMessagePack(),
30421
30437
  loadSuggestionStore(),
30422
- import('./suggestions-leaf-27TNMJ37.mjs')
30438
+ import('./suggestions-leaf-EJCNU3NM.mjs')
30423
30439
  ]);
30424
30440
  code7.bindSuggestionsHost(optionalCodeHost(), msgpack, suggestionStore2);
30425
30441
  return code7;
@@ -31581,7 +31597,7 @@ var segmentMerge = codeLoader(async () => {
31581
31597
  const [msgpack, codec, code7] = await Promise.all([
31582
31598
  loadMessagePack(),
31583
31599
  loadSegmentCodec(),
31584
- import('./segment-merge-leaf-CXOMXPAP.mjs')
31600
+ import('./segment-merge-leaf-M3ZLJYDD.mjs')
31585
31601
  ]);
31586
31602
  code7.bindSegmentMergeHost(optionalCodeHost(), msgpack, codec);
31587
31603
  return code7;
@@ -32212,4 +32228,4 @@ function createDirectExecutor(options) {
32212
32228
  };
32213
32229
  }
32214
32230
 
32215
- export { ARRAY_POSITION_GAP, CASE_FOLD_EXPANSION_FACTOR, COMPACTION_SEGMENT_TRIGGER, DEFAULT_BM25_B, DEFAULT_BM25_K1, DEFAULT_COPY_IDLE_TIMEOUT_MS, DEFAULT_COPY_THRESHOLD, DEFAULT_MAX_THREADS_LEFT_RUNNING, DEFAULT_RERANK_WINDOW, DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, DISTINCT_TERM_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, FIELD_FILTER_OPERATORS, FILTER_EXPRESSION_KEYS, FULL_MEMORY_COLLECTION_INTERVAL_MS, GROUP_FORMAT, GROUP_PATTERN_SOURCE, IDLE_MERGE_DELAY_MS, LIVE_TAIL_FLUSH_DOCUMENTS, LIVE_TAIL_FREEZE_FLOOR, LOAD_BUFFER_YIELD_INTERVAL, LONG_QUERY_THREADS, MAIN_COPY_LONE_QUERY_DOCUMENTS, MAP_TABLE_HEADER_BYTES, MAP_TABLE_MIN_CAPACITY, MAP_TABLE_SHRINK_DIVISOR, MAP_TABLE_SLOT_BYTES, MAX_PENDING_REPLICATION_DOCUMENTS, MAX_RERANK_WINDOW, NORMALIZATION_EXPANSION_FACTOR, NO_REMOVED_SPELLINGS, PARTIAL_SPELLING_HEAP_BYTES, PATTERN_RUN_HEAP_BYTES, POOL_RESTART_DELAY_MAX_MS, POOL_RESTART_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, SEGMENTS_PER_MERGE, SUGGESTIONS_INDEX_INFIX, SegmentRefusal, TERM_UNIT_HEAP_BYTES, TermLookup, VECTOR_COMPONENT_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VERSION, afterCurrentTurn, alreadyPresentOnWorker, applyProjection, arrayPositionsAreStale, assemblePagedFrozenSegment, availablePatternSearch, bindOptionalWritesHost, bindQuerySignal, bindRerankWindowSource, bindSegmentCodecHost, bindSegmentMergeHost, bindWorkerCopiesHost, bm25SetsValue, buildPartialWordTableFrom, buildSegmentPayloads, clampLimit, clampRowCount, clearNormalizationCache, clearQuerySignal, compareScores, configurationPayloadOf, configureNormalizationCache, countsWithoutScores, createBooleanIndex, createCompositePartition, createDirectExecutor, createEncodedDocumentSource, createEngineCore, createEngineIndex, createEnumIndex, createFrozenRemovals, createFrozenSegment, createLoadedGeoIndex, createMemoryMonitor, createNarsil, createNarsilFromCore, createNumericIndex, createPartitionIndex, createPartitionManager, createPartitionRouter, createPatternWorkMeter, createPublicationGate, createRequestId, createSharedFrozenSegment, createWorkerExecutor, createWorkerFactory, customTokensOf, decodeEveryStoredDocument, decodeMapWithoutFields, decodePageCursor, decodeStoredDocument, decodeSurfaceTable, decodeSynonymRules, documentChurnOf, documentsOf2 as documentsOf, dropEngineIndex, eligibleIndexNames, emitEngineEvent, emitSyncChange, emitWriteEventAfter, emptyPendingRegions, encodeDocumentTableData, encodePageCursor, encodeSegmentState, endOfValue, engineCoreOf, executePreflight, executeQuery, fanOutMatchCount, fanOutQuery, fieldIndexRemapOf, fillHits, filterTestCount, fnv1a, fnv1aUint32s, freezeEncodedSegmentShared, freezeSegmentShared, generateId, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, getVectorFieldPaths, growPartitionsTo, hasLanguage, hasStopWords, hasTokenizer, holdSyncEpochChange, holdVectorsForRollback, holdsADiscardedField, holdsQuotedText, importOptionalReads, initializeCopyPublication, insertDocument, insertDocumentBatch, insertDocumentVectors, isCompositePartition, isDeterministicFailure, isSimdAvailable, isValidWorkerAction, isValidWorkerResponse, joinPatternWorkMeter, kWayMerge, lazyQueryBinding, listBindingOf, listenForSyncChanges, loadCursorPageFor, loadDigest, loadFacetMergesFor, loadGeoCode, loadGeoCodeFor, loadGroupingFor, loadGzip, loadOptionalWrites, loadPhraseCodeFor, loadPinningFor, loadPrefixFor, loadQueryCode, loadRerankRuntime, loadSchemaCodeFor, loadSortingFor, loadStorageCode, loadSuggestionsCode, loadVectorCode, lookupOfStoredSynonyms, memoryFractionsOf, mergeDocFrequencies, mergeEntries, mergeFacets, mergeFieldIndexes, mergeKeywordSources, mergePartitionStats, mergePostings, mergePostings2, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, normalizeSort, noteDocumentChurn, now, oneAtATime, oversampledFacetConfig, oversampledShardSize, oversizedConfigurationPayloadOf, partialWordSearchModule, partitionStateOf, patternHost, patternIndexOf, prepareConfiguredSynonyms, prepareDocumentText, prepareDocumentVectors, prepareDocumentWrite, prepareRemovalText, prepareStoredSynonyms, projectionKeepsField, providedDocId, publishCopyAction, queryBindingOf, rankPage, readHeapStatistics, readMemoryFigures, readProcessMemoryUse, readRecentMemoryFigures, rebuildSizeIndexes, reconstructSchemaFromMetadata, regionsOverlap, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, removeDocument3 as removeDocument, removeDocumentBatch, removeDocumentBatch2, removeDocumentVectors, removedSurfaceSpellings, reportIneligible, requireEncodedConfigurationWithinSizeLimit, requireKnownConfig, requireLoadedOptionalReads, requireLoadedVectorCode, requireMatchingCursor, requirePatternSearch, requireSearchBackendSettings2 as requireSearchBackendSettings, requireSurfaceFormsForPartialFields, requireWithinResultWindow, rerankWindowCapOf, resetNormalizationCache, resolveIndexAnalysis, resolvePartialWordAnalysis, resolvePartitionInsertOptions, resolveProjection, resolveRunnableConfig, returnsEveryMatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, rulesOfStoredSynonyms, runEngineListDocuments, runEnginePreflight, runEngineQuery, runEngineQueryStats, runEngineSuggest, runtimeHost, sanitizeGlobalStats, scanPostingBlocks, segmentArraysOf, selectionKeeps, setNestedValue, shareSegmentArrays, sortModesOf, sortSignatureEntry, sortSignatureOf, startEngineCore, storedArrayPositionGap, storedBM25Params, storedDocumentsOf, survivorDocumentsOf, synonymModule, synonymSearchModule, toError2 as toError, topLevelMapKeys, updateDocument, updateDocumentBatch, updateDocumentVectors, validQueryFilter, validateBM25Params, validateBM25Shape, validateEmbeddingConfig, validateMemoryFractions, validatePartitionConfig, validatePatternValueLimit, validateRequiredFieldsInSchema, validateReturnVectors, visitTokens, withOpenIndex, workerIneligibility, workersEnabledByDefault, wrapFrozenTokenTable, writePartitionDocument, yieldToEventLoop };
32231
+ export { ARRAY_POSITION_GAP, CASE_FOLD_EXPANSION_FACTOR, COMPACTION_SEGMENT_TRIGGER, DEFAULT_BM25_B, DEFAULT_BM25_K1, DEFAULT_COPY_IDLE_TIMEOUT_MS, DEFAULT_COPY_THRESHOLD, DEFAULT_MAX_THREADS_LEFT_RUNNING, DEFAULT_RERANK_WINDOW, DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, DISTINCT_TERM_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, FIELD_FILTER_OPERATORS, FILTER_EXPRESSION_KEYS, FULL_MEMORY_COLLECTION_INTERVAL_MS, GROUP_FORMAT, GROUP_PATTERN_SOURCE, IDLE_MERGE_DELAY_MS, LIVE_TAIL_FLUSH_DOCUMENTS, LIVE_TAIL_FREEZE_FLOOR, LOAD_BUFFER_YIELD_INTERVAL, LONG_QUERY_THREADS, MAIN_COPY_LONE_QUERY_DOCUMENTS, MAP_TABLE_HEADER_BYTES, MAP_TABLE_MIN_CAPACITY, MAP_TABLE_SHRINK_DIVISOR, MAP_TABLE_SLOT_BYTES, MAX_PENDING_REPLICATION_DOCUMENTS, MAX_RERANK_WINDOW, NORMALIZATION_EXPANSION_FACTOR, NO_REMOVED_SPELLINGS, PARTIAL_SPELLING_HEAP_BYTES, PATTERN_RUN_HEAP_BYTES, POOL_RESTART_DELAY_MAX_MS, POOL_RESTART_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, SEGMENTS_PER_MERGE, SUGGESTIONS_INDEX_INFIX, SegmentRefusal, TERM_UNIT_HEAP_BYTES, TermLookup, VECTOR_COMPONENT_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VERSION, afterCurrentTurn, alreadyPresentOnWorker, applyProjection, arrayPositionsAreStale, assemblePagedFrozenSegment, availablePatternSearch, bindOptionalWritesHost, bindQuerySignal, bindRerankWindowSource, bindSegmentCodecHost, bindSegmentMergeHost, bindWorkerCopiesHost, bm25SetsValue, buildPartialWordTableFrom, buildSegmentPayloads, clampLimit, clampRowCount, clearNormalizationCache, clearQuerySignal, compareScores, configurationPayloadOf, configureNormalizationCache, countsWithoutScores, createBooleanIndex, createCompositePartition, createDirectExecutor, createEncodedDocumentSource, createEngineCore, createEngineIndex, createEnumIndex, createFrozenRemovals, createFrozenSegment, createLoadedGeoIndex, createMemoryMonitor, createNarsil, createNarsilFromCore, createNumericIndex, createPartitionIndex, createPartitionManager, createPartitionRouter, createPatternWorkMeter, createPublicationGate, createRequestId, createSharedFrozenSegment, createWorkerExecutor, createWorkerFactory, customTokensOf, decodeEveryStoredDocument, decodeMapWithoutFields, decodePageCursor, decodeStoredDocument, decodeSurfaceTable, decodeSynonymRules, documentChurnOf, documentsOf2 as documentsOf, dropEngineIndex, eligibleIndexNames, emitEngineEvent, emitSyncChange, emitWriteEventAfter, emptyPendingRegions, encodeDocumentTableData, encodePageCursor, encodeSegmentState, endOfValue, engineCoreOf, executePreflight, executeQuery, fanOutMatchCount, fanOutQuery, fieldIndexRemapOf, fillHits, filterTestCount, fnv1a, fnv1aUint32s, freezeEncodedSegmentShared, freezeSegmentShared, generateId, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, getVectorFieldPaths, growPartitionsTo, hasLanguage, hasStopWords, hasTokenizer, holdSyncEpochChange, holdVectorsForRollback, holdsADiscardedField, holdsQuotedText, importOptionalReads, initializeCopyPublication, insertDocument, insertDocumentBatch, insertDocumentVectors, isCompositePartition, isDeterministicFailure, isSimdAvailable, isValidWorkerAction, isValidWorkerResponse, joinPatternWorkMeter, kWayMerge, lazyQueryBinding, listBindingOf, listenForSyncChanges, loadCursorPageFor, loadDigest, loadFacetMergesFor, loadGeoCode, loadGeoCodeFor, loadGroupingFor, loadGzip, loadOptionalWrites, loadPhraseCodeFor, loadPinningFor, loadPrefixFor, loadQueryCode, loadRerankRuntime, loadSchemaCodeFor, loadSortingFor, loadStorageCode, loadSuggestionsCode, loadVectorCode, lookupOfStoredSynonyms, memoryFractionsOf, mergeDocFrequencies, mergeEntries, mergeFacets, mergeFieldIndexes, mergeKeywordSources, mergePartitionStats, mergePostings, mergePostings2, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, normalizeSort, noteDocumentChurn, now, oneAtATime, oversampledFacetConfig, oversampledShardSize, oversizedConfigurationPayloadOf, partialWordSearchModule, partitionStateOf, patternHost, patternIndexOf, prepareConfiguredSynonyms, prepareDocumentText, prepareDocumentVectors, prepareDocumentWrite, prepareRemovalText, prepareStoredSynonyms, projectionKeepsField, providedDocId, publishCopyAction, queryBindingOf, rankPage, readHeapStatistics, readMemoryFigures, readProcessMemoryUse, readRecentMemoryFigures, rebuildSizeIndexes, reconstructSchemaFromMetadata, regionsOverlap, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, removeDocument3 as removeDocument, removeDocumentBatch, removeDocumentBatch2, removeDocumentVectors, removedSurfaceSpellings, reportIneligible, requireEncodedConfigurationWithinSizeLimit, requireKnownConfig, requireLoadedOptionalReads, requireLoadedVectorCode, requireMatchingCursor, requirePatternSearch, requireSearchBackendSettings2 as requireSearchBackendSettings, requireSurfaceFormsForPartialFields, requireWithinResultWindow, rerankWindowCapOf, resetNormalizationCache, resolveIndexAnalysis, resolvePartialWordAnalysis, resolvePartitionInsertOptions, resolveProjection, resolveRunnableConfig, returnsEveryMatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, rulesOfStoredSynonyms, runEngineListDocuments, runEnginePreflight, runEngineQuery, runEngineQueryStats, runEngineSuggest, runtimeHost, sanitizeGlobalStats, scanPostingBlocks, segmentArraysOf, selectionKeeps, setNestedValue, shareSegmentArrays, sortModesOf, sortSignatureEntry, sortSignatureOf, startEngineCore, storedArrayPositionGap, storedBM25Params, storedDocumentsOf, survivorDocumentsOf, synonymModule, synonymSearchModule, toError2 as toError, topLevelMapKeys, updateDocument, updateDocumentBatch, updateDocumentVectors, validQueryFilter, validateBM25Params, validateBM25Shape, validateBooleanOnlySettings, validateEmbeddingConfig, validateMemoryFractions, validatePartitionConfig, validatePatternValueLimit, validateRequiredFieldsInSchema, visitTokens, withOpenIndex, workerIneligibility, workersEnabledByDefault, wrapFrozenTokenTable, writePartitionDocument, yieldToEventLoop };
@@ -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-GYQKMYPG.mjs';
2
+ import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunk-4QNWK42S.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/query-suggestions/index.ts
@@ -1,5 +1,5 @@
1
- import { readIndexMetadataSnapshot, isRecord2, decodeIndexSettings } from './chunk-3WYTRM24.mjs';
2
- import { projectionKeepsField } from './chunk-GYQKMYPG.mjs';
1
+ import { readIndexMetadataSnapshot, isRecord2, decodeIndexSettings } from './chunk-UJQ2S5QU.mjs';
2
+ import { projectionKeepsField } from './chunk-4QNWK42S.mjs';
3
3
  import { decode } from './chunk-Y7GXGJFZ.mjs';
4
4
  import { vectorFieldSegmentsOf } from './chunk-7NMLFP2T.mjs';
5
5
 
@@ -1,4 +1,4 @@
1
- import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-GYQKMYPG.mjs';
1
+ import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-4QNWK42S.mjs';
2
2
 
3
3
  // src/partitioning/constants.ts
4
4
  var REBALANCE_CHUNK_SIZE = 1e3;
@@ -1,5 +1,5 @@
1
- import { openCountsFile } from './chunk-3EFLY5LQ.mjs';
2
- import { SCRAMBLED_ID_BYTES } from './chunk-5CYLXJYQ.mjs';
1
+ import { openCountsFile } from './chunk-CHGJGKST.mjs';
2
+ import { SCRAMBLED_ID_BYTES } from './chunk-R5OFJZNI.mjs';
3
3
  export { encode } from '@msgpack/msgpack';
4
4
 
5
5
  function bindSuggestionsHost(_host, _msgpack, _suggestionStore) {
@@ -1,11 +1,11 @@
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-47NXBGQG.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-QWYIMVYT.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-HJCYLTVA.mjs';
4
+ import { SEGMENT_MANIFEST_VERSION, manifestKey, manifestReferencedKeys, segmentsPrefix, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION, segmentKey } from './chunk-ICEZRKIS.mjs';
5
5
  import { encode } from './chunk-S5QMWECL.mjs';
6
6
  import { restoreVectorFields } from './chunk-L2GYY6KY.mjs';
7
- import { requireWithinFileLimit, HEADER_SIZE, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, openChecksummedEnvelope, readHeader, packChecksummedEnvelope } from './chunk-5CYLXJYQ.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-GYQKMYPG.mjs';
7
+ import { requireWithinFileLimit, HEADER_SIZE, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, openChecksummedEnvelope, readHeader, packChecksummedEnvelope } from './chunk-R5OFJZNI.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-4QNWK42S.mjs';
9
9
  import { encodeDocument } from './chunk-2CKDCC65.mjs';
10
10
  import { decode } from './chunk-Y7GXGJFZ.mjs';
11
11
  import { extractVectorFieldsFromSchema, VECTOR_PATTERN, requireValidFieldTypes, partialFieldsOf, messagePackUpperBoundBytes } from './chunk-7NMLFP2T.mjs';
@@ -1,6 +1,6 @@
1
- import { isValidInteger, isRecord } from './chunk-3WYTRM24.mjs';
1
+ import { isValidInteger, isRecord } from './chunk-UJQ2S5QU.mjs';
2
2
  import { MAX_REPLICATION_FACTOR, MAX_PARTITION_COUNT } from './chunk-JDDXV6UF.mjs';
3
- import { openChecksummedEnvelope, packChecksummedEnvelope, MAX_HISTORY_FILE_BYTES } from './chunk-5CYLXJYQ.mjs';
3
+ import { openChecksummedEnvelope, packChecksummedEnvelope, MAX_HISTORY_FILE_BYTES } from './chunk-R5OFJZNI.mjs';
4
4
  import { decode } from './chunk-Y7GXGJFZ.mjs';
5
5
  import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
6
6
  import { joinChunks } from './chunk-GR5GMFJJ.mjs';
@@ -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-5CYLXJYQ.mjs';
2
- import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-GYQKMYPG.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-R5OFJZNI.mjs';
2
+ import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-4QNWK42S.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/query-suggestions/engine-hooks.ts
@@ -1,7 +1,7 @@
1
1
  import { encode } from './chunk-S5QMWECL.mjs';
2
2
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
3
- import { openChecksummedEnvelope, packChecksummedEnvelope } from './chunk-5CYLXJYQ.mjs';
4
- import { rulesOfStoredSynonyms, configurationPayloadOf, withOpenIndex, emitSyncChange, validQueryFilter, createPartitionIndex, prepareDocumentVectors, createPatternWorkMeter, resolvePartitionInsertOptions } from './chunk-GYQKMYPG.mjs';
3
+ import { openChecksummedEnvelope, packChecksummedEnvelope } from './chunk-R5OFJZNI.mjs';
4
+ import { rulesOfStoredSynonyms, configurationPayloadOf, withOpenIndex, emitSyncChange, validQueryFilter, createPartitionIndex, prepareDocumentVectors, createPatternWorkMeter, resolvePartitionInsertOptions } from './chunk-4QNWK42S.mjs';
5
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';
@@ -1,9 +1,9 @@
1
- import { syncStorageOf, INDEX_CONFIGURATION_ENVELOPE_VERSION, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration } from './chunk-3TENTQKL.mjs';
2
- import { archiveLayout } from './chunk-H2R4BTSO.mjs';
3
- import { manifestFileRefs } from './chunk-HJCYLTVA.mjs';
1
+ import { syncStorageOf, INDEX_CONFIGURATION_ENVELOPE_VERSION, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration } from './chunk-CVCBVUH4.mjs';
2
+ import { archiveLayout } from './chunk-I255IQTR.mjs';
3
+ import { manifestFileRefs } from './chunk-ICEZRKIS.mjs';
4
4
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
5
- import { openChecksummedEnvelope } from './chunk-5CYLXJYQ.mjs';
6
- import { withOpenIndex, emitEngineEvent } from './chunk-GYQKMYPG.mjs';
5
+ import { openChecksummedEnvelope } from './chunk-R5OFJZNI.mjs';
6
+ import { withOpenIndex, emitEngineEvent } from './chunk-4QNWK42S.mjs';
7
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';
@@ -1,4 +1,4 @@
1
- import { createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex, rebuildSizeIndexes, requirePatternSearch, patternIndexOf } from './chunk-GYQKMYPG.mjs';
1
+ import { createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex, rebuildSizeIndexes, requirePatternSearch, patternIndexOf } from './chunk-4QNWK42S.mjs';
2
2
  import { getFlatSchema, schemaFieldsOf, getNestedValue } from './chunk-7NMLFP2T.mjs';
3
3
 
4
4
  // src/core/partition/pattern-snapshot.ts
@@ -1,6 +1,6 @@
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-HJCYLTVA.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-ICEZRKIS.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-5CYLXJYQ.mjs';
3
+ import { openChecksummedEnvelope, HEADER_SIZE, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES } from './chunk-R5OFJZNI.mjs';
4
4
  import { decode } from './chunk-Y7GXGJFZ.mjs';
5
5
  import { requireValidFieldTypes } from './chunk-7NMLFP2T.mjs';
6
6
  import { MAX_FILE_BYTES } from './chunk-4PY4JYMY.mjs';
@@ -1,7 +1,7 @@
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-47NXBGQG.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-QWYIMVYT.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-5CYLXJYQ.mjs';
4
- import { yieldToEventLoop, compareScores } from './chunk-GYQKMYPG.mjs';
3
+ import { HEADER_SIZE, openChecksummedEnvelope, crc32, readHeader } from './chunk-R5OFJZNI.mjs';
4
+ import { yieldToEventLoop, compareScores } from './chunk-4QNWK42S.mjs';
5
5
  import { decode, decodeMulti } from './chunk-Y7GXGJFZ.mjs';
6
6
  import { signalOfSearch, requireSearchActive } from './chunk-PSZEGK6W.mjs';
7
7
  import { MIN_M, MAX_M, MAX_LAYER_CAP } from './chunk-ZXX5GZEX.mjs';
@@ -1,4 +1,4 @@
1
- import { fnv1a } from './chunk-GYQKMYPG.mjs';
1
+ import { fnv1a } from './chunk-4QNWK42S.mjs';
2
2
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
3
3
 
4
4
  // src/persistence/durability/segment/layout.ts
@@ -1,4 +1,4 @@
1
- import { bindResponseStop, toHttpError, sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-6U4C7VAD.mjs';
1
+ import { bindResponseStop, toHttpError, sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-UFDD57KD.mjs';
2
2
  import { rm } from 'fs/promises';
3
3
  import path from 'path';
4
4
 
@@ -1,4 +1,4 @@
1
- import { readRecentMemoryFigures, readMemoryFigures } from './chunk-GYQKMYPG.mjs';
1
+ import { readRecentMemoryFigures, readMemoryFigures } from './chunk-4QNWK42S.mjs';
2
2
  import { collectGarbageBeforeAnswerRefusal, collectYoungGenerationBeforeRefusal, reservedHeapBytes, admitHeapBytes } from './chunk-BRTABNC7.mjs';
3
3
  import { NarsilError, ErrorCodes, ServerErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
@@ -1,5 +1,5 @@
1
- import { getIndexMetadata } from './chunk-3WYTRM24.mjs';
2
- import { fnv1a } from './chunk-GYQKMYPG.mjs';
1
+ import { getIndexMetadata } from './chunk-UJQ2S5QU.mjs';
2
+ import { fnv1a } from './chunk-4QNWK42S.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/distribution/cluster-node/routable-allocation.ts
@@ -1,7 +1,7 @@
1
- import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION } from './chunk-HJCYLTVA.mjs';
1
+ import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION } from './chunk-ICEZRKIS.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-5CYLXJYQ.mjs';
4
+ import { crc32, packChecksummedEnvelope, HEADER_SIZE } from './chunk-R5OFJZNI.mjs';
5
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';
@@ -1,4 +1,4 @@
1
- import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-GYQKMYPG.mjs';
1
+ import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-4QNWK42S.mjs';
2
2
  import { flattenSchema } from './chunk-7NMLFP2T.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';
@@ -1,5 +1,5 @@
1
1
  import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
2
- import { isCompositePartition, encodeSegmentState, freezeSegmentShared } from './chunk-GYQKMYPG.mjs';
2
+ import { isCompositePartition, encodeSegmentState, freezeSegmentShared } from './chunk-4QNWK42S.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
4
4
 
5
5
  // src/core/partition/frozen/share.ts
@@ -1,8 +1,8 @@
1
- import { encode, Merger } from './chunk-5E46Y42F.mjs';
2
- import { DayStore, RestoredHistory, dayOf, sameBytes } from './chunk-3EFLY5LQ.mjs';
1
+ import { encode, Merger } from './chunk-B276ZQIH.mjs';
2
+ import { DayStore, RestoredHistory, dayOf, sameBytes } from './chunk-CHGJGKST.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-5CYLXJYQ.mjs';
5
- import { GROUP_FORMAT, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, loadDigest, SUGGESTIONS_INDEX_INFIX } from './chunk-GYQKMYPG.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-R5OFJZNI.mjs';
5
+ import { GROUP_FORMAT, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, loadDigest, SUGGESTIONS_INDEX_INFIX } from './chunk-4QNWK42S.mjs';
6
6
  import { decode } from './chunk-Y7GXGJFZ.mjs';
7
7
  import { spawnNodeWorker, resolveWorkerEntry } from './chunk-PSZEGK6W.mjs';
8
8
  import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
@@ -1,4 +1,4 @@
1
- import { withOpenIndex, oneAtATime, validateBM25Params, storedBM25Params, emitSyncChange } from './chunk-GYQKMYPG.mjs';
1
+ import { withOpenIndex, oneAtATime, validateBM25Params, storedBM25Params, emitSyncChange } from './chunk-4QNWK42S.mjs';
2
2
  import { ErrorCodes } from './chunk-ZKOQR7EA.mjs';
3
3
 
4
4
  // src/engine/bm25-update.ts
@@ -1,7 +1,7 @@
1
1
  import { CHANGES_SUBPROTOCOL, SYNC_SUBPROTOCOL, encodeJson, SYNC_CLOSE_SERVER_ERROR, encodeScore } from './chunk-TACP6VK6.mjs';
2
- import { answerRefusalOf } from './chunk-34QTB6O7.mjs';
3
- import { archiveRange, FEED_SOCKET_MAX_BACKPRESSURE_BYTES, FEED_SOCKET_MAX_PAYLOAD_BYTES } from './chunk-H2R4BTSO.mjs';
4
- import { DEFAULT_RERANK_WINDOW, readRecentMemoryFigures, readMemoryFigures } from './chunk-GYQKMYPG.mjs';
2
+ import { answerRefusalOf } from './chunk-KHZ6LAFB.mjs';
3
+ import { archiveRange, FEED_SOCKET_MAX_BACKPRESSURE_BYTES, FEED_SOCKET_MAX_PAYLOAD_BYTES } from './chunk-I255IQTR.mjs';
4
+ import { DEFAULT_RERANK_WINDOW, readRecentMemoryFigures, readMemoryFigures } from './chunk-4QNWK42S.mjs';
5
5
  import { collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, reportRefusalAfterCollection, reservedHeapBytes, admitHeapBytes } from './chunk-BRTABNC7.mjs';
6
6
  import { MAX_FILTER_DEPTH } from './chunk-M5RYB6FE.mjs';
7
7
  import { bindSignalStop } from './chunk-PSZEGK6W.mjs';
@@ -1,7 +1,7 @@
1
1
  import { restoredEmbedding, restoredPartitionConfig, readSharedConfigFields } from './chunk-UGMOBSMD.mjs';
2
2
  import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR } from './chunk-JDDXV6UF.mjs';
3
- import { storedStateOf } from './chunk-5CYLXJYQ.mjs';
4
- import { getLanguage, generateId, decodeSynonymRules } from './chunk-GYQKMYPG.mjs';
3
+ import { storedStateOf } from './chunk-R5OFJZNI.mjs';
4
+ import { getLanguage, generateId, decodeSynonymRules } from './chunk-4QNWK42S.mjs';
5
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';