@clawcard/cli 2.0.2 → 2.0.3
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/index.js +15 -11
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -370,7 +370,13 @@ if (process.argv.length <= 2) {
|
|
|
370
370
|
|
|
371
371
|
if (!hasBalance) {
|
|
372
372
|
p.log.warn(
|
|
373
|
-
`
|
|
373
|
+
`Account balance is under $5. Run ${orange("clawcard billing topup")} to add funds.`
|
|
374
|
+
);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if (!hasAgent && !hasBalance) {
|
|
378
|
+
p.log.info(
|
|
379
|
+
chalk.dim("You need at least $5 balance before creating an agent.")
|
|
374
380
|
);
|
|
375
381
|
} else if (!hasAgent) {
|
|
376
382
|
p.log.warn(
|
|
@@ -379,17 +385,15 @@ if (process.argv.length <= 2) {
|
|
|
379
385
|
}
|
|
380
386
|
|
|
381
387
|
options = [
|
|
382
|
-
...(!hasBalance
|
|
383
|
-
? [{ value: "topup", label: "Top up my account", hint: "required — minimum $5 to get started" }]
|
|
384
|
-
: !hasAgent
|
|
385
|
-
? [{ value: "keys-create", label: "Create agent", hint: "you have balance — create your agent now" }]
|
|
386
|
-
: [
|
|
387
|
-
{ value: "agent", label: "View agent details", hint: "phone, email, budget" },
|
|
388
|
-
{ value: "agent-fund", label: "Fund my agent", hint: "allocate budget from your balance" },
|
|
389
|
-
]),
|
|
390
388
|
...(hasAgent
|
|
391
|
-
? [
|
|
392
|
-
|
|
389
|
+
? [
|
|
390
|
+
{ value: "agent", label: "View agent details", hint: "phone, email, budget" },
|
|
391
|
+
{ value: "agent-fund", label: "Fund my agent", hint: "allocate budget from your balance" },
|
|
392
|
+
{ value: "setup", label: "Configure", hint: "install skill for your agent" },
|
|
393
|
+
]
|
|
394
|
+
: hasBalance
|
|
395
|
+
? [{ value: "keys-create", label: "Create agent", hint: "you have balance — create your agent now" }]
|
|
396
|
+
: []),
|
|
393
397
|
{ value: "topup", label: "Top up my account", hint: "add balance (10% fee)" },
|
|
394
398
|
{ value: "referral", label: "Referral", hint: "share & earn $5" },
|
|
395
399
|
{ value: "whoami", label: "Who am I?", hint: "show current account" },
|