@delali/narsil 0.4.5 → 0.4.6-next.333

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 (131) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/{chunk-VAPCFSMX.mjs → chunk-3PGIOK7Z.mjs} +16 -1
  3. package/dist/browser/{chunk-263ERYKA.mjs → chunk-75MBWQFW.mjs} +71 -27
  4. package/dist/browser/{chunk-VIVG3OXM.mjs → chunk-FBDTHGDR.mjs} +7 -3
  5. package/dist/browser/{chunk-56UNHLAF.mjs → chunk-HIC42RBU.mjs} +1 -1
  6. package/dist/browser/{optional-reads-NQO5DKM4.mjs → optional-reads-4O4CJ7TR.mjs} +1 -1
  7. package/dist/browser/{runtime-OMKE7DF4.mjs → runtime-AMEB4J2D.mjs} +2 -1
  8. package/dist/browser/{segment-codec-leaf-GXSRX5VT.mjs → segment-codec-leaf-NDVBIBJJ.mjs} +3 -0
  9. package/dist/browser/{storage-leaf-42IZEOJJ.mjs → storage-leaf-NCOXQTXQ.mjs} +32 -12
  10. package/dist/{capabilities-DaJKuKlG.d.ts → capabilities-YazdElfW.d.ts} +2 -2
  11. package/dist/{chunk-KGLBLKYF.mjs → chunk-26AKUBDX.mjs} +66 -51
  12. package/dist/{react-native/chunks/chunk-3BEUTRYM.mjs → chunk-2M55WPWK.mjs} +1 -1
  13. package/dist/{chunk-AAH5CD3M.mjs → chunk-34QTB6O7.mjs} +1 -1
  14. package/dist/{chunk-GLPBA2YZ.mjs → chunk-3EFLY5LQ.mjs} +2 -2
  15. package/dist/{chunk-GDCTK5LU.mjs → chunk-3TENTQKL.mjs} +2 -2
  16. package/dist/{chunk-3PO2MOFY.mjs → chunk-3UAYJW6R.mjs} +2 -2
  17. package/dist/{chunk-VV6P6LKJ.mjs → chunk-3WYTRM24.mjs} +80 -78
  18. package/dist/chunk-43UYNPPC.mjs +110 -0
  19. package/dist/{chunk-UDDZVZTV.mjs → chunk-47NXBGQG.mjs} +2 -2
  20. package/dist/{chunk-RXQZ53NV.mjs → chunk-5CYLXJYQ.mjs} +2 -2
  21. package/dist/{chunk-6RNOECOF.mjs → chunk-5E46Y42F.mjs} +2 -2
  22. package/dist/{chunk-FAK7Y3OX.mjs → chunk-6U4C7VAD.mjs} +37 -9
  23. package/dist/{chunk-EY5U4P5V.mjs → chunk-7NMLFP2T.mjs} +17 -2
  24. package/dist/{chunk-BVLR6S5J.mjs → chunk-E6CHNSMY.mjs} +5 -5
  25. package/dist/{chunk-CP4ZQR2X.mjs → chunk-FBGUKBW2.mjs} +15 -9
  26. package/dist/{chunk-ZGGZXRGM.mjs → chunk-GYQKMYPG.mjs} +85 -38
  27. package/dist/{chunk-ICOCO7R4.mjs → chunk-GZ4YU36L.mjs} +1 -1
  28. package/dist/{chunk-3Q6CDT32.mjs → chunk-H2R4BTSO.mjs} +3 -3
  29. package/dist/{chunk-7SMVY4AX.mjs → chunk-HFF2R73P.mjs} +11 -11
  30. package/dist/{chunk-CPAE2QJP.mjs → chunk-HJCYLTVA.mjs} +1 -1
  31. package/dist/{chunk-XX4SKT54.mjs → chunk-KFUHQC6X.mjs} +22 -12
  32. package/dist/{chunk-5SHWA6PE.mjs → chunk-L2GYY6KY.mjs} +1 -1
  33. package/dist/{chunk-DEYEVTFV.mjs → chunk-L2W4FGTD.mjs} +2 -2
  34. package/dist/{chunk-4JLHHEBN.mjs → chunk-M5RYB6FE.mjs} +1 -1
  35. package/dist/{chunk-PBUME456.mjs → chunk-NOEMVUBS.mjs} +1 -1
  36. package/dist/{chunk-UQFWTROO.mjs → chunk-NSMF4OHE.mjs} +3 -3
  37. package/dist/{chunk-C3OQQ3M6.mjs → chunk-OPWZ7PZZ.mjs} +1 -1
  38. package/dist/{chunk-H7IIA2KL.mjs → chunk-PBVLCGCW.mjs} +1 -1
  39. package/dist/{chunk-REM3KDXN.mjs → chunk-U6B3HHTP.mjs} +4 -4
  40. package/dist/{chunk-M2Z5WVWW.mjs → chunk-UGMOBSMD.mjs} +2 -0
  41. package/dist/{chunk-43T3P3BE.mjs → chunk-WW3RDS57.mjs} +1 -1
  42. package/dist/{client-DetSCqP2.d.ts → client-B9YNYYs_.d.ts} +38 -12
  43. package/dist/client.d.ts +8 -8
  44. package/dist/client.mjs +2 -2
  45. package/dist/{config-BB4MRAsB.d.ts → config-DJFXyHMZ.d.ts} +2 -2
  46. package/dist/{config-XEHd4MFx.d.ts → config-DlvP2PSi.d.ts} +2 -2
  47. package/dist/{direct-executor-TWLEPVQO.mjs → direct-executor-2Y3JPVXT.mjs} +3 -3
  48. package/dist/distribution/coordinator/etcd.d.ts +2 -2
  49. package/dist/distribution/coordinator/etcd.mjs +6 -2
  50. package/dist/distribution/coordinator/in-memory.d.ts +2 -2
  51. package/dist/distribution/transport/grpc.mjs +1 -1
  52. package/dist/distribution/transport/tcp.mjs +24 -19
  53. package/dist/distribution.d.ts +14 -9
  54. package/dist/distribution.mjs +808 -646
  55. package/dist/{engine-DGG_yX0p.d.ts → engine-DP4PrdKM.d.ts} +51 -13
  56. package/dist/{index-fX_FbuRT.d.ts → index-CcivYH_R.d.ts} +1 -1
  57. package/dist/index.browser.mjs +3 -3
  58. package/dist/index.d.ts +6 -6
  59. package/dist/index.mjs +3 -3
  60. package/dist/index.react-native.mjs +3 -3
  61. package/dist/{long-query-thread-HK5FP64H.mjs → long-query-thread-6B2HXSBI.mjs} +13 -13
  62. package/dist/{msgpack-leaf-LIT7TKZW.mjs → msgpack-leaf-LTAJ5QGB.mjs} +2 -2
  63. package/dist/{optional-reads-ESDVS225.mjs → optional-reads-5QWIOFOU.mjs} +1 -1
  64. package/dist/{optional-writes-DPWRGFKK.mjs → optional-writes-27NHTIAL.mjs} +5 -5
  65. package/dist/{paged-partition-archive-NITVFYOC.mjs → paged-partition-archive-EFCEC4TD.mjs} +13 -13
  66. package/dist/partial-words.browser.mjs +3 -3
  67. package/dist/partial-words.mjs +3 -3
  68. package/dist/pattern.browser.mjs +2 -2
  69. package/dist/pattern.mjs +2 -2
  70. package/dist/persistence/durability/checkpoint-worker.d.ts +2 -1
  71. package/dist/persistence/durability/checkpoint-worker.mjs +10 -10
  72. package/dist/{query-actions-AA5LE2WV.mjs → query-actions-H6H54EJE.mjs} +3 -3
  73. package/dist/query-suggestions/merge-worker.mjs +6 -6
  74. package/dist/query-suggestions.browser.mjs +3 -3
  75. package/dist/query-suggestions.d.ts +2 -2
  76. package/dist/query-suggestions.mjs +4 -4
  77. package/dist/react-native/chunks/{chunk-6KVWTGEJ.mjs → chunk-7TURQEZZ.mjs} +84 -37
  78. package/dist/react-native/chunks/{chunk-ESVBC3AT.mjs → chunk-BIORJHQZ.mjs} +1 -1
  79. package/dist/react-native/chunks/{chunk-AOLLV37A.mjs → chunk-CBG4EUYD.mjs} +17 -2
  80. package/dist/{chunk-7HVZVD2N.mjs → react-native/chunks/chunk-DYAAQB5R.mjs} +1 -1
  81. package/dist/react-native/chunks/{chunk-HGZNA5A6.mjs → chunk-GCD64RZ2.mjs} +2 -2
  82. package/dist/react-native/chunks/{chunk-OVYLUGEW.mjs → chunk-UTYWL2W6.mjs} +2 -2
  83. package/dist/react-native/chunks/{chunk-ZZQ2RIYZ.mjs → chunk-XCJVLU6J.mjs} +2 -2
  84. package/dist/react-native/chunks/{chunk-574N6ERF.mjs → chunk-YMIPG3VC.mjs} +3 -3
  85. package/dist/react-native/chunks/{chunk-ZF3VSGEI.mjs → chunk-ZSJABTIE.mjs} +1 -1
  86. package/dist/react-native/chunks/{msgpack-leaf-FOUPTT7J.mjs → msgpack-leaf-Q4BPA4G7.mjs} +2 -2
  87. package/dist/react-native/chunks/{optional-reads-TN3PT6M4.mjs → optional-reads-M6F26KFO.mjs} +1 -1
  88. package/dist/react-native/chunks/{optional-writes-UYVKLJU6.mjs → optional-writes-NYFF5NTC.mjs} +4 -4
  89. package/dist/react-native/chunks/{restore-queue-AZIZ5ABX.mjs → restore-queue-4OXFRQ6N.mjs} +6 -6
  90. package/dist/react-native/chunks/{runtime-UOHD2XUJ.mjs → runtime-7UKADH3G.mjs} +2 -1
  91. package/dist/react-native/chunks/{segment-codec-leaf-TYO4LKQ6.mjs → segment-codec-leaf-YKUO5DU6.mjs} +4 -4
  92. package/dist/react-native/chunks/{segment-merge-leaf-KM52IXXQ.mjs → segment-merge-leaf-HIOWV5UN.mjs} +5 -5
  93. package/dist/react-native/chunks/{storage-leaf-HKJBZXIP.mjs → storage-leaf-H64VNQKE.mjs} +40 -20
  94. package/dist/react-native/chunks/{store-leaf-LS5LT25L.mjs → store-leaf-ZG5DR7QA.mjs} +5 -5
  95. package/dist/react-native/chunks/{suggestions-leaf-IJ3Z4EH3.mjs → suggestions-leaf-AJZ3SHZO.mjs} +5 -5
  96. package/dist/react-native/chunks/{worker-copies-VNXZRBVW.mjs → worker-copies-IY4ZIA6W.mjs} +4 -4
  97. package/dist/react-native/partial-words.mjs +3 -3
  98. package/dist/react-native/pattern.mjs +2 -2
  99. package/dist/react-native/query-suggestions.mjs +3 -3
  100. package/dist/react-native/sync.mjs +12 -7
  101. package/dist/react-native/synonyms.mjs +3 -3
  102. package/dist/react.d.ts +9 -9
  103. package/dist/{rerank-X4HOST2N.mjs → rerank-JTIQNROU.mjs} +25 -12
  104. package/dist/{restore-queue-CI72WRAF.mjs → restore-queue-JIJW3XKK.mjs} +6 -6
  105. package/dist/{runtime-USQYKN3I.mjs → runtime-WWFVQOBJ.mjs} +2 -1
  106. package/dist/{schema-CFnQ-WI3.d.ts → schema-CPQUdJTs.d.ts} +6 -0
  107. package/dist/{segment-codec-leaf-7R5H2IYU.mjs → segment-codec-leaf-LTIODLBH.mjs} +4 -4
  108. package/dist/{segment-merge-leaf-IWL4VH7C.mjs → segment-merge-leaf-CXOMXPAP.mjs} +4 -4
  109. package/dist/server.d.ts +22 -11
  110. package/dist/server.mjs +24 -20
  111. package/dist/{storage-leaf-6YCHFH2O.mjs → storage-leaf-VB5OG66O.mjs} +22 -22
  112. package/dist/{store-leaf-V5N2REHF.mjs → store-leaf-RBK3Y2H4.mjs} +5 -5
  113. package/dist/{suggestions-leaf-XFJ4L37A.mjs → suggestions-leaf-27TNMJ37.mjs} +7 -7
  114. package/dist/sync/filesystem.d.ts +3 -3
  115. package/dist/sync/filesystem.mjs +8 -8
  116. package/dist/sync/indexeddb.browser.mjs +1 -1
  117. package/dist/sync/indexeddb.d.ts +3 -3
  118. package/dist/sync/indexeddb.mjs +2 -2
  119. package/dist/sync.browser.mjs +7 -6
  120. package/dist/sync.d.ts +4 -4
  121. package/dist/sync.mjs +12 -7
  122. package/dist/synonyms.browser.mjs +3 -3
  123. package/dist/synonyms.mjs +3 -3
  124. package/dist/{tasks-Bpi5YNZF.d.ts → tasks-4rvZJuoN.d.ts} +8 -4
  125. package/dist/{thread-UQAIJ5CS.mjs → thread-J32AOE3H.mjs} +12 -12
  126. package/dist/{types-DGjk684l.d.ts → types-C3hkFf_3.d.ts} +2 -2
  127. package/dist/vector/search-worker.d.ts +1 -1
  128. package/dist/{worker-copies-44MSY3IU.mjs → worker-copies-F2WVSQQO.mjs} +6 -6
  129. package/dist/workers/entry.mjs +9 -9
  130. package/openapi.json +58 -2
  131. package/package.json +5 -7
package/dist/server.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { G as GroupResult, H as Hit, Q as QueryParams, J as GroupConfig, t as QueryResult, p as SyncSetting, g as ChangesSetting, L as ListParams, w as SuggestParams, z as IndexStats, v as ListResult, y as PreflightResult, x as SuggestResult, q as SyncStatus, h as ChangesStatus, s as Narsil } from './engine-DGG_yX0p.js';
2
- export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-DGG_yX0p.js';
3
- import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-DaJKuKlG.js';
4
- export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-DaJKuKlG.js';
1
+ import { J as GroupResult, K as Hit, Q as QueryParams, O as GroupConfig, t as QueryResult, p as SyncSetting, g as ChangesSetting, L as ListParams, w as SuggestParams, z as IndexStats, v as ListResult, y as PreflightResult, x as SuggestResult, q as SyncStatus, h as ChangesStatus, s as Narsil } from './engine-DP4PrdKM.js';
2
+ export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-DP4PrdKM.js';
3
+ import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-YazdElfW.js';
4
+ export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-YazdElfW.js';
5
5
  import { P as PersistenceAdapter } from './adapters-8LcdNB77.js';
6
- import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks-Bpi5YNZF.js';
7
- export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks-Bpi5YNZF.js';
6
+ import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks-4rvZJuoN.js';
7
+ export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks-4rvZJuoN.js';
8
8
  import { d as QuerySuggestionsSetting, M as ManualQuerySuggestion, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
9
- import { i as ClusterHealth } from './config-XEHd4MFx.js';
10
- import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-CFnQ-WI3.js';
9
+ import { i as ClusterHealth } from './config-DlvP2PSi.js';
10
+ import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-CPQUdJTs.js';
11
11
  import './synonyms-CpOAHPa-.js';
12
- import './index-fX_FbuRT.js';
13
- import './config-BB4MRAsB.js';
12
+ import './index-CcivYH_R.js';
13
+ import './config-DJFXyHMZ.js';
14
14
  import './types-DvncmvuQ.js';
15
15
 
16
16
  /**
@@ -149,6 +149,15 @@ type HttpCreateIndexBody = Omit<CreateIndexRequest, 'config'> & {
149
149
  /** This carries the schema and settings, in the subset JSON can express. */
150
150
  config: HttpIndexBody;
151
151
  };
152
+ /**
153
+ * The query string of `GET /indexes/{name}/documents/{id}`.
154
+ *
155
+ * @public
156
+ */
157
+ interface GetDocumentQuery {
158
+ /** Under `true`, the document carries its vector fields, and under `false` it carries none, whatever the index setting says. */
159
+ vectors?: 'true' | 'false';
160
+ }
152
161
  /**
153
162
  * The query string of `DELETE /indexes/{name}/documents/{id}`.
154
163
  *
@@ -192,6 +201,8 @@ interface HttpWireTypes {
192
201
  DocumentBody: DocumentBody;
193
202
  /** Every value that a field of an index schema accepts. */
194
203
  FieldType: FieldType;
204
+ /** The query string of `GET /indexes/{name}/documents/{id}`. */
205
+ GetDocumentQuery: GetDocumentQuery;
195
206
  /** The query string of `POST /indexes/{name}/documents/_import`. */
196
207
  ImportDocumentsQuery: ImportDocumentsQuery;
197
208
  /** The body of `POST /indexes/{name}/documents`. */
@@ -525,4 +536,4 @@ declare class InMemoryTaskStore implements TaskStore {
525
536
  private prune;
526
537
  }
527
538
 
528
- export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type HttpCreateIndexBody, type HttpGroupResult, type HttpHit, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpScore, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, type ManualSuggestionResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, PersistenceTaskStore, type QueryBansBody, type QuerySuggestionsPreviewQuery, ReadinessResponse, RebalanceBody, type RecordQueryBody, type RemoveDocumentQuery, type RemoveQueryBody, type RemoveQueryResponse, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, type SnapshotQuery, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
539
+ export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type GetDocumentQuery, type HttpCreateIndexBody, type HttpGroupResult, type HttpHit, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpScore, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, type ManualSuggestionResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, PersistenceTaskStore, type QueryBansBody, type QuerySuggestionsPreviewQuery, ReadinessResponse, RebalanceBody, type RecordQueryBody, type RemoveDocumentQuery, type RemoveQueryBody, type RemoveQueryResponse, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, type SnapshotQuery, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
package/dist/server.mjs CHANGED
@@ -1,36 +1,36 @@
1
- import { answerRequest } from './chunk-ICOCO7R4.mjs';
1
+ import { answerRequest } from './chunk-GZ4YU36L.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-FAK7Y3OX.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-FAK7Y3OX.mjs';
5
- import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-BVLR6S5J.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-6U4C7VAD.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-6U4C7VAD.mjs';
5
+ import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-E6CHNSMY.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-7SMVY4AX.mjs';
8
- import { isRecord, validateIndexName } from './chunk-VV6P6LKJ.mjs';
7
+ import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-HFF2R73P.mjs';
8
+ import { isRecord, validateIndexName } from './chunk-3WYTRM24.mjs';
9
9
  import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
10
- import './chunk-AAH5CD3M.mjs';
11
- import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-GDCTK5LU.mjs';
12
- import './chunk-M2Z5WVWW.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-3Q6CDT32.mjs';
10
+ import './chunk-34QTB6O7.mjs';
11
+ import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-3TENTQKL.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-H2R4BTSO.mjs';
14
14
  import './chunk-JDDXV6UF.mjs';
15
- import { manifestFileRefs } from './chunk-CPAE2QJP.mjs';
15
+ import { manifestFileRefs } from './chunk-HJCYLTVA.mjs';
16
16
  import { encode as encode$1 } from './chunk-S5QMWECL.mjs';
17
17
  import './chunk-LNGE7SLY.mjs';
18
- import './chunk-5SHWA6PE.mjs';
19
- import './chunk-7HVZVD2N.mjs';
20
- import './chunk-3PO2MOFY.mjs';
18
+ import './chunk-L2GYY6KY.mjs';
19
+ import './chunk-2M55WPWK.mjs';
20
+ import './chunk-3UAYJW6R.mjs';
21
21
  import './chunk-R724DJSG.mjs';
22
22
  import './chunk-V6EUBAIT.mjs';
23
- import './chunk-RXQZ53NV.mjs';
24
- import { querySuggestions } from './chunk-PBUME456.mjs';
23
+ import './chunk-5CYLXJYQ.mjs';
24
+ import { querySuggestions } from './chunk-NOEMVUBS.mjs';
25
25
  import './chunk-S2POFTLN.mjs';
26
- import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-ZGGZXRGM.mjs';
26
+ import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, validateReturnVectors, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-GYQKMYPG.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-4JLHHEBN.mjs';
33
- import './chunk-EY5U4P5V.mjs';
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.5";
1414
+ var version = "0.4.6-next.333";
1415
1415
 
1416
1416
  // src/server/package-version.ts
1417
1417
  function publishedPackageVersion() {
@@ -2969,6 +2969,10 @@ function mapHttpIndexConfig(http) {
2969
2969
  if (http.surfaceForms !== void 0) config.surfaceForms = http.surfaceForms === true;
2970
2970
  if (http.vectorPromotion !== void 0) config.vectorPromotion = http.vectorPromotion;
2971
2971
  if (http.strict !== void 0) config.strict = http.strict;
2972
+ if (http.returnVectors !== void 0) {
2973
+ validateReturnVectors(http.returnVectors);
2974
+ config.returnVectors = http.returnVectors;
2975
+ }
2972
2976
  if (http.required !== void 0) config.required = http.required;
2973
2977
  if (http.patternValueLimit !== void 0) config.patternValueLimit = http.patternValueLimit;
2974
2978
  if (http.synonyms !== void 0) config.synonyms = http.synonyms;
@@ -1,39 +1,39 @@
1
- import { scheduleSyncRetention, createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-BVLR6S5J.mjs';
2
- export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-BVLR6S5J.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-XX4SKT54.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-XX4SKT54.mjs';
5
- import { readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-UQFWTROO.mjs';
6
- export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-UQFWTROO.mjs';
7
- import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, indexConfigurationOf, updateIndexSync, decodeIndexConfiguration } from './chunk-GDCTK5LU.mjs';
8
- export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, persistEpochStates, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-GDCTK5LU.mjs';
9
- import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-M2Z5WVWW.mjs';
10
- import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-3Q6CDT32.mjs';
11
- export { readSnapshotArchive } from './chunk-3Q6CDT32.mjs';
1
+ import { scheduleSyncRetention, createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-E6CHNSMY.mjs';
2
+ export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-E6CHNSMY.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-KFUHQC6X.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-KFUHQC6X.mjs';
5
+ import { readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-NSMF4OHE.mjs';
6
+ export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-NSMF4OHE.mjs';
7
+ import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, indexConfigurationOf, updateIndexSync, decodeIndexConfiguration } from './chunk-3TENTQKL.mjs';
8
+ export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, persistEpochStates, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-3TENTQKL.mjs';
9
+ import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-UGMOBSMD.mjs';
10
+ import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-H2R4BTSO.mjs';
11
+ export { readSnapshotArchive } from './chunk-H2R4BTSO.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-KGLBLKYF.mjs';
14
- export { bytesThatSegmentsHoldInMemory, checkPagedContents, checkPagedSegmentFully, checkPagedSelections, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSegmentScan, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-KGLBLKYF.mjs';
15
- import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-UDDZVZTV.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-26AKUBDX.mjs';
14
+ export { bytesThatSegmentsHoldInMemory, checkPagedContents, checkPagedSegmentFully, checkPagedSelections, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSegmentScan, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-26AKUBDX.mjs';
15
+ import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-47NXBGQG.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-CPAE2QJP.mjs';
18
+ import { manifestKey, manifestFileRefs, manifestReferencedKeys, manifestWithinPartitionCount, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-HJCYLTVA.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-5SHWA6PE.mjs';
23
- import { rewriteSpillOf } from './chunk-7HVZVD2N.mjs';
24
- import { deserializePartition } from './chunk-3PO2MOFY.mjs';
22
+ import { setNestedValue } from './chunk-L2GYY6KY.mjs';
23
+ import { rewriteSpillOf } from './chunk-2M55WPWK.mjs';
24
+ import { deserializePartition } from './chunk-3UAYJW6R.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-RXQZ53NV.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-ZGGZXRGM.mjs';
28
+ import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-5CYLXJYQ.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-GYQKMYPG.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-4JLHHEBN.mjs';
36
- import { flattenSchema, raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, parseVectorDimension, getNestedValue, requireValidFieldTypes } from './chunk-EY5U4P5V.mjs';
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-GLPBA2YZ.mjs';
1
+ export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-3EFLY5LQ.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-RXQZ53NV.mjs';
4
- import './chunk-ZGGZXRGM.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-5CYLXJYQ.mjs';
4
+ import './chunk-GYQKMYPG.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-4JLHHEBN.mjs';
11
- import './chunk-EY5U4P5V.mjs';
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-REM3KDXN.mjs';
2
- export { bindSuggestionsHost } from './chunk-6RNOECOF.mjs';
3
- import { installSuggestionHooks } from './chunk-GLPBA2YZ.mjs';
1
+ import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-U6B3HHTP.mjs';
2
+ export { bindSuggestionsHost } from './chunk-5E46Y42F.mjs';
3
+ import { installSuggestionHooks } from './chunk-3EFLY5LQ.mjs';
4
4
  import './chunk-V6EUBAIT.mjs';
5
- import { attachedRuntimeOf, attachRuntime } from './chunk-RXQZ53NV.mjs';
6
- import './chunk-ZGGZXRGM.mjs';
5
+ import { attachedRuntimeOf, attachRuntime } from './chunk-5CYLXJYQ.mjs';
6
+ import './chunk-GYQKMYPG.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-4JLHHEBN.mjs';
13
- import './chunk-EY5U4P5V.mjs';
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-DGjk684l.js';
2
- import '../engine-DGG_yX0p.js';
1
+ import { d as DeviceSyncStore } from '../types-C3hkFf_3.js';
2
+ import '../engine-DP4PrdKM.js';
3
3
  import '../adapters-8LcdNB77.js';
4
- import '../schema-CFnQ-WI3.js';
4
+ import '../schema-CPQUdJTs.js';
5
5
  import '../synonyms-CpOAHPa-.js';
6
6
  import '../query-suggestions-CBYkrQ5T.js';
7
7
 
@@ -1,22 +1,22 @@
1
- import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-43T3P3BE.mjs';
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-5SHWA6PE.mjs';
7
- import '../chunk-7HVZVD2N.mjs';
8
- import '../chunk-3PO2MOFY.mjs';
6
+ import '../chunk-L2GYY6KY.mjs';
7
+ import '../chunk-2M55WPWK.mjs';
8
+ import '../chunk-3UAYJW6R.mjs';
9
9
  import '../chunk-R724DJSG.mjs';
10
10
  import '../chunk-V6EUBAIT.mjs';
11
- import { crc32 } from '../chunk-RXQZ53NV.mjs';
12
- import '../chunk-ZGGZXRGM.mjs';
11
+ import { crc32 } from '../chunk-5CYLXJYQ.mjs';
12
+ import '../chunk-GYQKMYPG.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-4JLHHEBN.mjs';
19
- import { loadMessagePack } from '../chunk-EY5U4P5V.mjs';
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-VAPCFSMX.mjs';
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";
@@ -1,7 +1,7 @@
1
- import { d as DeviceSyncStore } from '../types-DGjk684l.js';
2
- import '../engine-DGG_yX0p.js';
1
+ import { d as DeviceSyncStore } from '../types-C3hkFf_3.js';
2
+ import '../engine-DP4PrdKM.js';
3
3
  import '../adapters-8LcdNB77.js';
4
- import '../schema-CFnQ-WI3.js';
4
+ import '../schema-CPQUdJTs.js';
5
5
  import '../synonyms-CpOAHPa-.js';
6
6
  import '../query-suggestions-CBYkrQ5T.js';
7
7
 
@@ -1,7 +1,7 @@
1
- import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-43T3P3BE.mjs';
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-EY5U4P5V.mjs';
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';
@@ -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-263ERYKA.mjs';
3
- import './browser/chunk-56UNHLAF.mjs';
2
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-75MBWQFW.mjs';
3
+ import './browser/chunk-HIC42RBU.mjs';
4
4
  import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
5
- import { createNarsilClient } from './browser/chunk-VIVG3OXM.mjs';
6
- import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema } from './browser/chunk-VAPCFSMX.mjs';
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
- return await client.get(indexName, write.documentId, await context.requestOptions()) ?? null;
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-DGjk684l.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-DGjk684l.js';
3
- import './engine-DGG_yX0p.js';
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-CFnQ-WI3.js';
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-ZGGZXRGM.mjs';
3
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-GYQKMYPG.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-4JLHHEBN.mjs';
10
- import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunk-EY5U4P5V.mjs';
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 payload = await transport.jsonOrNull({ method: "GET", path, options }, ErrorCodes.DOC_NOT_FOUND);
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
- return await client.get(indexName, write.documentId, await context.requestOptions()) ?? null;
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-263ERYKA.mjs';
2
- import { storedText } from './browser/chunk-56UNHLAF.mjs';
1
+ import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-75MBWQFW.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-VAPCFSMX.mjs';
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-ZGGZXRGM.mjs';
1
+ import { synonymSearchModule } from './chunk-GYQKMYPG.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-4JLHHEBN.mjs';
8
- import './chunk-EY5U4P5V.mjs';
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-XEHd4MFx.js';
2
- import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-fX_FbuRT.js';
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-DGG_yX0p.js';
5
- import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-CFnQ-WI3.js';
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-CP4ZQR2X.mjs';
2
- import './chunk-FAK7Y3OX.mjs';
1
+ export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-FBGUKBW2.mjs';
2
+ import './chunk-6U4C7VAD.mjs';
3
3
  import './chunk-TACP6VK6.mjs';
4
- import './chunk-AAH5CD3M.mjs';
5
- import './chunk-3Q6CDT32.mjs';
6
- import './chunk-CPAE2QJP.mjs';
4
+ import './chunk-34QTB6O7.mjs';
5
+ import './chunk-H2R4BTSO.mjs';
6
+ import './chunk-HJCYLTVA.mjs';
7
7
  import './chunk-S5QMWECL.mjs';
8
8
  import './chunk-LNGE7SLY.mjs';
9
- import './chunk-5SHWA6PE.mjs';
10
- import './chunk-7HVZVD2N.mjs';
11
- import './chunk-3PO2MOFY.mjs';
9
+ import './chunk-L2GYY6KY.mjs';
10
+ import './chunk-2M55WPWK.mjs';
11
+ import './chunk-3UAYJW6R.mjs';
12
12
  import './chunk-R724DJSG.mjs';
13
13
  import './chunk-V6EUBAIT.mjs';
14
- import './chunk-RXQZ53NV.mjs';
15
- import './chunk-ZGGZXRGM.mjs';
14
+ import './chunk-5CYLXJYQ.mjs';
15
+ import './chunk-GYQKMYPG.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-4JLHHEBN.mjs';
22
- import './chunk-EY5U4P5V.mjs';
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-DGG_yX0p.js';
2
- import { A as AnyDocument } from './schema-CFnQ-WI3.js';
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,4 +1,4 @@
1
- import { b as VectorQuantizationMode } from '../schema-CFnQ-WI3.js';
1
+ import { b as VectorQuantizationMode } from '../schema-CPQUdJTs.js';
2
2
  import '../adapters-8LcdNB77.js';
3
3
  import '../synonyms-CpOAHPa-.js';
4
4