rampup 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/index.js +12 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1126,8 +1126,19 @@ Be friendly, practical, and reference specific files when relevant. If asked abo
1126
1126
 
1127
1127
  console.log(chalk.cyan('\nšŸ‘‹ Ending voice session...'));
1128
1128
  console.log(chalk.dim(`Session: ${totalSessionMinutes.toFixed(2)} min`));
1129
- console.log(chalk.dim(`Total usage: ${usage.totalMinutes.toFixed(2)} min\n`));
1130
1129
 
1130
+ // Show credits used and remaining
1131
+ try {
1132
+ const balance = await getTokenBalance();
1133
+ if (balance?.balances?.[0]) {
1134
+ const credits = balance.balances[0];
1135
+ const creditsUsed = Math.max(2, Math.ceil(totalSessionMinutes * 4));
1136
+ console.log(chalk.dim(`Credits used: ${creditsUsed}`));
1137
+ console.log(chalk.cyan(`Credits remaining: ${credits.balance}`));
1138
+ }
1139
+ } catch {}
1140
+
1141
+ console.log();
1131
1142
  process.exit(0);
1132
1143
  }
1133
1144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rampup",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Ramp - Understand any codebase in hours. AI-powered developer onboarding CLI.",
5
5
  "type": "module",
6
6
  "bin": {