vibecheck-ai 1.0.4 → 1.0.6
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/dist/index.js +15 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66913,7 +66913,9 @@ function renderCommandHeader(options) {
|
|
|
66913
66913
|
const diag = diagnostics[diagIndex];
|
|
66914
66914
|
if (diagLine === 0) {
|
|
66915
66915
|
const levelLabel = formatStatus(diag.level);
|
|
66916
|
-
|
|
66916
|
+
const maxMsgLen = 28;
|
|
66917
|
+
const msg = diag.message.length > maxMsgLen ? diag.message.slice(0, maxMsgLen - 2) + ".." : diag.message;
|
|
66918
|
+
rightContent = ` ${levelLabel} ${msg}`;
|
|
66917
66919
|
} else if (diagLine === 1 && diag.details) {
|
|
66918
66920
|
rightContent = ` ${dim(diag.details.slice(0, 26))}`;
|
|
66919
66921
|
diagIndex++;
|
|
@@ -69392,14 +69394,6 @@ async function scanCommand(options) {
|
|
|
69392
69394
|
try {
|
|
69393
69395
|
validateOptions(options);
|
|
69394
69396
|
checkSystemRequirements();
|
|
69395
|
-
if (env.isInteractive && !options.json && !options.quiet) {
|
|
69396
|
-
renderCommandHeader({
|
|
69397
|
-
command: "scan",
|
|
69398
|
-
version: "1.0.0",
|
|
69399
|
-
target: process.cwd(),
|
|
69400
|
-
elapsedTime: 0
|
|
69401
|
-
});
|
|
69402
|
-
}
|
|
69403
69397
|
const configLoadStart = Date.now();
|
|
69404
69398
|
let config;
|
|
69405
69399
|
let configSource = "file";
|
|
@@ -69589,20 +69583,24 @@ async function scanCommand(options) {
|
|
|
69589
69583
|
percentage: results.auth > 0 ? HEALTH_PERCENTAGES.AUTH_COVERAGE : 0
|
|
69590
69584
|
}
|
|
69591
69585
|
],
|
|
69592
|
-
diagnostics:
|
|
69593
|
-
{
|
|
69594
|
-
level: "info",
|
|
69595
|
-
message: `Scanned ${totalItems} items successfully`
|
|
69596
|
-
},
|
|
69586
|
+
diagnostics: [
|
|
69597
69587
|
{
|
|
69598
69588
|
level: "info",
|
|
69599
|
-
message: `
|
|
69589
|
+
message: `Done in ${formatDuration(results.duration)}`
|
|
69600
69590
|
},
|
|
69601
69591
|
{
|
|
69602
69592
|
level: "info",
|
|
69603
69593
|
message: `Size: ${formatBytes(outputSize)}`
|
|
69604
|
-
}
|
|
69605
|
-
|
|
69594
|
+
},
|
|
69595
|
+
...results.routes === 0 ? [{
|
|
69596
|
+
level: "warn",
|
|
69597
|
+
message: "No routes found"
|
|
69598
|
+
}] : [],
|
|
69599
|
+
...results.auth === 0 ? [{
|
|
69600
|
+
level: "warn",
|
|
69601
|
+
message: "No auth patterns"
|
|
69602
|
+
}] : []
|
|
69603
|
+
]
|
|
69606
69604
|
});
|
|
69607
69605
|
}
|
|
69608
69606
|
let forgeResult;
|