@l4yercak3/cli 1.1.11 → 1.1.12
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/package.json +1 -1
- package/src/commands/spread.js +3 -3
package/package.json
CHANGED
package/src/commands/spread.js
CHANGED
|
@@ -220,9 +220,9 @@ async function handleSpread() {
|
|
|
220
220
|
console.log(chalk.gray(' Could not check existing keys, attempting to generate...'));
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
if (existingKeys && existingKeys.
|
|
224
|
-
// At API key limit - inform user and exit
|
|
225
|
-
console.log(chalk.yellow(` ⚠️ You've reached your API key limit (${existingKeys.keys
|
|
223
|
+
if (existingKeys && existingKeys.canCreateMore === false) {
|
|
224
|
+
// At API key limit - inform user and exit (only if explicitly false, not undefined)
|
|
225
|
+
console.log(chalk.yellow(` ⚠️ You've reached your API key limit (${existingKeys.keys?.length || 0} key(s))`));
|
|
226
226
|
if (existingKeys.limitDescription) {
|
|
227
227
|
console.log(chalk.gray(` ${existingKeys.limitDescription}`));
|
|
228
228
|
}
|