bugzero 0.0.12 → 0.0.13

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.12 build D:\WD projects\OpsPilot\packages\cli
2
+ > bugzero@0.0.13 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 49.97 KB
11
- CJS ⚡️ Build success in 105ms
10
+ CJS dist\index.js 50.76 KB
11
+ CJS ⚡️ Build success in 63ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 1226ms
13
+ DTS ⚡️ Build success in 1156ms
14
14
  DTS dist\index.d.ts 20.00 B
package/dist/index.js CHANGED
@@ -692,13 +692,28 @@ var require_dist4 = __commonJS({
692
692
  });
693
693
  module2.exports = __toCommonJS(index_exports);
694
694
  function buildAnalysisPrompt(errorOutput, cwd) {
695
+ const warningMarker = "\u26A0\uFE0F [BugZero System Warning]";
696
+ let compilerLogs = errorOutput;
697
+ let historySection = "";
698
+ if (errorOutput.includes(warningMarker)) {
699
+ const parts = errorOutput.split(warningMarker);
700
+ compilerLogs = parts[0].trim();
701
+ const warnings = parts.slice(1).map((w) => w.trim());
702
+ historySection = `
703
+
704
+ ### \u26A0\uFE0F Previous Failed Attempts:
705
+ ${warnings.map((w, idx) => `Failed Attempt ${idx + 1}:
706
+ ${w}`).join("\n\n")}
707
+
708
+ **CRITICAL RULE:** Do NOT suggest modifying or creating the files listed under "Previous Failed Attempts" if they failed with a "File not found" or "Search string not found" error. You must inspect the compiler error logs below to find the actual file that exists and contains the error.`;
709
+ }
695
710
  return `You are an expert software engineer specialising in fixing build, lint, and test failures.
696
711
 
697
712
  A project located at "${cwd}" failed to build. Here is the complete error output:
698
713
 
699
714
  \`\`\`
700
- ${errorOutput}
701
- \`\`\`
715
+ ${compilerLogs}
716
+ \`\`\`${historySection}
702
717
 
703
718
  Your task:
704
719
  1. Identify the root cause.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bugzero",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "bin": {
5
5
  "bugzero": "dist/index.js"
6
6
  },