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.
- package/dist/mcp/server.js +4 -1
- package/dist/server/api.js +2 -1
- package/package.json +1 -1
package/dist/mcp/server.js
CHANGED
|
@@ -32,7 +32,10 @@ class GameAPIClient {
|
|
|
32
32
|
});
|
|
33
33
|
const data = await response.json();
|
|
34
34
|
if (!response.ok) {
|
|
35
|
-
|
|
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
|
}
|
package/dist/server/api.js
CHANGED
|
@@ -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
|
// ============================================================================
|