commitshow 0.1.8 → 0.1.9

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 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.1.8';
8
+ const VERSION = '0.1.9';
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.')}
@@ -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 — so we surface the
107
- // Audit-only score normalized to /100 instead of summing pillars.
106
+ // structurally absent — not evaluated zeros.
108
107
  //
109
- // Denominator = 45 (not 50): the +5 "Build Brief integrity" slot inside
110
- // the Audit pillar is structurally inaccessible to walk-ons (the creator
111
- // never reached the /submit form). Including it as 0/5 punishes them
112
- // for a flow they never saw. /45 is the honest base.
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.
113
120
  const WALK_ON_AUDIT_MAX = 45;
114
121
  const isWalkOn = p.status === 'preview';
115
- const walkOnTotal = Math.min(100, Math.round(((p.score_auto ?? 0) / WALK_ON_AUDIT_MAX) * 100));
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
- // /45 base Brief Integrity slot (5pts) is inaccessible to walk-ons.
318
- // See renderAudit for the same constant.
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).
319
326
  const WALK_ON_AUDIT_MAX = 45;
320
327
  const isWalkOn = p.status === 'preview';
321
- const walkOnTotal = isWalkOn ? Math.min(100, Math.round(((p.score_auto ?? 0) / WALK_ON_AUDIT_MAX) * 100)) : null;
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
  ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commitshow",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "commit.show CLI — audit any vibe-coded project from your terminal.",
5
5
  "type": "module",
6
6
  "bin": {