@exaudeus/workrail 1.14.1 → 1.14.2

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.
@@ -814,8 +814,8 @@
814
814
  "bytes": 168
815
815
  },
816
816
  "mcp/server.js": {
817
- "sha256": "c29e4ad8a9ed43304654f59725a7dd50a6fe5cd4cde9e7db2678ae9a7ccd0557",
818
- "bytes": 12643
817
+ "sha256": "ff0754f5dc0f9a67d22dfac41c390ebe746e1efacbddf87458052fee64e8212d",
818
+ "bytes": 12832
819
819
  },
820
820
  "mcp/tool-description-provider.d.ts": {
821
821
  "sha256": "1d46abc3112e11b68e57197e846f5708293ec9b2281fa71a9124ee2aad71e41b",
@@ -229,6 +229,10 @@ async function startServer() {
229
229
  processSignals.on('SIGINT', () => shutdownEvents.emit({ kind: 'shutdown_requested', signal: 'SIGINT' }));
230
230
  processSignals.on('SIGTERM', () => shutdownEvents.emit({ kind: 'shutdown_requested', signal: 'SIGTERM' }));
231
231
  processSignals.on('SIGHUP', () => shutdownEvents.emit({ kind: 'shutdown_requested', signal: 'SIGHUP' }));
232
+ process.stdin.on('end', () => {
233
+ console.error('[MCP] stdin closed, initiating shutdown');
234
+ shutdownEvents.emit({ kind: 'shutdown_requested', signal: 'SIGHUP' });
235
+ });
232
236
  let shutdownStarted = false;
233
237
  shutdownEvents.onShutdown((event) => {
234
238
  if (shutdownStarted)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "Step-by-step workflow enforcement for AI agents via MCP",
5
5
  "license": "MIT",
6
6
  "repository": {