@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.
@@ -193,14 +193,11 @@ function initSentry() {
193
193
  handlersRegistered = true;
194
194
  // Node.js specific handlers
195
195
  if (typeof process !== "undefined" && typeof process.on === "function") {
196
- // For SIGTERM/SIGINT, flush before exit
197
- const signalHandler = (signal) => {
198
- flushSentry(500)
199
- .catch(() => {
196
+ // Flush Sentry on termination signals without calling process.exit(),
197
+ // so the host application retains control over its own shutdown lifecycle.
198
+ const signalHandler = () => {
199
+ flushSentry(500).catch(() => {
200
200
  // Silently fail
201
- })
202
- .finally(() => {
203
- process.exit(signal === "SIGTERM" ? 143 : 130);
204
201
  });
205
202
  };
206
203
  // Monitor uncaught exceptions to capture SDK errors without
@@ -210,8 +207,8 @@ function initSentry() {
210
207
  captureException(error);
211
208
  }
212
209
  };
213
- process.on("SIGTERM", () => signalHandler("SIGTERM"));
214
- process.on("SIGINT", () => signalHandler("SIGINT"));
210
+ process.on("SIGTERM", signalHandler);
211
+ process.on("SIGINT", signalHandler);
215
212
  process.on("uncaughtExceptionMonitor", uncaughtExceptionMonitorHandler);
216
213
  // Intercept console.error to capture SDK errors that are caught and logged
217
214
  const originalConsoleError = console.error;
@@ -9,8 +9,8 @@ const index_js_1 = require("../authentication/index.js");
9
9
  const env_js_1 = require("../common/env.js");
10
10
  const node_js_1 = require("../common/node.js");
11
11
  // Build info - these placeholders are replaced at build time by build:replace-imports
12
- const BUILD_VERSION = "0.2.74";
13
- const BUILD_COMMIT = "796e20f3a5a0e5f67783655f1d75250b32fd8694";
12
+ const BUILD_VERSION = "0.2.75-preview.116";
13
+ const BUILD_COMMIT = "c11786dc016c39977cd4ecffa18d74c192186415";
14
14
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
15
15
  // Cache for config.yaml tracking value
16
16
  let configTrackingValue = null;