burnrate 0.1.4 → 0.1.5
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/README.md +2 -2
- package/dist/cli/index.js +14 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ The players who learn to work WITH Claude—analyzing intel, optimizing routes,
|
|
|
44
44
|
**One command to set up, then you're in.**
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
npx burnrate
|
|
47
|
+
npx burnrate setup
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
The setup wizard connects to the live server, auto-configures your Claude Code MCP settings, and verifies the connection.
|
|
@@ -55,7 +55,7 @@ The setup wizard connects to the live server, auto-configures your Claude Code M
|
|
|
55
55
|
Use burnrate_join to create a character named "YourName"
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
You'll get an API key. Run `npx burnrate
|
|
58
|
+
You'll get an API key. Run `npx burnrate setup` again and paste it in, or manually add `"BURNRATE_API_KEY": "your-key"` to the env block in `~/.claude/settings.json`. Restart Claude Code one more time, and you're set.
|
|
59
59
|
|
|
60
60
|
### Setup from Source (Alternative)
|
|
61
61
|
|
package/dist/cli/index.js
CHANGED
|
@@ -4,22 +4,23 @@
|
|
|
4
4
|
* A logistics war MMO for Claude Code
|
|
5
5
|
* The front doesn't feed itself.
|
|
6
6
|
*/
|
|
7
|
-
// Route 'setup' command
|
|
7
|
+
// Route 'setup' command BEFORE any heavy imports.
|
|
8
|
+
// ESM resolves all static imports before executing code, so we must
|
|
9
|
+
// dynamic-import setup and exit before static imports would load better-sqlite3.
|
|
8
10
|
if (process.argv[2] === 'setup') {
|
|
9
|
-
// setup.ts uses top-level await, so this import won't resolve
|
|
10
|
-
// until the entire setup wizard completes
|
|
11
11
|
await import('./setup.js');
|
|
12
12
|
process.exit(0);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
// Heavy imports — only reached when NOT running setup
|
|
15
|
+
const { Command } = await import('commander');
|
|
16
|
+
const { GameDatabase } = await import('../db/database.js');
|
|
17
|
+
const { GameEngine } = await import('../core/engine.js');
|
|
18
|
+
const { generateWorld, seedMarkets } = await import('../core/worldgen.js');
|
|
19
|
+
const { formatView, formatZone, formatRoutes, formatMarket, formatShipments, formatEvents, formatHelp } = await import('./format.js');
|
|
20
|
+
const { getSupplyState, TIER_LIMITS, SHIPMENT_SPECS } = await import('../core/types.js');
|
|
21
|
+
const path = await import('path');
|
|
22
|
+
const os = await import('os');
|
|
23
|
+
const fs = await import('fs');
|
|
23
24
|
// Database path
|
|
24
25
|
const DB_DIR = path.join(os.homedir(), '.burnrate');
|
|
25
26
|
const DB_PATH = path.join(DB_DIR, 'game.db');
|
|
@@ -1121,3 +1122,4 @@ program
|
|
|
1121
1122
|
});
|
|
1122
1123
|
// Parse and execute
|
|
1123
1124
|
program.parse();
|
|
1125
|
+
export {};
|