@delali/narsil 0.4.1-next.211 → 0.4.1-next.212

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 (97) hide show
  1. package/dist/browser/{chunk-NDYADQ4Y.mjs → chunk-GBJSEHVJ.mjs} +2 -2
  2. package/dist/browser/{optional-reads-XMVPG6HG.mjs → optional-reads-6LN3HMUH.mjs} +1 -1
  3. package/dist/browser/{store-leaf-3L33V35P.mjs → store-leaf-3YPLCQ7X.mjs} +5 -4
  4. package/dist/{capabilities-DMte5K9_.d.ts → capabilities-BOFFMx84.d.ts} +9 -6
  5. package/dist/{chunk-C74KPRR7.mjs → chunk-2K24MEYV.mjs} +2 -2
  6. package/dist/{chunk-4ZPVAHWF.mjs → chunk-357KIU5E.mjs} +4 -4
  7. package/dist/{chunk-AVBPB3MI.mjs → chunk-3IE3A74H.mjs} +2 -2
  8. package/dist/{chunk-ZPJFGGGI.mjs → chunk-6I6OO6B2.mjs} +2 -2
  9. package/dist/{chunk-6N6HHBCQ.mjs → chunk-755NM4PL.mjs} +9 -9
  10. package/dist/{chunk-MW3CJVGP.mjs → chunk-AXDB6KUQ.mjs} +1 -1
  11. package/dist/{chunk-C4ZMXXTL.mjs → chunk-B3MO37YF.mjs} +1 -1
  12. package/dist/{chunk-TKKXPKEO.mjs → chunk-CERPUGRK.mjs} +6 -5
  13. package/dist/{chunk-M3OW2XSP.mjs → chunk-DBC4EJWB.mjs} +1 -1
  14. package/dist/{chunk-SLAC5PAB.mjs → chunk-DDUXEJXW.mjs} +4 -4
  15. package/dist/{chunk-YTUZ4R22.mjs → chunk-DKIMHIBC.mjs} +2 -2
  16. package/dist/{react-native/chunks/chunk-UE4ANHSX.mjs → chunk-F26DOOUH.mjs} +1 -1
  17. package/dist/{chunk-LFXS6OF7.mjs → chunk-MI6UZGUR.mjs} +2 -2
  18. package/dist/{chunk-DXZ6JDWG.mjs → chunk-MSJD74GN.mjs} +2 -2
  19. package/dist/{chunk-NM7I3BM7.mjs → chunk-MYN4K5IS.mjs} +1 -1
  20. package/dist/{chunk-XQIAMDAG.mjs → chunk-NCIGNQJE.mjs} +3 -3
  21. package/dist/{chunk-5F5MXWS5.mjs → chunk-OGYSPNL2.mjs} +5 -5
  22. package/dist/{chunk-BY6NALRK.mjs → chunk-PP3W5PQQ.mjs} +9 -9
  23. package/dist/{chunk-6FOENO4E.mjs → chunk-SMQPZHPS.mjs} +1 -1
  24. package/dist/{chunk-FS3HPPSC.mjs → chunk-UHLFCGZ3.mjs} +1 -1
  25. package/dist/{chunk-FT4KLZXW.mjs → chunk-WC5KAWXQ.mjs} +3 -3
  26. package/dist/{chunk-XL56L4IR.mjs → chunk-WM5KJSQV.mjs} +1 -1
  27. package/dist/{chunk-MYM6CAVK.mjs → chunk-WTMCGZ74.mjs} +2 -2
  28. package/dist/{chunk-KYIRXTCA.mjs → chunk-X3EQCQLP.mjs} +2 -2
  29. package/dist/{chunk-MRCJBWJZ.mjs → chunk-Z7XSHKOF.mjs} +2 -2
  30. package/dist/{client-BKqtl0_V.d.ts → client-BhNxHtcZ.d.ts} +3 -3
  31. package/dist/client.d.ts +6 -6
  32. package/dist/{config-Bnl7L-0H.d.ts → config-BJSL7piq.d.ts} +1 -1
  33. package/dist/{config-CJ-jfI0a.d.ts → config-P9zW3Zz7.d.ts} +1 -1
  34. package/dist/{direct-executor-V3WOYU2Y.mjs → direct-executor-GWJXDFLD.mjs} +1 -1
  35. package/dist/distribution.d.ts +4 -4
  36. package/dist/distribution.mjs +49 -34
  37. package/dist/{engine-qjAxJSKk.d.ts → engine-DoFnkRoF.d.ts} +1 -1
  38. package/dist/index.browser.mjs +1 -1
  39. package/dist/index.d.ts +4 -4
  40. package/dist/index.mjs +1 -1
  41. package/dist/index.react-native.mjs +1 -1
  42. package/dist/{long-query-thread-UCRK7MSI.mjs → long-query-thread-GNTDYDOZ.mjs} +10 -10
  43. package/dist/{optional-reads-5HFMF2QZ.mjs → optional-reads-UCS23AWP.mjs} +1 -1
  44. package/dist/{optional-writes-4UOQKETU.mjs → optional-writes-2AHJCGTY.mjs} +3 -3
  45. package/dist/{paged-partition-archive-BBRLZCIF.mjs → paged-partition-archive-GBAHDT55.mjs} +9 -9
  46. package/dist/partial-words.browser.mjs +1 -1
  47. package/dist/partial-words.mjs +1 -1
  48. package/dist/persistence/durability/checkpoint-worker.mjs +7 -7
  49. package/dist/{query-actions-HMJUVWGT.mjs → query-actions-IDCUA7UV.mjs} +1 -1
  50. package/dist/query-suggestions/merge-worker.mjs +4 -4
  51. package/dist/query-suggestions.browser.mjs +1 -1
  52. package/dist/query-suggestions.d.ts +1 -1
  53. package/dist/query-suggestions.mjs +2 -2
  54. package/dist/{chunk-MFPSQZ6P.mjs → react-native/chunks/chunk-4FUCRLSA.mjs} +1 -1
  55. package/dist/react-native/chunks/{chunk-WVHF4ZAK.mjs → chunk-AJAH6X7W.mjs} +1 -1
  56. package/dist/react-native/chunks/{chunk-G3WCDTOF.mjs → chunk-LPX26NNL.mjs} +9 -9
  57. package/dist/react-native/chunks/{chunk-GXXHHA2T.mjs → chunk-MMPBO4WR.mjs} +1 -1
  58. package/dist/react-native/chunks/{chunk-3OEFSHVV.mjs → chunk-SCGBU47K.mjs} +6 -5
  59. package/dist/react-native/chunks/{chunk-UNZPWLVL.mjs → chunk-TG56N5JC.mjs} +2 -2
  60. package/dist/react-native/chunks/{optional-reads-AFPO2FEB.mjs → optional-reads-4XCJ34QG.mjs} +1 -1
  61. package/dist/react-native/chunks/{optional-writes-XOH25XZI.mjs → optional-writes-XYZVTBFB.mjs} +2 -2
  62. package/dist/react-native/chunks/{restore-queue-LLNMYB4Z.mjs → restore-queue-NOKQZJ2Z.mjs} +4 -4
  63. package/dist/react-native/chunks/{segment-codec-leaf-VR6O5GLC.mjs → segment-codec-leaf-3ZXBJVKH.mjs} +2 -2
  64. package/dist/react-native/chunks/{segment-merge-leaf-LLMWU4EW.mjs → segment-merge-leaf-3Z7MMPWE.mjs} +3 -3
  65. package/dist/react-native/chunks/{storage-leaf-JD7PIDO4.mjs → storage-leaf-KJOX3MMW.mjs} +5 -5
  66. package/dist/react-native/chunks/{store-leaf-4UVCMYGN.mjs → store-leaf-QGLVSO5X.mjs} +3 -3
  67. package/dist/react-native/chunks/{suggestions-leaf-J5VT5RHY.mjs → suggestions-leaf-6GI5ZSW6.mjs} +3 -3
  68. package/dist/react-native/chunks/{worker-copies-ZYHY7FKJ.mjs → worker-copies-ALOD7TSP.mjs} +2 -2
  69. package/dist/react-native/partial-words.mjs +1 -1
  70. package/dist/react-native/query-suggestions.mjs +1 -1
  71. package/dist/react-native/sync.mjs +1 -1
  72. package/dist/react-native/synonyms.mjs +1 -1
  73. package/dist/react.d.ts +7 -7
  74. package/dist/{rerank-RI2PMNOD.mjs → rerank-HB6DU6GS.mjs} +1 -1
  75. package/dist/{restore-queue-PCKWDAKQ.mjs → restore-queue-VUQHGCXE.mjs} +4 -4
  76. package/dist/{segment-codec-leaf-QJM7I6QG.mjs → segment-codec-leaf-TW2FPAAT.mjs} +2 -2
  77. package/dist/{segment-merge-leaf-4BJGIJHY.mjs → segment-merge-leaf-BS3QV5PZ.mjs} +2 -2
  78. package/dist/server.d.ts +8 -8
  79. package/dist/server.mjs +26 -18
  80. package/dist/{storage-leaf-GRRRI7UV.mjs → storage-leaf-5IG2HPNY.mjs} +18 -18
  81. package/dist/{store-leaf-6VMMSVBE.mjs → store-leaf-ZWSOK2DV.mjs} +3 -3
  82. package/dist/{suggestions-leaf-4KPTMPTL.mjs → suggestions-leaf-MUZNKQVF.mjs} +5 -5
  83. package/dist/sync/filesystem.d.ts +2 -2
  84. package/dist/sync/filesystem.mjs +4 -4
  85. package/dist/sync/indexeddb.d.ts +2 -2
  86. package/dist/sync.browser.mjs +1 -1
  87. package/dist/sync.d.ts +3 -3
  88. package/dist/sync.mjs +1 -1
  89. package/dist/synonyms.browser.mjs +1 -1
  90. package/dist/synonyms.mjs +1 -1
  91. package/dist/{tasks-65b6t6lk.d.ts → tasks-DrLiolTG.d.ts} +3 -3
  92. package/dist/{thread-UJ3W5LVI.mjs → thread-6ZBCENAP.mjs} +9 -9
  93. package/dist/{types-CpCg-Gq-.d.ts → types-pS-mAJmX.d.ts} +1 -1
  94. package/dist/{worker-copies-YSXZXIGC.mjs → worker-copies-32HWFUH7.mjs} +4 -4
  95. package/dist/workers/entry.mjs +7 -7
  96. package/openapi.json +2 -2
  97. package/package.json +5 -5
@@ -1,40 +1,40 @@
1
- import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-KYIRXTCA.mjs';
2
- import { emptySerializablePartition } from './chunk-6FOENO4E.mjs';
3
- import { applyStoredIndexBm25 } from './chunk-NM7I3BM7.mjs';
4
- import { keyBytesOf, querySuggestionsOf, createQuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-4ZPVAHWF.mjs';
5
- import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, archiveStream, buildArchiveFromMemory, indexMetadataOf, applyIndexEntry, applyDeleteEntry, documentExportStream, followSourceChanges, requireChangesSetting, resolveAnalysisTarget, requireConfigurationWithinSizeLimit, memoryCheckpointStore, createByteReader, writeArchiveFile, namedSettingsOf, createDetachedIndex, loadPartitionSegments, changesStatusOf, holdsSettings, configOfNamedSettings, closePartitionWriter, requireRestoreMemory, archiveFootprint, storedBytesOfSegments, validateReplicationEntry, readSegmentManifest, replaySyncedWal, nestedSchemaOf } from './chunk-6N6HHBCQ.mjs';
6
- import { readVectorFile } from './chunk-FT4KLZXW.mjs';
1
+ import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-X3EQCQLP.mjs';
2
+ import { emptySerializablePartition } from './chunk-SMQPZHPS.mjs';
3
+ import { applyStoredIndexBm25 } from './chunk-MYN4K5IS.mjs';
4
+ import { keyBytesOf, querySuggestionsOf, createQuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-357KIU5E.mjs';
5
+ import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, archiveStream, buildArchiveFromMemory, indexMetadataOf, applyIndexEntry, applyDeleteEntry, documentExportStream, followSourceChanges, requireChangesSetting, resolveAnalysisTarget, requireConfigurationWithinSizeLimit, memoryCheckpointStore, createByteReader, writeArchiveFile, namedSettingsOf, createDetachedIndex, loadPartitionSegments, changesStatusOf, holdsSettings, configOfNamedSettings, closePartitionWriter, requireRestoreMemory, archiveFootprint, storedBytesOfSegments, validateReplicationEntry, readSegmentManifest, replaySyncedWal, nestedSchemaOf } from './chunk-755NM4PL.mjs';
6
+ import { readVectorFile } from './chunk-WC5KAWXQ.mjs';
7
7
  import { addBackgroundAdmission, workWaitingForMemory, resolveHybridFusion, fuseRankings } from './chunk-GXED6R3Q.mjs';
8
8
  import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
9
- import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, changesServingSourceOf, bindChangesServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, CHANGES_BACKUP_TAKER, BACKUP_MANIFEST_READS_AT_ONCE, storedFilesOf, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, isBackupTaker, readRestorePlacement, SYNC_BACKUP_TAKER, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-LFXS6OF7.mjs';
10
- import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, indexConfigKey, metadataWithSync, suggestionStateOfSettings, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, syncSettingsOfSnapshot, epochFeaturesOn, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState, UNFED_REPLICA_CHECK_INTERVAL_MS, UNFED_REPLICA_RESYNC_MS } from './chunk-C74KPRR7.mjs';
9
+ import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, changesServingSourceOf, bindChangesServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, CHANGES_BACKUP_TAKER, BACKUP_MANIFEST_READS_AT_ONCE, storedFilesOf, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, isBackupTaker, readRestorePlacement, SYNC_BACKUP_TAKER, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-MI6UZGUR.mjs';
10
+ import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, indexConfigKey, metadataWithSync, suggestionStateOfSettings, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, syncSettingsOfSnapshot, epochFeaturesOn, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState, UNFED_REPLICA_CHECK_INTERVAL_MS, UNFED_REPLICA_RESYNC_MS } from './chunk-2K24MEYV.mjs';
11
11
  import './chunk-4H4RG2FR.mjs';
12
- import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, ADMISSION_TIMEOUT_MS, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, ADMISSION_RETRIES_AFTER_IN_SYNC_CHANGE, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, OUT_OF_STEP_REMOVAL_RETRY_INITIAL_DELAY_MS, OUT_OF_STEP_REMOVAL_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-XL56L4IR.mjs';
13
- export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-XL56L4IR.mjs';
14
- import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, decodeIndexConfiguration, requireSyncSetting, requireNoQuerySuggestions, validChangeFilter, createDocumentTest, INDEX_CONFIGURATION_ENVELOPE_VERSION, changesNotEnabled } from './chunk-AVBPB3MI.mjs';
12
+ import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, ADMISSION_TIMEOUT_MS, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, ADMISSION_RETRIES_AFTER_IN_SYNC_CHANGE, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, OUT_OF_STEP_REMOVAL_RETRY_INITIAL_DELAY_MS, OUT_OF_STEP_REMOVAL_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-WM5KJSQV.mjs';
13
+ export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-WM5KJSQV.mjs';
14
+ import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, decodeIndexConfiguration, requireSyncSetting, requireNoQuerySuggestions, validChangeFilter, createDocumentTest, INDEX_CONFIGURATION_ENVELOPE_VERSION, changesNotEnabled } from './chunk-3IE3A74H.mjs';
15
15
  import { restoredConfigFields, restoredEmbedding } from './chunk-M2Z5WVWW.mjs';
16
- import { readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload, estimatedArchiveBytes } from './chunk-ZPJFGGGI.mjs';
16
+ import { readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload, estimatedArchiveBytes } from './chunk-6I6OO6B2.mjs';
17
17
  import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
18
18
  import './chunk-T4HMSZCX.mjs';
19
- import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, DEFAULT_LOG_RETENTION_BYTES, buildEntry, optionalIndexUuid, entryByteEstimate, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, createInsyncRemoveMessage, SNAPSHOT_CHUNK_SIZE, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, checkpointLastSeqNo, checkpointPrimaryTerm, INSYNC_CAS_ATTEMPTS, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-SLAC5PAB.mjs';
20
- import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-DXZ6JDWG.mjs';
19
+ import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, DEFAULT_LOG_RETENTION_BYTES, buildEntry, optionalIndexUuid, entryByteEstimate, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, createInsyncRemoveMessage, SNAPSHOT_CHUNK_SIZE, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, checkpointLastSeqNo, checkpointPrimaryTerm, INSYNC_CAS_ATTEMPTS, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-DDUXEJXW.mjs';
20
+ import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-MSJD74GN.mjs';
21
21
  import { TransportErrorCodes, ClusterMessageTypes, ReplicationMessageTypes, SuggestionMessageTypes, SyncMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-5FLRXF73.mjs';
22
22
  import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
23
- import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-C4ZMXXTL.mjs';
23
+ import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-B3MO37YF.mjs';
24
24
  import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
25
25
  import './chunk-MSIN4NM3.mjs';
26
26
  import './chunk-S5QMWECL.mjs';
27
27
  import './chunk-LNGE7SLY.mjs';
28
28
  import './chunk-R2PJKSNL.mjs';
29
- import './chunk-MFPSQZ6P.mjs';
30
- import { deserializePartition } from './chunk-FS3HPPSC.mjs';
29
+ import './chunk-F26DOOUH.mjs';
30
+ import { deserializePartition } from './chunk-UHLFCGZ3.mjs';
31
31
  import { decodeVectorFilePayload, bytesToVectors, isDead, MIN_EF_SEARCH, MAX_EF_SEARCH, MIN_OVERSAMPLE } from './chunk-R724DJSG.mjs';
32
- import './chunk-MYM6CAVK.mjs';
33
- import { RestoredHistory } from './chunk-YTUZ4R22.mjs';
32
+ import './chunk-WTMCGZ74.mjs';
33
+ import { RestoredHistory } from './chunk-DKIMHIBC.mjs';
34
34
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
35
- import { historyFilesOf, removeHistoryFolder, QUERY_HISTORY_FOLDER, RESTORE_STAGING_INFIX, openChecksummedEnvelope, historyFolderOf, listHistoryFolder, historyFileOf, COUNTS_STREAM_CHUNK_BYTES, BUILD_WRITE_BATCH, restoreStagingPrefix, crc32Init, crc32Final, crc32Update, MAX_COUNTS_STREAM_KEY_BYTES, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, storedStateOf } from './chunk-TKKXPKEO.mjs';
35
+ import { historyFilesOf, removeHistoryFolder, QUERY_HISTORY_FOLDER, RESTORE_STAGING_INFIX, openChecksummedEnvelope, historyFolderOf, listHistoryFolder, historyFileOf, COUNTS_STREAM_CHUNK_BYTES, BUILD_WRITE_BATCH, restoreStagingPrefix, crc32Init, crc32Final, crc32Update, MAX_COUNTS_STREAM_KEY_BYTES, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, storedStateOf } from './chunk-CERPUGRK.mjs';
36
36
  import { boundQuerySuggestionsOf, bindQuerySuggestions } from './chunk-S2POFTLN.mjs';
37
- import { oversampledShardSize, runtimeHost, bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, importOptionalReads, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, synonymModule, createEngineIndex, generateId, documentChurnOf, isCompositePartition, getLanguage, resolveIndexAnalysis, memoryFractionsOf, createMemoryMonitor, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, bm25SetsValue, prepareConfiguredSynonyms, storedArrayPositionGap, updateDocumentVectors, arrayPositionsAreStale, fnv1a, readRecentMemoryFigures, normalizeSort, sortModesOf, resolveProjection, noteDocumentChurn, MAP_TABLE_MIN_CAPACITY, MAP_TABLE_SHRINK_DIVISOR, requireLoadedOptionalReads, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, hasLanguage, FIELD_FILTER_OPERATORS, yieldToEventLoop, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, customTokensOf, visitTokens, getVectorFieldPaths, resolvePartitionInsertOptions, clampRowCount, now, sortSignatureOf, listBindingOf, requireMatchingCursor, decodePageCursor, encodePageCursor, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, requireWithinResultWindow, providedDocId, MAP_TABLE_HEADER_BYTES, MAP_TABLE_SLOT_BYTES, holdsQuotedText, queryBindingOf, engineCoreOf, sortSignatureEntry, fnv1aUint32s, loadRerankRuntime, mergePartitionStats, mergeEntries, regionsOverlap, compareScores } from './chunk-BY6NALRK.mjs';
37
+ import { oversampledShardSize, runtimeHost, bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, importOptionalReads, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, synonymModule, createEngineIndex, generateId, documentChurnOf, isCompositePartition, getLanguage, resolveIndexAnalysis, memoryFractionsOf, createMemoryMonitor, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, bm25SetsValue, prepareConfiguredSynonyms, storedArrayPositionGap, updateDocumentVectors, arrayPositionsAreStale, fnv1a, readRecentMemoryFigures, normalizeSort, sortModesOf, resolveProjection, noteDocumentChurn, MAP_TABLE_MIN_CAPACITY, MAP_TABLE_SHRINK_DIVISOR, requireLoadedOptionalReads, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, hasLanguage, FIELD_FILTER_OPERATORS, yieldToEventLoop, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, customTokensOf, visitTokens, getVectorFieldPaths, resolvePartitionInsertOptions, clampRowCount, now, sortSignatureOf, listBindingOf, requireMatchingCursor, decodePageCursor, encodePageCursor, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, requireWithinResultWindow, providedDocId, MAP_TABLE_HEADER_BYTES, MAP_TABLE_SLOT_BYTES, holdsQuotedText, queryBindingOf, engineCoreOf, sortSignatureEntry, fnv1aUint32s, loadRerankRuntime, mergePartitionStats, mergeEntries, regionsOverlap, compareScores } from './chunk-PP3W5PQQ.mjs';
38
38
  import { encodeDocument, encodeDocumentReply } from './chunk-2CKDCC65.mjs';
39
39
  import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-2AFZE7Y3.mjs';
40
40
  import { decode } from './chunk-GXCDWLQI.mjs';
@@ -10719,23 +10719,31 @@ async function stopCatchUpPump(state) {
10719
10719
  }
10720
10720
 
10721
10721
  // src/distribution/cluster-node/observability/tables.ts
10722
+ async function servingTableOf(coordinator, indexName) {
10723
+ const named = await coordinator.getAllocation(indexName);
10724
+ if (named?.generation === void 0) return { servingName: indexName, table: named };
10725
+ return { servingName: named.generation, table: await coordinator.getAllocation(named.generation) };
10726
+ }
10722
10727
  async function servedIndexes(coordinator) {
10723
10728
  const names = (await coordinator.listSchemas()).filter((name) => !name.startsWith(HIDDEN_GENERATION_PREFIX)).sort();
10724
10729
  const served = await Promise.all(
10725
10730
  names.map(async (indexName) => {
10726
- const table = await coordinator.getAllocation(indexName);
10731
+ const { servingName, table } = await servingTableOf(coordinator, indexName);
10727
10732
  if (table !== null && table.assignments.size > 0) {
10728
10733
  return {
10729
10734
  indexName,
10735
+ servingName,
10730
10736
  partitionCount: table.assignments.size,
10731
10737
  replicationFactor: table.replicationFactor,
10732
10738
  table
10733
10739
  };
10734
10740
  }
10735
- const metadata = await getIndexMetadata(coordinator, indexName);
10741
+ const servingMetadata = await getIndexMetadata(coordinator, servingName);
10742
+ const metadata = servingMetadata === null && servingName !== indexName ? await getIndexMetadata(coordinator, indexName) : servingMetadata;
10736
10743
  if (metadata === null) return null;
10737
10744
  return {
10738
10745
  indexName,
10746
+ servingName,
10739
10747
  partitionCount: metadata.partitionCount,
10740
10748
  replicationFactor: metadata.replicationFactor,
10741
10749
  table: null
@@ -10791,11 +10799,12 @@ async function readClusterHealth(coordinator) {
10791
10799
  }
10792
10800
 
10793
10801
  // src/distribution/cluster-node/observability/metrics.ts
10794
- function lagOf(deps, indexName, partitionId, assignment, log) {
10802
+ function lagOf(deps, index, partitionId, assignment, log) {
10803
+ const { indexName, servingName } = index;
10795
10804
  const figures = [];
10796
10805
  for (const replica of assignment.replicas) {
10797
10806
  if (replica === deps.nodeId) continue;
10798
- const acknowledged = acknowledgedSeqNoOf(deps.catchUp, indexName, partitionId, replica) ?? 0;
10807
+ const acknowledged = acknowledgedSeqNoOf(deps.catchUp, servingName, partitionId, replica) ?? 0;
10799
10808
  const floor = assignment.inSyncSet.includes(replica) ? log.commitPoint : 0;
10800
10809
  const lag = Math.max(0, log.localLogEnd - Math.max(acknowledged, floor));
10801
10810
  figures.push({ indexName, partitionId, replica, lag });
@@ -10818,11 +10827,11 @@ async function readClusterMetrics(deps) {
10818
10827
  inSyncReplicas: inSyncReplicasOf(assignment).length
10819
10828
  });
10820
10829
  if (assignment.primary !== deps.nodeId) continue;
10821
- ledPartitionKeys.add(partitionKey(index.indexName, partitionId));
10822
- const log = deps.replicationLogOf(index.indexName, partitionId);
10830
+ ledPartitionKeys.add(partitionKey(index.servingName, partitionId));
10831
+ const log = deps.replicationLogOf(index.servingName, partitionId);
10823
10832
  if (log === void 0) continue;
10824
10833
  commitPoints.push({ indexName: index.indexName, partitionId, commitPoint: log.commitPoint });
10825
- replicationLag.push(...lagOf(deps, index.indexName, partitionId, assignment, log));
10834
+ replicationLag.push(...lagOf(deps, index, partitionId, assignment, log));
10826
10835
  }
10827
10836
  }
10828
10837
  keepAcknowledgementsOf(deps.catchUp, ledPartitionKeys);
@@ -15974,7 +15983,7 @@ async function openOnce(core, indexName, partitionId) {
15974
15983
  if (directory === void 0) throw durabilityRequired(indexName, partitionId);
15975
15984
  if ((checkpoint.manifest.analysisGeneration ?? 0) !== entry.analysisGeneration) return null;
15976
15985
  const config = await encodeIndexConfiguration(entry);
15977
- const { openPagedPartitionArchive } = await import('./paged-partition-archive-BBRLZCIF.mjs');
15986
+ const { openPagedPartitionArchive } = await import('./paged-partition-archive-GBAHDT55.mjs');
15978
15987
  const archive = await openPagedPartitionArchive(checkpoint, directory, indexName, partitionId, manager);
15979
15988
  handedOver = true;
15980
15989
  try {
@@ -16689,7 +16698,7 @@ async function archiveReplicationPartition(core, indexName, partitionId, lastSeq
16689
16698
  );
16690
16699
  }
16691
16700
  try {
16692
- const { openPagedPartitionArchive } = await import('./paged-partition-archive-BBRLZCIF.mjs');
16701
+ const { openPagedPartitionArchive } = await import('./paged-partition-archive-GBAHDT55.mjs');
16693
16702
  const archive = await openPagedPartitionArchive(checkpoint2, directory, indexName, partitionId, manager);
16694
16703
  return {
16695
16704
  stream: archiveStream({ ...archive, config, sourceIndexName: indexName }),
@@ -16904,7 +16913,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
16904
16913
  if (directory !== null) {
16905
16914
  const durable = core.durability?.manager;
16906
16915
  await (durable?.checkpointFromMemory?.(indexName) ?? durable?.checkpoint(indexName));
16907
- const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-BBRLZCIF.mjs');
16916
+ const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-GBAHDT55.mjs');
16908
16917
  await removeReceivedFilesNothingReads(
16909
16918
  directory,
16910
16919
  core.requireManager(indexName),
@@ -19247,9 +19256,12 @@ var mergeGroups2 = (...args) => {
19247
19256
  };
19248
19257
 
19249
19258
  // src/distribution/query/group-identities.ts
19259
+ function groupValueOf(values, field) {
19260
+ return Object.hasOwn(values, field) ? values[field] ?? null : null;
19261
+ }
19250
19262
  function groupIdentities(sources, fields) {
19251
19263
  const count2 = sources.length;
19252
- const stored = fields.map((field) => buildStoredValues(sources.map((source) => source.values[field])));
19264
+ const stored = fields.map((field) => buildStoredValues(sources.map((source) => groupValueOf(source.values, field))));
19253
19265
  const ordinals = Uint32Array.from(sources, (_, position) => position);
19254
19266
  const scores = new Float64Array(count2);
19255
19267
  const heads = new Uint32Array(count2);
@@ -19273,7 +19285,10 @@ function groupIdentities(sources, fields) {
19273
19285
  const keys = new Uint32Array(count2);
19274
19286
  const values = new Array(found);
19275
19287
  for (let group = 0; group < found; group++) {
19276
- values[group] = sources[heads[group]].values;
19288
+ const head = sources[heads[group]].values;
19289
+ const named = /* @__PURE__ */ Object.create(null);
19290
+ for (const field of fields) named[field] = groupValueOf(head, field);
19291
+ values[group] = named;
19277
19292
  for (let at = offsets[group]; at < offsets[group + 1]; at++) keys[positions[at]] = group;
19278
19293
  }
19279
19294
  return { keys, values };
@@ -20754,7 +20769,7 @@ async function queryCluster(deps, indexName, params, settingName) {
20754
20769
  (reader) => searchCluster(deps, indexName, settingName, params, allocation, reader, false)
20755
20770
  );
20756
20771
  }
20757
- const { rerankClusterQuery } = await import('./rerank-RI2PMNOD.mjs');
20772
+ const { rerankClusterQuery } = await import('./rerank-HB6DU6GS.mjs');
20758
20773
  return withRankedReader(
20759
20774
  deps,
20760
20775
  indexName,
@@ -1422,7 +1422,7 @@ interface FacetResult {
1422
1422
  * @public
1423
1423
  */
1424
1424
  interface GroupResult {
1425
- /** Each grouping field holds this value for the group, keyed by field. */
1425
+ /** This holds one value for each grouping field, keyed by field, with `null` for a field where the group's documents hold no value. */
1426
1426
  values: Record<string, unknown>;
1427
1427
  /** These hits fall in the group, cut to the query's `maxPerGroup`. */
1428
1428
  hits: Array<Hit>;
@@ -1,4 +1,4 @@
1
- export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-NDYADQ4Y.mjs';
1
+ export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-GBJSEHVJ.mjs';
2
2
  import './browser/chunk-QAOVAYAG.mjs';
3
3
  import './browser/chunk-YJHGOJAC.mjs';
4
4
  export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-YINZFPLT.mjs';
package/dist/index.d.ts CHANGED
@@ -6,10 +6,10 @@ import { S as SynonymSearch } from './synonyms-CpOAHPa-.js';
6
6
  export { O as OneWaySynonymRule, a as SynonymRule, T as TwoWaySynonymRule } from './synonyms-CpOAHPa-.js';
7
7
  import { L as LanguageModule } from './language-DB8KG1z5.js';
8
8
  export { T as TokenizerConfig } from './language-DB8KG1z5.js';
9
- import { s as Narsil } from './engine-qjAxJSKk.js';
10
- export { K as AdapterRegistrationOperations, D as AnalysisChange, O as AnalysisOperations, R as ArrayFilter, T as BM25Operations, B as BatchResult, U as ByteSource, C as Change, a as ChangePosition, b as ChangeType, c as ChangesBatch, d as ChangesEvent, e as ChangesOperations, f as ChangesResync, g as ChangesSetting, h as ChangesStatus, i as ChangesSubscribed, j as ClientErrorCode, k as ClientErrorCodes, W as ComparisonFilter, X as DocumentImportResult, Y as DocumentProjection, Z as DocumentWriteOperations, E as ErrorCode, l as ErrorCodes, _ as FacetConfig, $ as FacetResult, a0 as FieldFilter, a1 as FilterExpression, F as FollowChangesOptions, a2 as GeoFilter, a3 as GeoPolygonFilter, a4 as GeoRadiusFilter, v as GroupConfig, a5 as GroupReducer, G as GroupResult, a6 as HeldCheckpointReport, a7 as HighlightConfig, a8 as HighlightMatch, H as Hit, a9 as HybridConfig, I as IndexInfo, aa as IndexLifecycleOperations, x as IndexStats, L as ListParams, y as ListResult, ab as ListedDocument, M as MemoryStats, N as NarsilError, m as NarsilErrorCode, u as NarsilEventHandlers, J as NarsilEventMap, P as PartitionStatsResult, z as PreflightResult, ac as PresenceFilter, ad as ProcessMemoryReport, ae as QueryCoverage, Q as QueryParams, t as QueryResult, af as RerankConfig, ag as ScoreComponents, ah as SearchMode, S as ServerErrorCode, n as ServerErrorCodes, o as SnapshotOptions, ai as SortField, aj as SortSpec, ak as StringFilter, w as SuggestParams, A as SuggestResult, al as SyncOperations, p as SyncSetting, q as SyncStatus, am as SynonymOperations, an as TermMatchPolicy, ao as VectorMaintenanceOperations, V as VectorMaintenanceResult, ap as VectorQueryConfig, aq as WorkerCopyReport, r as isNarsilError } from './engine-qjAxJSKk.js';
11
- import { N as NarsilConfig } from './config-CJ-jfI0a.js';
12
- export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as MemoryConfig, d as NarsilPlugin, P as PartitionContext, Q as QuerySuggestionsConfig, R as RemoveContext, S as SearchContext, e as StaleAnalysis, U as UpdateContext, W as WorkerConfig, f as WorkerContext } from './config-CJ-jfI0a.js';
9
+ import { s as Narsil } from './engine-DoFnkRoF.js';
10
+ export { K as AdapterRegistrationOperations, D as AnalysisChange, O as AnalysisOperations, R as ArrayFilter, T as BM25Operations, B as BatchResult, U as ByteSource, C as Change, a as ChangePosition, b as ChangeType, c as ChangesBatch, d as ChangesEvent, e as ChangesOperations, f as ChangesResync, g as ChangesSetting, h as ChangesStatus, i as ChangesSubscribed, j as ClientErrorCode, k as ClientErrorCodes, W as ComparisonFilter, X as DocumentImportResult, Y as DocumentProjection, Z as DocumentWriteOperations, E as ErrorCode, l as ErrorCodes, _ as FacetConfig, $ as FacetResult, a0 as FieldFilter, a1 as FilterExpression, F as FollowChangesOptions, a2 as GeoFilter, a3 as GeoPolygonFilter, a4 as GeoRadiusFilter, v as GroupConfig, a5 as GroupReducer, G as GroupResult, a6 as HeldCheckpointReport, a7 as HighlightConfig, a8 as HighlightMatch, H as Hit, a9 as HybridConfig, I as IndexInfo, aa as IndexLifecycleOperations, x as IndexStats, L as ListParams, y as ListResult, ab as ListedDocument, M as MemoryStats, N as NarsilError, m as NarsilErrorCode, u as NarsilEventHandlers, J as NarsilEventMap, P as PartitionStatsResult, z as PreflightResult, ac as PresenceFilter, ad as ProcessMemoryReport, ae as QueryCoverage, Q as QueryParams, t as QueryResult, af as RerankConfig, ag as ScoreComponents, ah as SearchMode, S as ServerErrorCode, n as ServerErrorCodes, o as SnapshotOptions, ai as SortField, aj as SortSpec, ak as StringFilter, w as SuggestParams, A as SuggestResult, al as SyncOperations, p as SyncSetting, q as SyncStatus, am as SynonymOperations, an as TermMatchPolicy, ao as VectorMaintenanceOperations, V as VectorMaintenanceResult, ap as VectorQueryConfig, aq as WorkerCopyReport, r as isNarsilError } from './engine-DoFnkRoF.js';
11
+ import { N as NarsilConfig } from './config-P9zW3Zz7.js';
12
+ export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as MemoryConfig, d as NarsilPlugin, P as PartitionContext, Q as QuerySuggestionsConfig, R as RemoveContext, S as SearchContext, e as StaleAnalysis, U as UpdateContext, W as WorkerConfig, f as WorkerContext } from './config-P9zW3Zz7.js';
13
13
  import { N as NativeStoredValues } from './stored-values-BWIMpiT_.js';
14
14
  export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-pljAqmrC.js';
15
15
  export { h as QuerySuggestionsBuildEvent, j as QuerySuggestionsWarningEvent } from './query-suggestions-CBYkrQ5T.js';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './chunk-BY6NALRK.mjs';
1
+ export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './chunk-PP3W5PQQ.mjs';
2
2
  import './chunk-2CKDCC65.mjs';
3
3
  import './chunk-2AFZE7Y3.mjs';
4
4
  import './chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './react-native/chunks/chunk-G3WCDTOF.mjs';
1
+ export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './react-native/chunks/chunk-LPX26NNL.mjs';
2
2
  import './react-native/chunks/chunk-HQEVQEDJ.mjs';
3
3
  import './react-native/chunks/chunk-AKRYHAVG.mjs';
4
4
  import './react-native/chunks/chunk-LX62Y4B5.mjs';
@@ -1,19 +1,19 @@
1
- import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-MRCJBWJZ.mjs';
2
- import { answerRequest } from './chunk-MW3CJVGP.mjs';
3
- import './chunk-XQIAMDAG.mjs';
1
+ import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-Z7XSHKOF.mjs';
2
+ import { answerRequest } from './chunk-AXDB6KUQ.mjs';
3
+ import './chunk-NCIGNQJE.mjs';
4
4
  import './chunk-TACP6VK6.mjs';
5
- import './chunk-XL56L4IR.mjs';
6
- import './chunk-ZPJFGGGI.mjs';
7
- import './chunk-C4ZMXXTL.mjs';
5
+ import './chunk-WM5KJSQV.mjs';
6
+ import './chunk-6I6OO6B2.mjs';
7
+ import './chunk-B3MO37YF.mjs';
8
8
  import './chunk-S5QMWECL.mjs';
9
9
  import './chunk-LNGE7SLY.mjs';
10
10
  import './chunk-R2PJKSNL.mjs';
11
- import './chunk-MFPSQZ6P.mjs';
12
- import './chunk-FS3HPPSC.mjs';
11
+ import './chunk-F26DOOUH.mjs';
12
+ import './chunk-UHLFCGZ3.mjs';
13
13
  import './chunk-R724DJSG.mjs';
14
14
  import './chunk-V6EUBAIT.mjs';
15
- import './chunk-TKKXPKEO.mjs';
16
- import './chunk-BY6NALRK.mjs';
15
+ import './chunk-CERPUGRK.mjs';
16
+ import './chunk-PP3W5PQQ.mjs';
17
17
  import './chunk-2CKDCC65.mjs';
18
18
  import './chunk-2AFZE7Y3.mjs';
19
19
  import './chunk-GXCDWLQI.mjs';
@@ -1761,7 +1761,7 @@ function applyGrouping(hits, group, documents) {
1761
1761
  for (let at = 0; at < found; at++) {
1762
1762
  const values = /* @__PURE__ */ Object.create(null);
1763
1763
  const row = documents.fieldValues(hits[heads[at]].id, group.fields);
1764
- for (let field = 0; field < group.fields.length; field++) values[group.fields[field]] = row?.[field];
1764
+ for (let field = 0; field < group.fields.length; field++) values[group.fields[field]] = row?.[field] ?? null;
1765
1765
  const everyHit = [];
1766
1766
  for (let member = offsets[at]; member < offsets[at + 1]; member++) everyHit.push(hits[positions[member]]);
1767
1767
  const result = { values, hits: everyHit.slice(0, keptPerGroup) };
@@ -1,6 +1,6 @@
1
- export { applyStoredIndexBm25, updateIndexBm25 } from './chunk-NM7I3BM7.mjs';
2
- import { readHeapStatistics, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, validateEmbeddingConfig } from './chunk-BY6NALRK.mjs';
3
- export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-BY6NALRK.mjs';
1
+ export { applyStoredIndexBm25, updateIndexBm25 } from './chunk-MYN4K5IS.mjs';
2
+ import { readHeapStatistics, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, validateEmbeddingConfig } from './chunk-PP3W5PQQ.mjs';
3
+ export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-PP3W5PQQ.mjs';
4
4
  import './chunk-2CKDCC65.mjs';
5
5
  import './chunk-2AFZE7Y3.mjs';
6
6
  import './chunk-GXCDWLQI.mjs';
@@ -1,19 +1,19 @@
1
- import { resolvePartitionId } from './chunk-KYIRXTCA.mjs';
2
- import { readVectorFile, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-FT4KLZXW.mjs';
3
- import './chunk-C74KPRR7.mjs';
1
+ import { resolvePartitionId } from './chunk-X3EQCQLP.mjs';
2
+ import { readVectorFile, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-WC5KAWXQ.mjs';
3
+ import './chunk-2K24MEYV.mjs';
4
4
  import './chunk-M2Z5WVWW.mjs';
5
- import { encodeSegmentManifest, loadFailed, directoryCheckpointStore, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-DXZ6JDWG.mjs';
5
+ import { encodeSegmentManifest, loadFailed, directoryCheckpointStore, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-MSJD74GN.mjs';
6
6
  import { PARTITION_COPY_VECTOR_RUN_BYTES } from './chunk-JDDXV6UF.mjs';
7
- import { segmentsPrefix, vectorFileKey } from './chunk-C4ZMXXTL.mjs';
7
+ import { segmentsPrefix, vectorFileKey } from './chunk-B3MO37YF.mjs';
8
8
  import './chunk-S5QMWECL.mjs';
9
9
  import './chunk-LNGE7SLY.mjs';
10
10
  import './chunk-R2PJKSNL.mjs';
11
- import './chunk-MFPSQZ6P.mjs';
12
- import './chunk-FS3HPPSC.mjs';
11
+ import './chunk-F26DOOUH.mjs';
12
+ import './chunk-UHLFCGZ3.mjs';
13
13
  import { vectorsPerFile, isDead, VECTOR_FILE_PAYLOAD_VERSION } from './chunk-R724DJSG.mjs';
14
14
  import './chunk-V6EUBAIT.mjs';
15
- import { HEADER_SIZE, crc32Init, crc32Final, engineVersionParts, writeHeader, RESERVED_SIZE, crc32Update } from './chunk-TKKXPKEO.mjs';
16
- import { generateId, isCompositePartition } from './chunk-BY6NALRK.mjs';
15
+ import { HEADER_SIZE, crc32Init, crc32Final, engineVersionParts, writeHeader, RESERVED_SIZE, crc32Update } from './chunk-CERPUGRK.mjs';
16
+ import { generateId, isCompositePartition } from './chunk-PP3W5PQQ.mjs';
17
17
  import './chunk-2CKDCC65.mjs';
18
18
  import './chunk-2AFZE7Y3.mjs';
19
19
  import { decode } from './chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, DEFAULT_FUZZY_PREFIX_LENGTH, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, FNV_OFFSET_BASIS, typedRegion, regionsOverlap, mergeText, FNV_PRIME } from './browser/chunk-NDYADQ4Y.mjs';
1
+ import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, DEFAULT_FUZZY_PREFIX_LENGTH, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, FNV_OFFSET_BASIS, typedRegion, regionsOverlap, mergeText, FNV_PRIME } from './browser/chunk-GBJSEHVJ.mjs';
2
2
  import { fuzzyTermMatches, storedText } from './browser/chunk-QAOVAYAG.mjs';
3
3
  import './browser/chunk-YJHGOJAC.mjs';
4
4
  import { compareCodePoints, codePointCount, NarsilError, ErrorCodes } from './browser/chunk-YINZFPLT.mjs';
@@ -1,4 +1,4 @@
1
- import { partialWordSearchModule } from './chunk-BY6NALRK.mjs';
1
+ import { partialWordSearchModule } from './chunk-PP3W5PQQ.mjs';
2
2
  import './chunk-2CKDCC65.mjs';
3
3
  import './chunk-2AFZE7Y3.mjs';
4
4
  import './chunk-GXCDWLQI.mjs';
@@ -1,20 +1,20 @@
1
1
  import { createDurableDirectory } from '../../chunk-M3B7SGJB.mjs';
2
- import { writeCheckpointSegments } from '../../chunk-SLAC5PAB.mjs';
3
- import { directoryCheckpointStore } from '../../chunk-DXZ6JDWG.mjs';
2
+ import { writeCheckpointSegments } from '../../chunk-DDUXEJXW.mjs';
3
+ import { directoryCheckpointStore } from '../../chunk-MSJD74GN.mjs';
4
4
  import '../../chunk-5FLRXF73.mjs';
5
5
  import '../../chunk-JDDXV6UF.mjs';
6
- import '../../chunk-C4ZMXXTL.mjs';
6
+ import '../../chunk-B3MO37YF.mjs';
7
7
  import '../../chunk-HLPRHOSO.mjs';
8
8
  import { CHECKPOINT_WORKER_HEARTBEAT_MS } from '../../chunk-MSIN4NM3.mjs';
9
9
  import '../../chunk-S5QMWECL.mjs';
10
10
  import '../../chunk-LNGE7SLY.mjs';
11
11
  import '../../chunk-R2PJKSNL.mjs';
12
- import '../../chunk-MFPSQZ6P.mjs';
13
- import '../../chunk-FS3HPPSC.mjs';
12
+ import '../../chunk-F26DOOUH.mjs';
13
+ import '../../chunk-UHLFCGZ3.mjs';
14
14
  import '../../chunk-R724DJSG.mjs';
15
15
  import '../../chunk-V6EUBAIT.mjs';
16
- import '../../chunk-TKKXPKEO.mjs';
17
- import { importOptionalReads, loadGeoCodeFor } from '../../chunk-BY6NALRK.mjs';
16
+ import '../../chunk-CERPUGRK.mjs';
17
+ import { importOptionalReads, loadGeoCodeFor } from '../../chunk-PP3W5PQQ.mjs';
18
18
  import '../../chunk-2CKDCC65.mjs';
19
19
  import '../../chunk-2AFZE7Y3.mjs';
20
20
  import '../../chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } from './chunk-BY6NALRK.mjs';
1
+ import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } from './chunk-PP3W5PQQ.mjs';
2
2
  import './chunk-2CKDCC65.mjs';
3
3
  import './chunk-2AFZE7Y3.mjs';
4
4
  import './chunk-GXCDWLQI.mjs';
@@ -1,8 +1,8 @@
1
- import { Merger } from '../chunk-MYM6CAVK.mjs';
2
- import '../chunk-YTUZ4R22.mjs';
1
+ import { Merger } from '../chunk-WTMCGZ74.mjs';
2
+ import '../chunk-DKIMHIBC.mjs';
3
3
  import '../chunk-V6EUBAIT.mjs';
4
- import '../chunk-TKKXPKEO.mjs';
5
- import '../chunk-BY6NALRK.mjs';
4
+ import '../chunk-CERPUGRK.mjs';
5
+ import '../chunk-PP3W5PQQ.mjs';
6
6
  import '../chunk-2CKDCC65.mjs';
7
7
  import '../chunk-2AFZE7Y3.mjs';
8
8
  import '../chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-NDYADQ4Y.mjs';
1
+ import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-GBJSEHVJ.mjs';
2
2
  import './browser/chunk-QAOVAYAG.mjs';
3
3
  import './browser/chunk-YJHGOJAC.mjs';
4
4
  import { NarsilError, ErrorCodes } from './browser/chunk-YINZFPLT.mjs';
@@ -1,4 +1,4 @@
1
- import { s as Narsil } from './engine-qjAxJSKk.js';
1
+ import { s as Narsil } from './engine-DoFnkRoF.js';
2
2
  import { g as QuerySuggestions } from './query-suggestions-CBYkrQ5T.js';
3
3
  export { M as ManualQuerySuggestion, Q as QuerySuggestionPreviewEntry, a as QuerySuggestionsBuild, h as QuerySuggestionsBuildEvent, b as QuerySuggestionsBuildTrigger, c as QuerySuggestionsPreview, d as QuerySuggestionsSetting, i as QuerySuggestionsSource, e as QuerySuggestionsStatus, j as QuerySuggestionsWarningEvent, k as QuerySuggestionsWarningReason, R as RecordQueryOutcome, f as RecordQueryResult, l as RecordedQuery } from './query-suggestions-CBYkrQ5T.js';
4
4
  import './adapters-pljAqmrC.js';
@@ -1,6 +1,6 @@
1
- export { querySuggestions } from './chunk-M3OW2XSP.mjs';
1
+ export { querySuggestions } from './chunk-DBC4EJWB.mjs';
2
2
  import './chunk-S2POFTLN.mjs';
3
- import './chunk-BY6NALRK.mjs';
3
+ import './chunk-PP3W5PQQ.mjs';
4
4
  import './chunk-2CKDCC65.mjs';
5
5
  import './chunk-2AFZE7Y3.mjs';
6
6
  import './chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-BY6NALRK.mjs';
1
+ import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-LPX26NNL.mjs';
2
2
 
3
3
  // src/partitioning/constants.ts
4
4
  var REBALANCE_CHUNK_SIZE = 1e3;
@@ -1,4 +1,4 @@
1
- import { createSurfaceRegistry, SegmentRefusal, encodeSurfaceTable, encodePartialSpellingsOf, encodeStringBlob, mergeTextAt, generateId, encodeExternalIdTableData, buildPartialWordTableFrom, wrapFrozenTokenTable, encodeDocumentTableData, topLevelMapKeys, mergeStoredFields, prepareDocumentText, recordValueSize, patternIndexOf, encodeFieldIndexes, mergeFieldRegions, sameFields, partialSpellingsOfDocuments, storedDocumentsOf, encodeFrozenTokenTableData, mergeKeywordSources, GrowingSegment, LivePostings, createSpellingTable, createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex } from './chunk-G3WCDTOF.mjs';
1
+ import { createSurfaceRegistry, SegmentRefusal, encodeSurfaceTable, encodePartialSpellingsOf, encodeStringBlob, mergeTextAt, generateId, encodeExternalIdTableData, buildPartialWordTableFrom, wrapFrozenTokenTable, encodeDocumentTableData, topLevelMapKeys, mergeStoredFields, prepareDocumentText, recordValueSize, patternIndexOf, encodeFieldIndexes, mergeFieldRegions, sameFields, partialSpellingsOfDocuments, storedDocumentsOf, encodeFrozenTokenTableData, mergeKeywordSources, GrowingSegment, LivePostings, createSpellingTable, createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex } from './chunk-LPX26NNL.mjs';
2
2
  import { storedText, bitsetIterator } from './chunk-HTBY4GON.mjs';
3
3
  import { encodeDocument } from './chunk-UO44MA5M.mjs';
4
4
  import { schemaFieldsOf, getNestedValue, isWordIndexedBase, validateDocument, validateDocumentStrict } from './chunk-MRH36RN3.mjs';
@@ -8682,7 +8682,7 @@ function resolvePartitionInsertOptions(config, analysis, options) {
8682
8682
 
8683
8683
  // src/core/segment-codec-code.ts
8684
8684
  var segmentCodec = codeLoader(async () => {
8685
- const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-VR6O5GLC.mjs')]);
8685
+ const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-3ZXBJVKH.mjs')]);
8686
8686
  code7.bindSegmentCodecHost(optionalCodeHost(), msgpack);
8687
8687
  return code7;
8688
8688
  }, "segment codec");
@@ -8693,7 +8693,7 @@ var segmentMerge = codeLoader(async () => {
8693
8693
  const [msgpack, codec, code7] = await Promise.all([
8694
8694
  loadMessagePack(),
8695
8695
  loadSegmentCodec(),
8696
- import('./segment-merge-leaf-LLMWU4EW.mjs')
8696
+ import('./segment-merge-leaf-3Z7MMPWE.mjs')
8697
8697
  ]);
8698
8698
  code7.bindSegmentMergeHost(optionalCodeHost(), msgpack, codec);
8699
8699
  return code7;
@@ -8702,7 +8702,7 @@ var loadSegmentMerge = segmentMerge.load;
8702
8702
 
8703
8703
  // src/query-suggestions/store-code.ts
8704
8704
  var suggestionStore = codeLoader(async () => {
8705
- const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-4UVCMYGN.mjs')]);
8705
+ const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-QGLVSO5X.mjs')]);
8706
8706
  code7.bindSuggestionStoreHost(optionalCodeHost(), msgpack);
8707
8707
  return code7;
8708
8708
  }, "query suggestions store");
@@ -8783,7 +8783,7 @@ var storageCode = codeLoader(async () => {
8783
8783
  loadSegmentMerge(),
8784
8784
  loadSuggestionStore(),
8785
8785
  loadVectorCore(),
8786
- import('./storage-leaf-JD7PIDO4.mjs')
8786
+ import('./storage-leaf-KJOX3MMW.mjs')
8787
8787
  ]);
8788
8788
  code7.bindStorageHost(optionalCodeHost(), digest2, msgpack, segmentCodec2, segmentMerge2, suggestionStore2, vectorCore2);
8789
8789
  return code7;
@@ -19946,7 +19946,7 @@ function hasLanguage(name) {
19946
19946
 
19947
19947
  // src/narsil/restore-queue-code.ts
19948
19948
  var restoreQueue = codeLoader(async () => {
19949
- const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-LLNMYB4Z.mjs')]);
19949
+ const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-NOKQZJ2Z.mjs')]);
19950
19950
  code7.bindRestoreQueueHost(optionalCodeHost(), suggestionStore2);
19951
19951
  return code7;
19952
19952
  }, "restore");
@@ -20548,7 +20548,7 @@ var loadEmbedCode = embedCode.load;
20548
20548
 
20549
20549
  // src/engine/optional-writes-code.ts
20550
20550
  var optionalWrites = codeLoader(async () => {
20551
- const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-XOH25XZI.mjs')]);
20551
+ const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-XYZVTBFB.mjs')]);
20552
20552
  code7.bindOptionalWritesHost(optionalCodeHost(), segmentCodec2);
20553
20553
  return code7;
20554
20554
  }, "write");
@@ -22726,7 +22726,7 @@ var suggestionsCode = codeLoader(async () => {
22726
22726
  const [msgpack, suggestionStore2, code7] = await Promise.all([
22727
22727
  loadMessagePack(),
22728
22728
  loadSuggestionStore(),
22729
- import('./suggestions-leaf-J5VT5RHY.mjs')
22729
+ import('./suggestions-leaf-6GI5ZSW6.mjs')
22730
22730
  ]);
22731
22731
  code7.bindSuggestionsHost(optionalCodeHost(), msgpack, suggestionStore2);
22732
22732
  return code7;
@@ -24353,7 +24353,7 @@ var workerCopies = codeLoader(async () => {
24353
24353
  const [segmentCodec2, segmentMerge2, code7] = await Promise.all([
24354
24354
  loadSegmentCodec(),
24355
24355
  loadSegmentMerge(),
24356
- import('./worker-copies-ZYHY7FKJ.mjs')
24356
+ import('./worker-copies-ALOD7TSP.mjs')
24357
24357
  ]);
24358
24358
  code7.bindWorkerCopiesHost(optionalCodeHost(), segmentCodec2, segmentMerge2);
24359
24359
  return code7;
@@ -24578,7 +24578,7 @@ var loaded2 = null;
24578
24578
  var loading3 = null;
24579
24579
  function importOptionalReads() {
24580
24580
  if (loaded2 !== null) return Promise.resolve(loaded2);
24581
- loading3 ??= import('./optional-reads-AFPO2FEB.mjs').then(
24581
+ loading3 ??= import('./optional-reads-4XCJ34QG.mjs').then(
24582
24582
  (code7) => {
24583
24583
  code7.bindOptionalReadsHost(optionalCodeHost());
24584
24584
  loaded2 = code7;
@@ -1,4 +1,4 @@
1
- import { createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex, rebuildSizeIndexes, requirePatternSearch, patternIndexOf } from './chunk-G3WCDTOF.mjs';
1
+ import { createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex, rebuildSizeIndexes, requirePatternSearch, patternIndexOf } from './chunk-LPX26NNL.mjs';
2
2
  import { getFlatSchema, schemaFieldsOf, getNestedValue } from './chunk-MRH36RN3.mjs';
3
3
 
4
4
  // src/core/partition/pattern-snapshot.ts
@@ -1,4 +1,4 @@
1
- import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-G3WCDTOF.mjs';
1
+ import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-LPX26NNL.mjs';
2
2
  import { flattenSchema } from './chunk-MRH36RN3.mjs';
3
3
  import { MAX_FILE_BYTES, CHECKSUM_YIELD_CHUNK_BYTES } from './chunk-VUJCSQG5.mjs';
4
4
  import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
@@ -883,8 +883,9 @@ function adapterFiles(storage) {
883
883
  listUnder: (prefix) => adapter.list(prefix),
884
884
  async read(key) {
885
885
  const bytes = await adapter.load(key);
886
- if (bytes !== null && bytes.byteLength > MAX_HISTORY_FILE_BYTES) return "too-long";
887
- return bytes;
886
+ if (bytes === null) return null;
887
+ if (bytes.byteLength > MAX_HISTORY_FILE_BYTES) return "too-long";
888
+ return new Uint8Array(bytes);
888
889
  },
889
890
  write: (key, bytes) => adapter.save(key, bytes),
890
891
  remove: (key) => adapter.delete(key)
@@ -897,10 +898,10 @@ function memoryFiles() {
897
898
  return [...files.keys()].filter((key) => key.startsWith(prefix)).sort();
898
899
  },
899
900
  async read(key) {
900
- return files.get(key) ?? null;
901
+ return files.get(key)?.slice() ?? null;
901
902
  },
902
903
  async write(key, bytes) {
903
- files.set(key, bytes);
904
+ files.set(key, bytes.slice());
904
905
  },
905
906
  async remove(key) {
906
907
  files.delete(key);
@@ -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-3OEFSHVV.mjs';
2
- import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-G3WCDTOF.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-SCGBU47K.mjs';
2
+ import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-LPX26NNL.mjs';
3
3
  import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
4
4
 
5
5
  // src/query-suggestions/engine-hooks.ts