decoy-mcp 0.4.3 → 0.4.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/bin/cli.mjs +11 -1
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -218,6 +218,15 @@ async function init(flags) {
|
|
|
218
218
|
try {
|
|
219
219
|
data = await signup(email);
|
|
220
220
|
} catch (e) {
|
|
221
|
+
if (e.message.includes("already exists")) {
|
|
222
|
+
log(` ${DIM}Account exists for ${email}. Log in with your token:${RESET}`);
|
|
223
|
+
log("");
|
|
224
|
+
log(` ${BOLD}npx decoy-mcp login --token=YOUR_TOKEN${RESET}`);
|
|
225
|
+
log("");
|
|
226
|
+
log(` ${DIM}Find your token in your welcome email or at${RESET}`);
|
|
227
|
+
log(` ${DIM}https://app.decoy.run/login${RESET}`);
|
|
228
|
+
process.exit(1);
|
|
229
|
+
}
|
|
221
230
|
log(` ${RED}${e.message}${RESET}`);
|
|
222
231
|
process.exit(1);
|
|
223
232
|
}
|
|
@@ -564,7 +573,8 @@ async function login(flags) {
|
|
|
564
573
|
}
|
|
565
574
|
|
|
566
575
|
function pad(str, width) {
|
|
567
|
-
|
|
576
|
+
const s = String(str || "");
|
|
577
|
+
return s.length >= width ? s : s + " ".repeat(width - s.length);
|
|
568
578
|
}
|
|
569
579
|
|
|
570
580
|
function timeAgo(isoString) {
|