bugzero 0.0.19 → 0.0.22

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.19 build D:\WD projects\OpsPilot\packages\cli
2
+ > bugzero@0.0.22 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.40 KB
11
- CJS ⚡️ Build success in 88ms
10
+ CJS dist\index.js 62.73 KB
11
+ CJS ⚡️ Build success in 118ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 1756ms
13
+ DTS ⚡️ Build success in 2215ms
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
@@ -1061,6 +1061,7 @@ var require_dist7 = __commonJS({
1061
1061
  var import_agents = require_dist6();
1062
1062
  var import_fs2 = __toESM2(require("fs"));
1063
1063
  var import_path22 = __toESM2(require("path"));
1064
+ var import_url = require("url");
1064
1065
  var import_ai_provider = require_dist3();
1065
1066
  async function orchestrate2(options = {}) {
1066
1067
  const cwd = options.cwd ?? process.cwd();
@@ -1320,43 +1321,24 @@ ${rawOutput}
1320
1321
 
1321
1322
  ---
1322
1323
  *Report generated by **BugZero** on ${(/* @__PURE__ */ new Date()).toLocaleString()}*`;
1323
- const reportPath = import_path22.default.join(cwd, "bugzero-report.md");
1324
+ const reportPath = import_path22.default.resolve(cwd, "bugzero-report.md");
1324
1325
  try {
1325
1326
  import_fs2.default.writeFileSync(reportPath, content, "utf-8");
1327
+ const clickableUrl = (0, import_url.pathToFileURL)(reportPath).toString();
1326
1328
  console.log(`
1327
- \u{1F4DD} Generated report at: bugzero-report.md`);
1329
+ \u{1F4DD} Generated report successfully!
1330
+ `);
1331
+ console.log(`\u{1F449} Click to open: ${clickableUrl}
1332
+ `);
1333
+ console.log(`\u{1F449} Absolute path: ${reportPath}
1334
+ `);
1328
1335
  } catch (e) {
1329
1336
  console.error(`\u26A0\uFE0F Failed to write report file: ${e.message}`);
1330
- }
1331
- const opened = await openInIDE(reportPath);
1332
- if (!opened) {
1333
- console.log("\n\u26A0\uFE0F Could not automatically open the report in your IDE (no compatible editor found in PATH).");
1334
1337
  console.log("Here is the generated report:\n");
1335
1338
  console.log(content);
1336
1339
  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");
1337
1340
  }
1338
1341
  }
1339
- async function openInIDE(filePath) {
1340
- const editors = [
1341
- { cmd: "code", args: ["-r", filePath], name: "VS Code" },
1342
- { cmd: "cursor", args: ["-r", filePath], name: "Cursor" },
1343
- { cmd: "windsurf", args: ["-r", filePath], name: "Windsurf" },
1344
- { cmd: "subl", args: [filePath], name: "Sublime Text" }
1345
- ];
1346
- try {
1347
- const { execa } = await import("execa");
1348
- for (const editor of editors) {
1349
- try {
1350
- await execa(editor.cmd, editor.args, { shell: true });
1351
- console.log(`\u{1F5A5}\uFE0F Opened report in ${editor.name}.`);
1352
- return true;
1353
- } catch (err) {
1354
- }
1355
- }
1356
- } catch (e) {
1357
- }
1358
- return false;
1359
- }
1360
1342
  }
1361
1343
  });
1362
1344
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bugzero",
3
- "version": "0.0.19",
3
+ "version": "0.0.22",
4
4
  "bin": {
5
5
  "bugzero": "dist/index.js"
6
6
  },