securevibe 0.1.3 → 0.1.4
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 +2 -2
- package/dist/ui/fix.js +6 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -141,7 +141,7 @@ program
|
|
|
141
141
|
.action(async (pathArg, opts) => {
|
|
142
142
|
if (opts.color === false)
|
|
143
143
|
process.env.NO_COLOR = "1";
|
|
144
|
-
await meter();
|
|
144
|
+
const usage = await meter();
|
|
145
145
|
const { runFix } = await import("./engine/fix/session.js");
|
|
146
146
|
const { isInteractive, decideApply, makeFixConfirm } = await import("./ui/prompt.js");
|
|
147
147
|
const { renderFixSession, fixToJson, renderApprovalRequest } = await import("./ui/fix.js");
|
|
@@ -155,7 +155,7 @@ program
|
|
|
155
155
|
if (opts.json)
|
|
156
156
|
process.stdout.write(fixToJson(result) + "\n");
|
|
157
157
|
else
|
|
158
|
-
process.stdout.write(renderFixSession(result) + "\n");
|
|
158
|
+
process.stdout.write(renderFixSession(result, usage) + "\n");
|
|
159
159
|
if (decision.notice) {
|
|
160
160
|
process.stderr.write(" Not applied: no interactive terminal. Re-run with --yes to apply non-interactively.\n");
|
|
161
161
|
}
|
package/dist/ui/fix.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import pc from "picocolors";
|
|
8
8
|
import { structuredPatch } from "diff";
|
|
9
9
|
import { renderBanner } from "./banner.js";
|
|
10
|
+
import { renderUsageLine } from "./usage.js";
|
|
10
11
|
const SEV_TAG = {
|
|
11
12
|
critical: (s) => pc.bgRed(pc.white(pc.bold(s))),
|
|
12
13
|
high: (s) => pc.red(pc.bold(s)),
|
|
@@ -31,10 +32,14 @@ function readinessLabel(r) {
|
|
|
31
32
|
function scoreBadge(s) {
|
|
32
33
|
return `${gradeColor(s.grade)(pc.bold(` ${s.grade} `))} ${s.composite}/100 ${readinessLabel(s.readiness)}`;
|
|
33
34
|
}
|
|
34
|
-
export function renderFixSession(result) {
|
|
35
|
+
export function renderFixSession(result, usage) {
|
|
35
36
|
const L = [];
|
|
36
37
|
L.push(renderBanner({ subtitle: result.apply ? "fix · applying" : "fix · dry run (no files changed)" }));
|
|
37
38
|
L.push("");
|
|
39
|
+
if (usage) {
|
|
40
|
+
L.push(renderUsageLine(usage));
|
|
41
|
+
L.push("");
|
|
42
|
+
}
|
|
38
43
|
// Score transition.
|
|
39
44
|
L.push(" " + scoreBadge(result.scoreBefore) + pc.dim(" → ") + scoreBadge(result.scoreAfter));
|
|
40
45
|
L.push("");
|
package/dist/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// Single source of truth for the CLI's own version, so it can't drift from
|
|
3
3
|
// what commander reports and what the update-check compares against.
|
|
4
4
|
// Kept in sync with the "version" field in package.json by hand at release time.
|
|
5
|
-
export const VERSION = "0.1.
|
|
5
|
+
export const VERSION = "0.1.4";
|
package/package.json
CHANGED