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/CHANGELOG.md +10 -0
- package/dist/{brands-3EYIYV6T.js → brands-XDTIHFNU.js} +2 -1
- package/dist/chunk-DGUM43GV.js +11 -0
- package/dist/{chunk-VUGQ7HAR.js → chunk-JSCOGKNU.js} +2 -2
- package/dist/{chunk-EZXJ3W5X.js → chunk-NYRKKRRA.js} +2 -2
- package/dist/{chunk-RDDGZIDL.js → chunk-YMSMKOMF.js} +40 -9
- package/dist/chunk-YMSMKOMF.js.map +1 -0
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +3 -2
- package/dist/{watch.service-VDSUQ72Z.js → watch.service-NXRWLJG6.js} +2 -1
- package/dist/watch.service-NXRWLJG6.js.map +1 -0
- package/dist/workers/background-worker-cli.js +3 -2
- package/dist/workers/background-worker-cli.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-RDDGZIDL.js.map +0 -1
- /package/dist/{brands-3EYIYV6T.js.map → brands-XDTIHFNU.js.map} +0 -0
- /package/dist/{watch.service-VDSUQ72Z.js.map → chunk-DGUM43GV.js.map} +0 -0
- /package/dist/{chunk-VUGQ7HAR.js.map → chunk-JSCOGKNU.js.map} +0 -0
- /package/dist/{chunk-EZXJ3W5X.js.map → chunk-NYRKKRRA.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-NYRKKRRA.js";
|
|
7
7
|
import {
|
|
8
8
|
IntelligentCrawler,
|
|
9
9
|
getCrawlStrategy
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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`);
|