bugzero 0.0.18 → 0.0.21
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/.turbo/turbo-build.log +4 -4
- package/README.md +2 -2
- package/dist/index.js +13 -29
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> bugzero@0.0.
|
|
2
|
+
> bugzero@0.0.21 build D:\WD projects\OpsPilot\packages\cli
|
|
3
3
|
> tsup src/index.ts --format cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
|
-
[32mCJS[39m [1mdist\index.js [22m[
|
|
11
|
-
[32mCJS[39m ⚡️ Build success in
|
|
10
|
+
[32mCJS[39m [1mdist\index.js [22m[32m62.72 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 73ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1297ms
|
|
14
14
|
[32mDTS[39m [1mdist\index.d.ts [22m[32m20.00 B[39m
|
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ bugzero rescue
|
|
|
77
77
|
| Error type parsing | Parses TypeScript, ESLint, and Jest error formats |
|
|
78
78
|
| Dry-run mode | Analyze and report without writing any files |
|
|
79
79
|
| Local model config | Save preferred model to `.bugzerorc` per project |
|
|
80
|
-
| Markdown Reports | Automatically generates a detailed Markdown report
|
|
80
|
+
| Markdown Reports | Automatically generates a detailed Markdown report at `bugzero-report.md` in the target project path and outputs clickable file URLs in the terminal to open them instantly. |
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
@@ -168,7 +168,7 @@ This file is created automatically when you run `bugzero vibe`.
|
|
|
168
168
|
|
|
169
169
|
## Reports
|
|
170
170
|
|
|
171
|
-
Every time you run `bugzero hunt` or `bugzero rescue`, a detailed Markdown report is generated
|
|
171
|
+
Every time you run `bugzero hunt` or `bugzero rescue`, a detailed Markdown report is generated at `bugzero-report.md` in the target project directory. The tool prints a clickable absolute file URL and path directly to your terminal. Clicking the link instantly opens the report inside your active IDE editor with full syntax styling and Markdown Preview. The report includes:
|
|
172
172
|
- **Pipeline Summary:** Clear status checklist of your project's Build, Lint, and Test suites.
|
|
173
173
|
- **Detailed Error Outputs:** Full error logs from any failing checks.
|
|
174
174
|
- **AI Brain Details:** The exact OpenRouter model used.
|
package/dist/index.js
CHANGED
|
@@ -1059,6 +1059,9 @@ var require_dist7 = __commonJS({
|
|
|
1059
1059
|
}
|
|
1060
1060
|
var import_analyzers = require_dist2();
|
|
1061
1061
|
var import_agents = require_dist6();
|
|
1062
|
+
var import_fs2 = __toESM2(require("fs"));
|
|
1063
|
+
var import_path22 = __toESM2(require("path"));
|
|
1064
|
+
var import_url = require("url");
|
|
1062
1065
|
var import_ai_provider = require_dist3();
|
|
1063
1066
|
async function orchestrate2(options = {}) {
|
|
1064
1067
|
const cwd = options.cwd ?? process.cwd();
|
|
@@ -1318,40 +1321,21 @@ ${rawOutput}
|
|
|
1318
1321
|
|
|
1319
1322
|
---
|
|
1320
1323
|
*Report generated by **BugZero** on ${(/* @__PURE__ */ new Date()).toLocaleString()}*`;
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
+
const reportPath = import_path22.default.resolve(cwd, "bugzero-report.md");
|
|
1325
|
+
try {
|
|
1326
|
+
import_fs2.default.writeFileSync(reportPath, content, "utf-8");
|
|
1327
|
+
const clickableUrl = (0, import_url.pathToFileURL)(reportPath).toString();
|
|
1328
|
+
console.log(`
|
|
1329
|
+
\u{1F4DD} Generated report successfully!`);
|
|
1330
|
+
console.log(`\u{1F449} Click to open: ${clickableUrl}`);
|
|
1331
|
+
console.log(`\u{1F449} Absolute path: ${reportPath}`);
|
|
1332
|
+
} catch (e) {
|
|
1333
|
+
console.error(`\u26A0\uFE0F Failed to write report file: ${e.message}`);
|
|
1324
1334
|
console.log("Here is the generated report:\n");
|
|
1325
1335
|
console.log(content);
|
|
1326
1336
|
console.log("\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
1327
1337
|
}
|
|
1328
1338
|
}
|
|
1329
|
-
async function openInIDE(content) {
|
|
1330
|
-
const editors = [
|
|
1331
|
-
{ cmd: "code", args: ["-r", "-"], name: "VS Code" },
|
|
1332
|
-
{ cmd: "cursor", args: ["-r", "-"], name: "Cursor" },
|
|
1333
|
-
{ cmd: "windsurf", args: ["-r", "-"], name: "Windsurf" },
|
|
1334
|
-
{ cmd: "subl", args: ["-"], name: "Sublime Text" }
|
|
1335
|
-
];
|
|
1336
|
-
try {
|
|
1337
|
-
const { execa } = await import("execa");
|
|
1338
|
-
for (const editor of editors) {
|
|
1339
|
-
try {
|
|
1340
|
-
const proc = execa(editor.cmd, editor.args, { shell: true });
|
|
1341
|
-
if (proc.stdin) {
|
|
1342
|
-
proc.stdin.write(content);
|
|
1343
|
-
proc.stdin.end();
|
|
1344
|
-
await proc;
|
|
1345
|
-
console.log(`\u{1F5A5}\uFE0F Opened report as an unsaved tab in ${editor.name}.`);
|
|
1346
|
-
return true;
|
|
1347
|
-
}
|
|
1348
|
-
} catch (err) {
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
} catch (e) {
|
|
1352
|
-
}
|
|
1353
|
-
return false;
|
|
1354
|
-
}
|
|
1355
1339
|
}
|
|
1356
1340
|
});
|
|
1357
1341
|
|