bonzai-burn 1.0.59 → 1.0.60
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 +1 -26
- package/dist/index.js +1 -17
- package/package.json +1 -1
package/dist/bburn.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import { join } from 'path';
|
|
4
|
-
import { spawn } from 'child_process';
|
|
5
4
|
import { analyze, formatAnalysisResults } from './analyzer.js';
|
|
6
5
|
|
|
7
6
|
const BONZAI_DIR = 'bonzai';
|
|
@@ -47,31 +46,7 @@ async function main() {
|
|
|
47
46
|
console.log('─'.repeat(50));
|
|
48
47
|
console.log(`${totalIssues} issues across ${results.filesScanned} files (${results.durationMs}ms)\n`);
|
|
49
48
|
|
|
50
|
-
|
|
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
|
-
});
|
|
49
|
+
console.log('Copy the above and give to Claude.\n');
|
|
75
50
|
} else {
|
|
76
51
|
console.log('✓ No issues found\n');
|
|
77
52
|
}
|
package/dist/index.js
CHANGED
|
@@ -494,23 +494,7 @@ 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
|
-
|
|
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
|
+
console.log("Copy the above and give to Claude.\n");
|
|
514
498
|
} else {
|
|
515
499
|
console.log("\u2713 No issues found\n");
|
|
516
500
|
}
|