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.
Files changed (2) hide show
  1. package/bin/cli.mjs +11 -1
  2. 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
- return str.length >= width ? str : str + " ".repeat(width - str.length);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decoy-mcp",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Security tripwires for AI agents. Detect prompt injection in real time.",
5
5
  "bin": {
6
6
  "decoy-mcp": "bin/cli.mjs"