bluera-knowledge 0.19.7 → 0.20.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/dist/{chunk-TWX7MN5L.js → chunk-26MBEEKM.js} +2 -2
- package/dist/{chunk-6BC5OG4M.js → chunk-OZIVRLZE.js} +2 -2
- package/dist/{chunk-JPJI3VMA.js → chunk-PZE2MO7H.js} +144 -36
- package/dist/chunk-PZE2MO7H.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.d.ts +52 -7
- package/dist/mcp/server.js +2 -2
- package/dist/workers/background-worker-cli.js +3 -3
- package/dist/workers/background-worker-cli.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-JPJI3VMA.js.map +0 -1
- /package/dist/{chunk-TWX7MN5L.js.map → chunk-26MBEEKM.js.map} +0 -0
- /package/dist/{chunk-6BC5OG4M.js.map → chunk-OZIVRLZE.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-OZIVRLZE.js";
|
|
7
7
|
import {
|
|
8
8
|
IntelligentCrawler,
|
|
9
9
|
getCrawlStrategy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-26MBEEKM.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-
|
|
28
|
+
} from "./chunk-PZE2MO7H.js";
|
|
29
29
|
import {
|
|
30
30
|
createDocumentId
|
|
31
31
|
} from "./chunk-CLIMKLTW.js";
|
|
@@ -149,7 +149,7 @@ function createCrawlCommand(getOptions) {
|
|
|
149
149
|
const urlHash = createHash("md5").update(result.url).digest("hex");
|
|
150
150
|
for (const chunk of chunks) {
|
|
151
151
|
const chunkId = chunks.length > 1 ? `${store.id}-${urlHash}-${String(chunk.chunkIndex)}` : `${store.id}-${urlHash}`;
|
|
152
|
-
const vector = await services.embeddings.
|
|
152
|
+
const vector = await services.embeddings.embedDocument(chunk.content);
|
|
153
153
|
docs.push({
|
|
154
154
|
id: createDocumentId(chunkId),
|
|
155
155
|
content: chunk.content,
|