commitshow 0.2.5 → 0.2.6

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.
@@ -73,7 +73,7 @@ export async function audit(args) {
73
73
  console.log(renderAudit(view));
74
74
  if (project.status === 'preview') {
75
75
  console.log('');
76
- console.log(renderUpsell());
76
+ console.log(renderUpsell(project.github_url ?? target.github_url));
77
77
  }
78
78
  console.log('');
79
79
  }
@@ -188,7 +188,7 @@ export async function audit(args) {
188
188
  console.log(renderQuotaFooter(envelope.quota));
189
189
  console.log('');
190
190
  }
191
- console.log(renderUpsell());
191
+ console.log(renderUpsell(envelope.project.github_url ?? target.github_url));
192
192
  console.log('');
193
193
  }
194
194
  if (target.kind === 'local') {
@@ -537,15 +537,23 @@ function wrapText(s, width) {
537
537
  out.push(line.trim());
538
538
  return out;
539
539
  }
540
- export function renderUpsell() {
540
+ export function renderUpsell(githubUrl) {
541
541
  const lines = [];
542
542
  // "Walk-on" — anyone running CLI without auditioning. Theatre-coherent
543
543
  // (Audition / Audit / Stage / Backstage / Walk-on) · friendlier than
544
544
  // "preview" (which doubles as our DB status) · positions audition as the
545
545
  // upgrade path without making the walk-on tier feel lesser.
546
+ //
547
+ // CTA carries the repo URL as a query param so /submit pre-fills the
548
+ // GitHub input — one-click conversion from the terminal to the form.
549
+ // Slug form (github.com/owner/repo) keeps the URL short.
550
+ const repoSlug = githubUrl ? githubUrl.replace(/^https?:\/\//, '').replace(/\/$/, '') : null;
551
+ const submitUrl = repoSlug
552
+ ? `https://commit.show/submit?repo=${encodeURIComponent(repoSlug)}`
553
+ : 'https://commit.show/submit';
546
554
  const titleVisible = 'Walk-on · drop-in audit, no audition yet';
547
555
  const headVisible = 'Audition to unlock:';
548
- const ctaVisible = '→ https://commit.show/submit';
556
+ const ctaVisible = `→ ${submitUrl}`;
549
557
  lines.push(' ' + boxTop());
550
558
  lines.push(' ' + boxRow(titleVisible.length, c.bold(c.gold('Walk-on')) + c.muted(' · ') + c.cream('drop-in audit, no audition yet')));
551
559
  lines.push(' ' + boxBlank());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commitshow",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "commit.show CLI — audit any vibe-coded project from your terminal.",
5
5
  "type": "module",
6
6
  "bin": {