burnrate 0.1.2 → 0.1.4
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 +3 -2
- package/dist/cli/setup.d.ts +1 -1
- package/dist/cli/setup.js +5 -2
- package/package.json +3 -2
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
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
// Route 'setup' command to the setup script before loading heavy dependencies
|
|
8
8
|
if (process.argv[2] === 'setup') {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
// setup.ts uses top-level await, so this import won't resolve
|
|
10
|
+
// until the entire setup wizard completes
|
|
11
|
+
await import('./setup.js');
|
|
11
12
|
process.exit(0);
|
|
12
13
|
}
|
|
13
14
|
import { Command } from 'commander';
|
package/dist/cli/setup.d.ts
CHANGED
package/dist/cli/setup.js
CHANGED
|
@@ -136,8 +136,11 @@ async function main() {
|
|
|
136
136
|
`);
|
|
137
137
|
rl.close();
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
try {
|
|
140
|
+
await main();
|
|
141
|
+
}
|
|
142
|
+
catch (err) {
|
|
140
143
|
console.error('Setup failed:', err);
|
|
141
144
|
rl.close();
|
|
142
145
|
process.exit(1);
|
|
143
|
-
}
|
|
146
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "burnrate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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",
|
|
7
7
|
"bin": {
|
|
8
|
-
"burnrate": "./dist/cli/index.js"
|
|
8
|
+
"burnrate": "./dist/cli/index.js",
|
|
9
|
+
"burnrate-setup": "./dist/cli/setup.js"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
|
11
12
|
"dist/",
|