@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 +1 -1
- package/src/commands/signup.js +29 -16
package/package.json
CHANGED
package/src/commands/signup.js
CHANGED
|
@@ -72,28 +72,41 @@ export async function signupCommand() {
|
|
|
72
72
|
message: "Payment complete?",
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
if (p.isCancel(ready)
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
+
if (!p.isCancel(createKey) && createKey) {
|
|
82
|
+
const { keysCreateCommand } = await import("./keys.js");
|
|
83
|
+
await keysCreateCommand();
|
|
81
84
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
// Step 3: Setup
|
|
86
|
+
const runSetup = await p.confirm({
|
|
87
|
+
message: "Set up your agent now?",
|
|
88
|
+
});
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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);
|