@clawcard/cli 2.0.3 → 2.0.5

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.3",
3
+ "version": "2.0.5",
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
@@ -397,6 +397,7 @@ if (process.argv.length <= 2) {
397
397
  { value: "topup", label: "Top up my account", hint: "add balance (10% fee)" },
398
398
  { value: "referral", label: "Referral", hint: "share & earn $5" },
399
399
  { value: "whoami", label: "Who am I?", hint: "show current account" },
400
+ { value: "dashboard", label: "Open dashboard", hint: "open in browser" },
400
401
  { value: "logout", label: "Logout", hint: "clear session" },
401
402
  { value: "help", label: "Help", hint: "show all commands" },
402
403
  ];
@@ -421,6 +422,7 @@ if (process.argv.length <= 2) {
421
422
  "agent-fund": () => import("./commands/keys.js").then((m) => m.agentFundCommand()),
422
423
  "keys-create": () => import("./commands/keys.js").then((m) => m.keysCreateCommand()),
423
424
  "topup": () => import("./commands/billing.js").then((m) => m.billingTopupCommand()),
425
+ "dashboard": async () => { const { default: open } = await import("open"); await open("https://www.clawcard.sh/dashboard"); },
424
426
  keys: () => import("./commands/keys.js").then((m) => m.keysCommand()),
425
427
  setup: () => import("./commands/setup.js").then((m) => m.setupCommand()),
426
428
  billing: () =>
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", {