@delali/narsil 0.3.1-next.104 → 0.3.1-next.109
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/adapters/filesystem.mjs +1 -1
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/browser/{chunk-CWWD2UHP.mjs → chunk-3RXEGUGO.mjs} +2 -2
- package/dist/browser/{chunk-J3QB4LBD.mjs → chunk-EQ7BQ6VZ.mjs} +1 -0
- package/dist/browser/{chunk-PW7GJFPW.mjs → chunk-RYWURYTW.mjs} +3 -2
- package/dist/browser/{chunk-SFXM7PLV.mjs → chunk-S7KNCVPU.mjs} +2 -2
- package/dist/browser/{chunk-5YMT23EX.mjs → chunk-SCBBEQWD.mjs} +14 -13
- package/dist/browser/{chunk-ECSLQ3S5.mjs → chunk-XHRHOH2P.mjs} +5 -5
- package/dist/browser/{chunk-6E4SWUYZ.mjs → chunk-Z2K5AGZL.mjs} +111 -10
- package/dist/browser/{durability-wiring-HTBWDAOX.mjs → durability-wiring-JJGE7MED.mjs} +6 -6
- package/dist/browser/{module-6FVNK7DO.mjs → module-PCKQADMQ.mjs} +20 -16
- package/dist/browser/{restore-queue-CL43WZTZ.mjs → restore-queue-2STSWU2E.mjs} +1 -1
- package/dist/browser/{runtime-JQYPNOK6.mjs → runtime-ARKW5NZX.mjs} +1 -1
- package/dist/browser/{snapshot-NL4GSDUD.mjs → snapshot-3AZDQKNA.mjs} +7 -7
- package/dist/browser/{write-YFOOPLAN.mjs → write-XXLMPT3Y.mjs} +5 -5
- package/dist/{capabilities-DGaz7cb3.d.ts → capabilities-D4MUmjfe.d.ts} +2 -2
- package/dist/{chunk-35KEGAOS.mjs → chunk-4GD43FSW.mjs} +12 -28
- package/dist/chunk-5DPTHLMX.mjs +350 -0
- package/dist/{chunk-RI5VNFAI.mjs → chunk-5LP7OU6B.mjs} +2 -2
- package/dist/{chunk-KSQS77DK.mjs → chunk-5W7ADHK7.mjs} +1 -1
- package/dist/{chunk-TDUBQ546.mjs → chunk-62GK7UUS.mjs} +3 -3
- package/dist/{chunk-RFVUDM5E.mjs → chunk-6OXNHLNZ.mjs} +3 -15
- package/dist/{chunk-RWXFSGKJ.mjs → chunk-A2HWRBQE.mjs} +2 -2
- package/dist/{chunk-3IQZYNW6.mjs → chunk-AWZVJCCW.mjs} +3 -3
- package/dist/{chunk-2MNJ2HX7.mjs → chunk-C55OFKU6.mjs} +2 -2
- package/dist/{chunk-XWJGJ2SE.mjs → chunk-C57FPCTL.mjs} +6 -6
- package/dist/{chunk-PAWVKEVS.mjs → chunk-CKRP7GCS.mjs} +2 -2
- package/dist/{chunk-IGUTV3MX.mjs → chunk-CYXLPFBG.mjs} +8 -8
- package/dist/{chunk-WCNN2PLX.mjs → chunk-FN75BCXC.mjs} +1 -1
- package/dist/{chunk-77SO7G55.mjs → chunk-FV5CP3E2.mjs} +1 -1
- package/dist/{chunk-WU4P5J4G.mjs → chunk-H5465KUZ.mjs} +3 -3
- package/dist/{chunk-6GFVUXUH.mjs → chunk-HL2GAS5N.mjs} +7 -7
- package/dist/{chunk-MZW4V4DS.mjs → chunk-IBJWO5PF.mjs} +1 -1
- package/dist/{chunk-O372FZM4.mjs → chunk-ICZW4J3I.mjs} +23 -22
- package/dist/{chunk-BLDJ5I6I.mjs → chunk-JKOBHB4A.mjs} +113 -10
- package/dist/{chunk-QALAFGF5.mjs → chunk-LWQTFKRS.mjs} +1 -1
- package/dist/{chunk-PQHR5FHC.mjs → chunk-MVWWAHTR.mjs} +2 -2
- package/dist/{chunk-DQ5NJSBZ.mjs → chunk-N75MAOM7.mjs} +2 -2
- package/dist/{chunk-AEF2O7B4.mjs → chunk-NYWUBTMH.mjs} +1 -1
- package/dist/{chunk-VFEALJEA.mjs → chunk-PA5WZWLC.mjs} +2 -2
- package/dist/{chunk-CYHQNM3T.mjs → chunk-RQ7LOBLD.mjs} +1 -1
- package/dist/{chunk-KNRU5CJ4.mjs → chunk-RSSLOFRP.mjs} +6 -6
- package/dist/{chunk-6JUOMMHQ.mjs → chunk-S2CKO6PP.mjs} +1 -0
- package/dist/{chunk-JSSGO4B5.mjs → chunk-SAZB7ZHT.mjs} +1 -1
- package/dist/{chunk-MJIJG4YT.mjs → chunk-SD2EYVU4.mjs} +2 -2
- package/dist/{chunk-LPQOEU5M.mjs → chunk-SOADQINJ.mjs} +45 -9
- package/dist/{chunk-PFQQ3LCQ.mjs → chunk-SYHS56F7.mjs} +6 -6
- package/dist/{chunk-OIN27OQH.mjs → chunk-U6FT7LKG.mjs} +3 -3
- package/dist/{chunk-J2KRH2RJ.mjs → chunk-VIXXQEX6.mjs} +4 -4
- package/dist/{chunk-HMFNFVP7.mjs → chunk-VJS4JFBQ.mjs} +2 -1
- package/dist/{chunk-MKPE3VZF.mjs → chunk-XY6Z7T5W.mjs} +2 -2
- package/dist/{chunk-5W2ODPPO.mjs → chunk-YP23IAV5.mjs} +177 -8
- package/dist/{chunk-47PZE6CJ.mjs → chunk-ZBZRBM2Z.mjs} +3 -3
- package/dist/chunk-ZXZ26WSO.mjs +14 -0
- package/dist/{client-DI-xIXgR.d.ts → client-Ba9yP-Rr.d.ts} +2 -2
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +1 -0
- package/dist/{config-DL_bDDD8.d.ts → config-C-xXz8bC.d.ts} +1 -1
- package/dist/{config-DWxtDsJ6.d.ts → config-Dc_8-byz.d.ts} +7 -4
- package/dist/direct-executor-QH2M6AK2.mjs +25 -0
- package/dist/distribution/coordinator/etcd.d.ts +1 -1
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +1 -1
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +7 -7
- package/dist/distribution.mjs +678 -278
- package/dist/{durability-wiring-LD4GWPWD.mjs → durability-wiring-4HWX7OVP.mjs} +26 -25
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-D_SYDsId.d.ts → engine-CMZ5XSLy.d.ts} +1 -1
- package/dist/{events-C7_dboUr.d.ts → events-dnvgprIl.d.ts} +1 -0
- package/dist/{index-Bkdt8nDw.d.ts → index-Cl5qQauj.d.ts} +6 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +19 -18
- package/dist/{module-QFWZ5OBF.mjs → module-IYILOTU3.mjs} +25 -21
- package/dist/partial-words.mjs +6 -6
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +22 -21
- package/dist/react.d.ts +6 -6
- package/dist/react.mjs +1 -0
- package/dist/{rerank-WVFFZV76.mjs → rerank-EHJVXEDP.mjs} +7 -7
- package/dist/rerankers/http.mjs +2 -2
- package/dist/{restore-queue-7QIKM6PY.mjs → restore-queue-BONSQWCI.mjs} +1 -1
- package/dist/{runtime-AVUUCJWQ.mjs → runtime-LEX2F7OW.mjs} +5 -5
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +32 -18
- package/dist/{snapshot-JYTT36WI.mjs → snapshot-DWDLN5YW.mjs} +28 -27
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-BhjQZ8Qf.d.ts → tasks-B4B2cMK5.d.ts} +1 -1
- package/dist/{thread-AHLISTRZ.mjs → thread-I32PUURR.mjs} +16 -14
- package/dist/vector/search-worker.d.ts +2 -0
- package/dist/vector/search-worker.mjs +5 -5
- package/dist/workers/entry.mjs +7 -6
- package/dist/{write-GPFM2EIX.mjs → write-AOFSHACR.mjs} +21 -20
- package/package.json +7 -7
- package/dist/chunk-B7BSQZ27.mjs +0 -206
- package/dist/direct-executor-5NX2ZIAG.mjs +0 -24
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { readRecentMemoryFigures, readMemoryFigures, collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, reportRefusalAfterCollection, reservedHeapBytes, admitHeapBytes } from './chunk-
|
|
1
|
+
import { readRecentMemoryFigures, readMemoryFigures, collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, reportRefusalAfterCollection, answerRefusalOf, reservedHeapBytes, admitHeapBytes } from './chunk-5DPTHLMX.mjs';
|
|
2
2
|
import { nativeSearchCoreIsEnabled } from './chunk-DJHHF2L5.mjs';
|
|
3
3
|
import { DEFAULT_RERANK_WINDOW } from './chunk-HJSN7UYG.mjs';
|
|
4
|
-
import { loadNativeCore } from './chunk-
|
|
4
|
+
import { loadNativeCore } from './chunk-MVWWAHTR.mjs';
|
|
5
5
|
import { MAX_FILTER_DEPTH } from './chunk-WQBCBKY3.mjs';
|
|
6
6
|
import { MAX_SORT_FIELDS } from './chunk-E74YLAIG.mjs';
|
|
7
|
-
import { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE } from './chunk-
|
|
8
|
-
import { NarsilError, ServerErrorCodes, ErrorCodes } from './chunk-
|
|
7
|
+
import { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE } from './chunk-ZXZ26WSO.mjs';
|
|
8
|
+
import { NarsilError, ServerErrorCodes, ErrorCodes } from './chunk-S2CKO6PP.mjs';
|
|
9
|
+
import { randomUUID } from 'crypto';
|
|
9
10
|
import { mkdtemp, open, rm } from 'fs/promises';
|
|
10
11
|
import { tmpdir } from 'os';
|
|
11
12
|
import path from 'path';
|
|
@@ -210,6 +211,7 @@ var STATUS_BY_CODE = {
|
|
|
210
211
|
QUERY_PARTIAL_FAILURE: 503,
|
|
211
212
|
QUERY_NODE_TIMEOUT: 503,
|
|
212
213
|
QUERY_NO_ACTIVE_REPLICA: 503,
|
|
214
|
+
SEARCH_CONTEXT_MISSING: 503,
|
|
213
215
|
CLUSTER_OPERATION_UNSUPPORTED: 501,
|
|
214
216
|
CLUSTER_WRITE_BLOCKED: 429,
|
|
215
217
|
REPLICATION_ENTRY_INVALID: 503,
|
|
@@ -315,9 +317,15 @@ var DEFAULT_MAX_CONCURRENT_TASKS = 4;
|
|
|
315
317
|
var MIN_COUNTED_SERVER_LIMIT = 1;
|
|
316
318
|
var MIN_UNBOUNDED_SERVER_LIMIT = 0;
|
|
317
319
|
var RESPONSE_STREAM_THRESHOLD_BYTES = 64 * 1024;
|
|
320
|
+
var RESPONSE_GROUP_DOCUMENTS = 64;
|
|
321
|
+
var RESPONSE_GROUP_BYTES = 256 * 1024;
|
|
322
|
+
var RESPONSE_HEAP_BYTES_PER_ANSWER_BYTE = 2;
|
|
323
|
+
var RESPONSE_MEMORY_WAIT_MAX_MS = 5e3;
|
|
324
|
+
var RESPONSE_MEMORY_WAIT_POLL_MS = 50;
|
|
318
325
|
var MAX_INDEX_TOUCH_INTERVAL_MS = 1e3;
|
|
319
326
|
var INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT = 4;
|
|
320
327
|
var REQUEST_THREAD_DEPARTURE_DRAIN_MS = 100;
|
|
328
|
+
var REQUEST_THREAD_CLOSE_AT_EXIT_MS = 2e3;
|
|
321
329
|
var DEFAULT_MAX_RETAINED_TASKS = 1e3;
|
|
322
330
|
var DEFAULT_TASK_PAGE_SIZE = 20;
|
|
323
331
|
var TASK_PROGRESS_WRITE_INTERVAL_MS = 250;
|
|
@@ -477,7 +485,9 @@ function streamBody(res, abort, body, status, headers) {
|
|
|
477
485
|
});
|
|
478
486
|
}
|
|
479
487
|
function sendJson(res, data, status = 200, abort) {
|
|
480
|
-
|
|
488
|
+
sendEncodedJson(res, encodeJson(data), status, abort);
|
|
489
|
+
}
|
|
490
|
+
function sendEncodedJson(res, payload, status = 200, abort) {
|
|
481
491
|
if (abort && payload !== void 0 && Buffer.byteLength(payload) >= RESPONSE_STREAM_THRESHOLD_BYTES) {
|
|
482
492
|
streamBody(res, abort, Buffer.from(payload, "utf8"), status, [["Content-Type", "application/json"]]);
|
|
483
493
|
return;
|
|
@@ -885,6 +895,130 @@ function parseTaskListQuery(params, maxPageSize) {
|
|
|
885
895
|
}
|
|
886
896
|
};
|
|
887
897
|
}
|
|
898
|
+
var JSON_HEADERS = [["Content-Type", "application/json"]];
|
|
899
|
+
var UTF8 = new TextEncoder();
|
|
900
|
+
function itemsOf(collection) {
|
|
901
|
+
if (Array.isArray(collection)) {
|
|
902
|
+
return {
|
|
903
|
+
count: collection.length,
|
|
904
|
+
open: "[",
|
|
905
|
+
close: "]",
|
|
906
|
+
encode: (at) => {
|
|
907
|
+
const text = encodeJson(collection[at]);
|
|
908
|
+
return text ?? "null";
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
if (collection === null || typeof collection !== "object" || ArrayBuffer.isView(collection)) return null;
|
|
913
|
+
const record = collection;
|
|
914
|
+
const keys = Object.keys(record);
|
|
915
|
+
return {
|
|
916
|
+
count: keys.length,
|
|
917
|
+
open: "{",
|
|
918
|
+
close: "}",
|
|
919
|
+
encode: (at) => {
|
|
920
|
+
const key = keys[at] ?? "";
|
|
921
|
+
const text = encodeJson(record[key]);
|
|
922
|
+
return text === void 0 ? void 0 : `${JSON.stringify(key)}:${text}`;
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
function groupFrom(items, from) {
|
|
927
|
+
const parts = [];
|
|
928
|
+
let length = 0;
|
|
929
|
+
let at = from;
|
|
930
|
+
while (at < items.count && parts.length < RESPONSE_GROUP_DOCUMENTS && length < RESPONSE_GROUP_BYTES) {
|
|
931
|
+
const part = items.encode(at);
|
|
932
|
+
at++;
|
|
933
|
+
if (part === void 0) continue;
|
|
934
|
+
parts.push(part);
|
|
935
|
+
length += part.length;
|
|
936
|
+
}
|
|
937
|
+
return { text: parts.join(","), encoded: parts.length, next: at };
|
|
938
|
+
}
|
|
939
|
+
function answerBytesOf(text) {
|
|
940
|
+
return text.length * RESPONSE_HEAP_BYTES_PER_ANSWER_BYTE;
|
|
941
|
+
}
|
|
942
|
+
function delay(ms) {
|
|
943
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
944
|
+
}
|
|
945
|
+
async function waitForRoom(ctx, answerBytes, label, sentBytes) {
|
|
946
|
+
const deadlineAt = performance.now() + RESPONSE_MEMORY_WAIT_MAX_MS;
|
|
947
|
+
for (; ; ) {
|
|
948
|
+
const refusal2 = answerRefusalOf(answerBytes);
|
|
949
|
+
if (refusal2 === null || ctx.abort.aborted) return;
|
|
950
|
+
if (performance.now() >= deadlineAt) {
|
|
951
|
+
console.warn(
|
|
952
|
+
`The server closed the connection part way through its answer to ${label} after sending ${sentBytes} bytes, because the next ${answerBytes} bytes found no room in memory for ${RESPONSE_MEMORY_WAIT_MAX_MS} ms:`,
|
|
953
|
+
refusal2.details
|
|
954
|
+
);
|
|
955
|
+
throw refusal2;
|
|
956
|
+
}
|
|
957
|
+
await delay(RESPONSE_MEMORY_WAIT_POLL_MS);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
function respondWhole(ctx, answer) {
|
|
961
|
+
const payload = encodeJson(answer);
|
|
962
|
+
const refusal2 = payload === void 0 ? null : answerRefusalOf(answerBytesOf(payload));
|
|
963
|
+
if (refusal2 !== null) {
|
|
964
|
+
respondError(ctx, refusal2);
|
|
965
|
+
return;
|
|
966
|
+
}
|
|
967
|
+
sendEncodedJson(ctx.res, payload, 200, ctx.abort);
|
|
968
|
+
}
|
|
969
|
+
async function respondAnswer(ctx, answer, field, label) {
|
|
970
|
+
if (ctx.abort.aborted) return;
|
|
971
|
+
const items = itemsOf(answer[field]);
|
|
972
|
+
if (items === null || items.count <= RESPONSE_GROUP_DOCUMENTS) {
|
|
973
|
+
respondWhole(ctx, answer);
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
const marker = randomUUID();
|
|
977
|
+
const envelope = encodeJson({ ...answer, [field]: marker });
|
|
978
|
+
const quotedMarker = JSON.stringify(marker);
|
|
979
|
+
const markerAt = envelope.indexOf(quotedMarker);
|
|
980
|
+
const head = envelope.slice(0, markerAt) + items.open;
|
|
981
|
+
const tail = items.close + envelope.slice(markerAt + quotedMarker.length);
|
|
982
|
+
let position = 0;
|
|
983
|
+
let anyEncoded = false;
|
|
984
|
+
let sentBytes = 0;
|
|
985
|
+
let finished = false;
|
|
986
|
+
const source = new ReadableStream(
|
|
987
|
+
{
|
|
988
|
+
async pull(controller) {
|
|
989
|
+
if (finished) {
|
|
990
|
+
controller.close();
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
const first = position === 0;
|
|
994
|
+
const group = groupFrom(items, position);
|
|
995
|
+
position = group.next;
|
|
996
|
+
let text = anyEncoded && group.encoded > 0 ? `,${group.text}` : group.text;
|
|
997
|
+
anyEncoded = anyEncoded || group.encoded > 0;
|
|
998
|
+
if (first) text = head + text;
|
|
999
|
+
if (position >= items.count) {
|
|
1000
|
+
text += tail;
|
|
1001
|
+
finished = true;
|
|
1002
|
+
}
|
|
1003
|
+
if (first) {
|
|
1004
|
+
const refusal2 = answerRefusalOf(answerBytesOf(text) + answerBytesOf(tail));
|
|
1005
|
+
if (refusal2 !== null) throw refusal2;
|
|
1006
|
+
} else {
|
|
1007
|
+
await waitForRoom(ctx, answerBytesOf(text), label, sentBytes);
|
|
1008
|
+
}
|
|
1009
|
+
const chunk = UTF8.encode(text);
|
|
1010
|
+
sentBytes += chunk.byteLength;
|
|
1011
|
+
controller.enqueue(chunk);
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
{ highWaterMark: 0 }
|
|
1015
|
+
);
|
|
1016
|
+
try {
|
|
1017
|
+
await sendStream(ctx.res, ctx.abort, source, JSON_HEADERS);
|
|
1018
|
+
} catch (err) {
|
|
1019
|
+
respondError(ctx, err);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
888
1022
|
|
|
889
1023
|
// src/server/handlers/document-reads.ts
|
|
890
1024
|
function createDocumentReadHandlers(deps) {
|
|
@@ -927,7 +1061,7 @@ function createDocumentReadHandlers(deps) {
|
|
|
927
1061
|
const found = await engine.getMultiple(ctx.params[0], body.docIds);
|
|
928
1062
|
const documents = {};
|
|
929
1063
|
for (const [id, doc] of found) documents[id] = doc;
|
|
930
|
-
|
|
1064
|
+
await respondAnswer(ctx, { documents }, "documents", `a multi-get on index '${ctx.params[0]}'`);
|
|
931
1065
|
} catch (err) {
|
|
932
1066
|
respondError(ctx, err);
|
|
933
1067
|
}
|
|
@@ -942,7 +1076,8 @@ function createDocumentReadHandlers(deps) {
|
|
|
942
1076
|
}
|
|
943
1077
|
if (refuseRegex(ctx, params.filters, allowRegex)) return;
|
|
944
1078
|
try {
|
|
945
|
-
|
|
1079
|
+
const page = await engine.listDocuments(ctx.params[0], params);
|
|
1080
|
+
await respondAnswer(ctx, page, "documents", `a list on index '${ctx.params[0]}'`);
|
|
946
1081
|
} catch (err) {
|
|
947
1082
|
respondError(ctx, err);
|
|
948
1083
|
}
|
|
@@ -1464,6 +1599,40 @@ function childAppOf(app) {
|
|
|
1464
1599
|
return candidate;
|
|
1465
1600
|
}
|
|
1466
1601
|
|
|
1602
|
+
// src/server/request-threads/close-at-exit.ts
|
|
1603
|
+
var CLOSE_WORD = 0;
|
|
1604
|
+
var CLOSED_WORD = 1;
|
|
1605
|
+
var OPEN = 0;
|
|
1606
|
+
var SIGNALLED = 1;
|
|
1607
|
+
function createCloseAtExitWords() {
|
|
1608
|
+
return new Int32Array(new SharedArrayBuffer(2 * Int32Array.BYTES_PER_ELEMENT));
|
|
1609
|
+
}
|
|
1610
|
+
function closeEveryThreadAtExit(words, timeoutMs) {
|
|
1611
|
+
const signalled = [...words];
|
|
1612
|
+
for (const word of signalled) {
|
|
1613
|
+
Atomics.store(word, CLOSE_WORD, SIGNALLED);
|
|
1614
|
+
Atomics.notify(word, CLOSE_WORD);
|
|
1615
|
+
}
|
|
1616
|
+
const deadline = Date.now() + timeoutMs;
|
|
1617
|
+
for (const word of signalled) {
|
|
1618
|
+
let left = deadline - Date.now();
|
|
1619
|
+
while (Atomics.load(word, CLOSED_WORD) !== SIGNALLED && left > 0) {
|
|
1620
|
+
Atomics.wait(word, CLOSED_WORD, OPEN, left);
|
|
1621
|
+
left = deadline - Date.now();
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
async function closeWhenTheProcessExits(word, close) {
|
|
1626
|
+
const waiting = Atomics.waitAsync(word, CLOSE_WORD, OPEN);
|
|
1627
|
+
if (waiting.async) await waiting.value;
|
|
1628
|
+
try {
|
|
1629
|
+
close();
|
|
1630
|
+
} finally {
|
|
1631
|
+
Atomics.store(word, CLOSED_WORD, SIGNALLED);
|
|
1632
|
+
Atomics.notify(word, CLOSED_WORD);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1467
1636
|
// src/server/request-threads/departure.ts
|
|
1468
1637
|
var DEPARTURE_WORD = 0;
|
|
1469
1638
|
var AWAITING_DEPARTURE = 0;
|
|
@@ -1486,4 +1655,4 @@ async function departureConfirmation(word) {
|
|
|
1486
1655
|
if (waiting.async) await waiting.value;
|
|
1487
1656
|
}
|
|
1488
1657
|
|
|
1489
|
-
export { ASYNC_IMPORT_CAPABILITY, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_RETAINED_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_TASK_PAGE_SIZE, DOCUMENT_EXPORT_CAPABILITY, DOCUMENT_EXPORT_CONTENT_TYPE, IMPORT_FLUSHES_IN_FLIGHT, INDEX_LIFECYCLE_CAPABILITY, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, MAIN_THREAD_GATE_SLOT, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, MAX_INDEX_TOUCH_INTERVAL_MS, MIN_COUNTED_SERVER_LIMIT, MIN_UNBOUNDED_SERVER_LIMIT, REBUILD_ANALYSIS_CAPABILITY, RELAY_STREAM_CHUNKS_IN_FLIGHT, REQUEST_THREAD_DEPARTURE_DRAIN_MS, RUNNING_TASK_TTL_MS, SERVER_CAPABILITIES, SNAPSHOT_ARCHIVE_CONTENT_TYPE, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, TASK_PROGRESS_WRITE_INTERVAL_MS, TERMINAL_TASK_TTL_MS, acceptorOf, authorizerFor, awaitDepartureConfirmation, badRequest, childAppOf, clearBodyBudgetSlot, clearGateSlot, closingQuoteOf, confirmDeparture, corsHeaderReader, createBodyBudgetBuffer, createDepartureWord, createDocumentReadHandlers, createRouteRunner, createSharedBodyBudget, createSharedGateBuffer, createSharedRequestGate, createVersionHandler, departureConfirmation, departureConfirmed, encodeJson, gateSlotOfWorker, httpStatusForNarsilError, loadUWebSockets, parseJson, parseJsonOptional, parseRefusalOf, parseTaskListQuery, parseWriteJson, refuseRegex, registerServerRoutes, rejectInvalid, resolveCors, respondError, respondJson, sendError, sendRelayed, sendStream, sendText, serializeBatchResult, serializeNarsilError, serverRoutes, statusLine, toHttpError, validateBatch, validateCreateIndex, validateDocumentBody, validateQuery, validateRebalance, validateSuggest, versionReport, withServerRerankWindow };
|
|
1658
|
+
export { ASYNC_IMPORT_CAPABILITY, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_RETAINED_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_TASK_PAGE_SIZE, DOCUMENT_EXPORT_CAPABILITY, DOCUMENT_EXPORT_CONTENT_TYPE, IMPORT_FLUSHES_IN_FLIGHT, INDEX_LIFECYCLE_CAPABILITY, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, MAIN_THREAD_GATE_SLOT, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, MAX_INDEX_TOUCH_INTERVAL_MS, MIN_COUNTED_SERVER_LIMIT, MIN_UNBOUNDED_SERVER_LIMIT, REBUILD_ANALYSIS_CAPABILITY, RELAY_STREAM_CHUNKS_IN_FLIGHT, REQUEST_THREAD_CLOSE_AT_EXIT_MS, REQUEST_THREAD_DEPARTURE_DRAIN_MS, RUNNING_TASK_TTL_MS, SERVER_CAPABILITIES, SNAPSHOT_ARCHIVE_CONTENT_TYPE, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, TASK_PROGRESS_WRITE_INTERVAL_MS, TERMINAL_TASK_TTL_MS, acceptorOf, authorizerFor, awaitDepartureConfirmation, badRequest, childAppOf, clearBodyBudgetSlot, clearGateSlot, closeEveryThreadAtExit, closeWhenTheProcessExits, closingQuoteOf, confirmDeparture, corsHeaderReader, createBodyBudgetBuffer, createCloseAtExitWords, createDepartureWord, createDocumentReadHandlers, createRouteRunner, createSharedBodyBudget, createSharedGateBuffer, createSharedRequestGate, createVersionHandler, departureConfirmation, departureConfirmed, encodeJson, gateSlotOfWorker, httpStatusForNarsilError, loadUWebSockets, parseJson, parseJsonOptional, parseRefusalOf, parseTaskListQuery, parseWriteJson, refuseRegex, registerServerRoutes, rejectInvalid, resolveCors, respondAnswer, respondError, respondJson, sendError, sendRelayed, sendStream, sendText, serializeBatchResult, serializeNarsilError, serverRoutes, statusLine, toHttpError, validateBatch, validateCreateIndex, validateDocumentBody, validateQuery, validateRebalance, validateSuggest, versionReport, withServerRerankWindow };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { VECTOR_FILE_MAX_VECTORS, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors, VECTOR_GRAPH_PART_VECTORS, VECTOR_GRAPH_PART_PAYLOAD_VERSION, VECTOR_FILE_PAYLOAD_VERSION, deadBitsWhere, vectorsToBytes } from './chunk-
|
|
2
|
-
import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-
|
|
1
|
+
import { VECTOR_FILE_MAX_VECTORS, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors, VECTOR_GRAPH_PART_VECTORS, VECTOR_GRAPH_PART_PAYLOAD_VERSION, VECTOR_FILE_PAYLOAD_VERSION, deadBitsWhere, vectorsToBytes } from './chunk-CKRP7GCS.mjs';
|
|
2
|
+
import { createOrdinalFilter, addToOrdinalFilter, osqBitsOf, STORE_ORDINAL_LAYOUT_GENERATION, removeFromOrdinalFilter, createHNSWIndex, STORE_CALIBRATION_GENERATION, graphWithoutNodes, createOsqScratch, osqQuantize } from './chunk-JKOBHB4A.mjs';
|
|
3
3
|
import { osqRecordBytes, writeRecord } from './chunk-37CD3OKS.mjs';
|
|
4
4
|
import { MAX_DOC_ID_LENGTH } from './chunk-LXWDQLTW.mjs';
|
|
5
5
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
6
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
6
|
+
import { NarsilError, ErrorCodes } from './chunk-S2CKO6PP.mjs';
|
|
7
7
|
|
|
8
8
|
// src/vector/filter-ordinals.ts
|
|
9
9
|
var UNRESOLVED_ORDINAL = -1;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/runtime/constants.ts
|
|
2
|
+
var IDLE_HEAP_CLEANUP_CHECK_MS = 1e3;
|
|
3
|
+
var IDLE_HEAP_CLEANUP_QUIET_CHECKS = 2;
|
|
4
|
+
var IDLE_HEAP_CLEANUP_MAX_UTILISATION = 0.1;
|
|
5
|
+
var IDLE_HEAP_CLEANUP_MAX_GROWTH_BYTES = 4 * 1024 * 1024;
|
|
6
|
+
var IDLE_HEAP_CLEANUP_MIN_RECLAIMABLE_BYTES = 64 * 1024 * 1024;
|
|
7
|
+
var REFUSAL_COLLECTION_MIN_INTERVAL_MS = 1e3;
|
|
8
|
+
var REFUSAL_COLLECTION_TIME_MULTIPLE = 10;
|
|
9
|
+
var REFUSAL_YOUNG_COLLECTION_MIN_INTERVAL_MS = 10;
|
|
10
|
+
var HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE = 0.75;
|
|
11
|
+
var HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE = 0.65;
|
|
12
|
+
var PROCESS_LIMIT_REFRESH_INTERVAL_MS = 1e3;
|
|
13
|
+
|
|
14
|
+
export { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, IDLE_HEAP_CLEANUP_CHECK_MS, IDLE_HEAP_CLEANUP_MAX_GROWTH_BYTES, IDLE_HEAP_CLEANUP_MAX_UTILISATION, IDLE_HEAP_CLEANUP_MIN_RECLAIMABLE_BYTES, IDLE_HEAP_CLEANUP_QUIET_CHECKS, PROCESS_LIMIT_REFRESH_INTERVAL_MS, REFUSAL_COLLECTION_MIN_INTERVAL_MS, REFUSAL_COLLECTION_TIME_MULTIPLE, REFUSAL_YOUNG_COLLECTION_MIN_INTERVAL_MS };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { P as PartitionConfig, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-4W_7tk1f.js';
|
|
2
|
-
import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult } from './events-
|
|
2
|
+
import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult } from './events-dnvgprIl.js';
|
|
3
3
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
4
|
-
import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
+
import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-B4B2cMK5.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This is the `fetch` implementation the client sends every request through.
|
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-
|
|
2
|
-
export { A as ASYNC_IMPORT_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
3
|
-
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-
|
|
4
|
-
export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-
|
|
1
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-dnvgprIl.js';
|
|
2
|
+
export { A as ASYNC_IMPORT_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-D4MUmjfe.js';
|
|
3
|
+
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-B4B2cMK5.js';
|
|
4
|
+
export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-Ba9yP-Rr.js';
|
|
5
5
|
import './schema-4W_7tk1f.js';
|
|
6
6
|
import './adapters-BQFQ4PRz.js';
|
|
7
7
|
import './synonyms-CpOAHPa-.js';
|
|
8
|
-
import './config-
|
|
9
|
-
import './config-
|
|
10
|
-
import './index-
|
|
8
|
+
import './config-Dc_8-byz.js';
|
|
9
|
+
import './config-C-xXz8bC.js';
|
|
10
|
+
import './index-Cl5qQauj.js';
|
|
11
11
|
import './types-DvncmvuQ.js';
|
package/dist/client.mjs
CHANGED
|
@@ -49,6 +49,7 @@ var ErrorCodes = {
|
|
|
49
49
|
QUERY_PARTIAL_FAILURE: "QUERY_PARTIAL_FAILURE",
|
|
50
50
|
QUERY_NODE_TIMEOUT: "QUERY_NODE_TIMEOUT",
|
|
51
51
|
QUERY_NO_ACTIVE_REPLICA: "QUERY_NO_ACTIVE_REPLICA",
|
|
52
|
+
SEARCH_CONTEXT_MISSING: "SEARCH_CONTEXT_MISSING",
|
|
52
53
|
CLUSTER_OPERATION_UNSUPPORTED: "CLUSTER_OPERATION_UNSUPPORTED",
|
|
53
54
|
CLUSTER_WRITE_BLOCKED: "CLUSTER_WRITE_BLOCKED",
|
|
54
55
|
ALLOCATION_NO_DATA_NODES: "ALLOCATION_NO_DATA_NODES",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { Q as QueryParams, e as QueryResult, f as NarsilEventHandlers } from './events-
|
|
2
|
+
import { Q as QueryParams, e as QueryResult, f as NarsilEventHandlers } from './events-dnvgprIl.js';
|
|
3
3
|
import { I as IndexConfig, A as AnyDocument } from './schema-4W_7tk1f.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NarsilConfig } from './config-
|
|
2
|
-
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-
|
|
1
|
+
import { N as NarsilConfig } from './config-C-xXz8bC.js';
|
|
2
|
+
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-Cl5qQauj.js';
|
|
3
3
|
import { N as NodeTransport } from './types-DvncmvuQ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -191,8 +191,11 @@ interface ClusterNodeConfig {
|
|
|
191
191
|
* When this node counts as full, which is what makes the cluster refuse inserts and updates to every index with a
|
|
192
192
|
* copy on the node.
|
|
193
193
|
*
|
|
194
|
-
* The node measures its process memory
|
|
195
|
-
*
|
|
194
|
+
* The node measures its process memory and its main thread's heap once a second, and it compares the heap with the
|
|
195
|
+
* heap limit. It compares the process memory with the container's memory limit where a container sets one. Without a
|
|
196
|
+
* container limit, a node on Linux compares it with its own resident memory plus the memory that the host reports as
|
|
197
|
+
* available, up to the host's total memory, so that the memory that other processes take counts against the node. A
|
|
198
|
+
* node on any other system compares it with the host's total memory. The node counts as full once either figure passes
|
|
196
199
|
* `blockWritesAbove` of its limit, and as clear again once both fall below `resumeWritesBelow`, so that a node hovering
|
|
197
200
|
* at the threshold does not switch writes on and off. Removes and searches go through while the node is full, which is
|
|
198
201
|
* how an operator frees memory.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { createDirectExecutor } from './chunk-4GD43FSW.mjs';
|
|
2
|
+
import './chunk-C57FPCTL.mjs';
|
|
3
|
+
import './chunk-LWQTFKRS.mjs';
|
|
4
|
+
import './chunk-SOADQINJ.mjs';
|
|
5
|
+
import './chunk-TGP5M5R7.mjs';
|
|
6
|
+
import './chunk-U2BKYEC7.mjs';
|
|
7
|
+
import './chunk-C55OFKU6.mjs';
|
|
8
|
+
import './chunk-WQBCBKY3.mjs';
|
|
9
|
+
import './chunk-62GK7UUS.mjs';
|
|
10
|
+
import './chunk-AWZVJCCW.mjs';
|
|
11
|
+
import './chunk-U476IXKQ.mjs';
|
|
12
|
+
import './chunk-E74YLAIG.mjs';
|
|
13
|
+
import './chunk-VJS4JFBQ.mjs';
|
|
14
|
+
import './chunk-GES7U2PM.mjs';
|
|
15
|
+
import './chunk-FV5CP3E2.mjs';
|
|
16
|
+
import './chunk-5LP7OU6B.mjs';
|
|
17
|
+
import './chunk-X5CV2E2B.mjs';
|
|
18
|
+
import './chunk-7X5JST5L.mjs';
|
|
19
|
+
import './chunk-NYWUBTMH.mjs';
|
|
20
|
+
import './chunk-R6A773WK.mjs';
|
|
21
|
+
import './chunk-YTJCGKM4.mjs';
|
|
22
|
+
import './chunk-5W7ADHK7.mjs';
|
|
23
|
+
import './chunk-ZXZ26WSO.mjs';
|
|
24
|
+
import './chunk-L5ORED7V.mjs';
|
|
25
|
+
import './chunk-S2CKO6PP.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MAX_NODE_ID_LENGTH, CONTROLLER_LEASE_KEY, MAX_WATCHERS } from '../../chunk-44W3CBNG.mjs';
|
|
2
2
|
import '../../chunk-R6A773WK.mjs';
|
|
3
3
|
import { compareCodePoints } from '../../chunk-YTJCGKM4.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes, describeError } from '../../chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes, describeError } from '../../chunk-S2CKO6PP.mjs';
|
|
5
5
|
import { encode, decode } from '@msgpack/msgpack';
|
|
6
6
|
|
|
7
7
|
// src/distribution/coordinator/etcd/constants.ts
|
|
@@ -2,7 +2,7 @@ import { decodeTransportMessage, encodeTransportMessage } from '../../chunk-FABI
|
|
|
2
2
|
import { timeoutsOf, replyDeadlineMs } from '../../chunk-DUWYU4D5.mjs';
|
|
3
3
|
import { MAX_MESSAGE_SIZE_BYTES, GRPC_KEEPALIVE_TIMEOUT_MS, GRPC_KEEPALIVE_TIME_MS, GRPC_ENVELOPE_OVERHEAD_BYTES } from '../../chunk-UNEEFTEU.mjs';
|
|
4
4
|
import { TransportError, TransportErrorCodes } from '../../chunk-RPIE4QCL.mjs';
|
|
5
|
-
import { NarsilError, ErrorCodes } from '../../chunk-
|
|
5
|
+
import { NarsilError, ErrorCodes } from '../../chunk-S2CKO6PP.mjs';
|
|
6
6
|
|
|
7
7
|
// src/distribution/transport/grpc/codec.ts
|
|
8
8
|
var FIELD_ONE_LENGTH_DELIMITED_KEY = 10;
|
package/dist/distribution.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-
|
|
2
|
-
export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig } from './config-
|
|
1
|
+
import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-Dc_8-byz.js';
|
|
2
|
+
export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig } from './config-Dc_8-byz.js';
|
|
3
3
|
import { R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
4
|
-
import { B as BatchResult, L as ListParams, g as ListResult, h as SuggestParams, j as SuggestResult, Q as QueryParams, P as PreflightResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, M as MemoryStats, m as NarsilEventMap, e as QueryResult } from './events-
|
|
4
|
+
import { B as BatchResult, L as ListParams, g as ListResult, h as SuggestParams, j as SuggestResult, Q as QueryParams, P as PreflightResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, M as MemoryStats, m as NarsilEventMap, e as QueryResult } from './events-dnvgprIl.js';
|
|
5
5
|
import { I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-4W_7tk1f.js';
|
|
6
6
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
|
-
import { b as NodeCapacity, N as NodeRole } from './index-
|
|
8
|
-
export { c as AllocationConstraints, d as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexPartitionBytes, e as NodeEvent, f as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, g as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-
|
|
9
|
-
import { N as Narsil } from './engine-
|
|
7
|
+
import { b as NodeCapacity, N as NodeRole } from './index-Cl5qQauj.js';
|
|
8
|
+
export { c as AllocationConstraints, d as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexPartitionBytes, e as NodeEvent, f as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, g as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-Cl5qQauj.js';
|
|
9
|
+
import { N as Narsil } from './engine-CMZ5XSLy.js';
|
|
10
10
|
export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
|
|
11
|
-
import './config-
|
|
11
|
+
import './config-C-xXz8bC.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The cluster splits an index into this many partitions when
|