@delali/narsil 0.3.1-next.180 → 0.3.1-next.183

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 (101) hide show
  1. package/dist/browser/{chunk-JHFBQKUF.mjs → chunk-ZZUXMJIK.mjs} +12 -14
  2. package/dist/browser/{durability-config-SGB5ZP5K.mjs → durability-config-75NSFCQN.mjs} +6 -3
  3. package/dist/browser/{optional-writes-TB34FYUW.mjs → optional-writes-IQFTXANH.mjs} +2 -0
  4. package/dist/browser/{storage-leaf-QFXIWDFK.mjs → storage-leaf-2CO6SQ7R.mjs} +859 -250
  5. package/dist/{capabilities-BQIdsaWy.d.ts → capabilities-DAHXphRn.d.ts} +2 -2
  6. package/dist/{chunk-QFJMRB7D.mjs → chunk-2DK74OQL.mjs} +1 -1
  7. package/dist/{chunk-F3FDHXCJ.mjs → chunk-3OEXOSWI.mjs} +251 -50
  8. package/dist/{chunk-GO6TRSJ6.mjs → chunk-632ABEIR.mjs} +1 -1
  9. package/dist/{chunk-34IOOYXA.mjs → chunk-6ICOWB6I.mjs} +1 -1
  10. package/dist/{chunk-XNFBYAXI.mjs → chunk-C3EINJNJ.mjs} +1 -1
  11. package/dist/{chunk-JCWC75NH.mjs → chunk-C77OBNPP.mjs} +1 -1
  12. package/dist/{chunk-YPV2L7M5.mjs → chunk-CKS4QQEC.mjs} +3 -3
  13. package/dist/{chunk-2C3BXZGA.mjs → chunk-CWXR7OP4.mjs} +18 -20
  14. package/dist/{chunk-BIIROQ5Q.mjs → chunk-EGWBZSHK.mjs} +2 -2
  15. package/dist/{chunk-XQQKETAF.mjs → chunk-F2UOTRY7.mjs} +2 -2
  16. package/dist/{chunk-XTSFRWAS.mjs → chunk-FIXUVFUC.mjs} +3 -3
  17. package/dist/{chunk-Y27E2MGC.mjs → chunk-GGG5R4CU.mjs} +1 -1
  18. package/dist/{chunk-2KWTQ2P7.mjs → chunk-JVR5KMO4.mjs} +2 -2
  19. package/dist/{chunk-XITVDRRH.mjs → chunk-M3H7CTIC.mjs} +6 -6
  20. package/dist/{chunk-YXZDTKQS.mjs → chunk-MCAJOLVK.mjs} +2 -2
  21. package/dist/{chunk-QDZJM7NI.mjs → chunk-MSIN4NM3.mjs} +3 -1
  22. package/dist/{chunk-UISV46WX.mjs → chunk-NPXORGMK.mjs} +2 -2
  23. package/dist/{chunk-R7PLSVK3.mjs → chunk-OQANB7SJ.mjs} +1 -1
  24. package/dist/{chunk-KHJPMZE2.mjs → chunk-PK3BGGHO.mjs} +1 -1
  25. package/dist/{chunk-ISJ35523.mjs → chunk-PXEGKQHS.mjs} +2 -2
  26. package/dist/{chunk-LOQHA6QK.mjs → chunk-SA7U67XF.mjs} +2 -2
  27. package/dist/{chunk-JDIATDPY.mjs → chunk-T3YI4KN6.mjs} +1 -1
  28. package/dist/{chunk-ZB5X5WAK.mjs → chunk-TTTBE4TB.mjs} +10 -5
  29. package/dist/{chunk-A4XYDUVN.mjs → chunk-V7F5DOSC.mjs} +2 -2
  30. package/dist/{chunk-26E5MO3Y.mjs → chunk-WUWSUJ2X.mjs} +4 -4
  31. package/dist/{chunk-XFOL77WH.mjs → chunk-YWSIRKKQ.mjs} +1 -1
  32. package/dist/{chunk-7FC2ZILY.mjs → chunk-ZVZ2V2PZ.mjs} +37 -67
  33. package/dist/{client-CeUxvIvd.d.ts → client-DpqtT2XG.d.ts} +3 -3
  34. package/dist/client.d.ts +6 -6
  35. package/dist/{config-DehU-VGL.d.ts → config-C687-reW.d.ts} +11 -1
  36. package/dist/{config-CIpLXXxm.d.ts → config-D9WR3MhO.d.ts} +1 -1
  37. package/dist/{direct-executor-2WQSGBN3.mjs → direct-executor-JXYIL4OQ.mjs} +1 -1
  38. package/dist/distribution.d.ts +4 -4
  39. package/dist/distribution.mjs +391 -138
  40. package/dist/{durability-config-XV4XR7Y4.mjs → durability-config-NWU2G2SJ.mjs} +6 -3
  41. package/dist/{engine-P-4xhUe4.d.ts → engine-De6JzTW8.d.ts} +123 -72
  42. package/dist/index.browser.mjs +1 -1
  43. package/dist/index.d.ts +4 -4
  44. package/dist/index.mjs +1 -1
  45. package/dist/index.react-native.mjs +1 -1
  46. package/dist/{long-query-thread-AAYTLYZK.mjs → long-query-thread-HPKGRYWM.mjs} +10 -10
  47. package/dist/{optional-writes-N2DFWWZ3.mjs → optional-writes-QE7QUI45.mjs} +5 -3
  48. package/dist/{paged-partition-archive-X7L27E5Z.mjs → paged-partition-archive-IK2UOY2G.mjs} +9 -9
  49. package/dist/partial-words.browser.mjs +1 -1
  50. package/dist/partial-words.mjs +1 -1
  51. package/dist/persistence/durability/checkpoint-worker.d.ts +9 -0
  52. package/dist/persistence/durability/checkpoint-worker.mjs +23 -12
  53. package/dist/{query-actions-2JOLPELC.mjs → query-actions-COEFVUH3.mjs} +1 -1
  54. package/dist/query-suggestions/merge-worker.mjs +4 -4
  55. package/dist/query-suggestions.browser.mjs +1 -1
  56. package/dist/query-suggestions.d.ts +1 -1
  57. package/dist/query-suggestions.mjs +2 -2
  58. package/dist/react-native/chunks/{chunk-F4MIGBBP.mjs → chunk-6A5XE2MA.mjs} +18 -20
  59. package/dist/react-native/chunks/{chunk-H344ZXRH.mjs → chunk-DN2GVVR4.mjs} +1 -1
  60. package/dist/react-native/chunks/{chunk-GVWLACAT.mjs → chunk-DZ4FQW5K.mjs} +2 -2
  61. package/dist/react-native/chunks/{chunk-57R74JWC.mjs → chunk-G4YYO5TC.mjs} +1 -1
  62. package/dist/react-native/chunks/{chunk-F6BJYCF2.mjs → chunk-UPN4NUXU.mjs} +1 -1
  63. package/dist/react-native/chunks/{chunk-GGBATERA.mjs → chunk-XNIH3WIB.mjs} +1 -1
  64. package/dist/react-native/chunks/{durability-config-3IOXIPYZ.mjs → durability-config-RVTWSXPH.mjs} +6 -3
  65. package/dist/react-native/chunks/{optional-writes-TXTJ6HUZ.mjs → optional-writes-YZ7WTR7V.mjs} +4 -2
  66. package/dist/react-native/chunks/{restore-queue-SZLWIL3B.mjs → restore-queue-IGKD6Q2Y.mjs} +4 -4
  67. package/dist/react-native/chunks/{segment-codec-leaf-WMUZ5P4F.mjs → segment-codec-leaf-JTTGDT3G.mjs} +2 -2
  68. package/dist/react-native/chunks/{segment-merge-leaf-Q2OEJIQ3.mjs → segment-merge-leaf-D5ZFJRUB.mjs} +3 -3
  69. package/dist/react-native/chunks/{storage-leaf-OXYV6O6P.mjs → storage-leaf-ZKIM6IF6.mjs} +864 -255
  70. package/dist/react-native/chunks/{store-leaf-ZMDXYK4E.mjs → store-leaf-PHBOTT5J.mjs} +3 -3
  71. package/dist/react-native/chunks/{suggestions-leaf-FIMGQZ2T.mjs → suggestions-leaf-R7MIH6Q3.mjs} +3 -3
  72. package/dist/react-native/chunks/{worker-copies-72TGFYQB.mjs → worker-copies-U35KPVJ7.mjs} +2 -2
  73. package/dist/react-native/partial-words.mjs +1 -1
  74. package/dist/react-native/query-suggestions.mjs +1 -1
  75. package/dist/react-native/sync.mjs +1 -1
  76. package/dist/react-native/synonyms.mjs +1 -1
  77. package/dist/react.d.ts +7 -7
  78. package/dist/{rerank-E2HFKKGJ.mjs → rerank-LYL3D7LU.mjs} +1 -1
  79. package/dist/{restore-queue-PUVBN6L3.mjs → restore-queue-LF4DTVJC.mjs} +4 -4
  80. package/dist/{segment-codec-leaf-24Z3MMQI.mjs → segment-codec-leaf-ACALKS2C.mjs} +2 -2
  81. package/dist/{segment-merge-leaf-FQQDU45E.mjs → segment-merge-leaf-SKMPASFK.mjs} +2 -2
  82. package/dist/server.d.ts +8 -8
  83. package/dist/server.mjs +16 -16
  84. package/dist/{storage-leaf-KIA7XO6Y.mjs → storage-leaf-OJ55R4C5.mjs} +588 -158
  85. package/dist/{store-leaf-ESVLL4JO.mjs → store-leaf-CWHHEDRK.mjs} +3 -3
  86. package/dist/{suggestions-leaf-FXF4AHAY.mjs → suggestions-leaf-ZTU3ZTWJ.mjs} +5 -5
  87. package/dist/sync/filesystem.d.ts +2 -2
  88. package/dist/sync/filesystem.mjs +6 -6
  89. package/dist/sync/indexeddb.d.ts +2 -2
  90. package/dist/sync.browser.mjs +1 -1
  91. package/dist/sync.d.ts +3 -3
  92. package/dist/sync.mjs +1 -1
  93. package/dist/synonyms.browser.mjs +1 -1
  94. package/dist/synonyms.mjs +1 -1
  95. package/dist/{tasks-CXtQ3Zpp.d.ts → tasks-X2IJQc8J.d.ts} +2 -2
  96. package/dist/{thread-OWXVP2ZA.mjs → thread-BEGFRULV.mjs} +9 -9
  97. package/dist/{types-CDN70Y_C.d.ts → types-D0YasjoX.d.ts} +1 -1
  98. package/dist/{worker-copies-XXX7PF4J.mjs → worker-copies-373P6IYZ.mjs} +4 -4
  99. package/dist/workers/entry.mjs +7 -7
  100. package/openapi.json +32 -0
  101. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
- export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-YXZDTKQS.mjs';
1
+ export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-MCAJOLVK.mjs';
2
2
  export { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
3
- export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-JCWC75NH.mjs';
4
- import './chunk-2C3BXZGA.mjs';
3
+ export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-C77OBNPP.mjs';
4
+ import './chunk-CWXR7OP4.mjs';
5
5
  import './chunk-KLVMK3R5.mjs';
6
6
  import './chunk-LPRRFCVU.mjs';
7
7
  import './chunk-GXCDWLQI.mjs';
@@ -1,9 +1,9 @@
1
- import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-26E5MO3Y.mjs';
2
- export { bindSuggestionsHost } from './chunk-2KWTQ2P7.mjs';
3
- import { installSuggestionHooks } from './chunk-YXZDTKQS.mjs';
1
+ import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-WUWSUJ2X.mjs';
2
+ export { bindSuggestionsHost } from './chunk-JVR5KMO4.mjs';
3
+ import { installSuggestionHooks } from './chunk-MCAJOLVK.mjs';
4
4
  import './chunk-V6EUBAIT.mjs';
5
- import { attachedRuntimeOf, attachRuntime } from './chunk-JCWC75NH.mjs';
6
- import './chunk-2C3BXZGA.mjs';
5
+ import { attachedRuntimeOf, attachRuntime } from './chunk-C77OBNPP.mjs';
6
+ import './chunk-CWXR7OP4.mjs';
7
7
  import './chunk-KLVMK3R5.mjs';
8
8
  import './chunk-LPRRFCVU.mjs';
9
9
  import './chunk-GXCDWLQI.mjs';
@@ -1,5 +1,5 @@
1
- import { d as DeviceSyncStore } from '../types-CDN70Y_C.js';
2
- import '../engine-P-4xhUe4.js';
1
+ import { d as DeviceSyncStore } from '../types-D0YasjoX.js';
2
+ import '../engine-De6JzTW8.js';
3
3
  import '../adapters-pljAqmrC.js';
4
4
  import '../schema-CzG9OUw5.js';
5
5
  import '../synonyms-CpOAHPa-.js';
@@ -1,17 +1,17 @@
1
1
  import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-QJGDB3WR.mjs';
2
2
  import { createSerial, QUEUE_COMPACTION_BYTES, DOWNLOAD_FRAME_BYTES, STORE_FRAME_LIMIT_BYTES } from '../chunk-6MSZ543Y.mjs';
3
- import { createDurableDirectory } from '../chunk-34IOOYXA.mjs';
3
+ import { createDurableDirectory } from '../chunk-6ICOWB6I.mjs';
4
4
  import '../chunk-HLPRHOSO.mjs';
5
- import '../chunk-QDZJM7NI.mjs';
5
+ import '../chunk-MSIN4NM3.mjs';
6
6
  import '../chunk-CV3Q2EKO.mjs';
7
7
  import '../chunk-LNGE7SLY.mjs';
8
8
  import '../chunk-I2WJCRIH.mjs';
9
- import '../chunk-XFOL77WH.mjs';
10
- import '../chunk-R7PLSVK3.mjs';
9
+ import '../chunk-YWSIRKKQ.mjs';
10
+ import '../chunk-OQANB7SJ.mjs';
11
11
  import '../chunk-TNEU32EN.mjs';
12
12
  import '../chunk-V6EUBAIT.mjs';
13
- import { crc32 } from '../chunk-JCWC75NH.mjs';
14
- import '../chunk-2C3BXZGA.mjs';
13
+ import { crc32 } from '../chunk-C77OBNPP.mjs';
14
+ import '../chunk-CWXR7OP4.mjs';
15
15
  import '../chunk-KLVMK3R5.mjs';
16
16
  import '../chunk-LPRRFCVU.mjs';
17
17
  import '../chunk-GXCDWLQI.mjs';
@@ -1,5 +1,5 @@
1
- import { d as DeviceSyncStore } from '../types-CDN70Y_C.js';
2
- import '../engine-P-4xhUe4.js';
1
+ import { d as DeviceSyncStore } from '../types-D0YasjoX.js';
2
+ import '../engine-De6JzTW8.js';
3
3
  import '../adapters-pljAqmrC.js';
4
4
  import '../schema-CzG9OUw5.js';
5
5
  import '../synonyms-CpOAHPa-.js';
@@ -1,5 +1,5 @@
1
1
  import { createSerial, KEPT_ENTRY_FLUSH_IDLE_MS, KEPT_ENTRY_OVERHEAD_BYTES, DEFAULT_REPLAY_LIMIT_OF_SNAPSHOT, BACKOFF_DOUBLINGS_LIMIT, KEPT_ENTRY_FLUSH_BYTES, UPLOAD_BATCH_WRITES, RETRY_MAX_DELAY_MS, UPLOAD_RETRY_DELAY_MS, DOWNLOAD_SAVE_BYTES, SNAPSHOT_MEMORY_PER_ARCHIVE_BYTE, SNAPSHOT_RETRY_DELAY_MS, RECONNECT_MIN_DELAY_MS } from './browser/chunk-WC2DEXWU.mjs';
2
- import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-JHFBQKUF.mjs';
2
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-ZZUXMJIK.mjs';
3
3
  import './browser/chunk-4ZICWS4V.mjs';
4
4
  import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
5
5
  import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema, ServerErrorCodes, describeError } from './browser/chunk-2Q45HI5H.mjs';
package/dist/sync.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { D as DeviceSyncOptions, a as DeviceSync } from './types-CDN70Y_C.js';
2
- export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-CDN70Y_C.js';
3
- import './engine-P-4xhUe4.js';
1
+ import { D as DeviceSyncOptions, a as DeviceSync } from './types-D0YasjoX.js';
2
+ export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-D0YasjoX.js';
3
+ import './engine-De6JzTW8.js';
4
4
  import './adapters-pljAqmrC.js';
5
5
  import './schema-CzG9OUw5.js';
6
6
  import './synonyms-CpOAHPa-.js';
package/dist/sync.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, encodeJson, SYNC_SUBPROTOCOL, decodeScore } from './chunk-FETZYCH7.mjs';
2
2
  import { createSerial, KEPT_ENTRY_FLUSH_IDLE_MS, KEPT_ENTRY_OVERHEAD_BYTES, DEFAULT_REPLAY_LIMIT_OF_SNAPSHOT, BACKOFF_DOUBLINGS_LIMIT, KEPT_ENTRY_FLUSH_BYTES, UPLOAD_BATCH_WRITES, RETRY_MAX_DELAY_MS, UPLOAD_RETRY_DELAY_MS, DOWNLOAD_SAVE_BYTES, SNAPSHOT_MEMORY_PER_ARCHIVE_BYTE, SNAPSHOT_RETRY_DELAY_MS, RECONNECT_MIN_DELAY_MS } from './chunk-6MSZ543Y.mjs';
3
- import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-2C3BXZGA.mjs';
3
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-CWXR7OP4.mjs';
4
4
  import './chunk-KLVMK3R5.mjs';
5
5
  import './chunk-LPRRFCVU.mjs';
6
6
  import './chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-JHFBQKUF.mjs';
1
+ import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-ZZUXMJIK.mjs';
2
2
  import { storedText } from './browser/chunk-4ZICWS4V.mjs';
3
3
  import './browser/chunk-YJHGOJAC.mjs';
4
4
  import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-2Q45HI5H.mjs';
package/dist/synonyms.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { synonymSearchModule } from './chunk-2C3BXZGA.mjs';
1
+ import { synonymSearchModule } from './chunk-CWXR7OP4.mjs';
2
2
  import './chunk-KLVMK3R5.mjs';
3
3
  import './chunk-LPRRFCVU.mjs';
4
4
  import './chunk-GXCDWLQI.mjs';
@@ -1,7 +1,7 @@
1
- import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-CIpLXXxm.js';
1
+ import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-D9WR3MhO.js';
2
2
  import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-CBUl4z3E.js';
3
3
  import { a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
4
- import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-P-4xhUe4.js';
4
+ import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-De6JzTW8.js';
5
5
  import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-CzG9OUw5.js';
6
6
  import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
7
7
 
@@ -1,18 +1,18 @@
1
- export { closeRequestThread, searchHandler, serveRequests } from './chunk-A4XYDUVN.mjs';
2
- import './chunk-XTSFRWAS.mjs';
1
+ export { closeRequestThread, searchHandler, serveRequests } from './chunk-V7F5DOSC.mjs';
2
+ import './chunk-FIXUVFUC.mjs';
3
3
  import './chunk-FETZYCH7.mjs';
4
- import './chunk-Y27E2MGC.mjs';
5
- import './chunk-UISV46WX.mjs';
6
- import './chunk-KHJPMZE2.mjs';
4
+ import './chunk-GGG5R4CU.mjs';
5
+ import './chunk-NPXORGMK.mjs';
6
+ import './chunk-PK3BGGHO.mjs';
7
7
  import './chunk-CV3Q2EKO.mjs';
8
8
  import './chunk-LNGE7SLY.mjs';
9
9
  import './chunk-I2WJCRIH.mjs';
10
- import './chunk-XFOL77WH.mjs';
11
- import './chunk-R7PLSVK3.mjs';
10
+ import './chunk-YWSIRKKQ.mjs';
11
+ import './chunk-OQANB7SJ.mjs';
12
12
  import './chunk-TNEU32EN.mjs';
13
13
  import './chunk-V6EUBAIT.mjs';
14
- import './chunk-JCWC75NH.mjs';
15
- import './chunk-2C3BXZGA.mjs';
14
+ import './chunk-C77OBNPP.mjs';
15
+ import './chunk-CWXR7OP4.mjs';
16
16
  import './chunk-KLVMK3R5.mjs';
17
17
  import './chunk-LPRRFCVU.mjs';
18
18
  import './chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- import { h as Narsil, N as NarsilError } from './engine-P-4xhUe4.js';
1
+ import { h as Narsil, N as NarsilError } from './engine-De6JzTW8.js';
2
2
  import { A as AnyDocument } from './schema-CzG9OUw5.js';
3
3
 
4
4
  /**
@@ -1,7 +1,7 @@
1
- import { holdCopyPublication, copyGenerationOf, transferIndexToPool, executeRetained, loadIndexOntoWorkers } from './chunk-QFJMRB7D.mjs';
2
- export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-QFJMRB7D.mjs';
3
- import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, toError, isDeterministicFailure, workerIneligibility, reportIneligible, fnv1a, selectionKeeps, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, alreadyPresentOnWorker, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, eligibleIndexNames, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-2C3BXZGA.mjs';
4
- export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-2C3BXZGA.mjs';
1
+ import { holdCopyPublication, copyGenerationOf, transferIndexToPool, executeRetained, loadIndexOntoWorkers } from './chunk-2DK74OQL.mjs';
2
+ export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-2DK74OQL.mjs';
3
+ import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, toError, isDeterministicFailure, workerIneligibility, reportIneligible, fnv1a, selectionKeeps, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, alreadyPresentOnWorker, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, eligibleIndexNames, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-CWXR7OP4.mjs';
4
+ export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-CWXR7OP4.mjs';
5
5
  import './chunk-KLVMK3R5.mjs';
6
6
  import './chunk-LPRRFCVU.mjs';
7
7
  import './chunk-GXCDWLQI.mjs';
@@ -1,4 +1,4 @@
1
- import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-2C3BXZGA.mjs';
1
+ import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-CWXR7OP4.mjs';
2
2
  import '../chunk-KLVMK3R5.mjs';
3
3
  import '../chunk-LPRRFCVU.mjs';
4
4
  import '../chunk-GXCDWLQI.mjs';
@@ -31,9 +31,9 @@ async function importBootstrapModule(moduleUrl) {
31
31
  await import(moduleUrl);
32
32
  }
33
33
  async function stopServingRequests() {
34
- const { closeRequestThread } = await import('../thread-OWXVP2ZA.mjs');
34
+ const { closeRequestThread } = await import('../thread-BEGFRULV.mjs');
35
35
  closeRequestThread();
36
- const { closeLongQueryThread } = await import('../long-query-thread-AAYTLYZK.mjs');
36
+ const { closeLongQueryThread } = await import('../long-query-thread-HPKGRYWM.mjs');
37
37
  closeLongQueryThread();
38
38
  }
39
39
  function holdsCopies(executor) {
@@ -86,7 +86,7 @@ function createActionHandler(executor) {
86
86
  if (!holdsCopies(executor)) {
87
87
  throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
88
88
  }
89
- const starting = import('../thread-OWXVP2ZA.mjs').then(
89
+ const starting = import('../thread-BEGFRULV.mjs').then(
90
90
  ({ serveRequests }) => serveRequests(executor, action.settings)
91
91
  );
92
92
  serving.start = starting.then(
@@ -103,7 +103,7 @@ function createActionHandler(executor) {
103
103
  if (!holdsCopies(executor)) {
104
104
  throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
105
105
  }
106
- const { serveLongQueries } = await import('../long-query-thread-AAYTLYZK.mjs');
106
+ const { serveLongQueries } = await import('../long-query-thread-HPKGRYWM.mjs');
107
107
  serveLongQueries(executor, action.settings);
108
108
  servingRequests = true;
109
109
  post(buildSuccessResponse(action.requestId, void 0));
@@ -151,8 +151,8 @@ async function setup() {
151
151
  }
152
152
  requireSearchBackendSettings();
153
153
  const [{ createDirectExecutor }, { runQueryAction }] = await Promise.all([
154
- import('../direct-executor-2WQSGBN3.mjs'),
155
- import('../query-actions-2JOLPELC.mjs'),
154
+ import('../direct-executor-JXYIL4OQ.mjs'),
155
+ import('../query-actions-COEFVUH3.mjs'),
156
156
  loadVectorCode(),
157
157
  loadGeoCode(),
158
158
  importOptionalReads(),
package/openapi.json CHANGED
@@ -4682,6 +4682,22 @@
4682
4682
  "type": "number",
4683
4683
  "description": "Formula-based estimate of the index's main-thread memory footprint, summed across every partition and vector index for this index. Computed from structural counters (document count, posting counts, field-index sizes), not measured. Per-object V8 overhead (hidden classes, map transitions, GC headers) is not captured here, so this number routinely undershoots the real heap by a meaningful factor. Use Narsil.getMemoryStats when sizing host memory."
4684
4684
  },
4685
+ "savedBytes": {
4686
+ "type": "number",
4687
+ "description": "The files that the index's current checkpoint lists hold this many bytes: the segment files of every partition, the vector files, and the graph parts. The figure changes only when a checkpoint commits, so an unchanged index reports the same size before and after a restart. A closed index reports the size that its last checkpoint recorded, and an index that saves nothing reports no figure. In a cluster, the figure covers the copy of each partition that the stats call read."
4688
+ },
4689
+ "logBytes": {
4690
+ "type": "number",
4691
+ "description": "The index's write-ahead log and the history that it keeps for device sync hold this many bytes. The figure grows with every write, and it falls when the engine deletes log or history files. A closed index reports no figure, and neither does an index that saves nothing."
4692
+ },
4693
+ "savedBytesOfEveryCopy": {
4694
+ "type": "number",
4695
+ "description": "A cluster adds up IndexStats.savedBytes over every copy of every partition, which shows the disk space that the index takes across all of its nodes. The figure is absent outside a cluster, and it is absent whenever a copy fails to answer or reports no saved size."
4696
+ },
4697
+ "logBytesOfEveryCopy": {
4698
+ "type": "number",
4699
+ "description": "A cluster adds up IndexStats.logBytes over every copy of every partition. The figure is absent outside a cluster, and it is absent whenever a copy fails to answer or reports no log size."
4700
+ },
4685
4701
  "language": {
4686
4702
  "type": "string",
4687
4703
  "description": "The index analyses text with this language module."
@@ -5241,6 +5257,22 @@
5241
5257
  "estimatedMemoryBytes": {
5242
5258
  "type": "number",
5243
5259
  "description": "Formula-based estimate of this partition's memory footprint. V8 has no per-object heap accounting API, so this number is derived from structural counters (document count, posting counts, field-index sizes) and does not include per-object overhead. Treat as an estimate, not a measurement."
5260
+ },
5261
+ "savedBytes": {
5262
+ "type": "number",
5263
+ "description": "The segment files that the index's current checkpoint lists for this partition hold this many bytes. The vector files and graph parts belong to the whole index, so only IndexStats.savedBytes counts them."
5264
+ },
5265
+ "logBytes": {
5266
+ "type": "number",
5267
+ "description": "This partition's write-ahead log files and device-sync history files hold this many bytes."
5268
+ },
5269
+ "savedBytesOfEveryCopy": {
5270
+ "type": "number",
5271
+ "description": "A cluster adds up PartitionStatsResult.savedBytes over every copy of this partition. The figure is absent outside a cluster, and it is absent whenever a copy fails to answer or reports no saved size."
5272
+ },
5273
+ "logBytesOfEveryCopy": {
5274
+ "type": "number",
5275
+ "description": "A cluster adds up PartitionStatsResult.logBytes over every copy of this partition. The figure is absent outside a cluster, and it is absent whenever a copy fails to answer or reports no log size."
5244
5276
  }
5245
5277
  },
5246
5278
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delali/narsil",
3
- "version": "0.3.1-next.180",
3
+ "version": "0.3.1-next.183",
4
4
  "type": "module",
5
5
  "description": "Distributed search engine with full-text, vector, hybrid, and geosearch. One engine, embedded or on a server, with a cross-language .nrsl format.",
6
6
  "author": "Delali (https://sondelali.com)",
@@ -653,11 +653,11 @@
653
653
  }
654
654
  },
655
655
  "optionalDependencies": {
656
- "@delali/narsil-native-darwin-arm64": "0.3.1-next.180",
657
- "@delali/narsil-native-darwin-x64": "0.3.1-next.180",
658
- "@delali/narsil-native-linux-arm64": "0.3.1-next.180",
659
- "@delali/narsil-native-linux-x64": "0.3.1-next.180",
660
- "@delali/narsil-native-win32-arm64": "0.3.1-next.180",
661
- "@delali/narsil-native-win32-x64": "0.3.1-next.180"
656
+ "@delali/narsil-native-darwin-arm64": "0.3.1-next.183",
657
+ "@delali/narsil-native-darwin-x64": "0.3.1-next.183",
658
+ "@delali/narsil-native-linux-arm64": "0.3.1-next.183",
659
+ "@delali/narsil-native-linux-x64": "0.3.1-next.183",
660
+ "@delali/narsil-native-win32-arm64": "0.3.1-next.183",
661
+ "@delali/narsil-native-win32-x64": "0.3.1-next.183"
662
662
  }
663
663
  }