commitshow 0.3.22 → 0.3.23
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/lib/render.js +21 -9
- package/package.json +1 -1
package/dist/lib/render.js
CHANGED
|
@@ -470,11 +470,22 @@ export function renderAudit(view) {
|
|
|
470
470
|
const WALK_ON_AUDIT_MAX = 50;
|
|
471
471
|
const isWalkOn = p.status === 'preview';
|
|
472
472
|
const total = p.score_total ?? 0;
|
|
473
|
-
// Header · Claude Code-style welcome strip. Rounded corners (╭ ╮ ╰ ╯)
|
|
474
|
-
// + ✻ glyph match the visual signature Claude Code uses on launch.
|
|
475
|
-
// The ✻ is part of the wordmark line, not a separate panel — keeps
|
|
476
|
-
// the header to a single tight row.
|
|
477
473
|
const lines = [];
|
|
474
|
+
// Big COMMIT.SHOW ANSI Shadow banner. The wordmark needs ~105 cells
|
|
475
|
+
// including indent — show it whenever the terminal can fit it. Falls
|
|
476
|
+
// back to the small Claude-style strip below on narrow terminals so
|
|
477
|
+
// the brand still lands. COLUMNS env var is a fallback when stdout
|
|
478
|
+
// isn't a TTY (CI logs · piped output).
|
|
479
|
+
const cols = process.stdout.columns
|
|
480
|
+
?? (process.env.COLUMNS ? Number(process.env.COLUMNS) : 80);
|
|
481
|
+
const bannerRows = bigText('COMMIT.SHOW');
|
|
482
|
+
if (cols >= bannerRows[0].length + 2) {
|
|
483
|
+
for (const r of bannerRows)
|
|
484
|
+
lines.push(' ' + c.gold(r));
|
|
485
|
+
lines.push('');
|
|
486
|
+
}
|
|
487
|
+
// Claude Code-style welcome strip · rounded corners + ✻ glyph. Always
|
|
488
|
+
// shown so the brand mark lands even when the big banner doesn't fit.
|
|
478
489
|
const roundTop = c.muted('╭' + '─'.repeat(INSIDE_W) + '╮');
|
|
479
490
|
const roundBottom = c.muted('╰' + '─'.repeat(INSIDE_W) + '╯');
|
|
480
491
|
lines.push(roundTop);
|
|
@@ -625,11 +636,12 @@ export function renderAudit(view) {
|
|
|
625
636
|
// showing project identity, score, and brand mark in one frame.
|
|
626
637
|
const band = total >= 75 ? 'strong' : total >= 50 ? 'mid' : 'weak';
|
|
627
638
|
const bandTone = scoreTone(total);
|
|
628
|
-
//
|
|
629
|
-
//
|
|
630
|
-
//
|
|
631
|
-
//
|
|
632
|
-
|
|
639
|
+
// Original ANSI Shadow at 6-row native size · the box-drawing chars
|
|
640
|
+
// (╔ ╗ ║ ═ ╚ ╝) give an embossed 3D feel that pure-block scaling
|
|
641
|
+
// (BIG_DIGITS_XL · 0.3.22) flattens out. Reverted on user note that
|
|
642
|
+
// "입체효과가 없어졌다". Keep the gold gradient on top for the
|
|
643
|
+
// metallic finish — that part was approved.
|
|
644
|
+
const bigRows = bigText(String(total));
|
|
633
645
|
const bigWidth = bigRows[0].length;
|
|
634
646
|
// Trophy: name strip + big digits + caption inside one ╔═╗ frame so a
|
|
635
647
|
// crop of just the trophy tells the whole story (project · score · band).
|