@exaudeus/workrail 1.14.0 → 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",
@@ -2182,8 +2182,8 @@
2182
2182
  "bytes": 204
2183
2183
  },
2184
2184
  "v2/usecases/console-routes.js": {
2185
- "sha256": "d437f8fee37c016533e78259a1f5ce14017a746371c0c77e9519d445f784c988",
2186
- "bytes": 2192
2185
+ "sha256": "336dfa1d5fc86889b68ae5363a9f7a5b7832064beada2fc0150cb32c7deb4598",
2186
+ "bytes": 2196
2187
2187
  },
2188
2188
  "v2/usecases/console-service.d.ts": {
2189
2189
  "sha256": "787b1e01e7e30354f56203822142e825069bd42fba476797df6672c96dd5b555",
@@ -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)
@@ -32,7 +32,7 @@ function mountConsoleRoutes(app, consoleService) {
32
32
  const consoleDist = resolveConsoleDist();
33
33
  if (consoleDist) {
34
34
  app.use('/console', express_1.default.static(consoleDist));
35
- app.get('/console/*', (_req, res) => {
35
+ app.get('/console/*path', (_req, res) => {
36
36
  res.sendFile(path_1.default.join(consoleDist, 'index.html'));
37
37
  });
38
38
  console.error(`[Console] UI serving from ${consoleDist}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "1.14.0",
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": {