bluera-knowledge 0.9.31 → 0.9.32
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/.claude/commands/code-review.md +15 -0
- package/.claude/skills/code-review-repo/skill.md +62 -0
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +2 -0
- package/dist/{chunk-RWSXP3PQ.js → chunk-6PBP5DVD.js} +14 -2
- package/dist/{chunk-RWSXP3PQ.js.map → chunk-6PBP5DVD.js.map} +1 -1
- package/dist/{chunk-2SJHNRXD.js → chunk-RST4XGRL.js} +2 -2
- package/dist/{chunk-OGEY66FZ.js → chunk-WT2DAEO7.js} +2 -2
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +2 -2
- package/dist/workers/background-worker-cli.js +2 -2
- package/package.json +1 -1
- package/src/cli/commands/crawl.ts +6 -1
- package/src/db/lance.test.ts +59 -0
- package/src/db/lance.ts +15 -0
- package/src/services/index.ts +2 -1
- package/src/services/services.test.ts +36 -0
- package/tests/integration/e2e-workflow.test.ts +2 -0
- package/BUGS-FOUND.md +0 -71
- /package/dist/{chunk-2SJHNRXD.js.map → chunk-RST4XGRL.js.map} +0 -0
- /package/dist/{chunk-OGEY66FZ.js.map → chunk-WT2DAEO7.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createLogger,
|
|
4
4
|
summarizePayload,
|
|
5
5
|
truncateForLog
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6PBP5DVD.js";
|
|
7
7
|
|
|
8
8
|
// src/crawl/intelligent-crawler.ts
|
|
9
9
|
import { EventEmitter } from "events";
|
|
@@ -718,4 +718,4 @@ var IntelligentCrawler = class extends EventEmitter {
|
|
|
718
718
|
export {
|
|
719
719
|
IntelligentCrawler
|
|
720
720
|
};
|
|
721
|
-
//# sourceMappingURL=chunk-
|
|
721
|
+
//# sourceMappingURL=chunk-RST4XGRL.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createServices,
|
|
5
5
|
createStoreId,
|
|
6
6
|
summarizePayload
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6PBP5DVD.js";
|
|
8
8
|
|
|
9
9
|
// src/mcp/server.ts
|
|
10
10
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
@@ -1020,4 +1020,4 @@ export {
|
|
|
1020
1020
|
createMCPServer,
|
|
1021
1021
|
runMCPServer
|
|
1022
1022
|
};
|
|
1023
|
-
//# sourceMappingURL=chunk-
|
|
1023
|
+
//# sourceMappingURL=chunk-WT2DAEO7.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runMCPServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WT2DAEO7.js";
|
|
5
5
|
import {
|
|
6
6
|
IntelligentCrawler
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RST4XGRL.js";
|
|
8
8
|
import {
|
|
9
9
|
ASTParser,
|
|
10
10
|
ChunkingService,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
err,
|
|
17
17
|
extractRepoName,
|
|
18
18
|
ok
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6PBP5DVD.js";
|
|
20
20
|
import "./chunk-L2YVNC63.js";
|
|
21
21
|
|
|
22
22
|
// src/index.ts
|
|
@@ -515,6 +515,7 @@ function createCrawlCommand(getOptions) {
|
|
|
515
515
|
const webChunker = ChunkingService.forContentType("web");
|
|
516
516
|
let pagesIndexed = 0;
|
|
517
517
|
let chunksCreated = 0;
|
|
518
|
+
let exitCode = 0;
|
|
518
519
|
crawler.on("progress", (progress) => {
|
|
519
520
|
if (spinner) {
|
|
520
521
|
if (progress.type === "strategy") {
|
|
@@ -600,11 +601,14 @@ function createCrawlCommand(getOptions) {
|
|
|
600
601
|
} else {
|
|
601
602
|
console.error(`Error: ${message}`);
|
|
602
603
|
}
|
|
603
|
-
|
|
604
|
+
exitCode = 6;
|
|
604
605
|
} finally {
|
|
605
606
|
await crawler.stop();
|
|
606
607
|
await destroyServices(services);
|
|
607
608
|
}
|
|
609
|
+
if (exitCode !== 0) {
|
|
610
|
+
process.exit(exitCode);
|
|
611
|
+
}
|
|
608
612
|
});
|
|
609
613
|
}
|
|
610
614
|
|