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.
@@ -1,5 +1,5 @@
1
1
 
2
- > bugzero@0.0.18 build D:\WD projects\OpsPilot\packages\cli
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
  CLI Building entry: src/index.ts
@@ -7,8 +7,8 @@
7
7
  CLI tsup v8.5.1
8
8
  CLI Target: es2022
9
9
  CJS Build start
10
- CJS dist\index.js 63.11 KB
11
- CJS ⚡️ Build success in 100ms
10
+ CJS dist\index.js 62.72 KB
11
+ CJS ⚡️ Build success in 73ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 1734ms
13
+ DTS ⚡️ Build success in 1297ms
14
14
  DTS dist\index.d.ts 20.00 B
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 and opens it in your IDE (VS Code, Cursor, Windsurf, Sublime) as an unsaved editor tab, giving you the choice to save or discard it. |
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 and automatically opened in your IDE (VS Code, Cursor, Windsurf, or Sublime Text) as an unsaved editor tab. This avoids polluting your project workspace and gives you the choice to save it or discard it. The report includes:
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 opened = await openInIDE(content);
1322
- if (!opened) {
1323
- console.log("\n\u26A0\uFE0F Could not automatically open the report in your IDE (no compatible editor found in PATH).");
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bugzero",
3
- "version": "0.0.18",
3
+ "version": "0.0.21",
4
4
  "bin": {
5
5
  "bugzero": "dist/index.js"
6
6
  },