burnrate 0.1.8 → 0.1.9

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.
@@ -32,7 +32,10 @@ class GameAPIClient {
32
32
  });
33
33
  const data = await response.json();
34
34
  if (!response.ok) {
35
- throw new Error(data.error || `API error: ${response.status}`);
35
+ const errMsg = typeof data.error === 'string'
36
+ ? data.error
37
+ : data.error?.message || `API error: ${response.status}`;
38
+ throw new Error(errMsg);
36
39
  }
37
40
  return data;
38
41
  }
@@ -147,7 +147,8 @@ app.post('/join', async (c) => {
147
147
  message: `Welcome to BURNRATE, ${name}! Save your API key - you'll need it for all requests.`,
148
148
  apiKey: player.apiKey,
149
149
  playerId: player.id,
150
- location: hub.name
150
+ location: hub.name,
151
+ nextStep: 'Ask Claude: "Use burnrate_tutorial to start the tutorial" — it will walk you through the basics and earn you credits.'
151
152
  });
152
153
  });
153
154
  // ============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "burnrate",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
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",