@yemi33/minions 0.1.930 → 0.1.931

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.930 (2026-04-14)
3
+ ## 0.1.931 (2026-04-14)
4
4
 
5
5
  ### Features
6
6
  - add adoPollEnabled/ghPollEnabled engine settings
@@ -21,6 +21,7 @@
21
21
  - add red dot notification on CC tab when response completes (#934) (#946)
22
22
 
23
23
  ### Fixes
24
+ - add unhandledRejection/uncaughtException handlers to engine process (#1019)
24
25
  - show doc-chat badges on Notes and KB items (#1016)
25
26
  - steering kill on no-session re-queues dispatch instead of erroring (#1015)
26
27
  - inject cached ADO token into spawned agents (#998) (#1012)
@@ -40,7 +41,6 @@
40
41
  - prevent Create Plan from meeting saving doc-chat context bleed (#980)
41
42
  - plan completion incorrectly overrides awaiting-approval status (#970) (#978)
42
43
  - CC queued messages sent to wrong tab after tab switch
43
- - pass sysPromptPath instead of steerPromptPath as system prompt in steering resume (#962)
44
44
 
45
45
  ### Other
46
46
  - test(preflight): add unit tests for findClaudeBinary, runPreflight, printPreflight, checkOrExit (#953)
package/engine/cli.js CHANGED
@@ -493,6 +493,23 @@ const commands = {
493
493
 
494
494
  process.on('SIGTERM', () => gracefulShutdown('SIGTERM'));
495
495
  process.on('SIGINT', () => gracefulShutdown('SIGINT'));
496
+
497
+ // Crash handlers — log the error and exit cleanly so the process is detectable as crashed
498
+ process.on('unhandledRejection', (reason) => {
499
+ const msg = reason instanceof Error ? reason.stack || reason.message : String(reason);
500
+ console.error(`[FATAL] Unhandled promise rejection: ${msg}`);
501
+ try { shared.log('fatal', `Unhandled promise rejection: ${msg}`); } catch { /* best effort */ }
502
+ try { shared.flushLogs(); } catch { /* best effort */ }
503
+ process.exit(1);
504
+ });
505
+
506
+ process.on('uncaughtException', (err) => {
507
+ const msg = err instanceof Error ? err.stack || err.message : String(err);
508
+ console.error(`[FATAL] Uncaught exception: ${msg}`);
509
+ try { shared.log('fatal', `Uncaught exception: ${msg}`); } catch { /* best effort */ }
510
+ try { shared.flushLogs(); } catch { /* best effort */ }
511
+ process.exit(1);
512
+ });
496
513
  },
497
514
 
498
515
  stop() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.930",
3
+ "version": "0.1.931",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"