@gopherhole/cli 0.1.12 → 0.1.13
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/index.js +4 -2
- package/package.json +1 -1
- package/src/index.ts +4 -2
package/dist/index.js
CHANGED
|
@@ -1131,7 +1131,8 @@ ${chalk_1.default.bold('Examples:')}
|
|
|
1131
1131
|
accessBadge = chalk_1.default.blue('👤YOURS');
|
|
1132
1132
|
}
|
|
1133
1133
|
else if (agent.accessStatus === 'approved' || agent.accessStatus === 'open') {
|
|
1134
|
-
|
|
1134
|
+
const discountText = agent.discountPercent ? ` ${agent.discountPercent}% OFF` : '';
|
|
1135
|
+
accessBadge = chalk_1.default.green(`✓ACCESS${discountText}`);
|
|
1135
1136
|
}
|
|
1136
1137
|
else if (agent.accessStatus === 'pending') {
|
|
1137
1138
|
accessBadge = chalk_1.default.yellow('⏳PENDING');
|
|
@@ -1249,7 +1250,8 @@ ${chalk_1.default.bold('Example:')}
|
|
|
1249
1250
|
accessLine = chalk_1.default.blue('👤 Your agent');
|
|
1250
1251
|
}
|
|
1251
1252
|
else if (agent.accessStatus === 'approved') {
|
|
1252
|
-
|
|
1253
|
+
const discountText = agent.discountPercent ? chalk_1.default.cyan(` (${agent.discountPercent}% discount)`) : '';
|
|
1254
|
+
accessLine = chalk_1.default.green('✓ You have access') + discountText;
|
|
1253
1255
|
}
|
|
1254
1256
|
else if (agent.accessStatus === 'open') {
|
|
1255
1257
|
accessLine = chalk_1.default.green('✓ Open access (instant)');
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1251,7 +1251,8 @@ ${chalk.bold('Examples:')}
|
|
|
1251
1251
|
if (agent.accessStatus === 'owner') {
|
|
1252
1252
|
accessBadge = chalk.blue('👤YOURS');
|
|
1253
1253
|
} else if (agent.accessStatus === 'approved' || agent.accessStatus === 'open') {
|
|
1254
|
-
|
|
1254
|
+
const discountText = agent.discountPercent ? ` ${agent.discountPercent}% OFF` : '';
|
|
1255
|
+
accessBadge = chalk.green(`✓ACCESS${discountText}`);
|
|
1255
1256
|
} else if (agent.accessStatus === 'pending') {
|
|
1256
1257
|
accessBadge = chalk.yellow('⏳PENDING');
|
|
1257
1258
|
} else if (agent.accessStatus === 'denied') {
|
|
@@ -1375,7 +1376,8 @@ ${chalk.bold('Example:')}
|
|
|
1375
1376
|
if (agent.accessStatus === 'owner') {
|
|
1376
1377
|
accessLine = chalk.blue('👤 Your agent');
|
|
1377
1378
|
} else if (agent.accessStatus === 'approved') {
|
|
1378
|
-
|
|
1379
|
+
const discountText = agent.discountPercent ? chalk.cyan(` (${agent.discountPercent}% discount)`) : '';
|
|
1380
|
+
accessLine = chalk.green('✓ You have access') + discountText;
|
|
1379
1381
|
} else if (agent.accessStatus === 'open') {
|
|
1380
1382
|
accessLine = chalk.green('✓ Open access (instant)');
|
|
1381
1383
|
} else if (agent.accessStatus === 'pending') {
|