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.
- package/index.js +12 -1
- 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
|
|