@clawcard/cli 2.0.0 → 2.0.2
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 +9 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -314,6 +314,7 @@ program
|
|
|
314
314
|
.command("update")
|
|
315
315
|
.description("Update to the latest version")
|
|
316
316
|
.action(async () => {
|
|
317
|
+
const { checkForUpdate } = await import("./splash.js");
|
|
317
318
|
const s = p.spinner();
|
|
318
319
|
s.start("Checking for updates...");
|
|
319
320
|
const latest = await checkForUpdate();
|
|
@@ -379,14 +380,17 @@ if (process.argv.length <= 2) {
|
|
|
379
380
|
|
|
380
381
|
options = [
|
|
381
382
|
...(!hasBalance
|
|
382
|
-
? [{ value: "topup", label: "Top up
|
|
383
|
+
? [{ value: "topup", label: "Top up my account", hint: "required — minimum $5 to get started" }]
|
|
383
384
|
: !hasAgent
|
|
384
385
|
? [{ value: "keys-create", label: "Create agent", hint: "you have balance — create your agent now" }]
|
|
385
|
-
: [
|
|
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
|
+
]),
|
|
386
390
|
...(hasAgent
|
|
387
|
-
? [{ value: "setup", label: "
|
|
391
|
+
? [{ value: "setup", label: "Configure", hint: "install skill for your agent" }]
|
|
388
392
|
: []),
|
|
389
|
-
{ value: "
|
|
393
|
+
{ value: "topup", label: "Top up my account", hint: "add balance (10% fee)" },
|
|
390
394
|
{ value: "referral", label: "Referral", hint: "share & earn $5" },
|
|
391
395
|
{ value: "whoami", label: "Who am I?", hint: "show current account" },
|
|
392
396
|
{ value: "logout", label: "Logout", hint: "clear session" },
|
|
@@ -410,6 +414,7 @@ if (process.argv.length <= 2) {
|
|
|
410
414
|
logout: () => import("./commands/logout.js").then((m) => m.logoutCommand()),
|
|
411
415
|
whoami: () => import("./commands/whoami.js").then((m) => m.whoamiCommand()),
|
|
412
416
|
agent: () => import("./commands/keys.js").then((m) => m.agentStatusCommand()),
|
|
417
|
+
"agent-fund": () => import("./commands/keys.js").then((m) => m.agentFundCommand()),
|
|
413
418
|
"keys-create": () => import("./commands/keys.js").then((m) => m.keysCreateCommand()),
|
|
414
419
|
"topup": () => import("./commands/billing.js").then((m) => m.billingTopupCommand()),
|
|
415
420
|
keys: () => import("./commands/keys.js").then((m) => m.keysCommand()),
|