@blaxel/core 0.2.67 → 0.2.68-dev.94

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.
@@ -198,23 +198,16 @@ export function initSentry() {
198
198
  process.exit(signal === "SIGTERM" ? 143 : 130);
199
199
  });
200
200
  };
201
- // Uncaught exception handler - only capture SDK errors
202
- const uncaughtExceptionHandler = (error) => {
203
- if (isFromSDK(error)) {
204
- captureException(error);
205
- }
206
- };
207
- // Unhandled rejection handler - only capture SDK errors
208
- const unhandledRejectionHandler = (reason) => {
209
- const error = reason instanceof Error ? reason : new Error(String(reason));
201
+ // Monitor uncaught exceptions to capture SDK errors without
202
+ // preventing Node.js default crash behavior (print + exit).
203
+ const uncaughtExceptionMonitorHandler = (error) => {
210
204
  if (isFromSDK(error)) {
211
205
  captureException(error);
212
206
  }
213
207
  };
214
208
  process.on("SIGTERM", () => signalHandler("SIGTERM"));
215
209
  process.on("SIGINT", () => signalHandler("SIGINT"));
216
- process.on("uncaughtException", uncaughtExceptionHandler);
217
- process.on("unhandledRejection", unhandledRejectionHandler);
210
+ process.on("uncaughtExceptionMonitor", uncaughtExceptionMonitorHandler);
218
211
  // Intercept console.error to capture SDK errors that are caught and logged
219
212
  const originalConsoleError = console.error;
220
213
  console.error = function (...args) {
@@ -3,8 +3,8 @@ import { authentication } from "../authentication/index.js";
3
3
  import { env } from "../common/env.js";
4
4
  import { fs, os, path } from "../common/node.js";
5
5
  // Build info - these placeholders are replaced at build time by build:replace-imports
6
- const BUILD_VERSION = "0.2.67";
7
- const BUILD_COMMIT = "3a64eedabba6c905c7dbba66fd6e8c036afdc3dd";
6
+ const BUILD_VERSION = "0.2.68-dev.94";
7
+ const BUILD_COMMIT = "14ccbafeb7ce8418b80f9cf18cc629ce055e6151";
8
8
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
9
9
  // Cache for config.yaml tracking value
10
10
  let configTrackingValue = null;
@@ -99,6 +99,7 @@ export class McpTool {
99
99
  throw err;
100
100
  }
101
101
  logger.debug(`MCP:${this.name}:Connecting to fallback`);
102
+ this.transportName = undefined;
102
103
  this.transport = await this.getTransport(this.fallbackUrl);
103
104
  await this.client.connect(this.transport);
104
105
  logger.debug(`MCP:${this.name}:Connected to fallback`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.67",
3
+ "version": "0.2.68-dev.94",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",