@blaxel/core 0.2.74 → 0.2.75-preview.116

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.
@@ -188,14 +188,11 @@ export function initSentry() {
188
188
  handlersRegistered = true;
189
189
  // Node.js specific handlers
190
190
  if (typeof process !== "undefined" && typeof process.on === "function") {
191
- // For SIGTERM/SIGINT, flush before exit
192
- const signalHandler = (signal) => {
193
- flushSentry(500)
194
- .catch(() => {
191
+ // Flush Sentry on termination signals without calling process.exit(),
192
+ // so the host application retains control over its own shutdown lifecycle.
193
+ const signalHandler = () => {
194
+ flushSentry(500).catch(() => {
195
195
  // Silently fail
196
- })
197
- .finally(() => {
198
- process.exit(signal === "SIGTERM" ? 143 : 130);
199
196
  });
200
197
  };
201
198
  // Monitor uncaught exceptions to capture SDK errors without
@@ -205,8 +202,8 @@ export function initSentry() {
205
202
  captureException(error);
206
203
  }
207
204
  };
208
- process.on("SIGTERM", () => signalHandler("SIGTERM"));
209
- process.on("SIGINT", () => signalHandler("SIGINT"));
205
+ process.on("SIGTERM", signalHandler);
206
+ process.on("SIGINT", signalHandler);
210
207
  process.on("uncaughtExceptionMonitor", uncaughtExceptionMonitorHandler);
211
208
  // Intercept console.error to capture SDK errors that are caught and logged
212
209
  const originalConsoleError = console.error;
@@ -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.74";
7
- const BUILD_COMMIT = "796e20f3a5a0e5f67783655f1d75250b32fd8694";
6
+ const BUILD_VERSION = "0.2.75-preview.116";
7
+ const BUILD_COMMIT = "c11786dc016c39977cd4ecffa18d74c192186415";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.74",
3
+ "version": "0.2.75-preview.116",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",