@delali/narsil 0.3.1-next.91 → 0.3.1-next.95
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-66KYAOIK.mjs → chunk-3U636ADD.mjs} +2 -2
- package/dist/browser/{chunk-NOUZ6RH3.mjs → chunk-D3CC2NMZ.mjs} +238 -114
- package/dist/browser/{chunk-3ZRMZIH4.mjs → chunk-FYFQJKFW.mjs} +208 -78
- package/dist/browser/{chunk-FHFFWLEK.mjs → chunk-HARBSUWP.mjs} +3 -4
- package/dist/browser/{chunk-B6XE7KXY.mjs → chunk-LULHQXCK.mjs} +4 -4
- package/dist/browser/{chunk-NQW2YXEX.mjs → chunk-WKPJ4E73.mjs} +1 -1
- package/dist/browser/{durability-wiring-F4OGQUSU.mjs → durability-wiring-3ZRKSPJD.mjs} +498 -71
- package/dist/browser/{module-E25UDADM.mjs → module-IEOQI5GI.mjs} +102 -54
- package/dist/browser/release-76MXRPGV.mjs +33 -0
- package/dist/browser/replace-RURXTGVG.mjs +57 -0
- package/dist/browser/restore-queue-RBULSOVX.mjs +35 -0
- package/dist/browser/{snapshot-5EJ7I7QY.mjs → snapshot-Y3NGUJHX.mjs} +362 -103
- package/dist/browser/{write-K5V4XQ72.mjs → write-ZUBDNLCH.mjs} +4 -4
- package/dist/{capabilities-CvExBThq.d.ts → capabilities-BvxvFzVA.d.ts} +2 -2
- package/dist/{chunk-NVL4ZR3K.mjs → chunk-2GZGBOQI.mjs} +2 -2
- package/dist/{chunk-XLJ2S2BH.mjs → chunk-3LYY62M6.mjs} +40 -21
- package/dist/{chunk-CVQWQVFX.mjs → chunk-4ZJWRETC.mjs} +2 -2
- package/dist/{chunk-T4DB5YFB.mjs → chunk-54HYC5FT.mjs} +6 -6
- package/dist/{chunk-ZIJ63TBT.mjs → chunk-7KC56574.mjs} +1 -1
- package/dist/{chunk-67Z2V6TC.mjs → chunk-7QONURHW.mjs} +3 -3
- package/dist/{chunk-BVOJIYRV.mjs → chunk-BB7MASRQ.mjs} +1 -1
- package/dist/{chunk-6VZ3Q73N.mjs → chunk-CHOGQSHK.mjs} +44 -25
- package/dist/{chunk-QZN3MIJ3.mjs → chunk-ES33L3HO.mjs} +2 -2
- package/dist/{chunk-YCJLVNWR.mjs → chunk-F52QGNZ2.mjs} +1 -1
- package/dist/{chunk-43ORORN6.mjs → chunk-GJZHU4FC.mjs} +3 -3
- package/dist/{chunk-R7OSDAFK.mjs → chunk-HBVLF3HA.mjs} +1 -1
- package/dist/{chunk-ULRPNYAG.mjs → chunk-ICL2AELD.mjs} +120 -62
- package/dist/{chunk-3RDS4UHC.mjs → chunk-J7SDAOTP.mjs} +4 -4
- package/dist/{chunk-A4G7JSYO.mjs → chunk-JFUE6F2Y.mjs} +98 -49
- package/dist/chunk-KOKM4PQN.mjs +52 -0
- package/dist/{chunk-7OQHSDK6.mjs → chunk-L26LEDHO.mjs} +7 -7
- package/dist/{chunk-EONIHG3V.mjs → chunk-MASE2LTJ.mjs} +7 -7
- package/dist/{chunk-MXS5HWIH.mjs → chunk-MWT5WCJ5.mjs} +89 -17
- package/dist/{chunk-3TTYK5A7.mjs → chunk-Q4UTU5ZE.mjs} +9 -9
- package/dist/{chunk-T6CNO72J.mjs → chunk-QM3VPX4Z.mjs} +2 -2
- package/dist/chunk-QY7GC2MW.mjs +33 -0
- package/dist/{chunk-BJ2YKRNX.mjs → chunk-R36MIGBU.mjs} +86 -54
- package/dist/{chunk-RVM7AODE.mjs → chunk-RDJKYKMQ.mjs} +2 -2
- package/dist/{chunk-UXQE2ROB.mjs → chunk-RUIXODYU.mjs} +3 -2
- package/dist/{chunk-5ER245FI.mjs → chunk-SBCEHIPL.mjs} +3 -3
- package/dist/{chunk-TPJU7NDJ.mjs → chunk-SYWGORQB.mjs} +1 -0
- package/dist/{chunk-UKSUENHK.mjs → chunk-T2QN2FA4.mjs} +40 -26
- package/dist/{chunk-CO4MRKST.mjs → chunk-WLOF6HSP.mjs} +2 -2
- package/dist/{chunk-MKWUXWQH.mjs → chunk-ZHS44YKF.mjs} +1 -1
- package/dist/{client-Cc42b42j.d.ts → client-DKwterMb.d.ts} +2 -2
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +1 -0
- package/dist/{config-DyRowvVP.d.ts → config-6YBtxekG.d.ts} +1 -1
- package/dist/{config-BYne-yCI.d.ts → config-DPphZfuM.d.ts} +1 -1
- package/dist/direct-executor-5KJGVQHM.mjs +22 -0
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +5 -5
- package/dist/distribution.mjs +26 -26
- package/dist/{durability-wiring-6AN4QTT3.mjs → durability-wiring-FRPV6JLZ.mjs} +518 -91
- package/dist/embeddings/openai.mjs +1 -1
- package/dist/{engine-96_kLtSY.d.ts → engine-BGt9lI1V.d.ts} +11 -11
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +18 -18
- package/dist/{memory-dd3GESdc.d.ts → memory-COdoGthn.d.ts} +96 -76
- package/dist/{module-WIDYIJLY.mjs → module-IUTNXWMV.mjs} +72 -38
- package/dist/partial-words.mjs +5 -5
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +21 -21
- package/dist/react.d.ts +6 -6
- package/dist/react.mjs +1 -0
- package/dist/release-BH3DKW3T.mjs +33 -0
- package/dist/replace-CEO5KJJ3.mjs +57 -0
- package/dist/restore-queue-I5SI6AUQ.mjs +35 -0
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +10 -10
- package/dist/snapshot-YC6TS4OP.mjs +738 -0
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-DA1Ff0G4.d.ts → tasks-BJmamiC4.d.ts} +1 -1
- package/dist/{thread-VTDLLYXC.mjs → thread-U7XYJWGG.mjs} +15 -12
- package/dist/vector/search-worker.mjs +6 -6
- package/dist/workers/entry.mjs +5 -5
- package/dist/{write-OJR3H4BI.mjs → write-M2OALSA4.mjs} +20 -20
- package/package.json +7 -7
- package/dist/chunk-Y2F66IQJ.mjs +0 -74
- package/dist/chunk-ZJ4CSAB2.mjs +0 -13
- package/dist/direct-executor-CHXVCBN7.mjs +0 -22
- package/dist/snapshot-JFZVOGZV.mjs +0 -479
package/dist/react.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N as NarsilError, L as ListParams, h as ListResult, I as IndexInfo, g as IndexStats, Q as QueryParams, j as PreflightResult, e as QueryResult, k as SuggestParams, l as SuggestResult } from './memory-
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-
|
|
3
|
-
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-
|
|
1
|
+
import { N as NarsilError, L as ListParams, h as ListResult, I as IndexInfo, g as IndexStats, Q as QueryParams, j as PreflightResult, e as QueryResult, k as SuggestParams, l as SuggestResult } from './memory-COdoGthn.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-COdoGthn.js';
|
|
3
|
+
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-BJmamiC4.js';
|
|
4
|
+
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-BJmamiC4.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import { N as Narsil } from './engine-
|
|
7
|
-
import { N as NarsilClient, I as ImportSource } from './client-
|
|
6
|
+
import { N as Narsil } from './engine-BGt9lI1V.js';
|
|
7
|
+
import { N as NarsilClient, I as ImportSource } from './client-DKwterMb.js';
|
|
8
8
|
import { A as AnyDocument } from './schema-DttzM-ln.js';
|
|
9
9
|
import './synonyms-CpOAHPa-.js';
|
|
10
10
|
import './adapters-79OIa4xm.js';
|
package/dist/react.mjs
CHANGED
|
@@ -38,6 +38,7 @@ var ErrorCodes = {
|
|
|
38
38
|
ENVELOPE_VERSION_MISMATCH: "ENVELOPE_VERSION_MISMATCH",
|
|
39
39
|
ENVELOPE_INVALID_MAGIC: "ENVELOPE_INVALID_MAGIC",
|
|
40
40
|
PARTITION_CAPACITY_EXCEEDED: "PARTITION_CAPACITY_EXCEEDED",
|
|
41
|
+
RESTORE_MEMORY_EXCEEDED: "RESTORE_MEMORY_EXCEEDED",
|
|
41
42
|
EMBEDDING_FAILED: "EMBEDDING_FAILED",
|
|
42
43
|
EMBEDDING_DIMENSION_MISMATCH: "EMBEDDING_DIMENSION_MISMATCH",
|
|
43
44
|
EMBEDDING_NO_SOURCE: "EMBEDDING_NO_SOURCE",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// src/engine/orchestration/release.ts
|
|
2
|
+
async function releaseIndexCopies(state, indexName, steps) {
|
|
3
|
+
const wasScaledOut = state.scaledOutIndexes.delete(indexName);
|
|
4
|
+
const loading = state.copyTransitions.get(indexName);
|
|
5
|
+
if (loading !== void 0) await loading.done.catch(() => void 0);
|
|
6
|
+
await steps.awaitReplicationIdle(state, indexName);
|
|
7
|
+
steps.cancelIdleMerge(state, indexName);
|
|
8
|
+
const reloads = wasScaledOut || loading !== void 0 && loading.kind !== "drop";
|
|
9
|
+
const pool = state.workerPool;
|
|
10
|
+
if (pool === null) return reloads;
|
|
11
|
+
pool.removeIndex(indexName);
|
|
12
|
+
state.segmentLedger.delete(indexName);
|
|
13
|
+
state.unbroadcastSegments.delete(indexName);
|
|
14
|
+
await Promise.all(
|
|
15
|
+
pool.executorEntries().map(
|
|
16
|
+
({ executor }) => executor.execute({ type: "dropIndex", indexName, requestId: `restore-release-${indexName}` }).catch((error) => {
|
|
17
|
+
if (!steps.heldNowhere(error)) throw error;
|
|
18
|
+
})
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
return reloads;
|
|
22
|
+
}
|
|
23
|
+
async function endCopyRelease(state, indexName, reloads, steps) {
|
|
24
|
+
const hold = state.copyReleaseHolds.get(indexName);
|
|
25
|
+
if (hold === void 0) return steps.resyncIndex(indexName, reloads);
|
|
26
|
+
hold.holders -= 1;
|
|
27
|
+
hold.reloads ||= reloads;
|
|
28
|
+
if (hold.holders > 0) return;
|
|
29
|
+
state.copyReleaseHolds.delete(indexName);
|
|
30
|
+
await steps.resyncIndex(indexName, hold.reloads);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { endCopyRelease, releaseIndexCopies };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// src/engine/index-state/replace.ts
|
|
2
|
+
function runReplacement(context, entry, body, settle) {
|
|
3
|
+
const previous = entry.state;
|
|
4
|
+
entry.state = "replacing";
|
|
5
|
+
const run = (async () => {
|
|
6
|
+
await context.waitForDrain(entry);
|
|
7
|
+
await body();
|
|
8
|
+
})().then(
|
|
9
|
+
() => settle(true, previous),
|
|
10
|
+
(error) => {
|
|
11
|
+
settle(false, previous);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
).finally(() => {
|
|
15
|
+
entry.replacePromise = null;
|
|
16
|
+
});
|
|
17
|
+
entry.replacePromise = run;
|
|
18
|
+
return run;
|
|
19
|
+
}
|
|
20
|
+
function replaceUnregistered(context, indexName, entry, action) {
|
|
21
|
+
return runReplacement(context, entry, action, (succeeded) => {
|
|
22
|
+
if (!succeeded) {
|
|
23
|
+
context.forget(indexName);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
entry.state = "open";
|
|
27
|
+
entry.lastAccessAt = Date.now();
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function replaceExclusively(context, indexName, action) {
|
|
31
|
+
let entry = context.entryOf(indexName);
|
|
32
|
+
while (true) {
|
|
33
|
+
const pending = entry.dropPromise ?? entry.replacePromise ?? entry.reopenPromise ?? entry.closePromise;
|
|
34
|
+
if (pending === null) break;
|
|
35
|
+
await pending.catch(() => void 0);
|
|
36
|
+
entry = context.entryOf(indexName);
|
|
37
|
+
}
|
|
38
|
+
const wasOpen = entry.state === "open";
|
|
39
|
+
await runReplacement(
|
|
40
|
+
context,
|
|
41
|
+
entry,
|
|
42
|
+
() => action(wasOpen),
|
|
43
|
+
(succeeded, previous) => {
|
|
44
|
+
if (!succeeded) {
|
|
45
|
+
entry.state = previous;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
entry.state = "open";
|
|
49
|
+
entry.cachedError = null;
|
|
50
|
+
entry.reopenFailures = 0;
|
|
51
|
+
entry.nextReopenAt = 0;
|
|
52
|
+
entry.lastAccessAt = Date.now();
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { replaceExclusively, replaceUnregistered };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/narsil/restore-queue.ts
|
|
2
|
+
function restoreDepsOf(core, host) {
|
|
3
|
+
return {
|
|
4
|
+
...host,
|
|
5
|
+
executor: core.executor,
|
|
6
|
+
indexRegistry: core.indexRegistry,
|
|
7
|
+
durability: core.durability,
|
|
8
|
+
filesystemDurability: core.filesystemDurability,
|
|
9
|
+
embeddingAdapters: core.embeddingAdapters,
|
|
10
|
+
markAnalysisStale: core.analysisRebuild.markStale,
|
|
11
|
+
clearAnalysisStale: core.analysisRebuild.clearStale,
|
|
12
|
+
abandonAnalysisRebuild: core.analysisRebuild.abandon,
|
|
13
|
+
indexState: core.indexState,
|
|
14
|
+
copies: core.orchestrator,
|
|
15
|
+
forgetWatermark: core.watermarkNotifier.forget
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function queueRestore(core, host, restoresInFlight, indexName, data) {
|
|
19
|
+
const previous = restoresInFlight.get(indexName) ?? Promise.resolve();
|
|
20
|
+
const restored = previous.then(async () => {
|
|
21
|
+
const { restoreFromSnapshot } = await import('./snapshot-YC6TS4OP.mjs');
|
|
22
|
+
await restoreFromSnapshot(indexName, data, restoreDepsOf(core, host));
|
|
23
|
+
});
|
|
24
|
+
const settled = restored.then(
|
|
25
|
+
() => void 0,
|
|
26
|
+
() => void 0
|
|
27
|
+
);
|
|
28
|
+
restoresInFlight.set(indexName, settled);
|
|
29
|
+
void settled.then(() => {
|
|
30
|
+
if (restoresInFlight.get(indexName) === settled) restoresInFlight.delete(indexName);
|
|
31
|
+
});
|
|
32
|
+
return restored;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { queueRestore };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 './memory-
|
|
2
|
-
import { c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
3
|
-
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
4
|
-
import { N as Narsil } from './engine-
|
|
5
|
-
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-
|
|
6
|
-
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-
|
|
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 './memory-COdoGthn.js';
|
|
2
|
+
import { c as ServerOptions, N as NarsilServer } from './capabilities-BvxvFzVA.js';
|
|
3
|
+
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-BvxvFzVA.js';
|
|
4
|
+
import { N as Narsil } from './engine-BGt9lI1V.js';
|
|
5
|
+
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-BJmamiC4.js';
|
|
6
|
+
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-BJmamiC4.js';
|
|
7
7
|
import './schema-DttzM-ln.js';
|
|
8
8
|
import './adapters-79OIa4xm.js';
|
|
9
9
|
import './synonyms-CpOAHPa-.js';
|
|
10
|
-
import './config-
|
|
11
|
-
import './config-
|
|
10
|
+
import './config-6YBtxekG.js';
|
|
11
|
+
import './config-DPphZfuM.js';
|
|
12
12
|
import './index-ONAEaqtx.js';
|
|
13
13
|
import './types-Cb9kiY5P.js';
|
|
14
14
|
|
package/dist/server.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createRouteRunner, corsHeaderReader, createSharedRequestGate, MAIN_THREAD_GATE_SLOT, registerServerRoutes, 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, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, acceptorOf, createDocumentReadHandlers, sendError, respondError, respondJson, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, clearGateSlot, createDepartureWord, departureConfirmed, parseJson, validateCreateIndex, rejectInvalid, validateBatch, serializeBatchResult, validateDocumentBody, validateSuggest, validateQuery, refuseRegex, parseTaskListQuery, parseJsonOptional, validateRebalance, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, SERVER_CAPABILITIES, toHttpError, RELAY_STREAM_CHUNKS_IN_FLIGHT, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-
|
|
2
|
-
export { ASYNC_IMPORT_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-
|
|
3
|
-
import { validateIndexName } from './chunk-
|
|
1
|
+
import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createRouteRunner, corsHeaderReader, createSharedRequestGate, MAIN_THREAD_GATE_SLOT, registerServerRoutes, 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, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, acceptorOf, createDocumentReadHandlers, sendError, respondError, respondJson, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, clearGateSlot, createDepartureWord, departureConfirmed, parseJson, validateCreateIndex, rejectInvalid, validateBatch, serializeBatchResult, validateDocumentBody, validateSuggest, validateQuery, refuseRegex, parseTaskListQuery, parseJsonOptional, validateRebalance, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, SERVER_CAPABILITIES, toHttpError, RELAY_STREAM_CHUNKS_IN_FLIGHT, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-RUIXODYU.mjs';
|
|
2
|
+
export { ASYNC_IMPORT_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-RUIXODYU.mjs';
|
|
3
|
+
import { validateIndexName } from './chunk-GJZHU4FC.mjs';
|
|
4
4
|
import './chunk-DJHHF2L5.mjs';
|
|
5
5
|
import './chunk-P36MUFEJ.mjs';
|
|
6
|
-
import { engineCoreOf, providedDocId, resolveVectorText } from './chunk-
|
|
6
|
+
import { engineCoreOf, providedDocId, resolveVectorText } from './chunk-WLOF6HSP.mjs';
|
|
7
7
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
8
|
-
import './chunk-MKWUXWQH.mjs';
|
|
9
8
|
import './chunk-Q5DC6WAB.mjs';
|
|
9
|
+
import './chunk-ZHS44YKF.mjs';
|
|
10
10
|
import './chunk-TGP5M5R7.mjs';
|
|
11
11
|
import './chunk-U2BKYEC7.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-ES33L3HO.mjs';
|
|
13
13
|
import './chunk-WQBCBKY3.mjs';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-4ZJWRETC.mjs';
|
|
15
15
|
import './chunk-FGMGUDHX.mjs';
|
|
16
16
|
import './chunk-KEHK2O6P.mjs';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-BB7MASRQ.mjs';
|
|
18
18
|
import './chunk-7X5JST5L.mjs';
|
|
19
19
|
import './chunk-R6A773WK.mjs';
|
|
20
20
|
import './chunk-YTJCGKM4.mjs';
|
|
21
21
|
import { startIdleHeapCleanup } from './chunk-5XNIRLFC.mjs';
|
|
22
22
|
import './chunk-L5ORED7V.mjs';
|
|
23
|
-
import { NarsilError, ErrorCodes, ServerErrorCodes, isNarsilError } from './chunk-
|
|
24
|
-
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-
|
|
23
|
+
import { NarsilError, ErrorCodes, ServerErrorCodes, isNarsilError } from './chunk-SYWGORQB.mjs';
|
|
24
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-SYWGORQB.mjs';
|
|
25
25
|
import { randomUUID } from 'crypto';
|
|
26
26
|
import { createReadStream } from 'fs';
|
|
27
27
|
import { rm } from 'fs/promises';
|