commitshow 0.1.8 → 0.2.0
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 +1 -1
- package/dist/lib/render.js +24 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { status } from './commands/status.js';
|
|
|
5
5
|
import { login } from './commands/login.js';
|
|
6
6
|
import { whoami } from './commands/whoami.js';
|
|
7
7
|
import { c } from './lib/colors.js';
|
|
8
|
-
const VERSION = '0.
|
|
8
|
+
const VERSION = '0.2.0';
|
|
9
9
|
const USAGE = `
|
|
10
10
|
${c.bold(c.gold('commit.show'))} ${c.dim(`v${VERSION}`)} ${c.muted('—')} ${c.cream('audit any vibe-coded project from your terminal.')}
|
|
11
11
|
${c.muted('the')} ${c.gold('walk-on')} ${c.muted('lane: drop in, get scored, leave · no signup, no audition, no league entry.')}
|
package/dist/lib/render.js
CHANGED
|
@@ -103,17 +103,23 @@ export function renderAudit(view) {
|
|
|
103
103
|
const { project: p, snapshot, standing } = view;
|
|
104
104
|
// Walk-on vs league. Walk-on = preview status (anonymous CLI · not in
|
|
105
105
|
// a season). For walk-ons, Scout (0/30) and Community (low/20) are
|
|
106
|
-
// structurally absent — not evaluated zeros
|
|
107
|
-
// Audit-only score normalized to /100 instead of summing pillars.
|
|
106
|
+
// structurally absent — not evaluated zeros.
|
|
108
107
|
//
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
|
|
108
|
+
// We display Claude's calibrated score_total directly for walk-ons. The
|
|
109
|
+
// server prompt (rule 7 in analyze-project) tells Claude to score
|
|
110
|
+
// walk-ons assuming Scout+Comm absent, so score_total IS the walk-on
|
|
111
|
+
// score. This lets ecosystem signals (stars, npm reach), Production
|
|
112
|
+
// Maturity gaps (no tests / no CI), and double-counting safeguards
|
|
113
|
+
// shape the final number — none of which a deterministic /45
|
|
114
|
+
// normalization could capture.
|
|
115
|
+
//
|
|
116
|
+
// The /45 normalization (audit pillar excluding Brief slot) is still
|
|
117
|
+
// computed and exposed in JSON as `walk_on_audit_normalized` for agents
|
|
118
|
+
// that want a deterministic floor, but the user-facing big-digit uses
|
|
119
|
+
// the calibrated total.
|
|
120
|
+
const WALK_ON_AUDIT_MAX = 49;
|
|
114
121
|
const isWalkOn = p.status === 'preview';
|
|
115
|
-
const
|
|
116
|
-
const total = isWalkOn ? walkOnTotal : (p.score_total ?? 0);
|
|
122
|
+
const total = p.score_total ?? 0;
|
|
117
123
|
// Header
|
|
118
124
|
const lines = [];
|
|
119
125
|
lines.push(boxTop());
|
|
@@ -314,11 +320,15 @@ function asObjectArray(raw, take) {
|
|
|
314
320
|
}
|
|
315
321
|
export function toAgentShape(view) {
|
|
316
322
|
const { project: p, snapshot, standing } = view;
|
|
317
|
-
//
|
|
318
|
-
//
|
|
319
|
-
|
|
323
|
+
// Walk-on context fields. The user-facing score is Claude's calibrated
|
|
324
|
+
// total (score_total). `walk_on_audit_normalized` is the deterministic
|
|
325
|
+
// pillar-only fallback (Brief slot excluded · base /45).
|
|
326
|
+
const WALK_ON_AUDIT_MAX = 49;
|
|
320
327
|
const isWalkOn = p.status === 'preview';
|
|
321
|
-
const walkOnTotal = isWalkOn ?
|
|
328
|
+
const walkOnTotal = isWalkOn ? (p.score_total ?? 0) : null;
|
|
329
|
+
const walkOnAuditNormalized = isWalkOn
|
|
330
|
+
? Math.min(100, Math.round(((p.score_auto ?? 0) / WALK_ON_AUDIT_MAX) * 100))
|
|
331
|
+
: null;
|
|
322
332
|
return {
|
|
323
333
|
schema_version: '1',
|
|
324
334
|
generated_at: new Date().toISOString(),
|
|
@@ -345,6 +355,7 @@ export function toAgentShape(view) {
|
|
|
345
355
|
band: bandFor(p.score_total),
|
|
346
356
|
walk_on_total: walkOnTotal,
|
|
347
357
|
walk_on_band: walkOnTotal != null ? bandFor(walkOnTotal) : null,
|
|
358
|
+
walk_on_audit_normalized: walkOnAuditNormalized,
|
|
348
359
|
},
|
|
349
360
|
standing: standing
|
|
350
361
|
? {
|