bluera-knowledge 0.20.0 → 0.21.0

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-OZIVRLZE.js";
6
+ } from "./chunk-BZQ7KWEE.js";
7
7
  import {
8
8
  IntelligentCrawler,
9
9
  getCrawlStrategy
10
- } from "./chunk-26MBEEKM.js";
10
+ } from "./chunk-VNHZ534Q.js";
11
11
  import {
12
12
  ASTParser,
13
13
  AdapterRegistry,
@@ -25,11 +25,13 @@ import {
25
25
  isRepoStoreDefinition,
26
26
  isWebStoreDefinition,
27
27
  ok
28
- } from "./chunk-PZE2MO7H.js";
28
+ } from "./chunk-ZR23KJPJ.js";
29
29
  import {
30
30
  createDocumentId
31
31
  } from "./chunk-CLIMKLTW.js";
32
- import "./chunk-HXBIIMYL.js";
32
+ import {
33
+ validateStoreModelCompatibility
34
+ } from "./chunk-H25AEF47.js";
33
35
  import "./chunk-DGUM43GV.js";
34
36
 
35
37
  // src/cli/commands/crawl.ts
@@ -250,6 +252,10 @@ function createIndexCommand(getOptions) {
250
252
  }
251
253
  services.lance.setDimensions(await services.embeddings.ensureDimensions());
252
254
  await services.lance.initialize(store.id);
255
+ if (options.force !== true) {
256
+ const currentModelId = services.store.getCurrentModelId();
257
+ validateStoreModelCompatibility(store, { currentModelId });
258
+ }
253
259
  const progressCallback = (event) => {
254
260
  if (event.type === "progress") {
255
261
  if (spinner) {
@@ -306,9 +312,10 @@ function createIndexCommand(getOptions) {
306
312
  return;
307
313
  }
308
314
  const appConfig = await services.config.load();
309
- const { WatchService } = await import("./watch.service-NXRWLJG6.js");
315
+ const { WatchService } = await import("./watch.service-THP6X5ZZ.js");
310
316
  const watchService = new WatchService(services.index, services.lance, services.embeddings, {
311
- ignorePatterns: appConfig.indexing.ignorePatterns
317
+ ignorePatterns: appConfig.indexing.ignorePatterns,
318
+ currentModelId: services.store.getCurrentModelId()
312
319
  });
313
320
  const debounceMs = parseInt(options.debounce, 10);
314
321
  if (Number.isNaN(debounceMs)) {