@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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/common/sentry.js +4 -11
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/image/image.js +200 -0
- package/dist/cjs/tools/mcpTool.js +1 -0
- package/dist/cjs/types/image/image.d.ts +83 -0
- package/dist/cjs/types/image/index.d.ts +1 -1
- package/dist/cjs/types/sandbox/client/types.gen.d.ts +11 -0
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/sentry.js +4 -11
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/tools/mcpTool.js +1 -0
- package/dist/cjs-browser/types/image/image.d.ts +83 -0
- package/dist/cjs-browser/types/image/index.d.ts +1 -1
- package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +11 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/sentry.js +4 -11
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/image/image.js +200 -0
- package/dist/esm/tools/mcpTool.js +1 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/sentry.js +4 -11
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/tools/mcpTool.js +1 -0
- package/package.json +1 -1
|
@@ -198,23 +198,16 @@ export function initSentry() {
|
|
|
198
198
|
process.exit(signal === "SIGTERM" ? 143 : 130);
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
|
-
//
|
|
202
|
-
|
|
203
|
-
|
|
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("
|
|
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.
|
|
7
|
-
const BUILD_COMMIT = "
|
|
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`);
|