commitshow 0.2.2 → 0.2.5
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/README.md +4 -4
- package/dist/lib/render.js +10 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,16 +17,16 @@ The npm package + command is `commitshow` (no dot — npm doesn't allow it in
|
|
|
17
17
|
package names). Everything else uses the brand `commit.show`.
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npx commitshow audit
|
|
20
|
+
npx commitshow@latest audit
|
|
21
21
|
# or audit any public project by URL — no cd required
|
|
22
|
-
npx commitshow audit github.com/owner/repo
|
|
22
|
+
npx commitshow@latest audit github.com/owner/repo
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Install
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
# one-shot
|
|
29
|
-
npx commitshow audit <target>
|
|
29
|
+
npx commitshow@latest audit <target>
|
|
30
30
|
|
|
31
31
|
# or global
|
|
32
32
|
npm i -g commitshow
|
|
@@ -59,7 +59,7 @@ Node 20+.
|
|
|
59
59
|
| Shorthand | `commitshow audit owner/repo` |
|
|
60
60
|
|
|
61
61
|
Remote-URL mode works from any directory, which makes one-line X posts
|
|
62
|
-
(`npx commitshow audit <their-url>`) trivial.
|
|
62
|
+
(`npx commitshow@latest audit <their-url>`) trivial.
|
|
63
63
|
|
|
64
64
|
## The AI-coding loop
|
|
65
65
|
|
package/dist/lib/render.js
CHANGED
|
@@ -39,14 +39,20 @@ const BIG_DIGITS = {
|
|
|
39
39
|
'/': [' █', ' ▄▀', ' ▄▀ ', ' ▄▀ ', '█ '],
|
|
40
40
|
' ': [' ', ' ', ' ', ' ', ' '],
|
|
41
41
|
};
|
|
42
|
-
/** Render a string ("68", "100", "82/100") as 5 rows of big ASCII.
|
|
42
|
+
/** Render a string ("68", "100", "82/100") as 5 rows of big ASCII.
|
|
43
|
+
* Block runes ('█▀▄') render wider than ASCII chars in most monospace
|
|
44
|
+
* fonts; what looks like 1 col-width is actually closer to 1.2-1.5×.
|
|
45
|
+
* Earlier 1-space and 2-space gutters left adjacent digits visually
|
|
46
|
+
* fused. We now use a 4-space gutter — wide enough that '0' next to
|
|
47
|
+
* '0' reads as TWO digits rather than one wide blob. */
|
|
43
48
|
function bigText(text) {
|
|
44
49
|
const rows = ['', '', '', '', ''];
|
|
50
|
+
const GAP = ' '; // 4-space gutter between glyphs
|
|
45
51
|
for (let i = 0; i < text.length; i++) {
|
|
46
52
|
const ch = text[i];
|
|
47
53
|
const glyph = BIG_DIGITS[ch] ?? BIG_DIGITS[' '];
|
|
48
54
|
for (let r = 0; r < 5; r++)
|
|
49
|
-
rows[r] += glyph[r] + (i < text.length - 1 ?
|
|
55
|
+
rows[r] += glyph[r] + (i < text.length - 1 ? GAP : '');
|
|
50
56
|
}
|
|
51
57
|
return rows;
|
|
52
58
|
}
|
|
@@ -117,7 +123,7 @@ export function renderAudit(view) {
|
|
|
117
123
|
// computed and exposed in JSON as `walk_on_audit_normalized` for agents
|
|
118
124
|
// that want a deterministic floor, but the user-facing big-digit uses
|
|
119
125
|
// the calibrated total.
|
|
120
|
-
const WALK_ON_AUDIT_MAX =
|
|
126
|
+
const WALK_ON_AUDIT_MAX = 50;
|
|
121
127
|
const isWalkOn = p.status === 'preview';
|
|
122
128
|
const total = p.score_total ?? 0;
|
|
123
129
|
// Header
|
|
@@ -323,7 +329,7 @@ export function toAgentShape(view) {
|
|
|
323
329
|
// Walk-on context fields. The user-facing score is Claude's calibrated
|
|
324
330
|
// total (score_total). `walk_on_audit_normalized` is the deterministic
|
|
325
331
|
// pillar-only fallback (Brief slot excluded · base /45).
|
|
326
|
-
const WALK_ON_AUDIT_MAX =
|
|
332
|
+
const WALK_ON_AUDIT_MAX = 50;
|
|
327
333
|
const isWalkOn = p.status === 'preview';
|
|
328
334
|
const walkOnTotal = isWalkOn ? (p.score_total ?? 0) : null;
|
|
329
335
|
const walkOnAuditNormalized = isWalkOn
|