@delali/narsil 0.3.1-next.130 → 0.3.1-next.131

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.
@@ -1,6 +1,6 @@
1
1
  import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
2
- import { C as ClusterNamespace } from './config-CzB9YvF_.js';
3
- import { h as TaskStore } from './tasks-BfF-VRhm.js';
2
+ import { C as ClusterNamespace } from './config-CmYJO34X.js';
3
+ import { E as ErrorDetail, h as TaskStore } from './tasks-Co8HfRD7.js';
4
4
 
5
5
  /**
6
6
  * Context handed to {@link OnRequestHook} for every inbound request, captured
@@ -256,14 +256,7 @@ interface NarsilServer {
256
256
  */
257
257
  interface ErrorEnvelope {
258
258
  /** This describes the failure. */
259
- error: {
260
- /** This code comes from either {@link ServerErrorCodes} or {@link ErrorCodes}. */
261
- code: string;
262
- /** This describes the failure, for a log or a person. */
263
- message: string;
264
- /** These values are behind the failure, such as the field or limit involved. */
265
- details?: Record<string, unknown>;
266
- };
259
+ error: ErrorDetail;
267
260
  }
268
261
 
269
262
  /**
@@ -1,4 +1,4 @@
1
- import { sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-XABMCBHA.mjs';
1
+ import { sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-RCMNL7RI.mjs';
2
2
  import { ServerErrorCodes } from './chunk-CZ7ISLXA.mjs';
3
3
  import { rm } from 'fs/promises';
4
4
  import path from 'path';
@@ -1,4 +1,4 @@
1
- import { sendRelayed, parseJson, validateQuery, rejectInvalid, refuseRegex, respondJson, withServerRerankWindow, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerServerRoutes, closeWhenTheProcessExits, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, serverRoutes, validateSuggest, SEARCH_CLOCK_SAMPLE_UNITS, awaitDepartureConfirmation, departureConfirmation, REQUEST_THREAD_DEPARTURE_DRAIN_MS, departureConfirmed, encodeJson } from './chunk-XABMCBHA.mjs';
1
+ import { sendRelayed, parseJson, validateQuery, rejectInvalid, refuseRegex, respondJson, withServerRerankWindow, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerServerRoutes, closeWhenTheProcessExits, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, serverRoutes, validateSuggest, SEARCH_CLOCK_SAMPLE_UNITS, awaitDepartureConfirmation, departureConfirmation, REQUEST_THREAD_DEPARTURE_DRAIN_MS, departureConfirmed, encodeJson } from './chunk-RCMNL7RI.mjs';
2
2
  import { withRerankQueryText } from './chunk-KZ3NX2P7.mjs';
3
3
  import { executeListDocuments, executeSuggest, executeQuery, lazyQueryBinding, executePreflight } from './chunk-6M6SDH3S.mjs';
4
4
  import { holdsQuotedText, resolveProjection, projectionKeepsField, setNestedValue } from './chunk-2MKX2SCO.mjs';