bluera-knowledge 0.19.5 → 0.19.7

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.
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  summarizePayload,
4
4
  truncateForLog
5
- } from "./chunk-T7MENUKF.js";
5
+ } from "./chunk-JPJI3VMA.js";
6
6
 
7
7
  // src/crawl/intelligent-crawler.ts
8
8
  import { EventEmitter } from "events";
@@ -916,4 +916,4 @@ export {
916
916
  getCrawlStrategy,
917
917
  IntelligentCrawler
918
918
  };
919
- //# sourceMappingURL=chunk-JJYYK726.js.map
919
+ //# sourceMappingURL=chunk-TWX7MN5L.js.map
package/dist/index.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  ZilAdapter,
4
4
  runMCPServer,
5
5
  spawnBackgroundWorker
6
- } from "./chunk-VR5EDQTX.js";
6
+ } from "./chunk-6BC5OG4M.js";
7
7
  import {
8
8
  IntelligentCrawler,
9
9
  getCrawlStrategy
10
- } from "./chunk-JJYYK726.js";
10
+ } from "./chunk-TWX7MN5L.js";
11
11
  import {
12
12
  ASTParser,
13
13
  AdapterRegistry,
@@ -25,7 +25,7 @@ import {
25
25
  isRepoStoreDefinition,
26
26
  isWebStoreDefinition,
27
27
  ok
28
- } from "./chunk-T7MENUKF.js";
28
+ } from "./chunk-JPJI3VMA.js";
29
29
  import {
30
30
  createDocumentId
31
31
  } from "./chunk-CLIMKLTW.js";
@@ -340,10 +340,20 @@ declare class ManifestService {
340
340
 
341
341
  declare class EmbeddingEngine {
342
342
  private extractor;
343
+ private initPromise;
343
344
  private _dimensions;
345
+ private disposed;
344
346
  private readonly modelName;
345
347
  private readonly batchSize;
346
348
  constructor(modelName?: string, batchSize?: number);
349
+ /**
350
+ * Guard against use-after-dispose
351
+ */
352
+ private assertNotDisposed;
353
+ /**
354
+ * Initialize the embedding pipeline (concurrency-safe).
355
+ * Multiple concurrent calls will share the same initialization promise.
356
+ */
347
357
  initialize(): Promise<void>;
348
358
  embed(text: string): Promise<number[]>;
349
359
  embedBatch(texts: string[]): Promise<number[][]>;
@@ -360,6 +370,7 @@ declare class EmbeddingEngine {
360
370
  /**
361
371
  * Dispose the embedding pipeline to free resources.
362
372
  * Should be called before process exit to prevent ONNX runtime cleanup issues on macOS.
373
+ * After disposal, this engine cannot be used again.
363
374
  */
364
375
  dispose(): Promise<void>;
365
376
  }
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createMCPServer,
3
3
  runMCPServer
4
- } from "../chunk-VR5EDQTX.js";
5
- import "../chunk-T7MENUKF.js";
4
+ } from "../chunk-6BC5OG4M.js";
5
+ import "../chunk-JPJI3VMA.js";
6
6
  import "../chunk-CLIMKLTW.js";
7
7
  import "../chunk-HXBIIMYL.js";
8
8
  import "../chunk-DGUM43GV.js";
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  IntelligentCrawler
4
- } from "../chunk-JJYYK726.js";
4
+ } from "../chunk-TWX7MN5L.js";
5
5
  import {
6
6
  JobService,
7
7
  createLogger,
8
8
  createServices,
9
9
  destroyServices,
10
10
  shutdownLogger
11
- } from "../chunk-T7MENUKF.js";
11
+ } from "../chunk-JPJI3VMA.js";
12
12
  import {
13
13
  createDocumentId,
14
14
  createStoreId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluera-knowledge",
3
- "version": "0.19.5",
3
+ "version": "0.19.7",
4
4
  "description": "CLI tool for managing knowledge stores with semantic search",
5
5
  "type": "module",
6
6
  "bin": {