@clawcard/cli 2.0.2 → 2.0.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawcard/cli",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "The ClawCard CLI — manage your agent keys, billing, and setup from the terminal",
5
5
  "bin": {
6
6
  "clawcard": "./bin/clawcard.mjs"
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
- `You need at least $5 balance to create an agent. Run ${orange("clawcard billing topup")} to get started.`
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
- ? [{ value: "setup", label: "Configure", hint: "install skill for your agent" }]
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" },
package/src/splash.js CHANGED
@@ -42,20 +42,10 @@ export async function checkForUpdate() {
42
42
  }
43
43
 
44
44
  export async function performAutoUpdate() {
45
- const config = getConfig() || {};
46
- const lastCheck = config.lastUpdateCheck || 0;
47
- const now = Date.now();
48
-
49
- // Skip if checked within last hour
50
- if (now - lastCheck < 3600000) return;
51
-
52
- // Save check time
53
- saveConfig({ ...config, lastUpdateCheck: now });
54
-
55
45
  const latest = await checkForUpdate();
56
46
  if (!latest) return;
57
47
 
58
- console.log(` Updating ClawCard CLI to v${latest}...`);
48
+ console.log(` Updating to v${latest}...`);
59
49
 
60
50
  try {
61
51
  execSync("npm i -g @clawcard/cli@latest", {