moflo 4.8.41 → 4.8.43

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.
@@ -63,9 +63,16 @@ readStdin().then(function(stdinData) {
63
63
  bumpMetric('tasksCompleted');
64
64
  console.log('[OK] Task completed');
65
65
  break;
66
- case 'session-end':
66
+ case 'session-end': {
67
+ // Kill tracked background processes via shared sync helper
68
+ try {
69
+ var cleanup = require('./lib/registry-cleanup.cjs');
70
+ var killed = cleanup.killTrackedSync(PROJECT_DIR);
71
+ if (killed > 0) console.log('[CLEANUP] Killed ' + killed + ' background process(es)');
72
+ } catch (e) { /* non-fatal: cleanup module not available */ }
67
73
  console.log('[OK] Session ended');
68
74
  break;
75
+ }
69
76
  case 'notification':
70
77
  // Silent — just acknowledge
71
78
  break;