commitshow 0.3.27 → 0.3.28
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 +17 -0
- package/package.json +1 -1
package/dist/lib/render.js
CHANGED
|
@@ -517,6 +517,14 @@ export function renderAudit(view) {
|
|
|
517
517
|
const name = p.project_name ?? 'untitled';
|
|
518
518
|
const slug = p.github_url?.replace(/^https?:\/\//, '') ?? '';
|
|
519
519
|
lines.push(' ' + c.bold(c.cream(name)) + ' ' + c.muted(slug));
|
|
520
|
+
// Scanned-scope transparency line · monorepo-aware. For supabase-style
|
|
521
|
+
// big monorepos, this disarms the "you said our service fails X" trap
|
|
522
|
+
// by stating what was actually traversed (apps/studio + apps/www, not
|
|
523
|
+
// postgres-meta or gotrue or storage which live in separate repos).
|
|
524
|
+
const scope = snapshot?.github_signals?.scanned_scope;
|
|
525
|
+
if (scope) {
|
|
526
|
+
lines.push(' ' + c.muted('Scanned · ') + c.cream(scope));
|
|
527
|
+
}
|
|
520
528
|
lines.push('');
|
|
521
529
|
// ── 3 strengths + 2 concerns box · errors-first reorder (2026-04-30) ──
|
|
522
530
|
// CONCERNS render before STRENGTHS · the value prop is "what your AI
|
|
@@ -929,6 +937,14 @@ export function renderMarkdown(view) {
|
|
|
929
937
|
lines.push(`**${p.project_name}**`);
|
|
930
938
|
if (p.github_url)
|
|
931
939
|
lines.push(`_${p.github_url}_`);
|
|
940
|
+
// Scope transparency · same string the CLI prints. Lets a downstream
|
|
941
|
+
// agent reading audit.md know whether the concerns came from the core
|
|
942
|
+
// service or from a dashboard / marketing sub-app of a monorepo.
|
|
943
|
+
const scope = snapshot?.github_signals?.scanned_scope;
|
|
944
|
+
if (scope) {
|
|
945
|
+
lines.push('');
|
|
946
|
+
lines.push(`Scanned · ${scope}`);
|
|
947
|
+
}
|
|
932
948
|
lines.push('');
|
|
933
949
|
// errors-first markdown order (2026-04-30) · concerns + strengths
|
|
934
950
|
// BEFORE the score so the AI agent reading audit.md picks up the
|
|
@@ -1024,6 +1040,7 @@ export function toAgentShape(view) {
|
|
|
1024
1040
|
status: p.status,
|
|
1025
1041
|
creator: { name: p.creator_name, grade: p.creator_grade },
|
|
1026
1042
|
url: `https://commit.show/projects/${p.id}`,
|
|
1043
|
+
scanned_scope: snapshot?.github_signals?.scanned_scope ?? null,
|
|
1027
1044
|
},
|
|
1028
1045
|
score: {
|
|
1029
1046
|
track: isWalkOn ? 'walk_on' : 'league',
|