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/CHANGELOG.md +14 -0
- package/README.md +21 -0
- package/dist/{chunk-OZIVRLZE.js → chunk-BZQ7KWEE.js} +67 -5
- package/dist/chunk-BZQ7KWEE.js.map +1 -0
- package/dist/{chunk-HXBIIMYL.js → chunk-H25AEF47.js} +42 -1
- package/dist/chunk-H25AEF47.js.map +1 -0
- package/dist/{chunk-26MBEEKM.js → chunk-VNHZ534Q.js} +2 -2
- package/dist/{chunk-PZE2MO7H.js → chunk-ZR23KJPJ.js} +206 -38
- package/dist/chunk-ZR23KJPJ.js.map +1 -0
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.d.ts +44 -3
- package/dist/mcp/server.js +3 -3
- package/dist/{watch.service-NXRWLJG6.js → watch.service-THP6X5ZZ.js} +2 -2
- package/dist/workers/background-worker-cli.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-HXBIIMYL.js.map +0 -1
- package/dist/chunk-OZIVRLZE.js.map +0 -1
- package/dist/chunk-PZE2MO7H.js.map +0 -1
- /package/dist/{chunk-26MBEEKM.js.map → chunk-VNHZ534Q.js.map} +0 -0
- /package/dist/{watch.service-NXRWLJG6.js.map → watch.service-THP6X5ZZ.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
ZilAdapter,
|
|
4
4
|
runMCPServer,
|
|
5
5
|
spawnBackgroundWorker
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BZQ7KWEE.js";
|
|
7
7
|
import {
|
|
8
8
|
IntelligentCrawler,
|
|
9
9
|
getCrawlStrategy
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
28
|
+
} from "./chunk-ZR23KJPJ.js";
|
|
29
29
|
import {
|
|
30
30
|
createDocumentId
|
|
31
31
|
} from "./chunk-CLIMKLTW.js";
|
|
32
|
-
import
|
|
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-
|
|
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)) {
|