@camstack/server 1.2.262 → 1.2.263

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.
Files changed (2) hide show
  1. package/dist/main.js +16 -0
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -404,6 +404,22 @@ async function bootstrap() {
404
404
  heapWatchLogger.warn(line);
405
405
  },
406
406
  });
407
+ // ...and the OTHER thing the heartbeat cannot see. `[mem]` is a 5-minute
408
+ // timer: it fired at dt = 300020 / 300066 / 299991 ms straight through the
409
+ // 2026-09-09 analytics silences, which proves nothing about a 10-second
410
+ // freeze. Every runner's UDS request waits on THIS loop, so a hub-main stall
411
+ // is delivered to every addon as "you are slow" — the exact confusion
412
+ // `pipeline-analytics`' frame-lag line exists to break, and this is the half
413
+ // that says whether hub-main was the one holding the events. Same monitor
414
+ // `detection-pipeline`, `recorder` and `pipeline-analytics` arm.
415
+ //
416
+ // Armed HERE and not at the top of `bootstrap()`, for the reason the heap
417
+ // sink is deferred: before `loggingService` exists the lines could only
418
+ // reach `console.log`, which is not a log destination. Never stopped: the
419
+ // interval is `unref`ed, so it cannot hold the process open, and hub-main's
420
+ // shutdown is process exit.
421
+ const stallLogger = loggingService.createLogger('event-loop');
422
+ (0, system_1.startEventLoopStallMonitor)(stallLogger);
407
423
  const addonRouteRegistry = new system_1.AddonRouteRegistry();
408
424
  const dataPlaneRegistry = new system_1.DataPlaneRegistry();
409
425
  // Use Fastify-managed notification/toast wrappers (globally provided by NotificationModule)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.262",
3
+ "version": "1.2.263",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",