@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.
- package/dist/manifest.json +2 -2
- package/dist/mcp/server.js +4 -0
- package/package.json +1 -1
package/dist/manifest.json
CHANGED
|
@@ -814,8 +814,8 @@
|
|
|
814
814
|
"bytes": 168
|
|
815
815
|
},
|
|
816
816
|
"mcp/server.js": {
|
|
817
|
-
"sha256": "
|
|
818
|
-
"bytes":
|
|
817
|
+
"sha256": "ff0754f5dc0f9a67d22dfac41c390ebe746e1efacbddf87458052fee64e8212d",
|
|
818
|
+
"bytes": 12832
|
|
819
819
|
},
|
|
820
820
|
"mcp/tool-description-provider.d.ts": {
|
|
821
821
|
"sha256": "1d46abc3112e11b68e57197e846f5708293ec9b2281fa71a9124ee2aad71e41b",
|
package/dist/mcp/server.js
CHANGED
|
@@ -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)
|