burnrate 0.1.6 → 0.1.7

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/cli/index.js CHANGED
@@ -13,9 +13,10 @@ if (process.argv[2] === 'setup') {
13
13
  }
14
14
  if (process.argv[2] === 'mcp') {
15
15
  await import('../mcp/server.js');
16
- // MCP server runs indefinitely via stdio, so this line is only
17
- // reached if the server exits on its own
18
- process.exit(0);
16
+ // server.connect() resolves immediately after setting up the transport,
17
+ // so we block here to prevent fallthrough to heavy imports.
18
+ // Node exits naturally when the MCP client closes stdin.
19
+ await new Promise(() => { });
19
20
  }
20
21
  // Heavy imports — only reached when NOT running setup
21
22
  const { Command } = await import('commander');
package/dist/cli/setup.js CHANGED
File without changes
@@ -1874,4 +1874,10 @@ async function main() {
1874
1874
  await server.connect(transport);
1875
1875
  console.error('BURNRATE MCP Server running');
1876
1876
  }
1877
- main().catch(console.error);
1877
+ try {
1878
+ await main();
1879
+ }
1880
+ catch (err) {
1881
+ console.error(err);
1882
+ process.exit(1);
1883
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "burnrate",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "A logistics war MMO for Claude Code. The front doesn't feed itself.",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",