@clawcard/cli 2.1.7 → 2.1.8

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.1.7",
3
+ "version": "2.1.8",
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"
@@ -72,28 +72,41 @@ export async function signupCommand() {
72
72
  message: "Payment complete?",
73
73
  });
74
74
 
75
- if (p.isCancel(ready) || !ready) return;
75
+ if (!p.isCancel(ready) && ready) {
76
+ // Step 2: Create key
77
+ const createKey = await p.confirm({
78
+ message: "Create your agent key now?",
79
+ });
76
80
 
77
- // Step 2: Create key
78
- const createKey = await p.confirm({
79
- message: "Create your agent key now?",
80
- });
81
+ if (!p.isCancel(createKey) && createKey) {
82
+ const { keysCreateCommand } = await import("./keys.js");
83
+ await keysCreateCommand();
81
84
 
82
- if (!p.isCancel(createKey) && createKey) {
83
- const { keysCreateCommand } = await import("./keys.js");
84
- await keysCreateCommand();
85
+ // Step 3: Setup
86
+ const runSetup = await p.confirm({
87
+ message: "Set up your agent now?",
88
+ });
85
89
 
86
- // Step 3: Setup
87
- const runSetup = await p.confirm({
88
- message: "Set up your agent now?",
89
- });
90
-
91
- if (!p.isCancel(runSetup) && runSetup) {
92
- const { setupCommand } = await import("./setup.js");
93
- await setupCommand();
90
+ if (!p.isCancel(runSetup) && runSetup) {
91
+ const { setupCommand } = await import("./setup.js");
92
+ await setupCommand();
93
+ }
94
94
  }
95
95
  }
96
96
  }
97
+
98
+ // Always show next steps so the user knows where to go
99
+ p.note(
100
+ [
101
+ `${orange.bold("claw topup")} ${chalk.dim("Top up your balance")}`,
102
+ `${orange.bold("claw keys create")} ${chalk.dim("Create an agent key")}`,
103
+ `${orange.bold("claw setup")} ${chalk.dim("Set up your agent")}`,
104
+ `${orange.bold("claw dashboard")} ${chalk.dim("Open the portal")}`,
105
+ "",
106
+ chalk.dim(`Or visit: ${BASE_URL}/dashboard`),
107
+ ].join("\n"),
108
+ "You can pick up where you left off anytime"
109
+ );
97
110
  } catch (err) {
98
111
  s.stop("Signup failed");
99
112
  p.log.error(err.message);