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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/btrim.js +6 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonzai-burn",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Git branch-based cleanup tool with btrim and brevert commands",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
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
- // Always use same burn branch name
221
- const burnBranch = 'bonzai-burn';
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`);