standout 0.5.18 → 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.
- package/dist/cli.js +1 -1
- package/dist/wrapped/aggregate.js +10 -2
- package/dist/wrapped/render.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -105,7 +105,7 @@ async function maybeShareWrapped(wrapped) {
|
|
|
105
105
|
process.stderr.write(` your wrapped: ${wrapped.share_url}\n\n`);
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
const ans = await askLine(chalk.white("
|
|
108
|
+
const ans = await askLine(chalk.white(" press enter to see your ai wrapped "));
|
|
109
109
|
process.stderr.write("\n");
|
|
110
110
|
const shared = !ans || ans.toLowerCase() !== "n";
|
|
111
111
|
if (!shared) {
|
|
@@ -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/dist/wrapped/render.js
CHANGED
|
@@ -985,7 +985,7 @@ async function renderWrappedCards(view, mode) {
|
|
|
985
985
|
}
|
|
986
986
|
// Share prompt
|
|
987
987
|
process.stdout.write("\n");
|
|
988
|
-
const ans = await askLine(chalk.white("
|
|
988
|
+
const ans = await askLine(chalk.white(" press enter to see your ai wrapped "));
|
|
989
989
|
process.stdout.write("\n");
|
|
990
990
|
const shared = !ans || ans.toLowerCase() !== "n";
|
|
991
991
|
return { shared, cancelled: false };
|