bugzero 0.0.21 → 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 +17 -28
- 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 {
|
|
@@ -1326,9 +1331,12 @@ ${rawOutput}
|
|
|
1326
1331
|
import_fs2.default.writeFileSync(reportPath, content, "utf-8");
|
|
1327
1332
|
const clickableUrl = (0, import_url.pathToFileURL)(reportPath).toString();
|
|
1328
1333
|
console.log(`
|
|
1329
|
-
\u{1F4DD} Generated report successfully
|
|
1330
|
-
|
|
1331
|
-
console.log(`\u{1F449}
|
|
1334
|
+
\u{1F4DD} Generated report successfully!
|
|
1335
|
+
`);
|
|
1336
|
+
console.log(`\u{1F449} Click to open: ${clickableUrl}
|
|
1337
|
+
`);
|
|
1338
|
+
console.log(`\u{1F449} Absolute path: ${reportPath}
|
|
1339
|
+
`);
|
|
1332
1340
|
} catch (e) {
|
|
1333
1341
|
console.error(`\u26A0\uFE0F Failed to write report file: ${e.message}`);
|
|
1334
1342
|
console.log("Here is the generated report:\n");
|
|
@@ -1355,27 +1363,11 @@ program.command("hunt").description("Run build, lint, and tests \u2014 report is
|
|
|
1355
1363
|
console.log(` Framework: ${framework}
|
|
1356
1364
|
`);
|
|
1357
1365
|
const { build, lint, test } = await (0, import_core.orchestrate)({ cwd });
|
|
1358
|
-
console.log("\u2500\u2500
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
console.log(build.output);
|
|
1364
|
-
}
|
|
1365
|
-
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");
|
|
1366
|
-
if (lint.success) {
|
|
1367
|
-
console.log(" \u2705 Passed");
|
|
1368
|
-
} else {
|
|
1369
|
-
console.log(" \u274C Failed\n");
|
|
1370
|
-
console.log(lint.output);
|
|
1371
|
-
}
|
|
1372
|
-
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");
|
|
1373
|
-
if (test.success) {
|
|
1374
|
-
console.log(" \u2705 Passed");
|
|
1375
|
-
} else {
|
|
1376
|
-
console.log(" \u274C Failed\n");
|
|
1377
|
-
console.log(test.output);
|
|
1378
|
-
}
|
|
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");
|
|
1379
1371
|
const allPassed = build.success && lint.success && test.success;
|
|
1380
1372
|
console.log(`
|
|
1381
1373
|
${allPassed ? "\u2705 All checks passed" : "\u274C Issues found \u2014 run 'bugzero rescue' to repair"}
|
|
@@ -1415,10 +1407,7 @@ program.command("rescue").description("Detect build failures and automatically a
|
|
|
1415
1407
|
}
|
|
1416
1408
|
if (result.error) console.log(` ${result.error}`);
|
|
1417
1409
|
console.log(`
|
|
1418
|
-
\
|
|
1419
|
-
console.log(result.finalOutput);
|
|
1420
|
-
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
|
|
1421
|
-
`);
|
|
1410
|
+
\u{1F449} Full unresolved error logs have been listed in the generated report.`);
|
|
1422
1411
|
}
|
|
1423
1412
|
console.log();
|
|
1424
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
|
|