@bluelibs/runner 4.5.7 → 4.5.9

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/index.cjs CHANGED
@@ -982,7 +982,7 @@ var globalTags = {
982
982
  };
983
983
 
984
984
  // src/globals/globalEvents.ts
985
- var systemTag = globalTags.system;
985
+ globalTags.system;
986
986
  var globalEvents = {
987
987
  // Minimal core events retained if any (custom events can still be defined by users)
988
988
  /**
@@ -994,17 +994,6 @@ var globalEvents = {
994
994
  title: "System Ready",
995
995
  description: "Emitted when the system has completed boot and is ready for listeners to start work.This runs right before returning value for run()."
996
996
  }
997
- }),
998
- /**
999
- * Central error boundary event for any thrown error across the runner.
1000
- */
1001
- unhandledError: defineEvent({
1002
- id: "globals.events.unhandledError",
1003
- meta: {
1004
- title: "Unhandled Error",
1005
- description: "Central error boundary event for any thrown error across the runner."
1006
- },
1007
- tags: [systemTag, globalTags.excludeFromGlobalHooks]
1008
997
  })
1009
998
  };
1010
999
  var globalEventsArray = [globalEvents.ready];
@@ -4116,13 +4105,7 @@ async function run(resourceOrResourceWithConfig, options) {
4116
4105
  store2.lock();
4117
4106
  eventManager.lock();
4118
4107
  await logger.lock();
4119
- await eventManager.emit(
4120
- globalEvents.ready,
4121
- {
4122
- root: store2.root.resource
4123
- },
4124
- "system"
4125
- );
4108
+ await eventManager.emit(globalEvents.ready, void 0, "run");
4126
4109
  await boundedLogger.info("Runner online. Awaiting tasks and events.");
4127
4110
  if (shutdownHooks) {
4128
4111
  unhookShutdown = registerShutdownHook(() => store2.dispose());