@delali/narsil 0.4.6-next.332 → 0.4.6-next.334
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{chunk-VAPCFSMX.mjs → chunk-3PGIOK7Z.mjs} +16 -1
- package/dist/browser/{chunk-VIVG3OXM.mjs → chunk-FBDTHGDR.mjs} +7 -3
- package/dist/browser/{chunk-56UNHLAF.mjs → chunk-HIC42RBU.mjs} +1 -1
- package/dist/browser/{chunk-DJDBJB2U.mjs → chunk-J343PP7Q.mjs} +85 -28
- package/dist/browser/{optional-reads-NQO5DKM4.mjs → optional-reads-4O4CJ7TR.mjs} +1 -1
- package/dist/browser/{optional-writes-3HKIVZFU.mjs → optional-writes-OFPF77WY.mjs} +2 -1
- package/dist/browser/{runtime-OMKE7DF4.mjs → runtime-AMEB4J2D.mjs} +2 -1
- package/dist/browser/{segment-codec-leaf-GXSRX5VT.mjs → segment-codec-leaf-E4YHXUAI.mjs} +7 -2
- package/dist/browser/{storage-leaf-72PEG6IP.mjs → storage-leaf-WJMD66YX.mjs} +15 -2
- package/dist/{capabilities-DaJKuKlG.d.ts → capabilities-YazdElfW.d.ts} +2 -2
- package/dist/{chunk-UAITBI74.mjs → chunk-2QQCR7KF.mjs} +15 -9
- package/dist/{chunk-NNRDQYBD.mjs → chunk-4QNWK42S.mjs} +104 -41
- package/dist/{chunk-G6P6YTTW.mjs → chunk-5PUNOJC7.mjs} +1 -1
- package/dist/chunk-6S5QPDPP.mjs +110 -0
- package/dist/{chunk-EY5U4P5V.mjs → chunk-7NMLFP2T.mjs} +17 -2
- package/dist/{react-native/chunks/chunk-NUOJ2EAK.mjs → chunk-AKLCYPUY.mjs} +1 -1
- package/dist/{chunk-WRDGPEN6.mjs → chunk-B276ZQIH.mjs} +2 -2
- package/dist/{chunk-HWIIMLLR.mjs → chunk-B6VO3BCX.mjs} +6 -6
- package/dist/{chunk-3GWUUKDJ.mjs → chunk-BVFJ5XAU.mjs} +2 -2
- package/dist/{chunk-WCGFMFWK.mjs → chunk-CHGJGKST.mjs} +2 -2
- package/dist/{chunk-AQI4DIFA.mjs → chunk-CVCBVUH4.mjs} +2 -2
- package/dist/{chunk-CN42TL6V.mjs → chunk-HB3EBTKC.mjs} +5 -5
- package/dist/{react-native/chunks/chunk-ALSPAMEE.mjs → chunk-HNE4HNC2.mjs} +2 -2
- package/dist/{chunk-RBHEMWN6.mjs → chunk-I255IQTR.mjs} +3 -3
- package/dist/{chunk-VIHHCXBO.mjs → chunk-IALJ2X74.mjs} +3 -3
- package/dist/{chunk-EDZJNZKV.mjs → chunk-ICEZRKIS.mjs} +1 -1
- package/dist/{chunk-JXRMHWQU.mjs → chunk-IVVNKTHC.mjs} +1 -1
- package/dist/{chunk-MUBQER6D.mjs → chunk-KHZ6LAFB.mjs} +1 -1
- package/dist/{chunk-5SHWA6PE.mjs → chunk-L2GYY6KY.mjs} +1 -1
- package/dist/{chunk-4JLHHEBN.mjs → chunk-M5RYB6FE.mjs} +1 -1
- package/dist/{chunk-ONDHZ4WW.mjs → chunk-N3DJTTKK.mjs} +2 -2
- package/dist/{chunk-JASE2FE6.mjs → chunk-QWYIMVYT.mjs} +2 -2
- package/dist/{chunk-GTB2S2VX.mjs → chunk-R5OFJZNI.mjs} +2 -2
- package/dist/{chunk-7DW2ITZ3.mjs → chunk-RHFUQ76T.mjs} +1 -1
- package/dist/{chunk-FWZ5OK5G.mjs → chunk-SCUYG24W.mjs} +4 -4
- package/dist/{chunk-DVFCDOXW.mjs → chunk-TNBOFWDS.mjs} +1 -1
- package/dist/{chunk-PM2UOKYB.mjs → chunk-UFDD57KD.mjs} +37 -9
- package/dist/{chunk-M2Z5WVWW.mjs → chunk-UGMOBSMD.mjs} +2 -0
- package/dist/{chunk-CZHAPGVH.mjs → chunk-UJQ2S5QU.mjs} +80 -78
- package/dist/{chunk-43T3P3BE.mjs → chunk-WW3RDS57.mjs} +1 -1
- package/dist/{chunk-BOTZ2GSW.mjs → chunk-Z622PLNH.mjs} +25 -14
- package/dist/{client-DetSCqP2.d.ts → client-B9YNYYs_.d.ts} +38 -12
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +2 -2
- package/dist/{config-BB4MRAsB.d.ts → config-DJFXyHMZ.d.ts} +2 -2
- package/dist/{config-XEHd4MFx.d.ts → config-DlvP2PSi.d.ts} +2 -2
- package/dist/{direct-executor-3C5WFR33.mjs → direct-executor-P2Z7T57F.mjs} +3 -3
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution/transport/tcp.mjs +1 -1
- package/dist/distribution.d.ts +14 -9
- package/dist/distribution.mjs +391 -315
- package/dist/{engine-DGG_yX0p.d.ts → engine-DP4PrdKM.d.ts} +51 -13
- package/dist/{index-fX_FbuRT.d.ts → index-CcivYH_R.d.ts} +1 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +3 -3
- package/dist/index.react-native.mjs +3 -3
- package/dist/{long-query-thread-C62WK6NI.mjs → long-query-thread-SOJ25FZU.mjs} +13 -13
- package/dist/{msgpack-leaf-LIT7TKZW.mjs → msgpack-leaf-LTAJ5QGB.mjs} +2 -2
- package/dist/{optional-reads-ESDVS225.mjs → optional-reads-5QWIOFOU.mjs} +1 -1
- package/dist/{optional-writes-AGDEVXC4.mjs → optional-writes-GVHTEENI.mjs} +5 -5
- package/dist/{paged-partition-archive-EABR3N3F.mjs → paged-partition-archive-XCETVLZW.mjs} +13 -13
- package/dist/partial-words.browser.mjs +3 -3
- package/dist/partial-words.mjs +3 -3
- package/dist/pattern.browser.mjs +2 -2
- package/dist/pattern.mjs +2 -2
- package/dist/persistence/durability/checkpoint-worker.d.ts +2 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +10 -10
- package/dist/{query-actions-QH5UQRCY.mjs → query-actions-WKC4SQEZ.mjs} +3 -3
- package/dist/query-suggestions/merge-worker.mjs +6 -6
- package/dist/query-suggestions.browser.mjs +3 -3
- package/dist/query-suggestions.d.ts +2 -2
- package/dist/query-suggestions.mjs +4 -4
- package/dist/react-native/chunks/{chunk-PTCHRZCP.mjs → chunk-4JY2CZWV.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-ESVBC3AT.mjs → chunk-BIORJHQZ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-AOLLV37A.mjs → chunk-CBG4EUYD.mjs} +17 -2
- package/dist/react-native/chunks/{chunk-GPMPHDDO.mjs → chunk-FN3HBVNY.mjs} +2 -2
- package/dist/{chunk-AWMO3NKJ.mjs → react-native/chunks/chunk-LR6OK725.mjs} +1 -1
- package/dist/{chunk-57MN2UAL.mjs → react-native/chunks/chunk-MPNHORPY.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-V2H7EDTM.mjs → chunk-QT2G6OMI.mjs} +103 -40
- package/dist/react-native/chunks/{chunk-BGRX5SPG.mjs → chunk-QZUFYRFX.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZF3VSGEI.mjs → chunk-ZSJABTIE.mjs} +1 -1
- package/dist/react-native/chunks/{msgpack-leaf-FOUPTT7J.mjs → msgpack-leaf-Q4BPA4G7.mjs} +2 -2
- package/dist/react-native/chunks/{optional-reads-TN3PT6M4.mjs → optional-reads-M6F26KFO.mjs} +1 -1
- package/dist/react-native/chunks/{optional-writes-F4FJKEZ4.mjs → optional-writes-TCVHZRRM.mjs} +4 -4
- package/dist/react-native/chunks/{restore-queue-MLFBOOZP.mjs → restore-queue-RLQ3L223.mjs} +6 -6
- package/dist/{runtime-USQYKN3I.mjs → react-native/chunks/runtime-7UKADH3G.mjs} +2 -1
- package/dist/react-native/chunks/{segment-codec-leaf-Z3OS3B2K.mjs → segment-codec-leaf-IM6YCP7M.mjs} +4 -4
- package/dist/react-native/chunks/{segment-merge-leaf-TNHU77VW.mjs → segment-merge-leaf-32YR2ZTM.mjs} +5 -5
- package/dist/react-native/chunks/{storage-leaf-NF733K7B.mjs → storage-leaf-RKI6S6T5.mjs} +23 -10
- package/dist/react-native/chunks/{store-leaf-UDKCNQB7.mjs → store-leaf-YQXG6NOD.mjs} +5 -5
- package/dist/react-native/chunks/{suggestions-leaf-M6ITOPNM.mjs → suggestions-leaf-Q3ABULFB.mjs} +5 -5
- package/dist/react-native/chunks/{worker-copies-GG7CKUBI.mjs → worker-copies-W63KWZZN.mjs} +4 -4
- package/dist/react-native/partial-words.mjs +3 -3
- package/dist/react-native/pattern.mjs +2 -2
- package/dist/react-native/query-suggestions.mjs +3 -3
- package/dist/react-native/sync.mjs +12 -7
- package/dist/react-native/synonyms.mjs +3 -3
- package/dist/react.d.ts +9 -9
- package/dist/{rerank-LCMA5PZG.mjs → rerank-OJLSVUYV.mjs} +25 -12
- package/dist/{restore-queue-NSA3RWF6.mjs → restore-queue-BYO4AJLZ.mjs} +6 -6
- package/dist/{react-native/chunks/runtime-UOHD2XUJ.mjs → runtime-WWFVQOBJ.mjs} +2 -1
- package/dist/{schema-CFnQ-WI3.d.ts → schema-CPQUdJTs.d.ts} +6 -0
- package/dist/{segment-codec-leaf-DQKKIN4F.mjs → segment-codec-leaf-V52PQEVL.mjs} +4 -4
- package/dist/{segment-merge-leaf-67Z6OMRF.mjs → segment-merge-leaf-M3ZLJYDD.mjs} +4 -4
- package/dist/server.d.ts +22 -11
- package/dist/server.mjs +23 -21
- package/dist/{storage-leaf-FUH75D3X.mjs → storage-leaf-YYO4FLHQ.mjs} +22 -22
- package/dist/{store-leaf-CKZFFFTX.mjs → store-leaf-KK7VD3P3.mjs} +5 -5
- package/dist/{suggestions-leaf-NOSJIRSD.mjs → suggestions-leaf-EJCNU3NM.mjs} +7 -7
- package/dist/sync/filesystem.d.ts +3 -3
- package/dist/sync/filesystem.mjs +8 -8
- package/dist/sync/indexeddb.browser.mjs +1 -1
- package/dist/sync/indexeddb.d.ts +3 -3
- package/dist/sync/indexeddb.mjs +2 -2
- package/dist/sync.browser.mjs +7 -6
- package/dist/sync.d.ts +4 -4
- package/dist/sync.mjs +12 -7
- package/dist/synonyms.browser.mjs +3 -3
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-Bpi5YNZF.d.ts → tasks-4rvZJuoN.d.ts} +8 -4
- package/dist/{thread-T5F3HSMC.mjs → thread-6BVFFMP7.mjs} +12 -12
- package/dist/{types-DGjk684l.d.ts → types-C3hkFf_3.d.ts} +2 -2
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/{worker-copies-TPEHVXPI.mjs → worker-copies-5V5JGCWU.mjs} +6 -6
- package/dist/workers/entry.mjs +9 -9
- package/openapi.json +58 -2
- package/package.json +5 -5
package/dist/server.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { answerRequest } from './chunk-
|
|
1
|
+
import { answerRequest } from './chunk-IVVNKTHC.mjs';
|
|
2
2
|
import { resolveVectorText } from './chunk-NJJN4FMM.mjs';
|
|
3
|
-
import { DEFAULT_MAX_RETAINED_TASKS, isTerminalTaskStatus, TASK_RECORD_LOAD_CONCURRENCY, loadUWebSockets, SERVER_CLOSE_DRAIN_DEADLINE_MS, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, isTaskType, isTaskStatus, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, createSyncSnapshotHandler, acceptorOf, createServerCloseSignal, signalServerClose, LeavingResponse, refuseAndClose, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, createCloseAtExitWords, createDepartureWord, departureConfirmed, threadCloseAcknowledgedWithin, SERVER_CLOSE_ACKNOWLEDGE_GRACE_MS, threadCloseAcknowledged, refusedRegex, toHttpError, parseJsonObject, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJsonObject, validateDocumentBody, validateSuggest, readQueryBody, withServerQueryLimits, requestSignal, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, parseJson, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, isThreadFeedNote, clearGateSlot, clearBodyBudgetSlot, confirmDeparture, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-
|
|
4
|
-
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-
|
|
5
|
-
import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-
|
|
3
|
+
import { DEFAULT_MAX_RETAINED_TASKS, isTerminalTaskStatus, TASK_RECORD_LOAD_CONCURRENCY, loadUWebSockets, SERVER_CLOSE_DRAIN_DEADLINE_MS, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, isTaskType, isTaskStatus, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, createSyncSnapshotHandler, acceptorOf, createServerCloseSignal, signalServerClose, LeavingResponse, refuseAndClose, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, createCloseAtExitWords, createDepartureWord, departureConfirmed, threadCloseAcknowledgedWithin, SERVER_CLOSE_ACKNOWLEDGE_GRACE_MS, threadCloseAcknowledged, refusedRegex, toHttpError, parseJsonObject, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJsonObject, validateDocumentBody, validateSuggest, readQueryBody, withServerQueryLimits, requestSignal, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, parseJson, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, isThreadFeedNote, clearGateSlot, clearBodyBudgetSlot, confirmDeparture, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-UFDD57KD.mjs';
|
|
4
|
+
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-UFDD57KD.mjs';
|
|
5
|
+
import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-HB3EBTKC.mjs';
|
|
6
6
|
import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, SYNC_CLOSE_POLICY, MAX_DEVICE_MESSAGE_BYTES, SYNC_CLOSE_TOO_LARGE, deviceMessageOf, SYNC_CLOSE_SERVER_ERROR, positionList, positionsByPartition, CHANGES_CLOSE_RESYNC, CHANGES_CLOSE_POLICY, MAX_SUBSCRIBER_MESSAGE_BYTES, CHANGES_CLOSE_TOO_LARGE, closeReasonOf, CHANGES_CLOSE_CREDENTIAL_EXPIRED, CHANGES_CLOSE_SETTING, CHANGES_CLOSE_SERVER_ERROR, CHANGES_CLOSE_GOING_AWAY, SYNC_CLOSE_GOING_AWAY } from './chunk-TACP6VK6.mjs';
|
|
7
|
-
import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-
|
|
8
|
-
import { isRecord, validateIndexName } from './chunk-
|
|
7
|
+
import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-BVFJ5XAU.mjs';
|
|
8
|
+
import { isRecord, validateIndexName } from './chunk-UJQ2S5QU.mjs';
|
|
9
9
|
import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import { DEFAULT_MAX_FEED_BUFFERED_BYTES, DEFAULT_MAX_FEED_CATCH_UPS, DEFAULT_MAX_FEED_CONNECTIONS, DEFAULT_FEED_WINDOW_BYTES, estimatedArchiveBytes, TIMER_DELAY_LIMIT_MS, FEED_HEAD_RETRY_MS, ENTRIES_MESSAGE_LIMIT_BYTES } from './chunk-
|
|
10
|
+
import './chunk-KHZ6LAFB.mjs';
|
|
11
|
+
import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-CVCBVUH4.mjs';
|
|
12
|
+
import './chunk-UGMOBSMD.mjs';
|
|
13
|
+
import { DEFAULT_MAX_FEED_BUFFERED_BYTES, DEFAULT_MAX_FEED_CATCH_UPS, DEFAULT_MAX_FEED_CONNECTIONS, DEFAULT_FEED_WINDOW_BYTES, estimatedArchiveBytes, TIMER_DELAY_LIMIT_MS, FEED_HEAD_RETRY_MS, ENTRIES_MESSAGE_LIMIT_BYTES } from './chunk-I255IQTR.mjs';
|
|
14
14
|
import './chunk-JDDXV6UF.mjs';
|
|
15
|
-
import { manifestFileRefs } from './chunk-
|
|
15
|
+
import { manifestFileRefs } from './chunk-ICEZRKIS.mjs';
|
|
16
16
|
import { encode as encode$1 } from './chunk-S5QMWECL.mjs';
|
|
17
17
|
import './chunk-LNGE7SLY.mjs';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
18
|
+
import './chunk-L2GYY6KY.mjs';
|
|
19
|
+
import './chunk-AKLCYPUY.mjs';
|
|
20
|
+
import './chunk-HNE4HNC2.mjs';
|
|
21
21
|
import './chunk-R724DJSG.mjs';
|
|
22
22
|
import './chunk-V6EUBAIT.mjs';
|
|
23
|
-
import './chunk-
|
|
24
|
-
import { querySuggestions } from './chunk-
|
|
23
|
+
import './chunk-R5OFJZNI.mjs';
|
|
24
|
+
import { querySuggestions } from './chunk-5PUNOJC7.mjs';
|
|
25
25
|
import './chunk-S2POFTLN.mjs';
|
|
26
|
-
import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-
|
|
26
|
+
import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, validateBooleanOnlySettings, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-4QNWK42S.mjs';
|
|
27
27
|
import './chunk-2CKDCC65.mjs';
|
|
28
28
|
import './chunk-BRTABNC7.mjs';
|
|
29
29
|
import { decodeBoundedMessage } from './chunk-Y7GXGJFZ.mjs';
|
|
30
30
|
import './chunk-BUMREPLU.mjs';
|
|
31
31
|
import './chunk-7T4LAYT4.mjs';
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-
|
|
32
|
+
import './chunk-M5RYB6FE.mjs';
|
|
33
|
+
import './chunk-7NMLFP2T.mjs';
|
|
34
34
|
import './chunk-U2BKYEC7.mjs';
|
|
35
35
|
import { detectRuntime } from './chunk-PSZEGK6W.mjs';
|
|
36
36
|
import { startIdleHeapCleanup } from './chunk-5EI5CXO6.mjs';
|
|
@@ -1411,7 +1411,7 @@ function assertAllowRegex(allowRegex) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
|
|
1413
1413
|
// package.json
|
|
1414
|
-
var version = "0.4.6-next.
|
|
1414
|
+
var version = "0.4.6-next.334";
|
|
1415
1415
|
|
|
1416
1416
|
// src/server/package-version.ts
|
|
1417
1417
|
function publishedPackageVersion() {
|
|
@@ -2959,6 +2959,7 @@ function mapHttpIndexConfig(http) {
|
|
|
2959
2959
|
if (typeof http.schema !== "object" || http.schema === null || Array.isArray(http.schema)) {
|
|
2960
2960
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, 'Index config requires a "schema" object');
|
|
2961
2961
|
}
|
|
2962
|
+
validateBooleanOnlySettings(http);
|
|
2962
2963
|
const config = { schema: http.schema };
|
|
2963
2964
|
if (http.language !== void 0) config.language = http.language;
|
|
2964
2965
|
if (http.partitions !== void 0) config.partitions = http.partitions;
|
|
@@ -2966,9 +2967,10 @@ function mapHttpIndexConfig(http) {
|
|
|
2966
2967
|
if (http.bm25 !== void 0) config.bm25 = http.bm25;
|
|
2967
2968
|
if (http.trackPositions !== void 0) config.trackPositions = http.trackPositions;
|
|
2968
2969
|
if (http.textStorage !== void 0) config.textStorage = http.textStorage;
|
|
2969
|
-
if (http.surfaceForms !== void 0) config.surfaceForms = http.surfaceForms
|
|
2970
|
+
if (http.surfaceForms !== void 0) config.surfaceForms = http.surfaceForms;
|
|
2970
2971
|
if (http.vectorPromotion !== void 0) config.vectorPromotion = http.vectorPromotion;
|
|
2971
2972
|
if (http.strict !== void 0) config.strict = http.strict;
|
|
2973
|
+
if (http.returnVectors !== void 0) config.returnVectors = http.returnVectors;
|
|
2972
2974
|
if (http.required !== void 0) config.required = http.required;
|
|
2973
2975
|
if (http.patternValueLimit !== void 0) config.patternValueLimit = http.patternValueLimit;
|
|
2974
2976
|
if (http.synonyms !== void 0) config.synonyms = http.synonyms;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { scheduleSyncRetention, createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-
|
|
2
|
-
export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-
|
|
3
|
-
import { buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, documentExportStream, requireRestoreMemory, memoryCheckpointStore, admitDurableWrite, metadataConfigOf, durableMetadataConfigOf, unpackIndexSnapshotEnvelope, nestedSchemaOf, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, loadSegmentedCheckpoint, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, commitAppended, listPersistedIndexes, removeLeftoverRewriteFiles, requireSavedPartitionCount, createDetachedIndex, shutDownRefusal, recordBatchesByPartition, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, partitionFailureFor, SINGLE_NODE_PRIMARY_TERM, deserializePayloadV1, readCurrentManifest, drainIndexStateForUnload, readSegmentManifest, readMetadataEnvelope, snapshotCheckpointFor, whileGraphsStayComplete, captureAppliedPrefix, createSeqOwner, commitEveryPartition, loadMetadata, reclaimUnlistedKeys, writeLiveVectors, dropStoredVectorValues, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, highestPartitionIdOf, growPartitionsTo, createMarkerWriter, metadataFromConfig, metadataPartitionCount } from './chunk-
|
|
4
|
-
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, changeIndexAnalysis, changesOf, createByteReader, documentExportStream, dropHeldAnalysisChange, executeRebalance, followIndexChanges, heldAnalysisIsBuilt, holdsNamedSettings, openFileVectorReads, pagedPartitionLines, readDocumentExport, releaseHeldAnalysisChange, requireSavedPartitionCount, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout, updateChangesOf } from './chunk-
|
|
5
|
-
import { readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-
|
|
6
|
-
export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-
|
|
7
|
-
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, indexConfigurationOf, updateIndexSync, decodeIndexConfiguration } from './chunk-
|
|
8
|
-
export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, persistEpochStates, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-
|
|
9
|
-
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-
|
|
10
|
-
import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-
|
|
11
|
-
export { readSnapshotArchive } from './chunk-
|
|
1
|
+
import { scheduleSyncRetention, createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-HB3EBTKC.mjs';
|
|
2
|
+
export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-HB3EBTKC.mjs';
|
|
3
|
+
import { buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, documentExportStream, requireRestoreMemory, memoryCheckpointStore, admitDurableWrite, metadataConfigOf, durableMetadataConfigOf, unpackIndexSnapshotEnvelope, nestedSchemaOf, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, loadSegmentedCheckpoint, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, commitAppended, listPersistedIndexes, removeLeftoverRewriteFiles, requireSavedPartitionCount, createDetachedIndex, shutDownRefusal, recordBatchesByPartition, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, partitionFailureFor, SINGLE_NODE_PRIMARY_TERM, deserializePayloadV1, readCurrentManifest, drainIndexStateForUnload, readSegmentManifest, readMetadataEnvelope, snapshotCheckpointFor, whileGraphsStayComplete, captureAppliedPrefix, createSeqOwner, commitEveryPartition, loadMetadata, reclaimUnlistedKeys, writeLiveVectors, dropStoredVectorValues, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, highestPartitionIdOf, growPartitionsTo, createMarkerWriter, metadataFromConfig, metadataPartitionCount } from './chunk-Z622PLNH.mjs';
|
|
4
|
+
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, changeIndexAnalysis, changesOf, createByteReader, documentExportStream, dropHeldAnalysisChange, executeRebalance, followIndexChanges, heldAnalysisIsBuilt, holdsNamedSettings, openFileVectorReads, pagedPartitionLines, readDocumentExport, releaseHeldAnalysisChange, requireSavedPartitionCount, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout, updateChangesOf } from './chunk-Z622PLNH.mjs';
|
|
5
|
+
import { readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-IALJ2X74.mjs';
|
|
6
|
+
export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-IALJ2X74.mjs';
|
|
7
|
+
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, indexConfigurationOf, updateIndexSync, decodeIndexConfiguration } from './chunk-CVCBVUH4.mjs';
|
|
8
|
+
export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, persistEpochStates, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-CVCBVUH4.mjs';
|
|
9
|
+
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-UGMOBSMD.mjs';
|
|
10
|
+
import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-I255IQTR.mjs';
|
|
11
|
+
export { readSnapshotArchive } from './chunk-I255IQTR.mjs';
|
|
12
12
|
import { createDurableDirectory } from './chunk-57HDOVEE.mjs';
|
|
13
|
-
import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, bytesThatSegmentsHoldInMemory, savedBytesOfManifest, checkPagedSegmentFully, readSegmentFile, buildEntry, NOTHING_SAVED, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, checkpointGarbage, removeCheckpointGarbage, nextSegmentKey, rewrittenHeaderKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, openPagedSegmentScan, countsAsLatestHolder, segmentKey, WAL_FORMAT_VERSION_WITH_PREVIOUS_DOCUMENT, SEGMENT_TAIL_PATTERN, writeSegmentHeader, WAL_FORMAT_VERSION, parseSegmentStartSeqNo, readWalSegments, joinFrames } from './chunk-
|
|
14
|
-
export { bytesThatSegmentsHoldInMemory, checkPagedContents, checkPagedSegmentFully, checkPagedSelections, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSegmentScan, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-
|
|
15
|
-
import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-
|
|
13
|
+
import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, bytesThatSegmentsHoldInMemory, savedBytesOfManifest, checkPagedSegmentFully, readSegmentFile, buildEntry, NOTHING_SAVED, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, checkpointGarbage, removeCheckpointGarbage, nextSegmentKey, rewrittenHeaderKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, openPagedSegmentScan, countsAsLatestHolder, segmentKey, WAL_FORMAT_VERSION_WITH_PREVIOUS_DOCUMENT, SEGMENT_TAIL_PATTERN, writeSegmentHeader, WAL_FORMAT_VERSION, parseSegmentStartSeqNo, readWalSegments, joinFrames } from './chunk-B6VO3BCX.mjs';
|
|
14
|
+
export { bytesThatSegmentsHoldInMemory, checkPagedContents, checkPagedSegmentFully, checkPagedSelections, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSegmentScan, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-B6VO3BCX.mjs';
|
|
15
|
+
import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-QWYIMVYT.mjs';
|
|
16
16
|
import './chunk-5FLRXF73.mjs';
|
|
17
17
|
import './chunk-JDDXV6UF.mjs';
|
|
18
|
-
import { manifestKey, manifestFileRefs, manifestReferencedKeys, manifestWithinPartitionCount, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-
|
|
18
|
+
import { manifestKey, manifestFileRefs, manifestReferencedKeys, manifestWithinPartitionCount, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-ICEZRKIS.mjs';
|
|
19
19
|
import { encode } from './chunk-S5QMWECL.mjs';
|
|
20
20
|
export { bindStorageHost } from './chunk-S5QMWECL.mjs';
|
|
21
21
|
import { sha256 } from './chunk-LNGE7SLY.mjs';
|
|
22
|
-
import { setNestedValue } from './chunk-
|
|
23
|
-
import { rewriteSpillOf } from './chunk-
|
|
24
|
-
import { deserializePartition } from './chunk-
|
|
22
|
+
import { setNestedValue } from './chunk-L2GYY6KY.mjs';
|
|
23
|
+
import { rewriteSpillOf } from './chunk-AKLCYPUY.mjs';
|
|
24
|
+
import { deserializePartition } from './chunk-HNE4HNC2.mjs';
|
|
25
25
|
import { decodeVectorIndexParts, bytesToVectors, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, graphPartsOfEarlierPayload, decodeVectorGraphPayload } from './chunk-R724DJSG.mjs';
|
|
26
26
|
export { createHNSWIndex, osqBitsOf } from './chunk-R724DJSG.mjs';
|
|
27
27
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
28
|
-
import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-
|
|
29
|
-
import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, ARRAY_POSITION_GAP, fnv1a, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, toError, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors, createPartitionRouter, buildSegmentPayloads, createRequestId } from './chunk-
|
|
28
|
+
import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-R5OFJZNI.mjs';
|
|
29
|
+
import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, ARRAY_POSITION_GAP, fnv1a, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, toError, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors, createPartitionRouter, buildSegmentPayloads, createRequestId } from './chunk-4QNWK42S.mjs';
|
|
30
30
|
import { encodeDocument } from './chunk-2CKDCC65.mjs';
|
|
31
31
|
import './chunk-BRTABNC7.mjs';
|
|
32
32
|
import { decode } from './chunk-Y7GXGJFZ.mjs';
|
|
33
33
|
import { newSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
34
34
|
import './chunk-7T4LAYT4.mjs';
|
|
35
|
-
import './chunk-
|
|
36
|
-
import { flattenSchema, raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, parseVectorDimension, getNestedValue, requireValidFieldTypes } from './chunk-
|
|
35
|
+
import './chunk-M5RYB6FE.mjs';
|
|
36
|
+
import { flattenSchema, raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, parseVectorDimension, getNestedValue, requireValidFieldTypes } from './chunk-7NMLFP2T.mjs';
|
|
37
37
|
import './chunk-U2BKYEC7.mjs';
|
|
38
38
|
import { detectRuntime, spawnNodeWorker, resolveWorkerEntry } from './chunk-PSZEGK6W.mjs';
|
|
39
39
|
import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite } from './chunk-5EI5CXO6.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-
|
|
1
|
+
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-CHGJGKST.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-
|
|
4
|
-
import './chunk-
|
|
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-R5OFJZNI.mjs';
|
|
4
|
+
import './chunk-4QNWK42S.mjs';
|
|
5
5
|
import './chunk-2CKDCC65.mjs';
|
|
6
6
|
import './chunk-BRTABNC7.mjs';
|
|
7
7
|
import './chunk-Y7GXGJFZ.mjs';
|
|
8
8
|
import './chunk-BUMREPLU.mjs';
|
|
9
9
|
import './chunk-7T4LAYT4.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-M5RYB6FE.mjs';
|
|
11
|
+
import './chunk-7NMLFP2T.mjs';
|
|
12
12
|
import './chunk-U2BKYEC7.mjs';
|
|
13
13
|
import './chunk-PSZEGK6W.mjs';
|
|
14
14
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-
|
|
2
|
-
export { bindSuggestionsHost } from './chunk-
|
|
3
|
-
import { installSuggestionHooks } from './chunk-
|
|
1
|
+
import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-SCUYG24W.mjs';
|
|
2
|
+
export { bindSuggestionsHost } from './chunk-B276ZQIH.mjs';
|
|
3
|
+
import { installSuggestionHooks } from './chunk-CHGJGKST.mjs';
|
|
4
4
|
import './chunk-V6EUBAIT.mjs';
|
|
5
|
-
import { attachedRuntimeOf, attachRuntime } from './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import { attachedRuntimeOf, attachRuntime } from './chunk-R5OFJZNI.mjs';
|
|
6
|
+
import './chunk-4QNWK42S.mjs';
|
|
7
7
|
import './chunk-2CKDCC65.mjs';
|
|
8
8
|
import './chunk-BRTABNC7.mjs';
|
|
9
9
|
import './chunk-Y7GXGJFZ.mjs';
|
|
10
10
|
import './chunk-BUMREPLU.mjs';
|
|
11
11
|
import './chunk-7T4LAYT4.mjs';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
12
|
+
import './chunk-M5RYB6FE.mjs';
|
|
13
|
+
import './chunk-7NMLFP2T.mjs';
|
|
14
14
|
import './chunk-U2BKYEC7.mjs';
|
|
15
15
|
import './chunk-PSZEGK6W.mjs';
|
|
16
16
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../engine-
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-C3hkFf_3.js';
|
|
2
|
+
import '../engine-DP4PrdKM.js';
|
|
3
3
|
import '../adapters-8LcdNB77.js';
|
|
4
|
-
import '../schema-
|
|
4
|
+
import '../schema-CPQUdJTs.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
|
6
6
|
import '../query-suggestions-CBYkrQ5T.js';
|
|
7
7
|
|
package/dist/sync/filesystem.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-
|
|
1
|
+
import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-WW3RDS57.mjs';
|
|
2
2
|
import { createSerial, QUEUE_COMPACTION_BYTES, DOWNLOAD_FRAME_BYTES, STORE_FRAME_LIMIT_BYTES } from '../chunk-6MSZ543Y.mjs';
|
|
3
3
|
import { createDurableDirectory } from '../chunk-57HDOVEE.mjs';
|
|
4
4
|
import '../chunk-S5QMWECL.mjs';
|
|
5
5
|
import '../chunk-LNGE7SLY.mjs';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-L2GYY6KY.mjs';
|
|
7
|
+
import '../chunk-AKLCYPUY.mjs';
|
|
8
|
+
import '../chunk-HNE4HNC2.mjs';
|
|
9
9
|
import '../chunk-R724DJSG.mjs';
|
|
10
10
|
import '../chunk-V6EUBAIT.mjs';
|
|
11
|
-
import { crc32 } from '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import { crc32 } from '../chunk-R5OFJZNI.mjs';
|
|
12
|
+
import '../chunk-4QNWK42S.mjs';
|
|
13
13
|
import '../chunk-2CKDCC65.mjs';
|
|
14
14
|
import '../chunk-BRTABNC7.mjs';
|
|
15
15
|
import '../chunk-Y7GXGJFZ.mjs';
|
|
16
16
|
import '../chunk-BUMREPLU.mjs';
|
|
17
17
|
import '../chunk-7T4LAYT4.mjs';
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import { loadMessagePack } from '../chunk-
|
|
18
|
+
import '../chunk-M5RYB6FE.mjs';
|
|
19
|
+
import { loadMessagePack } from '../chunk-7NMLFP2T.mjs';
|
|
20
20
|
import '../chunk-U2BKYEC7.mjs';
|
|
21
21
|
import '../chunk-PSZEGK6W.mjs';
|
|
22
22
|
import '../chunk-5EI5CXO6.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_INDEXEDDB_DEVICE_STORE_NAME, createSerial, INDEXEDDB_DEVICE_STORE_BLOCKED_TIMEOUT_MS } from '../browser/chunk-WC2DEXWU.mjs';
|
|
2
2
|
import { isSyncEpoch } from '../browser/chunk-YJHGOJAC.mjs';
|
|
3
|
-
import { loadMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack } from '../browser/chunk-
|
|
3
|
+
import { loadMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack } from '../browser/chunk-3PGIOK7Z.mjs';
|
|
4
4
|
|
|
5
5
|
// src/sync/device/stores/indexeddb-requests.ts
|
|
6
6
|
var META_STORE = "meta";
|
package/dist/sync/indexeddb.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../engine-
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-C3hkFf_3.js';
|
|
2
|
+
import '../engine-DP4PrdKM.js';
|
|
3
3
|
import '../adapters-8LcdNB77.js';
|
|
4
|
-
import '../schema-
|
|
4
|
+
import '../schema-CPQUdJTs.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
|
6
6
|
import '../query-suggestions-CBYkrQ5T.js';
|
|
7
7
|
|
package/dist/sync/indexeddb.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-
|
|
1
|
+
import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-WW3RDS57.mjs';
|
|
2
2
|
import { DEFAULT_INDEXEDDB_DEVICE_STORE_NAME, createSerial, INDEXEDDB_DEVICE_STORE_BLOCKED_TIMEOUT_MS } from '../chunk-6MSZ543Y.mjs';
|
|
3
3
|
import '../chunk-BUMREPLU.mjs';
|
|
4
|
-
import { loadMessagePack } from '../chunk-
|
|
4
|
+
import { loadMessagePack } from '../chunk-7NMLFP2T.mjs';
|
|
5
5
|
import '../chunk-ZXX5GZEX.mjs';
|
|
6
6
|
import '../chunk-4PY4JYMY.mjs';
|
|
7
7
|
import { NarsilError, ErrorCodes } from '../chunk-ZKOQR7EA.mjs';
|
package/dist/sync.browser.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
3
|
-
import './browser/chunk-
|
|
2
|
+
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-J343PP7Q.mjs';
|
|
3
|
+
import './browser/chunk-HIC42RBU.mjs';
|
|
4
4
|
import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
|
|
5
|
-
import { createNarsilClient } from './browser/chunk-
|
|
6
|
-
import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema } from './browser/chunk-
|
|
5
|
+
import { createNarsilClient } from './browser/chunk-FBDTHGDR.mjs';
|
|
6
|
+
import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema } from './browser/chunk-3PGIOK7Z.mjs';
|
|
7
7
|
|
|
8
8
|
// src/sync/protocol.ts
|
|
9
9
|
var SYNC_SUBPROTOCOL = "narsil.sync.v1";
|
|
@@ -288,7 +288,7 @@ async function removeLocally(engine, indexName, documentId) {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
async function holdsSameDocument(engine, indexName, documentId, encoded) {
|
|
291
|
-
const held = await engine.get(indexName, documentId);
|
|
291
|
+
const held = await engine.get(indexName, documentId, { document: { vectors: true } });
|
|
292
292
|
if (encoded === null || held === void 0) return encoded === null && held === void 0;
|
|
293
293
|
return bytesEqual(requireLoadedMessagePack().encodeDocument(held), encoded);
|
|
294
294
|
}
|
|
@@ -941,7 +941,8 @@ function createUploader(context, progress, session, state) {
|
|
|
941
941
|
let again = false;
|
|
942
942
|
async function serverCopyOf(write, outcome) {
|
|
943
943
|
if (outcome.serverDocument !== void 0) return outcome.serverDocument;
|
|
944
|
-
|
|
944
|
+
const options = await context.requestOptions();
|
|
945
|
+
return await client.get(indexName, write.documentId, { ...options, vectors: true }) ?? null;
|
|
945
946
|
}
|
|
946
947
|
async function refuse(write, outcome) {
|
|
947
948
|
const serverDocument = await serverCopyOf(write, outcome);
|
package/dist/sync.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as DeviceSyncOptions, a as DeviceSync } from './types-
|
|
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-
|
|
3
|
-
import './engine-
|
|
1
|
+
import { D as DeviceSyncOptions, a as DeviceSync } from './types-C3hkFf_3.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-C3hkFf_3.js';
|
|
3
|
+
import './engine-DP4PrdKM.js';
|
|
4
4
|
import './adapters-8LcdNB77.js';
|
|
5
|
-
import './schema-
|
|
5
|
+
import './schema-CPQUdJTs.js';
|
|
6
6
|
import './synonyms-CpOAHPa-.js';
|
|
7
7
|
import './query-suggestions-CBYkrQ5T.js';
|
|
8
8
|
|
package/dist/sync.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, encodeJson, SYNC_SUBPROTOCOL, CHANGES_SUBPROTOCOL, decodeScore } from './chunk-TACP6VK6.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-
|
|
3
|
+
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-4QNWK42S.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-BRTABNC7.mjs';
|
|
6
6
|
import './chunk-Y7GXGJFZ.mjs';
|
|
7
7
|
import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
8
8
|
import './chunk-7T4LAYT4.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunk-
|
|
9
|
+
import './chunk-M5RYB6FE.mjs';
|
|
10
|
+
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunk-7NMLFP2T.mjs';
|
|
11
11
|
import './chunk-U2BKYEC7.mjs';
|
|
12
12
|
import './chunk-PSZEGK6W.mjs';
|
|
13
13
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -297,7 +297,7 @@ function createBulkOperations(transport) {
|
|
|
297
297
|
const payload = await transport.json({
|
|
298
298
|
method: "POST",
|
|
299
299
|
path,
|
|
300
|
-
body: encodeJson({ docIds }),
|
|
300
|
+
body: encodeJson(options?.document === void 0 ? { docIds } : { docIds, document: options.document }),
|
|
301
301
|
contentType: "application/json",
|
|
302
302
|
repeatable: true,
|
|
303
303
|
options
|
|
@@ -705,7 +705,11 @@ function createDocumentOperations(transport) {
|
|
|
705
705
|
},
|
|
706
706
|
async get(indexName, docId, options) {
|
|
707
707
|
const path = documentPath(indexName, docId);
|
|
708
|
-
const
|
|
708
|
+
const vectors = options?.vectors;
|
|
709
|
+
const payload = await transport.jsonOrNull(
|
|
710
|
+
{ method: "GET", path, query: { vectors: vectors === void 0 ? void 0 : String(vectors) }, options },
|
|
711
|
+
ErrorCodes.DOC_NOT_FOUND
|
|
712
|
+
);
|
|
709
713
|
if (payload === null) return void 0;
|
|
710
714
|
return readObject(payload, "document", path);
|
|
711
715
|
},
|
|
@@ -1729,7 +1733,7 @@ async function removeLocally(engine, indexName, documentId) {
|
|
|
1729
1733
|
}
|
|
1730
1734
|
}
|
|
1731
1735
|
async function holdsSameDocument(engine, indexName, documentId, encoded) {
|
|
1732
|
-
const held = await engine.get(indexName, documentId);
|
|
1736
|
+
const held = await engine.get(indexName, documentId, { document: { vectors: true } });
|
|
1733
1737
|
if (encoded === null || held === void 0) return encoded === null && held === void 0;
|
|
1734
1738
|
return bytesEqual(requireLoadedMessagePack().encodeDocument(held), encoded);
|
|
1735
1739
|
}
|
|
@@ -2382,7 +2386,8 @@ function createUploader(context, progress, session, state) {
|
|
|
2382
2386
|
let again = false;
|
|
2383
2387
|
async function serverCopyOf(write, outcome) {
|
|
2384
2388
|
if (outcome.serverDocument !== void 0) return outcome.serverDocument;
|
|
2385
|
-
|
|
2389
|
+
const options = await context.requestOptions();
|
|
2390
|
+
return await client.get(indexName, write.documentId, { ...options, vectors: true }) ?? null;
|
|
2386
2391
|
}
|
|
2387
2392
|
async function refuse(write, outcome) {
|
|
2388
2393
|
const serverDocument = await serverCopyOf(write, outcome);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-
|
|
2
|
-
import { storedText } from './browser/chunk-
|
|
1
|
+
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-J343PP7Q.mjs';
|
|
2
|
+
import { storedText } from './browser/chunk-HIC42RBU.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-3PGIOK7Z.mjs';
|
|
5
5
|
|
|
6
6
|
// src/core/synonyms/combined-postings.ts
|
|
7
7
|
var NO_DELETED = { size: 0, has: () => false };
|
package/dist/synonyms.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { synonymSearchModule } from './chunk-
|
|
1
|
+
import { synonymSearchModule } from './chunk-4QNWK42S.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-BRTABNC7.mjs';
|
|
4
4
|
import './chunk-Y7GXGJFZ.mjs';
|
|
5
5
|
import './chunk-BUMREPLU.mjs';
|
|
6
6
|
import './chunk-7T4LAYT4.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-M5RYB6FE.mjs';
|
|
8
|
+
import './chunk-7NMLFP2T.mjs';
|
|
9
9
|
import './chunk-U2BKYEC7.mjs';
|
|
10
10
|
import './chunk-PSZEGK6W.mjs';
|
|
11
11
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-
|
|
2
|
-
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-
|
|
1
|
+
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-DlvP2PSi.js';
|
|
2
|
+
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-CcivYH_R.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-
|
|
5
|
-
import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-
|
|
4
|
+
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, D as DocumentProjection, M as MemoryStats } from './engine-DP4PrdKM.js';
|
|
5
|
+
import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-CPQUdJTs.js';
|
|
6
6
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -440,6 +440,8 @@ interface DocumentBody {
|
|
|
440
440
|
interface MultiGetBody {
|
|
441
441
|
/** The server fetches the documents with these ids. */
|
|
442
442
|
docIds: string[];
|
|
443
|
+
/** This chooses how much of each document comes back. Every field apart from the vector fields comes back by default. */
|
|
444
|
+
document?: DocumentProjection;
|
|
443
445
|
}
|
|
444
446
|
/**
|
|
445
447
|
* The body of `POST /indexes/{name}/documents/_batch`.
|
|
@@ -525,6 +527,8 @@ interface HttpIndexConfig {
|
|
|
525
527
|
vectorPromotion?: Record<string, unknown>;
|
|
526
528
|
/** Setting this rejects a document carrying a field the schema does not declare. */
|
|
527
529
|
strict?: boolean;
|
|
530
|
+
/** Setting this returns the vector fields on every search, listing, and read of this index, which otherwise leave them out unless the request asks for them. */
|
|
531
|
+
returnVectors?: boolean;
|
|
528
532
|
/** This names a server-registered embedding adapter and the fields it embeds. */
|
|
529
533
|
embedding?: CreateIndexEmbedding;
|
|
530
534
|
/** The server rejects a document that omits any of these fields. */
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-2QQCR7KF.mjs';
|
|
2
|
+
import './chunk-UFDD57KD.mjs';
|
|
3
3
|
import './chunk-TACP6VK6.mjs';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-KHZ6LAFB.mjs';
|
|
5
|
+
import './chunk-I255IQTR.mjs';
|
|
6
|
+
import './chunk-ICEZRKIS.mjs';
|
|
7
7
|
import './chunk-S5QMWECL.mjs';
|
|
8
8
|
import './chunk-LNGE7SLY.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
9
|
+
import './chunk-L2GYY6KY.mjs';
|
|
10
|
+
import './chunk-AKLCYPUY.mjs';
|
|
11
|
+
import './chunk-HNE4HNC2.mjs';
|
|
12
12
|
import './chunk-R724DJSG.mjs';
|
|
13
13
|
import './chunk-V6EUBAIT.mjs';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-R5OFJZNI.mjs';
|
|
15
|
+
import './chunk-4QNWK42S.mjs';
|
|
16
16
|
import './chunk-2CKDCC65.mjs';
|
|
17
17
|
import './chunk-BRTABNC7.mjs';
|
|
18
18
|
import './chunk-Y7GXGJFZ.mjs';
|
|
19
19
|
import './chunk-BUMREPLU.mjs';
|
|
20
20
|
import './chunk-7T4LAYT4.mjs';
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
21
|
+
import './chunk-M5RYB6FE.mjs';
|
|
22
|
+
import './chunk-7NMLFP2T.mjs';
|
|
23
23
|
import './chunk-U2BKYEC7.mjs';
|
|
24
24
|
import './chunk-PSZEGK6W.mjs';
|
|
25
25
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as Narsil, N as NarsilError } from './engine-
|
|
2
|
-
import { A as AnyDocument } from './schema-
|
|
1
|
+
import { s as Narsil, N as NarsilError } from './engine-DP4PrdKM.js';
|
|
2
|
+
import { A as AnyDocument } from './schema-CPQUdJTs.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* One local write that the device holds until the server accepts it.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { holdCopyPublication, copyGenerationOf, transferIndexToPool, loadIndexOntoWorkers } from './chunk-
|
|
2
|
-
export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-
|
|
1
|
+
import { holdCopyPublication, copyGenerationOf, transferIndexToPool, loadIndexOntoWorkers } from './chunk-RHFUQ76T.mjs';
|
|
2
|
+
export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-RHFUQ76T.mjs';
|
|
3
3
|
import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
|
|
4
|
-
import { DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_MAX_THREADS_LEFT_RUNNING, 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-
|
|
5
|
-
export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-
|
|
4
|
+
import { DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_MAX_THREADS_LEFT_RUNNING, 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-4QNWK42S.mjs';
|
|
5
|
+
export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-4QNWK42S.mjs';
|
|
6
6
|
import './chunk-2CKDCC65.mjs';
|
|
7
7
|
import './chunk-BRTABNC7.mjs';
|
|
8
8
|
import './chunk-Y7GXGJFZ.mjs';
|
|
9
9
|
import './chunk-BUMREPLU.mjs';
|
|
10
10
|
import './chunk-7T4LAYT4.mjs';
|
|
11
|
-
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-
|
|
12
|
-
import { schemaFieldsOf } from './chunk-
|
|
11
|
+
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-M5RYB6FE.mjs';
|
|
12
|
+
import { schemaFieldsOf } from './chunk-7NMLFP2T.mjs';
|
|
13
13
|
import './chunk-U2BKYEC7.mjs';
|
|
14
14
|
import { resolveWorkerCount, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount } from './chunk-PSZEGK6W.mjs';
|
|
15
15
|
import { noteThreadSlotGone, threadSlotOfWorker } from './chunk-5EI5CXO6.mjs';
|
package/dist/workers/entry.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-
|
|
1
|
+
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-4QNWK42S.mjs';
|
|
2
2
|
import '../chunk-2CKDCC65.mjs';
|
|
3
3
|
import '../chunk-BRTABNC7.mjs';
|
|
4
4
|
import '../chunk-Y7GXGJFZ.mjs';
|
|
5
5
|
import '../chunk-BUMREPLU.mjs';
|
|
6
6
|
import '../chunk-7T4LAYT4.mjs';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import { loadMessagePack } from '../chunk-
|
|
7
|
+
import '../chunk-M5RYB6FE.mjs';
|
|
8
|
+
import { loadMessagePack } from '../chunk-7NMLFP2T.mjs';
|
|
9
9
|
import '../chunk-U2BKYEC7.mjs';
|
|
10
10
|
import '../chunk-PSZEGK6W.mjs';
|
|
11
11
|
import { threadSlotOfWorker, startIdleHeapCleanup } from '../chunk-5EI5CXO6.mjs';
|
|
@@ -32,9 +32,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
32
32
|
await import(moduleUrl);
|
|
33
33
|
}
|
|
34
34
|
async function stopServingRequests(refuseNewRequests) {
|
|
35
|
-
const { drainRequestThread } = await import('../thread-
|
|
35
|
+
const { drainRequestThread } = await import('../thread-6BVFFMP7.mjs');
|
|
36
36
|
await drainRequestThread(refuseNewRequests);
|
|
37
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
37
|
+
const { closeLongQueryThread } = await import('../long-query-thread-SOJ25FZU.mjs');
|
|
38
38
|
closeLongQueryThread();
|
|
39
39
|
}
|
|
40
40
|
function holdsCopies(executor) {
|
|
@@ -91,7 +91,7 @@ function createActionHandler(executor) {
|
|
|
91
91
|
if (!holdsCopies(executor)) {
|
|
92
92
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
93
93
|
}
|
|
94
|
-
const starting = import('../thread-
|
|
94
|
+
const starting = import('../thread-6BVFFMP7.mjs').then(
|
|
95
95
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
96
96
|
);
|
|
97
97
|
serving.start = starting.then(
|
|
@@ -108,7 +108,7 @@ function createActionHandler(executor) {
|
|
|
108
108
|
if (!holdsCopies(executor)) {
|
|
109
109
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
110
110
|
}
|
|
111
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
111
|
+
const { serveLongQueries } = await import('../long-query-thread-SOJ25FZU.mjs');
|
|
112
112
|
serveLongQueries(executor, action.settings);
|
|
113
113
|
servingRequests = true;
|
|
114
114
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -156,8 +156,8 @@ async function setup() {
|
|
|
156
156
|
}
|
|
157
157
|
requireSearchBackendSettings();
|
|
158
158
|
const [{ createDirectExecutor }, { runQueryAction }] = await Promise.all([
|
|
159
|
-
import('../direct-executor-
|
|
160
|
-
import('../query-actions-
|
|
159
|
+
import('../direct-executor-P2Z7T57F.mjs'),
|
|
160
|
+
import('../query-actions-WKC4SQEZ.mjs'),
|
|
161
161
|
loadVectorCode(),
|
|
162
162
|
loadGeoCode(),
|
|
163
163
|
importOptionalReads(),
|