bonzai-burn 1.0.4 โ 1.0.6
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 +1 -1
- package/src/btrim.js +6 -11
package/package.json
CHANGED
package/src/btrim.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { execSync, spawn } from 'child_process';
|
|
3
|
+
import crypto from 'crypto';
|
|
3
4
|
import fs from 'fs';
|
|
4
5
|
import { join } from 'path';
|
|
5
6
|
|
|
@@ -89,7 +90,8 @@ function executeClaude(requirements) {
|
|
|
89
90
|
'-p', requirements,
|
|
90
91
|
'--allowedTools', 'Read,Write,Edit,Bash',
|
|
91
92
|
'--permission-mode', 'dontAsk',
|
|
92
|
-
'--output-format', 'stream-json'
|
|
93
|
+
'--output-format', 'stream-json',
|
|
94
|
+
'--verbose'
|
|
93
95
|
];
|
|
94
96
|
|
|
95
97
|
const claude = spawn('claude', args, {
|
|
@@ -217,16 +219,9 @@ async function burn() {
|
|
|
217
219
|
console.log(`โ Work saved on ${originalBranch}\n`);
|
|
218
220
|
}
|
|
219
221
|
|
|
220
|
-
//
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
// Delete existing burn branch if it exists
|
|
224
|
-
try {
|
|
225
|
-
exec(`git branch -D ${burnBranch}`);
|
|
226
|
-
console.log(`๐งน Cleaned up old ${burnBranch} branch\n`);
|
|
227
|
-
} catch {
|
|
228
|
-
// Branch doesn't exist, that's fine
|
|
229
|
-
}
|
|
222
|
+
// Generate unique branch name with short UUID
|
|
223
|
+
const shortId = crypto.randomUUID().slice(0, 8);
|
|
224
|
+
const burnBranch = `bonzai-burn-${shortId}`;
|
|
230
225
|
|
|
231
226
|
console.log(`๐ Starting from: ${originalBranch}`);
|
|
232
227
|
console.log(`๐ฟ Creating: ${burnBranch}\n`);
|