@delali/narsil 0.3.1-next.196 → 0.3.1-next.197
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-YKHBTLYW.mjs → chunk-XD3WJ25T.mjs} +5 -5
- package/dist/browser/{optional-writes-J5BHKEQL.mjs → optional-writes-76DWMRQH.mjs} +35 -0
- package/dist/browser/{storage-leaf-KIPJKTWU.mjs → storage-leaf-5UTR5K7J.mjs} +5 -5
- package/dist/{capabilities-CLnQHIqV.d.ts → capabilities-B5lsGETP.d.ts} +2 -2
- package/dist/{chunk-23WLACOL.mjs → chunk-2HZ3ZNL4.mjs} +1 -1
- package/dist/{chunk-SUFAI37B.mjs → chunk-3LQ6C3H6.mjs} +1 -1
- package/dist/{chunk-JYIH6G2H.mjs → chunk-3VI4BSE2.mjs} +2 -2
- package/dist/{chunk-7BCL5QK5.mjs → chunk-4H44U3EK.mjs} +2 -2
- package/dist/{chunk-D2H5RN3Q.mjs → chunk-57N7OIXT.mjs} +5 -5
- package/dist/{chunk-UPDNNOTG.mjs → chunk-5EI5CXO6.mjs} +3 -1
- package/dist/{chunk-NTO2EMWZ.mjs → chunk-6R2CWCKV.mjs} +3 -3
- package/dist/{chunk-V24XTYHX.mjs → chunk-ANZQUMXO.mjs} +3 -3
- package/dist/{chunk-2TWR6YCG.mjs → chunk-AXX7CSFV.mjs} +2 -2
- package/dist/{chunk-RDGMV4R3.mjs → chunk-CXUBNJMW.mjs} +6 -6
- package/dist/{chunk-D4PSKC3O.mjs → chunk-EM4CXG25.mjs} +2 -2
- package/dist/{chunk-FIMLVUHE.mjs → chunk-HQCQPOBP.mjs} +1 -1
- package/dist/{chunk-ZS2YUB2L.mjs → chunk-IZXDYPLB.mjs} +2 -2
- package/dist/{chunk-F62PEMTB.mjs → chunk-J6B57IET.mjs} +1 -1
- package/dist/{chunk-TQ5EEJEO.mjs → chunk-J777QLZN.mjs} +2 -2
- package/dist/{chunk-2WKZM3FS.mjs → chunk-JA6NCMYV.mjs} +4 -4
- package/dist/{chunk-AOYQTX6W.mjs → chunk-JDVLZUKE.mjs} +2 -2
- package/dist/{chunk-QRKC25IO.mjs → chunk-JVZFCFDN.mjs} +1 -1
- package/dist/{chunk-K2KNE7W2.mjs → chunk-JZCWNKL2.mjs} +118 -31
- package/dist/{chunk-23UYFZXF.mjs → chunk-M2LTO64S.mjs} +2 -2
- package/dist/{chunk-SCZI7COG.mjs → chunk-OJ7KOWSW.mjs} +1 -1
- package/dist/{chunk-KBU3ZFJN.mjs → chunk-R724DJSG.mjs} +1 -1
- package/dist/{chunk-V6H3ZFC3.mjs → chunk-SBJ4W7O4.mjs} +1 -1
- package/dist/{chunk-DEKP2BZO.mjs → chunk-SKEBGNOX.mjs} +2 -2
- package/dist/{chunk-3CRBNUPW.mjs → chunk-SR54PLRE.mjs} +14 -14
- package/dist/{chunk-V76B76ML.mjs → chunk-SU6KDH3L.mjs} +5 -5
- package/dist/{chunk-IC6LWK2D.mjs → chunk-UKYJXML2.mjs} +5 -5
- package/dist/{chunk-KFU4KW77.mjs → chunk-WMJUZKPT.mjs} +1 -1
- package/dist/{chunk-NVGSHRLW.mjs → chunk-WXLDFCYT.mjs} +1 -1
- package/dist/{chunk-IQAV6Z3Y.mjs → chunk-ZIMKME6P.mjs} +3 -3
- package/dist/{chunk-RORNUNXW.mjs → chunk-ZVUEH2JS.mjs} +1 -1
- package/dist/{client-uB0kp2yT.d.ts → client-Cdz3YK_X.d.ts} +2 -2
- package/dist/client.d.ts +5 -5
- package/dist/{config-BvHQ-C7U.d.ts → config-CazZHGDa.d.ts} +13 -10
- package/dist/{core-leaf-TAR3GJVE.mjs → core-leaf-6JVHEVFB.mjs} +2 -2
- package/dist/{direct-executor-7EROGEUZ.mjs → direct-executor-5J2T5XFW.mjs} +4 -4
- package/dist/distribution/coordinator/etcd.d.ts +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +1 -1
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +29 -29
- package/dist/{index-BaQIAnk0.d.ts → index-B_vmxpgW.d.ts} +9 -4
- package/dist/index.browser.mjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.react-native.mjs +3 -3
- package/dist/{long-query-thread-DNQR25LY.mjs → long-query-thread-7IF2INYK.mjs} +14 -14
- package/dist/{module-UQFIJQMG.mjs → module-KLBY3HCR.mjs} +7 -7
- package/dist/{optional-writes-3CFEDQ7M.mjs → optional-writes-NI3YJGNG.mjs} +6 -6
- package/dist/{paged-partition-archive-YXXCF5WC.mjs → paged-partition-archive-B3RVFKHP.mjs} +13 -13
- package/dist/partial-words.browser.mjs +1 -1
- package/dist/partial-words.mjs +4 -4
- package/dist/persistence/durability/checkpoint-worker.mjs +12 -12
- package/dist/{query-actions-QCR7WPSV.mjs → query-actions-QK33MJBK.mjs} +4 -4
- package/dist/query-suggestions/merge-worker.mjs +7 -7
- package/dist/query-suggestions.browser.mjs +1 -1
- package/dist/query-suggestions.mjs +5 -5
- package/dist/react-native/chunks/{chunk-AN4HKLB4.mjs → chunk-3NHQ3CGV.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-WDR5JEUM.mjs → chunk-KPF6KEQJ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-YVCOZKVC.mjs → chunk-PPS5E3XI.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-HE4S2X7Q.mjs → chunk-YLLHNLW7.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-FXZ3AFKS.mjs → chunk-ZJAOGFBT.mjs} +58 -23
- package/dist/react-native/chunks/{chunk-2CDDI2XI.mjs → chunk-ZKAHFCZT.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZBY7QVQ5.mjs → chunk-ZO3RYBYX.mjs} +1 -1
- package/dist/react-native/chunks/{core-leaf-5PVST5PR.mjs → core-leaf-BIVBQRER.mjs} +1 -1
- package/dist/react-native/chunks/{module-QRCYB7QV.mjs → module-7D4CEFXK.mjs} +3 -3
- package/dist/react-native/chunks/{optional-writes-ONME3PSY.mjs → optional-writes-5F4IH6QN.mjs} +4 -4
- package/dist/react-native/chunks/{restore-queue-OGKLTLU5.mjs → restore-queue-ZGDYH567.mjs} +6 -6
- package/dist/react-native/chunks/{segment-codec-leaf-PAE2HHEQ.mjs → segment-codec-leaf-VSKJBVWY.mjs} +4 -4
- package/dist/react-native/chunks/{segment-merge-leaf-72FIRC26.mjs → segment-merge-leaf-ZQGIQVA5.mjs} +5 -5
- package/dist/react-native/chunks/{storage-leaf-2T5ZTSNK.mjs → storage-leaf-S6UTUUER.mjs} +11 -11
- package/dist/react-native/chunks/{store-leaf-BC77ZO4Z.mjs → store-leaf-JGKMH427.mjs} +5 -5
- package/dist/react-native/chunks/{suggestions-leaf-QL3H332L.mjs → suggestions-leaf-OIZIMHBE.mjs} +5 -5
- package/dist/react-native/chunks/{worker-copies-WIJCP6YJ.mjs → worker-copies-M4VYL4RP.mjs} +4 -4
- package/dist/react-native/partial-words.mjs +3 -3
- package/dist/react-native/query-suggestions.mjs +3 -3
- package/dist/react-native/sync.mjs +3 -3
- package/dist/react-native/synonyms.mjs +3 -3
- package/dist/react.d.ts +5 -5
- package/dist/{rerank-GVUOXQCU.mjs → rerank-GJVKHEJE.mjs} +4 -4
- package/dist/{restore-queue-FVVCUHIY.mjs → restore-queue-UG3JV6AH.mjs} +7 -7
- package/dist/{segment-codec-leaf-KXZPLILR.mjs → segment-codec-leaf-RZOSU5F3.mjs} +5 -5
- package/dist/{segment-merge-leaf-MLX5VM3E.mjs → segment-merge-leaf-YPKP5MQX.mjs} +5 -5
- package/dist/server.d.ts +6 -6
- package/dist/server.mjs +19 -19
- package/dist/{storage-leaf-S2RWQ63Q.mjs → storage-leaf-CWGPJ5TV.mjs} +24 -24
- package/dist/{store-leaf-JBMZL6QN.mjs → store-leaf-VCGW4NA2.mjs} +6 -6
- package/dist/{suggestions-leaf-MA2PUFB5.mjs → suggestions-leaf-TMXRXDSO.mjs} +8 -8
- package/dist/sync/filesystem.mjs +9 -9
- package/dist/sync.browser.mjs +1 -1
- package/dist/sync.mjs +4 -4
- package/dist/synonyms.browser.mjs +1 -1
- package/dist/synonyms.mjs +4 -4
- package/dist/{tasks-C65V7lIr.d.ts → tasks--3oWn3xJ.d.ts} +2 -2
- package/dist/{thread-LDS6OTXA.mjs → thread-W4C2PCMF.mjs} +13 -13
- package/dist/vector/search-worker.mjs +4 -4
- package/dist/{worker-copies-4T3SR5XZ.mjs → worker-copies-W6PULM5W.mjs} +7 -7
- package/dist/workers/entry.mjs +10 -10
- package/openapi.json +2 -2
- package/package.json +7 -6
- /package/dist/browser/{core-leaf-WYFANMKC.mjs → core-leaf-HWAXCEWX.mjs} +0 -0
- /package/dist/react-native/chunks/{chunk-G434H5WG.mjs → chunk-QNZHMXPO.mjs} +0 -0
package/dist/workers/entry.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-
|
|
1
|
+
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-JZCWNKL2.mjs';
|
|
2
2
|
import '../chunk-2CKDCC65.mjs';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-JDVLZUKE.mjs';
|
|
4
4
|
import '../chunk-GXCDWLQI.mjs';
|
|
5
5
|
import '../chunk-BUMREPLU.mjs';
|
|
6
6
|
import '../chunk-7T4LAYT4.mjs';
|
|
7
7
|
import '../chunk-IL5DRCNU.mjs';
|
|
8
8
|
import { loadMessagePack } from '../chunk-7P5YWDRQ.mjs';
|
|
9
9
|
import '../chunk-U2BKYEC7.mjs';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import { threadSlotOfWorker, startIdleHeapCleanup } from '../chunk-
|
|
10
|
+
import '../chunk-ZVUEH2JS.mjs';
|
|
11
|
+
import { threadSlotOfWorker, startIdleHeapCleanup } from '../chunk-5EI5CXO6.mjs';
|
|
12
12
|
import '../chunk-3ECIRFS5.mjs';
|
|
13
13
|
import '../chunk-ASZLNVWW.mjs';
|
|
14
14
|
import '../chunk-ZXX5GZEX.mjs';
|
|
@@ -32,9 +32,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
32
32
|
await import(moduleUrl);
|
|
33
33
|
}
|
|
34
34
|
async function stopServingRequests() {
|
|
35
|
-
const { closeRequestThread } = await import('../thread-
|
|
35
|
+
const { closeRequestThread } = await import('../thread-W4C2PCMF.mjs');
|
|
36
36
|
closeRequestThread();
|
|
37
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
37
|
+
const { closeLongQueryThread } = await import('../long-query-thread-7IF2INYK.mjs');
|
|
38
38
|
closeLongQueryThread();
|
|
39
39
|
}
|
|
40
40
|
function holdsCopies(executor) {
|
|
@@ -87,7 +87,7 @@ function createActionHandler(executor) {
|
|
|
87
87
|
if (!holdsCopies(executor)) {
|
|
88
88
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
89
89
|
}
|
|
90
|
-
const starting = import('../thread-
|
|
90
|
+
const starting = import('../thread-W4C2PCMF.mjs').then(
|
|
91
91
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
92
92
|
);
|
|
93
93
|
serving.start = starting.then(
|
|
@@ -104,7 +104,7 @@ function createActionHandler(executor) {
|
|
|
104
104
|
if (!holdsCopies(executor)) {
|
|
105
105
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
106
106
|
}
|
|
107
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
107
|
+
const { serveLongQueries } = await import('../long-query-thread-7IF2INYK.mjs');
|
|
108
108
|
serveLongQueries(executor, action.settings);
|
|
109
109
|
servingRequests = true;
|
|
110
110
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -152,8 +152,8 @@ async function setup() {
|
|
|
152
152
|
}
|
|
153
153
|
requireSearchBackendSettings();
|
|
154
154
|
const [{ createDirectExecutor }, { runQueryAction }] = await Promise.all([
|
|
155
|
-
import('../direct-executor-
|
|
156
|
-
import('../query-actions-
|
|
155
|
+
import('../direct-executor-5J2T5XFW.mjs'),
|
|
156
|
+
import('../query-actions-QK33MJBK.mjs'),
|
|
157
157
|
loadVectorCode(),
|
|
158
158
|
loadGeoCode(),
|
|
159
159
|
importOptionalReads(),
|
package/openapi.json
CHANGED
|
@@ -5212,11 +5212,11 @@
|
|
|
5212
5212
|
"properties": {
|
|
5213
5213
|
"processBytes": {
|
|
5214
5214
|
"type": "number",
|
|
5215
|
-
"description": "The
|
|
5215
|
+
"description": "The process holds this many bytes of resident memory, including the vectors and segments that it keeps outside the heap. On Linux, the figure counts only the anonymous and shared resident memory, which leaves out the pages that the process maps from files, because the kernel can drop those pages without ending the process. On any other system, Node.js reports only the whole resident memory, so the figure counts all of it."
|
|
5216
5216
|
},
|
|
5217
5217
|
"processLimitBytes": {
|
|
5218
5218
|
"type": "number",
|
|
5219
|
-
"description": "The process may hold this many bytes. Where a container sets a memory limit, this figure is that limit. Without one, a node on Linux reports
|
|
5219
|
+
"description": "The process may hold this many bytes. Where a container sets a memory limit, this figure is that limit. Without one, a node on Linux reports `processBytes` plus the memory that the host reports as available, up to the host's total memory, so the figure falls whenever other processes on the host take memory. A node on any other system reports the host's total memory."
|
|
5220
5220
|
},
|
|
5221
5221
|
"heapBytes": {
|
|
5222
5222
|
"type": "number",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delali/narsil",
|
|
3
|
-
"version": "0.3.1-next.
|
|
3
|
+
"version": "0.3.1-next.197",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Distributed search engine with full-text, vector, hybrid, and geosearch. One engine, embedded or on a server, with a cross-language .nrsl format.",
|
|
6
6
|
"author": "Delali (https://sondelali.com)",
|
|
@@ -380,9 +380,10 @@
|
|
|
380
380
|
"build": "rm -rf dist && tsup && node scripts/check-browser-bundle.mjs && node scripts/check-vector-chunk.mjs && tsx scripts/api-surface.ts",
|
|
381
381
|
"build:code": "rm -rf dist && NARSIL_BUILD_CODE_ONLY=1 tsup",
|
|
382
382
|
"build:types": "NARSIL_BUILD_TYPES_ONLY=1 tsup",
|
|
383
|
-
"test": "vitest run --exclude='**/vector/recall.test.ts' --exclude='**/vector/id-table-limit.test.ts' --exclude='**/e2e/cluster-memory/**' --exclude='**/e2e/cluster-faults/**' --exclude='**/frozen-removal-memory/container-removes.test.ts' --exclude='**/persistence/live-object-stores/**'",
|
|
383
|
+
"test": "vitest run --exclude='**/vector/recall.test.ts' --exclude='**/vector/id-table-limit.test.ts' --exclude='**/e2e/cluster-memory/**' --exclude='**/e2e/cluster-faults/**' --exclude='**/frozen-removal-memory/container-removes.test.ts' --exclude='**/persistence/live-object-stores/**' --exclude='**/engine/memory-limit/file-backed-vectors.test.ts'",
|
|
384
384
|
"test:object-stores": "vitest run src/__tests__/persistence/live-object-stores",
|
|
385
385
|
"test:native": "vitest run src/__tests__/core/tokenizer src/__tests__/core/keyword-score src/__tests__/math src/__tests__/vector/native src/__tests__/integration/filtered-vector-recall/native src/__tests__/integration/filtered-vectors/mutations-native src/__tests__/integration/removed-vectors/main-thread src/__tests__/integration/sort-value-reduction.test.ts src/__tests__/integration/hybrid-fusion-extreme-scores.test.ts",
|
|
386
|
+
"test:file-backed-memory": "vitest run src/__tests__/engine/memory-limit/file-backed-vectors.test.ts",
|
|
386
387
|
"test:cluster": "vitest run src/__tests__/e2e/cluster-memory --no-file-parallelism",
|
|
387
388
|
"test:faults": "vitest run src/__tests__/e2e/cluster-faults --no-file-parallelism",
|
|
388
389
|
"test:etcd": "vitest run src/__tests__/distribution/coordinator/etcd-integration/*.test.ts",
|
|
@@ -653,9 +654,9 @@
|
|
|
653
654
|
}
|
|
654
655
|
},
|
|
655
656
|
"optionalDependencies": {
|
|
656
|
-
"@delali/narsil-native-linux-arm64": "0.3.1-next.
|
|
657
|
-
"@delali/narsil-native-linux-x64": "0.3.1-next.
|
|
658
|
-
"@delali/narsil-native-win32-arm64": "0.3.1-next.
|
|
659
|
-
"@delali/narsil-native-win32-x64": "0.3.1-next.
|
|
657
|
+
"@delali/narsil-native-linux-arm64": "0.3.1-next.197",
|
|
658
|
+
"@delali/narsil-native-linux-x64": "0.3.1-next.197",
|
|
659
|
+
"@delali/narsil-native-win32-arm64": "0.3.1-next.197",
|
|
660
|
+
"@delali/narsil-native-win32-x64": "0.3.1-next.197"
|
|
660
661
|
}
|
|
661
662
|
}
|
|
File without changes
|
|
File without changes
|