@arabold/docs-mcp-server 2.4.2 → 2.4.3

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 (34) hide show
  1. package/db/migrations/002-normalize-library-table.sql +5 -0
  2. package/db/migrations/003-normalize-vector-table.sql +5 -0
  3. package/db/migrations/004-complete-normalization.sql +7 -0
  4. package/db/migrations/007-dedupe-unversioned-versions.sql +5 -0
  5. package/db/migrations/009-add-pages-table.sql +10 -0
  6. package/db/migrations/014-rebuild-vector-partition-keys.sql +56 -0
  7. package/dist/HtmlDefuddleMiddleware-Cm0vQDqD.js +148 -0
  8. package/dist/HtmlDefuddleMiddleware-Cm0vQDqD.js.map +1 -0
  9. package/dist/assets/main.css +3 -1
  10. package/dist/assets/main.js +7845 -8777
  11. package/dist/assets/main.js.map +1 -1
  12. package/dist/env-DONvEfR5.js +30 -0
  13. package/dist/env-DONvEfR5.js.map +1 -0
  14. package/dist/index.js +10 -8
  15. package/dist/index.js.map +1 -1
  16. package/dist/logger-BBxstTD7.js +82 -0
  17. package/dist/logger-BBxstTD7.js.map +1 -0
  18. package/dist/main-BktKic6L.js +18646 -0
  19. package/dist/main-BktKic6L.js.map +1 -0
  20. package/dist/utils-B-zX5sgp.js +1113 -0
  21. package/dist/utils-B-zX5sgp.js.map +1 -0
  22. package/dist/utils-LjYa0nIu.js +2 -0
  23. package/package.json +61 -61
  24. package/public/assets/main.css +3 -1
  25. package/public/assets/main.js +7845 -8777
  26. package/public/assets/main.js.map +1 -1
  27. package/dist/HtmlDefuddleMiddleware-DjhdN_D2.js +0 -152
  28. package/dist/HtmlDefuddleMiddleware-DjhdN_D2.js.map +0 -1
  29. package/dist/logger-CLtABTNb.js +0 -99
  30. package/dist/logger-CLtABTNb.js.map +0 -1
  31. package/dist/main-WZKPkgC6.js +0 -20454
  32. package/dist/main-WZKPkgC6.js.map +0 -1
  33. package/dist/utils-CJgh41os.js +0 -1152
  34. package/dist/utils-CJgh41os.js.map +0 -1
@@ -1,1152 +0,0 @@
1
- import { execSync } from "node:child_process";
2
- import fs, { existsSync } from "node:fs";
3
- import { createInterface } from "node:readline";
4
- import { chromium } from "playwright";
5
- import EventEmitter from "node:events";
6
- import { l as logger, n as normalizeEnvValue } from "./logger-CLtABTNb.js";
7
- import { randomUUID } from "node:crypto";
8
- import path from "node:path";
9
- import { fileURLToPath } from "node:url";
10
- import envPaths from "env-paths";
11
- import { PostHog } from "posthog-node";
12
- let projectRoot = null;
13
- function getProjectRoot() {
14
- if (projectRoot) {
15
- return projectRoot;
16
- }
17
- const currentFilePath = fileURLToPath(import.meta.url);
18
- let currentDir = path.dirname(currentFilePath);
19
- while (true) {
20
- const packageJsonPath = path.join(currentDir, "package.json");
21
- if (fs.existsSync(packageJsonPath)) {
22
- projectRoot = currentDir;
23
- return currentDir;
24
- }
25
- const parentDir = path.dirname(currentDir);
26
- if (parentDir === currentDir) {
27
- throw new Error("Could not find project root containing package.json.");
28
- }
29
- currentDir = parentDir;
30
- }
31
- }
32
- function resolveStorePath(storePath) {
33
- let dbDir;
34
- if (storePath) {
35
- dbDir = path.resolve(storePath);
36
- } else {
37
- const projectRoot2 = getProjectRoot();
38
- const oldDbDir = path.join(projectRoot2, ".store");
39
- const oldDbPath = path.join(oldDbDir, "documents.db");
40
- const oldDbExists = fs.existsSync(oldDbPath);
41
- if (oldDbExists) {
42
- dbDir = oldDbDir;
43
- } else {
44
- const standardPaths = envPaths("docs-mcp-server", { suffix: "" });
45
- dbDir = standardPaths.data;
46
- }
47
- }
48
- try {
49
- fs.mkdirSync(dbDir, { recursive: true });
50
- } catch (error) {
51
- logger.warn(`⚠️ Failed to create database directory ${dbDir}: ${error}`);
52
- }
53
- return dbDir;
54
- }
55
- class TelemetryConfig {
56
- static instance;
57
- enabled = true;
58
- // Default to enabled
59
- constructor() {
60
- }
61
- isEnabled() {
62
- return this.enabled;
63
- }
64
- setEnabled(enabled) {
65
- this.enabled = enabled;
66
- }
67
- static getInstance() {
68
- if (!TelemetryConfig.instance) {
69
- TelemetryConfig.instance = new TelemetryConfig();
70
- }
71
- return TelemetryConfig.instance;
72
- }
73
- }
74
- function generateInstallationId(storePath) {
75
- try {
76
- const dataDir = resolveStorePath(storePath);
77
- const installationIdPath = path.join(dataDir, "installation.id");
78
- if (fs.existsSync(installationIdPath)) {
79
- const existingId = fs.readFileSync(installationIdPath, "utf8").trim();
80
- if (existingId) {
81
- return existingId;
82
- }
83
- }
84
- const newId = randomUUID();
85
- fs.mkdirSync(dataDir, { recursive: true });
86
- fs.writeFileSync(installationIdPath, newId, "utf8");
87
- return newId;
88
- } catch {
89
- return randomUUID();
90
- }
91
- }
92
- function shouldEnableTelemetry() {
93
- return TelemetryConfig.getInstance().isEnabled();
94
- }
95
- var EventType = /* @__PURE__ */ ((EventType2) => {
96
- EventType2["JOB_STATUS_CHANGE"] = "JOB_STATUS_CHANGE";
97
- EventType2["JOB_PROGRESS"] = "JOB_PROGRESS";
98
- EventType2["LIBRARY_CHANGE"] = "LIBRARY_CHANGE";
99
- EventType2["JOB_LIST_CHANGE"] = "JOB_LIST_CHANGE";
100
- return EventType2;
101
- })(EventType || {});
102
- const ServerEventName = {
103
- [
104
- "JOB_STATUS_CHANGE"
105
- /* JOB_STATUS_CHANGE */
106
- ]: "job-status-change",
107
- [
108
- "JOB_PROGRESS"
109
- /* JOB_PROGRESS */
110
- ]: "job-progress",
111
- [
112
- "LIBRARY_CHANGE"
113
- /* LIBRARY_CHANGE */
114
- ]: "library-change",
115
- [
116
- "JOB_LIST_CHANGE"
117
- /* JOB_LIST_CHANGE */
118
- ]: "job-list-change"
119
- };
120
- var PipelineJobStatus = /* @__PURE__ */ ((PipelineJobStatus2) => {
121
- PipelineJobStatus2["QUEUED"] = "queued";
122
- PipelineJobStatus2["RUNNING"] = "running";
123
- PipelineJobStatus2["COMPLETED"] = "completed";
124
- PipelineJobStatus2["FAILED"] = "failed";
125
- PipelineJobStatus2["CANCELLING"] = "cancelling";
126
- PipelineJobStatus2["CANCELLED"] = "cancelled";
127
- return PipelineJobStatus2;
128
- })(PipelineJobStatus || {});
129
- function camelToSnakeCase(str) {
130
- return str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
131
- }
132
- function convertPropertiesToSnakeCase(obj) {
133
- const result = {};
134
- for (const [key, value] of Object.entries(obj)) {
135
- const snakeKey = camelToSnakeCase(key);
136
- if (value && typeof value === "object" && !Array.isArray(value) && !(value instanceof Date)) {
137
- result[snakeKey] = convertPropertiesToSnakeCase(value);
138
- } else if (Array.isArray(value)) {
139
- result[snakeKey] = value.map(
140
- (item) => item && typeof item === "object" && !(item instanceof Date) ? convertPropertiesToSnakeCase(item) : item
141
- );
142
- } else {
143
- result[snakeKey] = value;
144
- }
145
- }
146
- return result;
147
- }
148
- function addPostHogStandardProperties(properties) {
149
- const result = { ...properties };
150
- if (properties.sessionId) {
151
- result.$session_id = properties.sessionId;
152
- delete result.sessionId;
153
- }
154
- if (properties.startTime) {
155
- result.$start_timestamp = properties.startTime.toISOString();
156
- delete result.startTime;
157
- }
158
- if (properties.appVersion) {
159
- result.$app_version = properties.appVersion;
160
- delete result.appVersion;
161
- }
162
- return result;
163
- }
164
- class PostHogClient {
165
- client;
166
- enabled;
167
- // PostHog configuration
168
- static CONFIG = {
169
- host: "https://app.posthog.com",
170
- // Performance optimizations
171
- flushAt: 20,
172
- // Batch size - send after 20 events
173
- flushInterval: 1e4,
174
- // 10 seconds - send after time
175
- // Privacy settings
176
- disableGeoip: true,
177
- // Don't collect IP geolocation
178
- disableSessionRecording: true,
179
- // Never record sessions
180
- disableSurveys: true,
181
- // No user surveys
182
- // Data handling
183
- persistence: "memory"
184
- // No disk persistence for privacy
185
- };
186
- constructor(enabled) {
187
- this.enabled = enabled;
188
- if (!this.enabled) {
189
- return;
190
- }
191
- try {
192
- this.client = new PostHog("phc_g7pXZZdUiAQXdnwUANjloQWMvO0amEDTBaeDSWgXgrQ", {
193
- host: PostHogClient.CONFIG.host,
194
- flushAt: PostHogClient.CONFIG.flushAt,
195
- flushInterval: PostHogClient.CONFIG.flushInterval,
196
- disableGeoip: PostHogClient.CONFIG.disableGeoip
197
- });
198
- logger.debug("PostHog client initialized");
199
- } catch (error) {
200
- logger.debug(
201
- `PostHog initialization failed: ${error instanceof Error ? error.message : "Unknown error"}`
202
- );
203
- this.enabled = false;
204
- }
205
- }
206
- /**
207
- * Send event to PostHog
208
- */
209
- capture(distinctId, event, properties) {
210
- if (!this.enabled || !this.client) return;
211
- try {
212
- const enhancedProperties = addPostHogStandardProperties(properties);
213
- const snakeCaseProperties = convertPropertiesToSnakeCase(enhancedProperties);
214
- this.client.capture({
215
- distinctId,
216
- event,
217
- properties: snakeCaseProperties
218
- });
219
- logger.debug(`PostHog event captured: ${event}`);
220
- } catch (error) {
221
- logger.debug(
222
- `PostHog capture error: ${error instanceof Error ? error.message : "Unknown error"}`
223
- );
224
- }
225
- }
226
- /**
227
- * Capture exception using PostHog's native error tracking
228
- */
229
- captureException(distinctId, error, properties) {
230
- if (!this.enabled || !this.client) return;
231
- try {
232
- const enhancedProperties = addPostHogStandardProperties(properties || {});
233
- const snakeCaseProperties = convertPropertiesToSnakeCase(enhancedProperties);
234
- this.client.captureException({
235
- error,
236
- distinctId,
237
- properties: snakeCaseProperties
238
- });
239
- logger.debug(`PostHog exception captured: ${error.constructor.name}`);
240
- } catch (captureError) {
241
- logger.debug(
242
- `PostHog captureException error: ${captureError instanceof Error ? captureError.message : "Unknown error"}`
243
- );
244
- }
245
- }
246
- /**
247
- * Graceful shutdown with event flushing
248
- */
249
- async shutdown() {
250
- if (this.client) {
251
- try {
252
- await this.client.shutdown();
253
- logger.debug("PostHog client shutdown complete");
254
- } catch (error) {
255
- logger.debug(
256
- `PostHog shutdown error: ${error instanceof Error ? error.message : "Unknown error"}`
257
- );
258
- }
259
- }
260
- }
261
- /**
262
- * Check if client is enabled and ready
263
- */
264
- isEnabled() {
265
- return this.enabled && !!this.client;
266
- }
267
- }
268
- var TelemetryEvent = /* @__PURE__ */ ((TelemetryEvent2) => {
269
- TelemetryEvent2["APP_STARTED"] = "app_started";
270
- TelemetryEvent2["APP_SHUTDOWN"] = "app_shutdown";
271
- TelemetryEvent2["CLI_COMMAND"] = "cli_command";
272
- TelemetryEvent2["TOOL_USED"] = "tool_used";
273
- TelemetryEvent2["PIPELINE_JOB_STARTED"] = "pipeline_job_started";
274
- TelemetryEvent2["PIPELINE_JOB_COMPLETED"] = "pipeline_job_completed";
275
- TelemetryEvent2["PIPELINE_JOB_FAILED"] = "pipeline_job_failed";
276
- return TelemetryEvent2;
277
- })(TelemetryEvent || {});
278
- class Telemetry {
279
- postHogClient;
280
- enabled;
281
- distinctId;
282
- globalContext = {};
283
- /**
284
- * Create a new Telemetry instance with proper initialization
285
- * This is the recommended way to create Telemetry instances
286
- */
287
- static create() {
288
- const config = TelemetryConfig.getInstance();
289
- const shouldEnable = config.isEnabled() && true;
290
- const telemetry2 = new Telemetry(shouldEnable);
291
- if (telemetry2.isEnabled()) {
292
- logger.debug("Telemetry enabled");
293
- } else if (!config.isEnabled()) {
294
- logger.debug("Telemetry disabled (user preference)");
295
- } else {
296
- logger.debug("Telemetry disabled");
297
- }
298
- return telemetry2;
299
- }
300
- /**
301
- * Private constructor - use Telemetry.create() instead
302
- */
303
- constructor(enabled = true) {
304
- this.enabled = enabled;
305
- this.distinctId = generateInstallationId();
306
- this.postHogClient = new PostHogClient(this.enabled);
307
- }
308
- /**
309
- * Set global application context that will be included in all events
310
- */
311
- setGlobalContext(context) {
312
- this.globalContext = { ...context };
313
- }
314
- /**
315
- * Get current global context
316
- */
317
- getGlobalContext() {
318
- return { ...this.globalContext };
319
- }
320
- track(event, properties = {}) {
321
- if (!this.enabled) return;
322
- const enrichedProperties = {
323
- ...this.globalContext,
324
- ...properties,
325
- timestamp: (/* @__PURE__ */ new Date()).toISOString()
326
- };
327
- logger.debug(`Tracking event: ${event}`);
328
- this.postHogClient.capture(this.distinctId, event, enrichedProperties);
329
- }
330
- /**
331
- * Capture exception using PostHog's native error tracking with global context
332
- */
333
- captureException(error, properties = {}) {
334
- if (!this.enabled) return;
335
- const enrichedProperties = {
336
- ...this.globalContext,
337
- ...properties,
338
- timestamp: (/* @__PURE__ */ new Date()).toISOString()
339
- };
340
- logger.debug(
341
- `Capturing exception: ${error instanceof Error ? error.message : String(error)}`
342
- );
343
- this.postHogClient.captureException(
344
- this.distinctId,
345
- error instanceof Error ? error : new Error(String(error)),
346
- enrichedProperties
347
- );
348
- }
349
- /**
350
- * Graceful shutdown with event flushing
351
- */
352
- async shutdown() {
353
- if (!this.enabled) return;
354
- await this.postHogClient.shutdown();
355
- }
356
- /**
357
- * Check if telemetry is enabled
358
- */
359
- isEnabled() {
360
- return this.enabled;
361
- }
362
- }
363
- let telemetryInstance = null;
364
- function getTelemetryInstance() {
365
- if (!telemetryInstance) {
366
- telemetryInstance = Telemetry.create();
367
- }
368
- return telemetryInstance;
369
- }
370
- function initTelemetry(options) {
371
- TelemetryConfig.getInstance().setEnabled(options.enabled);
372
- generateInstallationId(options.storePath);
373
- telemetryInstance = Telemetry.create();
374
- }
375
- const telemetry = new Proxy({}, {
376
- get(_target, prop) {
377
- const instance = getTelemetryInstance();
378
- const value = instance[prop];
379
- if (typeof value === "function") {
380
- return value.bind(instance);
381
- }
382
- return value;
383
- }
384
- });
385
- class TelemetryService {
386
- eventBus;
387
- unsubscribers = [];
388
- constructor(eventBus) {
389
- this.eventBus = eventBus;
390
- this.setupEventListeners();
391
- }
392
- /**
393
- * Sets up event listeners for pipeline events.
394
- */
395
- setupEventListeners() {
396
- const unsubStatusChange = this.eventBus.on(
397
- EventType.JOB_STATUS_CHANGE,
398
- this.handleJobStatusChange.bind(this)
399
- );
400
- const unsubProgress = this.eventBus.on(
401
- EventType.JOB_PROGRESS,
402
- this.handleJobProgress.bind(this)
403
- );
404
- this.unsubscribers.push(unsubStatusChange, unsubProgress);
405
- logger.debug("TelemetryService initialized and listening to events");
406
- }
407
- /**
408
- * Handles job status change events and tracks them to analytics.
409
- * Only tracks events for meaningful state transitions: started, completed, and failed.
410
- */
411
- handleJobStatusChange(job) {
412
- const duration = job.startedAt ? Date.now() - job.startedAt.getTime() : null;
413
- const queueWaitTime = job.startedAt && job.createdAt ? job.startedAt.getTime() - job.createdAt.getTime() : null;
414
- switch (job.status) {
415
- case PipelineJobStatus.RUNNING:
416
- telemetry.track(TelemetryEvent.PIPELINE_JOB_STARTED, {
417
- jobId: job.id,
418
- library: job.library,
419
- hasVersion: !!job.version,
420
- maxPagesConfigured: job.progressMaxPages || 0,
421
- queueWaitTimeMs: queueWaitTime
422
- });
423
- break;
424
- case PipelineJobStatus.COMPLETED:
425
- telemetry.track(TelemetryEvent.PIPELINE_JOB_COMPLETED, {
426
- jobId: job.id,
427
- library: job.library,
428
- durationMs: duration,
429
- pagesProcessed: job.progressPages || 0,
430
- maxPagesConfigured: job.progressMaxPages || 0,
431
- hasVersion: !!job.version,
432
- throughputPagesPerSecond: duration && job.progressPages ? Math.round(job.progressPages / duration * 1e3) : 0
433
- });
434
- break;
435
- case PipelineJobStatus.FAILED:
436
- telemetry.track(TelemetryEvent.PIPELINE_JOB_FAILED, {
437
- jobId: job.id,
438
- library: job.library,
439
- durationMs: duration,
440
- pagesProcessed: job.progressPages || 0,
441
- maxPagesConfigured: job.progressMaxPages || 0,
442
- hasVersion: !!job.version,
443
- hasError: !!job.error,
444
- errorMessage: job.error?.message
445
- });
446
- break;
447
- }
448
- }
449
- /**
450
- * Handles job progress events. Currently a no-op but can be extended
451
- * for progress-specific telemetry tracking.
452
- */
453
- handleJobProgress(_event) {
454
- }
455
- /**
456
- * Cleans up event listeners.
457
- */
458
- shutdown() {
459
- for (const unsubscribe of this.unsubscribers) {
460
- unsubscribe();
461
- }
462
- this.unsubscribers = [];
463
- logger.debug("TelemetryService shut down");
464
- }
465
- }
466
- class EventBusService {
467
- emitter;
468
- constructor() {
469
- this.emitter = new EventEmitter();
470
- this.emitter.setMaxListeners(100);
471
- }
472
- /**
473
- * Emit an event to all subscribers.
474
- */
475
- emit(eventType, payload) {
476
- logger.debug(`Event emitted: ${eventType}`);
477
- this.emitter.emit(eventType, payload);
478
- }
479
- /**
480
- * Subscribe to events of a specific type.
481
- * Returns an unsubscribe function.
482
- */
483
- on(eventType, listener) {
484
- this.emitter.on(eventType, listener);
485
- return () => this.emitter.off(eventType, listener);
486
- }
487
- /**
488
- * Subscribe to events once (auto-unsubscribes after first event).
489
- */
490
- once(eventType, listener) {
491
- this.emitter.once(eventType, listener);
492
- }
493
- /**
494
- * Remove a specific listener.
495
- */
496
- off(eventType, listener) {
497
- this.emitter.off(eventType, listener);
498
- }
499
- /**
500
- * Remove all listeners for a specific event type, or all listeners if no type specified.
501
- */
502
- removeAllListeners(eventType) {
503
- if (eventType === void 0) {
504
- this.emitter.removeAllListeners();
505
- } else {
506
- this.emitter.removeAllListeners(eventType);
507
- }
508
- }
509
- /**
510
- * Get the count of listeners for a specific event type.
511
- */
512
- listenerCount(eventType) {
513
- return this.emitter.listenerCount(eventType);
514
- }
515
- }
516
- class EmbeddingConfig {
517
- static instance = null;
518
- /**
519
- * Get the singleton instance of EmbeddingConfig.
520
- * Creates the instance if it doesn't exist.
521
- */
522
- static getInstance() {
523
- if (EmbeddingConfig.instance === null) {
524
- EmbeddingConfig.instance = new EmbeddingConfig();
525
- }
526
- return EmbeddingConfig.instance;
527
- }
528
- /**
529
- * Reset the singleton instance (useful for testing).
530
- */
531
- static resetInstance() {
532
- EmbeddingConfig.instance = null;
533
- }
534
- /**
535
- * Known dimensions for common embedding models.
536
- * This avoids expensive API calls for dimension detection in telemetry.
537
- *
538
- * Note: The "openai" provider also supports OpenAI-compatible APIs like:
539
- * - Ollama (local models)
540
- * - LMStudio (local models)
541
- * - Any service implementing OpenAI's embedding API
542
- */
543
- knownModelDimensions = {
544
- // OpenAI models (also works with Ollama, LMStudio, and other OpenAI-compatible APIs)
545
- "text-embedding-3-small": 1536,
546
- "text-embedding-3-large": 3072,
547
- "text-embedding-ada-002": 1536,
548
- // Google Vertex AI models
549
- "text-embedding-004": 768,
550
- "text-embedding-005": 768,
551
- "textembedding-gecko@003": 768,
552
- "textembedding-gecko@002": 768,
553
- "textembedding-gecko@001": 768,
554
- // Google Gemini models (with MRL support)
555
- "text-embedding-preview-0409": 768,
556
- "embedding-001": 768,
557
- "gemini-embedding-2-preview": 3072,
558
- // AWS Bedrock models
559
- // Amazon Titan models
560
- "amazon.titan-embed-text-v1": 1536,
561
- "amazon.titan-embed-text-v2:0": 1024,
562
- "amazon.titan-embed-image-v1": 1024,
563
- // Image embedding model
564
- // Cohere models
565
- "cohere.embed-english-v3": 1024,
566
- "cohere.embed-multilingual-v3": 1024,
567
- "Cohere/Cohere-embed-v4.0": 1536,
568
- "embed-v4.0": 1536,
569
- // SageMaker models (hosted on AWS SageMaker)
570
- "intfloat/multilingual-e5-large": 1024,
571
- "multilingual-e5-large": 1024,
572
- "text-embedding-multilingual-e5-large": 1024,
573
- // Additional AWS models that might be supported
574
- // Note: Some of these might be placeholders - verify dimensions before use
575
- // "amazon.nova-embed-multilingual-v1:0": 4096, // Commented out as noted in source
576
- // MTEB Leaderboard models (source: https://huggingface.co/spaces/mteb/leaderboard)
577
- // Top performing models from Massive Text Embedding Benchmark
578
- "sentence-transformers/all-MiniLM-L6-v2": 384,
579
- "gemini-embedding-001": 3072,
580
- "Qwen/Qwen3-Embedding-8B": 4096,
581
- "Qwen/Qwen3-Embedding-4B": 2560,
582
- "Qwen/Qwen3-Embedding-0.6B": 1024,
583
- "Linq-AI-Research/Linq-Embed-Mistral": 4096,
584
- "Alibaba-NLP/gte-Qwen2-7B-instruct": 3584,
585
- "intfloat/multilingual-e5-large-instruct": 1024,
586
- "Salesforce/SFR-Embedding-Mistral": 4096,
587
- "text-multilingual-embedding-002": 768,
588
- "GritLM/GritLM-7B": 4096,
589
- "GritLM/GritLM-8x7B": 4096,
590
- "intfloat/e5-mistral-7b-instruct": 4096,
591
- "Cohere/Cohere-embed-multilingual-v3.0": 1024,
592
- "Alibaba-NLP/gte-Qwen2-1.5B-instruct": 8960,
593
- "Lajavaness/bilingual-embedding-large": 1024,
594
- "Salesforce/SFR-Embedding-2_R": 4096,
595
- "NovaSearch/stella_en_1.5B_v5": 8960,
596
- "NovaSearch/jasper_en_vision_language_v1": 8960,
597
- "nvidia/NV-Embed-v2": 4096,
598
- "OrdalieTech/Solon-embeddings-large-0.1": 1024,
599
- "BAAI/bge-m3": 1024,
600
- "HIT-TMG/KaLM-embedding-multilingual-mini-v1": 896,
601
- "jinaai/jina-embeddings-v3": 1024,
602
- "Alibaba-NLP/gte-multilingual-base": 768,
603
- "Lajavaness/bilingual-embedding-base": 768,
604
- "HIT-TMG/KaLM-embedding-multilingual-mini-instruct-v1": 896,
605
- "nvidia/NV-Embed-v1": 4096,
606
- "Cohere/Cohere-embed-multilingual-light-v3.0": 384,
607
- "manu/bge-m3-custom-fr": 1024,
608
- "Lajavaness/bilingual-embedding-small": 384,
609
- "Snowflake/snowflake-arctic-embed-l-v2.0": 1024,
610
- "intfloat/multilingual-e5-base": 768,
611
- "voyage-3-lite": 512,
612
- "voyage-3": 1024,
613
- "voyage-3-large": 1024,
614
- "voyage-3.5": 1024,
615
- "voyage-4": 1024,
616
- "voyage-4-large": 1024,
617
- "voyage-4-lite": 1024,
618
- "voyage-code-3": 1024,
619
- "intfloat/multilingual-e5-small": 384,
620
- "Alibaba-NLP/gte-Qwen1.5-7B-instruct": 4096,
621
- "Snowflake/snowflake-arctic-embed-m-v2.0": 768,
622
- "deepvk/USER-bge-m3": 1024,
623
- "Cohere/Cohere-embed-english-v3.0": 1024,
624
- "Omartificial-Intelligence-Space/Arabic-labse-Matryoshka": 768,
625
- "ibm-granite/granite-embedding-278m-multilingual": 768,
626
- "NovaSearch/stella_en_400M_v5": 4096,
627
- "omarelshehy/arabic-english-sts-matryoshka": 1024,
628
- "sentence-transformers/paraphrase-multilingual-mpnet-base-v2": 768,
629
- "Omartificial-Intelligence-Space/Arabic-all-nli-triplet-Matryoshka": 768,
630
- "Haon-Chen/speed-embedding-7b-instruct": 4096,
631
- "sentence-transformers/LaBSE": 768,
632
- "WhereIsAI/UAE-Large-V1": 1024,
633
- "ibm-granite/granite-embedding-107m-multilingual": 384,
634
- "mixedbread-ai/mxbai-embed-large-v1": 1024,
635
- "intfloat/e5-large-v2": 1024,
636
- "avsolatorio/GIST-large-Embedding-v0": 1024,
637
- "sdadas/mmlw-e5-large": 1024,
638
- "nomic-ai/nomic-embed-text-v1": 768,
639
- "nomic-embed-text-v1": 768,
640
- "nomic-ai/nomic-embed-text-v1-ablated": 768,
641
- "nomic-ai/nomic-embed-text-v2-moe": 768,
642
- "nomic-ai/modernbert-embed-base": 768,
643
- "nomic-ai/nomic-embed-code": 3584,
644
- "intfloat/e5-base-v2": 768,
645
- "BAAI/bge-large-en-v1.5": 1024,
646
- "intfloat/e5-large": 1024,
647
- "Omartificial-Intelligence-Space/Arabic-MiniLM-L12-v2-all-nli-triplet": 384,
648
- "Cohere/Cohere-embed-english-light-v3.0": 384,
649
- "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2": 768,
650
- "Gameselo/STS-multilingual-mpnet-base-v2": 768,
651
- "thenlper/gte-large": 1024,
652
- "avsolatorio/GIST-Embedding-v0": 768,
653
- "nomic-ai/nomic-embed-text-v1-unsupervised": 768,
654
- "infgrad/stella-base-en-v2": 768,
655
- "avsolatorio/NoInstruct-small-Embedding-v0": 384,
656
- "dwzhu/e5-base-4k": 768,
657
- "sdadas/mmlw-e5-base": 768,
658
- "voyage-multilingual-2": 1024,
659
- "McGill-NLP/LLM2Vec-Mistral-7B-Instruct-v2-mntp-supervised": 4096,
660
- "BAAI/bge-base-en-v1.5": 768,
661
- "avsolatorio/GIST-small-Embedding-v0": 384,
662
- "sdadas/mmlw-roberta-large": 1024,
663
- "nomic-ai/nomic-embed-text-v1.5": 768,
664
- "nomic-embed-text-v1.5": 768,
665
- "text-embedding-nomic-embed-text-v1.5": 768,
666
- "minishlab/potion-multilingual-128M": 256,
667
- "shibing624/text2vec-base-multilingual": 384,
668
- "thenlper/gte-base": 768,
669
- "intfloat/e5-small-v2": 384,
670
- "intfloat/e5-base": 768,
671
- "sentence-transformers/static-similarity-mrl-multilingual-v1": 1024,
672
- "manu/sentence_croissant_alpha_v0.3": 2048,
673
- "BAAI/bge-small-en-v1.5": 512,
674
- "thenlper/gte-small": 384,
675
- "sdadas/mmlw-e5-small": 384,
676
- "manu/sentence_croissant_alpha_v0.4": 2048,
677
- "manu/sentence_croissant_alpha_v0.2": 2048,
678
- "abhinand/MedEmbed-small-v0.1": 384,
679
- "ibm-granite/granite-embedding-125m-english": 768,
680
- "intfloat/e5-small": 384,
681
- "voyage-large-2-instruct": 1024,
682
- "sdadas/mmlw-roberta-base": 768,
683
- "Snowflake/snowflake-arctic-embed-l": 1024,
684
- "Mihaiii/Ivysaur": 384,
685
- "Snowflake/snowflake-arctic-embed-m-long": 768,
686
- "bigscience/sgpt-bloom-7b1-msmarco": 4096,
687
- "avsolatorio/GIST-all-MiniLM-L6-v2": 384,
688
- "sergeyzh/LaBSE-ru-turbo": 768,
689
- "sentence-transformers/all-mpnet-base-v2": 768,
690
- "Snowflake/snowflake-arctic-embed-m": 768,
691
- "Snowflake/snowflake-arctic-embed-s": 384,
692
- "sentence-transformers/all-MiniLM-L12-v2": 384,
693
- "Mihaiii/gte-micro-v4": 384,
694
- "Snowflake/snowflake-arctic-embed-m-v1.5": 768,
695
- "cointegrated/LaBSE-en-ru": 768,
696
- "Mihaiii/Bulbasaur": 384,
697
- "ibm-granite/granite-embedding-30m-english": 384,
698
- "deepfile/embedder-100p": 768,
699
- "Jaume/gemma-2b-embeddings": 2048,
700
- "OrlikB/KartonBERT-USE-base-v1": 768,
701
- "izhx/udever-bloom-7b1": 4096,
702
- "izhx/udever-bloom-1b1": 1024,
703
- "brahmairesearch/slx-v0.1": 384,
704
- "Mihaiii/Wartortle": 384,
705
- "izhx/udever-bloom-3b": 2048,
706
- "deepvk/USER-base": 768,
707
- "ai-forever/ru-en-RoSBERTa": 1024,
708
- "McGill-NLP/LLM2Vec-Mistral-7B-Instruct-v2-mntp-unsup-simcse": 4096,
709
- "Mihaiii/Venusaur": 384,
710
- "Snowflake/snowflake-arctic-embed-xs": 384,
711
- "jinaai/jina-embedding-b-en-v1": 768,
712
- "Mihaiii/gte-micro": 384,
713
- "aari1995/German_Semantic_STS_V2": 1024,
714
- "Mihaiii/Squirtle": 384,
715
- "OrlikB/st-polish-kartonberta-base-alpha-v1": 768,
716
- "sergeyzh/rubert-tiny-turbo": 312,
717
- "minishlab/potion-base-8M": 256,
718
- "minishlab/M2V_base_glove_subword": 256,
719
- "jinaai/jina-embedding-s-en-v1": 512,
720
- "minishlab/potion-base-4M": 128,
721
- "minishlab/M2V_base_output": 256,
722
- "DeepPavlov/rubert-base-cased-sentence": 768,
723
- "jinaai/jina-embeddings-v2-small-en": 512,
724
- "cointegrated/rubert-tiny2": 312,
725
- "minishlab/M2V_base_glove": 256,
726
- "cointegrated/rubert-tiny": 312,
727
- "silma-ai/silma-embeddding-matryoshka-v0.1": 768,
728
- "DeepPavlov/rubert-base-cased": 768,
729
- "Omartificial-Intelligence-Space/Arabic-mpnet-base-all-nli-triplet": 768,
730
- "izhx/udever-bloom-560m": 1024,
731
- "minishlab/potion-base-2M": 64,
732
- "DeepPavlov/distilrubert-small-cased-conversational": 768,
733
- "consciousAI/cai-lunaris-text-embeddings": 1024,
734
- "deepvk/deberta-v1-base": 768,
735
- "Omartificial-Intelligence-Space/Arabert-all-nli-triplet-Matryoshka": 768,
736
- "Omartificial-Intelligence-Space/Marbert-all-nli-triplet-Matryoshka": 768,
737
- "ai-forever/sbert_large_mt_nlu_ru": 1024,
738
- "ai-forever/sbert_large_nlu_ru": 1024,
739
- "malenia1/ternary-weight-embedding": 1024,
740
- "jinaai/jina-embeddings-v2-base-en": 768,
741
- "VPLabs/SearchMap_Preview": 4096,
742
- "Hum-Works/lodestone-base-4096-v1": 768,
743
- "jinaai/jina-embeddings-v4": 2048
744
- };
745
- runtimeDetectedDimensionModels = /* @__PURE__ */ new Set([
746
- "novasearch/stella_en_1.5b_v5",
747
- "stella_en_1.5b_v5",
748
- "novasearch/stella_en_400m_v5",
749
- "dunzhang/stella_en_400m_v5",
750
- "stella_en_400m_v5",
751
- "novasearch/jasper_en_vision_language_v1",
752
- "jasper_en_vision_language_v1"
753
- ]);
754
- /**
755
- * Lowercase lookup map for case-insensitive model dimension queries.
756
- * Built lazily from knownModelDimensions to ensure consistency.
757
- */
758
- modelLookup;
759
- constructor() {
760
- this.modelLookup = /* @__PURE__ */ new Map();
761
- for (const [model, dimensions] of Object.entries(this.knownModelDimensions)) {
762
- this.modelLookup.set(model.toLowerCase(), dimensions);
763
- }
764
- }
765
- findKnownDimension(model) {
766
- const normalized = model.toLowerCase();
767
- if (this.runtimeDetectedDimensionModels.has(normalized)) {
768
- return null;
769
- }
770
- const exact = this.modelLookup?.get(normalized);
771
- if (exact !== void 0) {
772
- return exact;
773
- }
774
- const slashIndex = normalized.lastIndexOf("/");
775
- if (slashIndex !== -1) {
776
- const suffix = normalized.substring(slashIndex + 1);
777
- if (this.runtimeDetectedDimensionModels.has(suffix)) {
778
- return null;
779
- }
780
- return this.modelLookup?.get(suffix) ?? null;
781
- }
782
- return null;
783
- }
784
- /**
785
- * Parse embedding model configuration from a provided model specification.
786
- * This is a synchronous operation that extracts provider, model, and known dimensions.
787
- *
788
- * Supports various providers:
789
- * - openai: OpenAI models and OpenAI-compatible APIs (Ollama, LMStudio, etc.)
790
- * - vertex: Google Cloud Vertex AI
791
- * - gemini: Google Generative AI
792
- * - aws: AWS Bedrock models
793
- * - microsoft: Azure OpenAI
794
- * - sagemaker: AWS SageMaker hosted models
795
- *
796
- * @param modelSpec Model specification (e.g., "openai:text-embedding-3-small"), defaults to "text-embedding-3-small"
797
- * @returns Parsed embedding model configuration
798
- */
799
- parse(modelSpec) {
800
- const spec = normalizeEnvValue(modelSpec || "text-embedding-3-small");
801
- const colonIndex = spec.indexOf(":");
802
- let provider;
803
- let model;
804
- if (colonIndex === -1) {
805
- provider = "openai";
806
- model = spec;
807
- } else {
808
- provider = spec.substring(0, colonIndex);
809
- model = spec.substring(colonIndex + 1);
810
- }
811
- const dimensions = this.findKnownDimension(model);
812
- return {
813
- provider,
814
- model,
815
- dimensions,
816
- modelSpec: spec
817
- };
818
- }
819
- /**
820
- * Get the known dimensions for a specific model.
821
- * Returns null if the model dimensions are not known.
822
- * Uses case-insensitive lookup.
823
- *
824
- * @param model The model name (e.g., "text-embedding-3-small")
825
- * @returns Known dimensions or null
826
- */
827
- getKnownDimensions(model) {
828
- return this.findKnownDimension(model);
829
- }
830
- /**
831
- * Add or update known dimensions for a model.
832
- * This can be used to cache discovered dimensions.
833
- * Stores both original case and lowercase for consistent lookup.
834
- *
835
- * @param model The model name
836
- * @param dimensions The dimensions to cache
837
- */
838
- setKnownDimensions(model, dimensions) {
839
- this.knownModelDimensions[model] = dimensions;
840
- if (this.modelLookup) {
841
- this.modelLookup.set(model.toLowerCase(), dimensions);
842
- }
843
- }
844
- /**
845
- * Static method to parse embedding model configuration using the singleton instance.
846
- * This maintains backward compatibility while using the class-based approach.
847
- */
848
- static parseEmbeddingConfig(modelSpec) {
849
- return EmbeddingConfig.getInstance().parse(modelSpec);
850
- }
851
- /**
852
- * Static method to get known model dimensions using the singleton instance.
853
- * This maintains backward compatibility while using the class-based approach.
854
- */
855
- static getKnownModelDimensions(model) {
856
- return EmbeddingConfig.getInstance().getKnownDimensions(model);
857
- }
858
- /**
859
- * Static method to set known model dimensions using the singleton instance.
860
- * This maintains backward compatibility while using the class-based approach.
861
- */
862
- static setKnownModelDimensions(model, dimensions) {
863
- EmbeddingConfig.getInstance().setKnownDimensions(model, dimensions);
864
- }
865
- }
866
- function getEventBus(argv) {
867
- const eventBus = argv._eventBus;
868
- if (!eventBus) {
869
- throw new Error("EventBusService not initialized");
870
- }
871
- return eventBus;
872
- }
873
- function getGlobalOptions(argv) {
874
- return argv;
875
- }
876
- function ensurePlaywrightBrowsersInstalled() {
877
- if (process.env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD === "1") {
878
- logger.debug(
879
- "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD is set, skipping Playwright browser install."
880
- );
881
- return;
882
- }
883
- const chromiumEnvPath = process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH;
884
- if (chromiumEnvPath && existsSync(chromiumEnvPath)) {
885
- logger.debug(
886
- `PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH is set to '${chromiumEnvPath}', skipping Playwright browser install.`
887
- );
888
- return;
889
- }
890
- try {
891
- const chromiumPath = chromium.executablePath();
892
- if (!chromiumPath || !existsSync(chromiumPath)) {
893
- throw new Error("Playwright Chromium browser not found");
894
- }
895
- } catch (error) {
896
- logger.debug(String(error));
897
- try {
898
- logger.info(
899
- "🌐 Installing Playwright Chromium browser... (this may take a moment)"
900
- );
901
- execSync("npm exec -y playwright install --no-shell --with-deps chromium", {
902
- stdio: "ignore",
903
- // Suppress output
904
- cwd: getProjectRoot()
905
- });
906
- } catch (_installErr) {
907
- logger.error(
908
- "❌ Failed to install Playwright browsers automatically. Please run:\n npx playwright install --no-shell --with-deps chromium\nand try again."
909
- );
910
- process.exit(1);
911
- }
912
- }
913
- }
914
- function resolveProtocol(protocol) {
915
- if (protocol === "auto") {
916
- if (!process.stdin.isTTY && !process.stdout.isTTY) {
917
- return "stdio";
918
- }
919
- return "http";
920
- }
921
- if (protocol === "stdio" || protocol === "http") {
922
- return protocol;
923
- }
924
- throw new Error(`Invalid protocol: ${protocol}. Must be 'auto', 'stdio', or 'http'`);
925
- }
926
- function validateResumeFlag(resume, serverUrl) {
927
- if (resume && serverUrl) {
928
- throw new Error(
929
- "--resume flag is incompatible with --server-url. External workers handle their own job recovery."
930
- );
931
- }
932
- }
933
- function validatePort(portString) {
934
- const port = Number.parseInt(portString, 10);
935
- if (Number.isNaN(port) || port < 1 || port > 65535) {
936
- throw new Error("Invalid port number");
937
- }
938
- return port;
939
- }
940
- function validateHost(hostString) {
941
- const trimmed = hostString.trim();
942
- if (!trimmed) {
943
- throw new Error("Host cannot be empty");
944
- }
945
- if (trimmed.includes(" ") || trimmed.includes(" ") || trimmed.includes("\n")) {
946
- throw new Error("Host cannot contain whitespace");
947
- }
948
- return trimmed;
949
- }
950
- function createAppServerConfig(options) {
951
- return {
952
- enableWebInterface: options.enableWebInterface ?? false,
953
- enableMcpServer: options.enableMcpServer ?? true,
954
- enableApiServer: options.enableApiServer ?? false,
955
- enableWorker: options.enableWorker ?? true,
956
- port: options.port,
957
- externalWorkerUrl: options.externalWorkerUrl,
958
- showLogo: options.showLogo ?? true,
959
- startupContext: options.startupContext
960
- };
961
- }
962
- function parseHeaders(headerOptions) {
963
- const headers = {};
964
- if (Array.isArray(headerOptions)) {
965
- for (const entry of headerOptions) {
966
- const idx = entry.indexOf(":");
967
- if (idx > 0) {
968
- const name = entry.slice(0, idx).trim();
969
- const value = entry.slice(idx + 1).trim();
970
- if (name) headers[name] = value;
971
- }
972
- }
973
- }
974
- return headers;
975
- }
976
- function parseAuthConfig(options) {
977
- if (!options.authEnabled) {
978
- return void 0;
979
- }
980
- return {
981
- enabled: true,
982
- issuerUrl: options.authIssuerUrl,
983
- audience: options.authAudience,
984
- scopes: ["openid", "profile"]
985
- // Default scopes for OAuth2/OIDC
986
- };
987
- }
988
- function validateAuthConfig(authConfig) {
989
- if (!authConfig.enabled) {
990
- return;
991
- }
992
- const errors = [];
993
- if (!authConfig.issuerUrl) {
994
- errors.push("--auth-issuer-url is required when auth is enabled");
995
- } else {
996
- try {
997
- const url = new URL(authConfig.issuerUrl);
998
- if (url.protocol !== "https:") {
999
- errors.push("Issuer URL must use HTTPS protocol");
1000
- }
1001
- } catch {
1002
- errors.push("Issuer URL must be a valid URL");
1003
- }
1004
- }
1005
- if (!authConfig.audience) {
1006
- errors.push("--auth-audience is required when auth is enabled");
1007
- } else {
1008
- try {
1009
- const url = new URL(authConfig.audience);
1010
- if (url.protocol === "http:" && url.hostname !== "localhost") {
1011
- logger.warn(
1012
- "⚠️ Audience uses HTTP protocol - consider using HTTPS for production"
1013
- );
1014
- }
1015
- if (url.hash) {
1016
- errors.push("Audience must not contain URL fragments");
1017
- }
1018
- } catch {
1019
- if (authConfig.audience.startsWith("urn:")) {
1020
- const urnParts = authConfig.audience.split(":");
1021
- if (urnParts.length < 3 || !urnParts[1] || !urnParts[2]) {
1022
- errors.push("URN audience must follow format: urn:namespace:specific-string");
1023
- }
1024
- } else {
1025
- errors.push(
1026
- "Audience must be a valid absolute URL or URN (e.g., https://api.example.com or urn:company:service)"
1027
- );
1028
- }
1029
- }
1030
- }
1031
- if (errors.length > 0) {
1032
- throw new Error(`Auth configuration validation failed:
1033
- ${errors.join("\n")}`);
1034
- }
1035
- }
1036
- function warnHttpUsage(authConfig, port) {
1037
- if (!authConfig?.enabled) {
1038
- return;
1039
- }
1040
- const isLocalhost = process.env.NODE_ENV !== "production" || port === 6280 || // default dev port
1041
- process.env.HOSTNAME?.includes("localhost");
1042
- if (!isLocalhost) {
1043
- logger.warn(
1044
- "⚠️ Authentication is enabled but running over HTTP in production. Consider using HTTPS for security."
1045
- );
1046
- }
1047
- }
1048
- function createEventServices() {
1049
- const eventBus = new EventBusService();
1050
- const telemetryService = new TelemetryService(eventBus);
1051
- return { eventBus, telemetryService };
1052
- }
1053
- function resolveEmbeddingContext(embeddingModel) {
1054
- try {
1055
- const modelSpec = embeddingModel;
1056
- if (!modelSpec) {
1057
- logger.debug("No embedding model specified. Embeddings are disabled.");
1058
- return null;
1059
- }
1060
- logger.debug(`Resolving embedding configuration for model: ${modelSpec}`);
1061
- return EmbeddingConfig.parseEmbeddingConfig(modelSpec);
1062
- } catch (error) {
1063
- logger.debug(`Failed to resolve embedding configuration: ${error}`);
1064
- return null;
1065
- }
1066
- }
1067
- function promptModelChangeConfirmation(previousModel, previousDimension, currentModel, currentDimension) {
1068
- return new Promise((resolve) => {
1069
- console.error(
1070
- `
1071
- ⚠️ Embedding model change detected:
1072
- Previous: ${previousModel} (${previousDimension} dimensions)
1073
- Current: ${currentModel} (${currentDimension} dimensions)
1074
-
1075
- All existing embedding vectors will be invalidated.
1076
- Libraries must be re-scraped to restore vector search.
1077
- Full-text search will continue working for all existing documents.
1078
- `
1079
- );
1080
- const rl = createInterface({
1081
- input: process.stdin,
1082
- output: process.stderr
1083
- });
1084
- rl.question(" Proceed with model change? (y/N) ", (answer) => {
1085
- rl.close();
1086
- const confirmed = answer.trim().toLowerCase() === "y";
1087
- resolve(confirmed);
1088
- });
1089
- });
1090
- }
1091
- async function handleEmbeddingModelChange(error, service) {
1092
- if (!process.stdin.isTTY || !process.stdout.isTTY) {
1093
- throw error;
1094
- }
1095
- const confirmed = await promptModelChangeConfirmation(
1096
- error.previousModel,
1097
- error.previousDimension,
1098
- error.currentModel,
1099
- error.currentDimension
1100
- );
1101
- if (!confirmed) {
1102
- throw new Error(
1103
- "Embedding model change rejected. Startup aborted.\nRestore the previous embedding model configuration to continue without changes."
1104
- );
1105
- }
1106
- await service.resolveModelChange();
1107
- }
1108
- const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1109
- __proto__: null,
1110
- createAppServerConfig,
1111
- createEventServices,
1112
- ensurePlaywrightBrowsersInstalled,
1113
- getEventBus,
1114
- getGlobalOptions,
1115
- handleEmbeddingModelChange,
1116
- parseAuthConfig,
1117
- parseHeaders,
1118
- resolveEmbeddingContext,
1119
- resolveProtocol,
1120
- validateAuthConfig,
1121
- validateHost,
1122
- validatePort,
1123
- validateResumeFlag,
1124
- warnHttpUsage
1125
- }, Symbol.toStringTag, { value: "Module" }));
1126
- export {
1127
- EmbeddingConfig as E,
1128
- PipelineJobStatus as P,
1129
- ServerEventName as S,
1130
- TelemetryEvent as T,
1131
- EventBusService as a,
1132
- EventType as b,
1133
- TelemetryService as c,
1134
- createAppServerConfig as d,
1135
- ensurePlaywrightBrowsersInstalled as e,
1136
- getProjectRoot as f,
1137
- getEventBus as g,
1138
- handleEmbeddingModelChange as h,
1139
- initTelemetry as i,
1140
- parseHeaders as j,
1141
- resolveStorePath as k,
1142
- validateHost as l,
1143
- validatePort as m,
1144
- parseAuthConfig as p,
1145
- resolveProtocol as r,
1146
- shouldEnableTelemetry as s,
1147
- telemetry as t,
1148
- utils as u,
1149
- validateAuthConfig as v,
1150
- warnHttpUsage as w
1151
- };
1152
- //# sourceMappingURL=utils-CJgh41os.js.map