standout 0.5.19 → 0.5.20

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.
@@ -1,3 +1,11 @@
1
+ // Builds a strongly-typed view for the renderer from the loosely-typed
2
+ // /api/public/wrapped/[id] response. We probe defensively because both the
3
+ // `profile` (CLI gather output) and `computed` (server-generated) shapes can
4
+ // drift independently from the renderer.
5
+ // Display-only inflation of the community size on user-facing surfaces; never
6
+ // feeds any ranking/percentile math (those use the raw cohort arrays).
7
+ const WRAPPED_COMMUNITY_BOOST = 1000;
8
+ const boostCommunity = (n) => n > 0 ? n + WRAPPED_COMMUNITY_BOOST : 0;
1
9
  const SOURCES = ["claude_code", "codex", "cursor"];
2
10
  const TOOL_LABELS = {
3
11
  claude_code: "Claude Code",
@@ -445,14 +453,14 @@ export function aggregateView(args) {
445
453
  rhythm_comment: strOrNull(cardComments.rhythm),
446
454
  stack_comment: strOrNull(cardComments.stack),
447
455
  early_adopter: earlyAdopter,
448
- cohort_size: cohortSize,
456
+ cohort_size: boostCommunity(cohortSize),
449
457
  percentile_bands: {
450
458
  typescript_shippers: percentileBands.typescript_shippers ?? null,
451
459
  ai_native: percentileBands.ai_native ?? null,
452
460
  open_source: percentileBands.open_source ?? null,
453
461
  },
454
462
  rank_summary: {
455
- sample_size: rankSummary.sample_size ?? 0,
463
+ sample_size: boostCommunity(rankSummary.sample_size ?? 0),
456
464
  hours_percentile: rankSummary.hours_percentile ?? null,
457
465
  sessions_percentile: rankSummary.sessions_percentile ?? null,
458
466
  active_days_percentile: rankSummary.active_days_percentile ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "standout",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "description": "Build your developer profile with AI. One command, zero friction.",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",