bugzero 0.0.22 → 0.0.24
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/dist/index.js +11 -25
- package/package.json +1 -1
- package/src/index.ts +6 -26
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> bugzero@0.0.
|
|
2
|
+
> bugzero@0.0.24 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[32m62.
|
|
11
|
-
[32mCJS[39m ⚡️ Build success in
|
|
10
|
+
[32mCJS[39m [1mdist\index.js [22m[32m62.01 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 117ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 2050ms
|
|
14
14
|
[32mDTS[39m [1mdist\index.d.ts [22m[32m20.00 B[39m
|
package/dist/index.js
CHANGED
|
@@ -1194,6 +1194,11 @@ Generate the Markdown report directly. Do not wrap it in markdown block fences (
|
|
|
1194
1194
|
|
|
1195
1195
|
## \u274C Failed Checks & Error Output
|
|
1196
1196
|
${logs}
|
|
1197
|
+
|
|
1198
|
+
---
|
|
1199
|
+
### \u{1F50D} BugZero Hunt Metadata
|
|
1200
|
+
- **AI Brain (Model) used for Diagnosis:** *None (AI call failed)*
|
|
1201
|
+
- **Token Usage for Diagnosis:** *N/A (AI call failed: ${e.message})*
|
|
1197
1202
|
`;
|
|
1198
1203
|
}
|
|
1199
1204
|
} else {
|
|
@@ -1358,27 +1363,11 @@ program.command("hunt").description("Run build, lint, and tests \u2014 report is
|
|
|
1358
1363
|
console.log(` Framework: ${framework}
|
|
1359
1364
|
`);
|
|
1360
1365
|
const { build, lint, test } = await (0, import_core.orchestrate)({ cwd });
|
|
1361
|
-
console.log("\u2500\u2500
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
console.log(build.output);
|
|
1367
|
-
}
|
|
1368
|
-
console.log("\n\u2500\u2500 Lint \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");
|
|
1369
|
-
if (lint.success) {
|
|
1370
|
-
console.log(" \u2705 Passed");
|
|
1371
|
-
} else {
|
|
1372
|
-
console.log(" \u274C Failed\n");
|
|
1373
|
-
console.log(lint.output);
|
|
1374
|
-
}
|
|
1375
|
-
console.log("\n\u2500\u2500 Tests \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");
|
|
1376
|
-
if (test.success) {
|
|
1377
|
-
console.log(" \u2705 Passed");
|
|
1378
|
-
} else {
|
|
1379
|
-
console.log(" \u274C Failed\n");
|
|
1380
|
-
console.log(test.output);
|
|
1381
|
-
}
|
|
1366
|
+
console.log("\u2500\u2500 Pipeline Summary \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");
|
|
1367
|
+
console.log(` Build: ${build.success ? "\u2705 Passed" : "\u274C Failed (see report)"}`);
|
|
1368
|
+
console.log(` Lint: ${lint.success ? "\u2705 Passed" : "\u274C Failed (see report)"}`);
|
|
1369
|
+
console.log(` Tests: ${test.success ? "\u2705 Passed" : "\u274C Failed (see report)"}`);
|
|
1370
|
+
console.log("\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\u2500");
|
|
1382
1371
|
const allPassed = build.success && lint.success && test.success;
|
|
1383
1372
|
console.log(`
|
|
1384
1373
|
${allPassed ? "\u2705 All checks passed" : "\u274C Issues found \u2014 run 'bugzero rescue' to repair"}
|
|
@@ -1418,10 +1407,7 @@ program.command("rescue").description("Detect build failures and automatically a
|
|
|
1418
1407
|
}
|
|
1419
1408
|
if (result.error) console.log(` ${result.error}`);
|
|
1420
1409
|
console.log(`
|
|
1421
|
-
\
|
|
1422
|
-
console.log(result.finalOutput);
|
|
1423
|
-
console.log(`\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\u2500\u2500\u2500\u2500\u2500
|
|
1424
|
-
`);
|
|
1410
|
+
\u{1F449} Full unresolved error logs have been listed in the generated report.`);
|
|
1425
1411
|
}
|
|
1426
1412
|
console.log();
|
|
1427
1413
|
process.exit(result.success ? 0 : 1);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -28,29 +28,11 @@ program
|
|
|
28
28
|
|
|
29
29
|
const { build, lint, test } = await orchestrate({ cwd });
|
|
30
30
|
|
|
31
|
-
console.log("──
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
console.log(build.output);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
console.log("\n── Lint ───────────────────────────────────────");
|
|
40
|
-
if (lint.success) {
|
|
41
|
-
console.log(" ✅ Passed");
|
|
42
|
-
} else {
|
|
43
|
-
console.log(" ❌ Failed\n");
|
|
44
|
-
console.log(lint.output);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
console.log("\n── Tests ──────────────────────────────────────");
|
|
48
|
-
if (test.success) {
|
|
49
|
-
console.log(" ✅ Passed");
|
|
50
|
-
} else {
|
|
51
|
-
console.log(" ❌ Failed\n");
|
|
52
|
-
console.log(test.output);
|
|
53
|
-
}
|
|
31
|
+
console.log("── Pipeline Summary ───────────────────────────");
|
|
32
|
+
console.log(` Build: ${build.success ? "✅ Passed" : "❌ Failed (see report)"}`);
|
|
33
|
+
console.log(` Lint: ${lint.success ? "✅ Passed" : "❌ Failed (see report)"}`);
|
|
34
|
+
console.log(` Tests: ${test.success ? "✅ Passed" : "❌ Failed (see report)"}`);
|
|
35
|
+
console.log("───────────────────────────────────────────────");
|
|
54
36
|
|
|
55
37
|
const allPassed = build.success && lint.success && test.success;
|
|
56
38
|
console.log(`\n${allPassed ? "✅ All checks passed" : "❌ Issues found — run 'bugzero rescue' to repair"}\n`);
|
|
@@ -98,9 +80,7 @@ program
|
|
|
98
80
|
console.log(` Tokens: Prompt: ${result.promptTokens} | Completion: ${result.completionTokens} | Total: ${result.promptTokens + result.completionTokens}`);
|
|
99
81
|
}
|
|
100
82
|
if (result.error) console.log(` ${result.error}`);
|
|
101
|
-
console.log(`\n
|
|
102
|
-
console.log(result.finalOutput);
|
|
103
|
-
console.log(`───────────────────────────────────────────────────\n`);
|
|
83
|
+
console.log(`\n👉 Full unresolved error logs have been listed in the generated report.`);
|
|
104
84
|
}
|
|
105
85
|
console.log();
|
|
106
86
|
|