bonzai-burn 1.0.36 → 1.0.38
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/package.json +2 -2
- package/src/{bgraph.js → bconfig.js} +1 -1
- package/src/index.js +11 -11
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bonzai-burn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"description": "Git branch-based cleanup tool with bburn, baccept, and brevert commands",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"bonzai-burn": "./src/index.js",
|
|
9
9
|
"bburn": "./src/bburn.js",
|
|
10
|
-
"
|
|
10
|
+
"bconfig": "./src/bconfig.js",
|
|
11
11
|
"bhook": "./src/bhook.js"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
@@ -196,7 +196,7 @@ async function main() {
|
|
|
196
196
|
export { main };
|
|
197
197
|
|
|
198
198
|
// Run directly if called as standalone command
|
|
199
|
-
const isDirectRun = process.argv[1]?.endsWith('
|
|
199
|
+
const isDirectRun = process.argv[1]?.endsWith('bconfig.js');
|
|
200
200
|
if (isDirectRun) {
|
|
201
201
|
main().catch(console.error);
|
|
202
202
|
}
|
package/src/index.js
CHANGED
|
@@ -18,7 +18,7 @@ Usage: npx bonzai-burn [option]
|
|
|
18
18
|
Options:
|
|
19
19
|
(no option) Initialize bonzai in current directory
|
|
20
20
|
-b, --burn Run code analysis (bburn)
|
|
21
|
-
-
|
|
21
|
+
-c, --config Launch visualization server (bconfig)
|
|
22
22
|
-h, --hook Manage Claude Code stop hook (bhook)
|
|
23
23
|
--help Show this help message
|
|
24
24
|
|
|
@@ -31,7 +31,7 @@ Hook subcommands (-h):
|
|
|
31
31
|
Examples:
|
|
32
32
|
npx bonzai-burn # Initialize bonzai folder
|
|
33
33
|
npx bonzai-burn -b # Run burn analysis
|
|
34
|
-
npx bonzai-burn -
|
|
34
|
+
npx bonzai-burn -c # Start graph server
|
|
35
35
|
npx bonzai-burn -h # Install hook
|
|
36
36
|
npx bonzai-burn -h -s # Check hook status
|
|
37
37
|
`);
|
|
@@ -52,11 +52,11 @@ function init() {
|
|
|
52
52
|
console.log(`📝 Edit ${BONZAI_DIR}/config.json to configure your burn rules`);
|
|
53
53
|
console.log(`🔥 Run 'npx bonzai-burn -b' to analyze your codebase`);
|
|
54
54
|
console.log('');
|
|
55
|
-
console.log('
|
|
56
|
-
console.log('│
|
|
57
|
-
console.log('│ 🌳 Run `npx bonzai-burn -
|
|
58
|
-
console.log('│
|
|
59
|
-
console.log('
|
|
55
|
+
console.log('┌─────────────────────────────────────────────────────────────────────┐');
|
|
56
|
+
console.log('│ │');
|
|
57
|
+
console.log('│ 🌳 Run `npx bonzai-burn -c` to configure your cleanup settings │');
|
|
58
|
+
console.log('│ │');
|
|
59
|
+
console.log('└─────────────────────────────────────────────────────────────────────┘');
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
async function main() {
|
|
@@ -70,10 +70,10 @@ async function main() {
|
|
|
70
70
|
if (burnMain) await burnMain();
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
73
|
-
case '-
|
|
74
|
-
case '--
|
|
75
|
-
const { main:
|
|
76
|
-
if (
|
|
73
|
+
case '-c':
|
|
74
|
+
case '--config': {
|
|
75
|
+
const { main: configMain } = await import('./bconfig.js');
|
|
76
|
+
if (configMain) await configMain();
|
|
77
77
|
break;
|
|
78
78
|
}
|
|
79
79
|
case '-h':
|