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.
@@ -3,7 +3,7 @@ import {
3
3
  createLogger,
4
4
  summarizePayload,
5
5
  truncateForLog
6
- } from "./chunk-RWSXP3PQ.js";
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-2SJHNRXD.js.map
721
+ //# sourceMappingURL=chunk-RST4XGRL.js.map
@@ -4,7 +4,7 @@ import {
4
4
  createServices,
5
5
  createStoreId,
6
6
  summarizePayload
7
- } from "./chunk-RWSXP3PQ.js";
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-OGEY66FZ.js.map
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-OGEY66FZ.js";
4
+ } from "./chunk-WT2DAEO7.js";
5
5
  import {
6
6
  IntelligentCrawler
7
- } from "./chunk-2SJHNRXD.js";
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-RWSXP3PQ.js";
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
- process.exit(6);
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