bluera-knowledge 0.18.0 → 0.18.2

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/index.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  ZilAdapter,
4
4
  runMCPServer,
5
5
  spawnBackgroundWorker
6
- } from "./chunk-EZXJ3W5X.js";
6
+ } from "./chunk-NYRKKRRA.js";
7
7
  import {
8
8
  IntelligentCrawler,
9
9
  getCrawlStrategy
10
- } from "./chunk-VUGQ7HAR.js";
10
+ } from "./chunk-JSCOGKNU.js";
11
11
  import {
12
12
  ASTParser,
13
13
  AdapterRegistry,
@@ -25,11 +25,12 @@ import {
25
25
  isRepoStoreDefinition,
26
26
  isWebStoreDefinition,
27
27
  ok
28
- } from "./chunk-RDDGZIDL.js";
28
+ } from "./chunk-YMSMKOMF.js";
29
29
  import {
30
30
  createDocumentId
31
31
  } from "./chunk-CLIMKLTW.js";
32
32
  import "./chunk-HXBIIMYL.js";
33
+ import "./chunk-DGUM43GV.js";
33
34
 
34
35
  // src/cli/commands/crawl.ts
35
36
  import { createHash } from "crypto";
@@ -305,7 +306,7 @@ function createIndexCommand(getOptions) {
305
306
  return;
306
307
  }
307
308
  const appConfig = await services.config.load();
308
- const { WatchService } = await import("./watch.service-VDSUQ72Z.js");
309
+ const { WatchService } = await import("./watch.service-NXRWLJG6.js");
309
310
  const watchService = new WatchService(services.index, services.lance, services.embeddings, {
310
311
  ignorePatterns: appConfig.indexing.ignorePatterns
311
312
  });
@@ -860,6 +861,8 @@ async function handleAddRepo(args, options = {}) {
860
861
  console.log(`Location: ${result.data.path}`);
861
862
  }
862
863
  console.log("\nIndexing...");
864
+ services.lance.setDimensions(await services.embeddings.ensureDimensions());
865
+ await services.lance.initialize(result.data.id);
863
866
  const indexResult = await services.index.indexStore(result.data);
864
867
  if (indexResult.success) {
865
868
  console.log(`Indexed ${String(indexResult.data.filesIndexed)} files`);
@@ -895,6 +898,8 @@ async function handleAddFolder(args, options = {}) {
895
898
  console.log(`Location: ${result.data.path}`);
896
899
  }
897
900
  console.log("\nIndexing...");
901
+ services.lance.setDimensions(await services.embeddings.ensureDimensions());
902
+ await services.lance.initialize(result.data.id);
898
903
  const indexResult = await services.index.indexStore(result.data);
899
904
  if (indexResult.success) {
900
905
  console.log(`Indexed ${String(indexResult.data.filesIndexed)} files`);