@eventmodelers/cli 1.0.146 → 1.0.147

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/cli.js +8 -0
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -462,6 +462,14 @@ function getSharedRl() {
462
462
  if (!sharedRl) {
463
463
  sharedRl = createInterface({ input: process.stdin, output: process.stdout });
464
464
  sharedRlLines = sharedRl[Symbol.asyncIterator]();
465
+ // On a TTY readline puts stdin in raw mode, so Ctrl-C arrives as a keypress and the kernel
466
+ // never raises SIGINT — with no 'SIGINT' listener on the interface readline just pauses
467
+ // input and swallows it. The interface lives for the whole process (the loop included), so
468
+ // forward it as the real signal to whatever shutdown handlers are installed.
469
+ sharedRl.on('SIGINT', () => {
470
+ if (process.listenerCount('SIGINT') === 0) process.exit(130);
471
+ process.emit('SIGINT', 'SIGINT');
472
+ });
465
473
  }
466
474
  return sharedRl;
467
475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventmodelers/cli",
3
- "version": "1.0.146",
3
+ "version": "1.0.147",
4
4
  "description": "Eventmodelers CLI — real-time Claude agent + skills for Claude Code, for any stack (Node, Supabase, Axon, OpenCQRS, UmaDB, Kurrent, or modeling-only)",
5
5
  "type": "module",
6
6
  "bin": {