bonzai-burn 1.0.59 → 1.0.61

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/dist/bburn.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'fs';
3
3
  import { join } from 'path';
4
- import { spawn } from 'child_process';
4
+ import { execSync } from 'child_process';
5
5
  import { analyze, formatAnalysisResults } from './analyzer.js';
6
6
 
7
7
  const BONZAI_DIR = 'bonzai';
@@ -47,31 +47,13 @@ async function main() {
47
47
  console.log('─'.repeat(50));
48
48
  console.log(`${totalIssues} issues across ${results.filesScanned} files (${results.durationMs}ms)\n`);
49
49
 
50
- // Build prompt for Claude - strip emojis for shell compatibility
51
- const cleanOutput = output
52
- .replace(/[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/gu, '')
53
- .replace(/[─→]/g, '-')
54
- .trim();
55
-
56
- const prompt = `The following tech debt was found in this codebase. Please fix these issues:\n\n${cleanOutput}`;
57
-
58
- // Call Claude Code CLI
59
- console.log('🤖 Launching Claude Code to fix issues...\n');
60
-
61
- const claude = spawn('claude', ['-p', prompt], {
62
- stdio: 'inherit'
63
- });
64
-
65
- claude.on('error', (err) => {
66
- console.error('Failed to launch Claude Code:', err.message);
67
- console.log('\nTo fix manually, run: claude -p "Fix the tech debt listed above"');
68
- });
69
-
70
- return new Promise((resolve) => {
71
- claude.on('close', (code) => {
72
- resolve();
73
- });
74
- });
50
+ // Copy to clipboard
51
+ try {
52
+ execSync('pbcopy', { input: output });
53
+ console.log('issues copied to clipboard - run claude to install\n');
54
+ } catch {
55
+ console.log('Copy the above and give to Claude.\n');
56
+ }
75
57
  } else {
76
58
  console.log('✓ No issues found\n');
77
59
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { spawn, exec, execSync } from 'child_process';
2
+ import { execSync, spawn, exec } from 'child_process';
3
3
  import fs4, { existsSync, mkdirSync, copyFileSync } from 'fs';
4
4
  import path2, { dirname, join } from 'path';
5
5
  import { fileURLToPath } from 'url';
@@ -494,23 +494,12 @@ async function main() {
494
494
  console.log("\u2500".repeat(50));
495
495
  console.log(`${totalIssues} issues across ${results.filesScanned} files (${results.durationMs}ms)
496
496
  `);
497
- const cleanOutput = output.replace(/[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/gu, "").replace(/[─→]/g, "-").trim();
498
- const prompt = `The following tech debt was found in this codebase. Please fix these issues:
499
-
500
- ${cleanOutput}`;
501
- console.log("\u{1F916} Launching Claude Code to fix issues...\n");
502
- const claude = spawn("claude", ["-p", prompt], {
503
- stdio: "inherit"
504
- });
505
- claude.on("error", (err) => {
506
- console.error("Failed to launch Claude Code:", err.message);
507
- console.log('\nTo fix manually, run: claude -p "Fix the tech debt listed above"');
508
- });
509
- return new Promise((resolve) => {
510
- claude.on("close", (code) => {
511
- resolve();
512
- });
513
- });
497
+ try {
498
+ execSync("pbcopy", { input: output });
499
+ console.log("issues copied to clipboard - run claude to install\n");
500
+ } catch {
501
+ console.log("Copy the above and give to Claude.\n");
502
+ }
514
503
  } else {
515
504
  console.log("\u2713 No issues found\n");
516
505
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonzai-burn",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
4
4
  "description": "Git branch-based cleanup tool with bburn, baccept, and brevert commands",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",