claudemesh-cli 1.0.0-alpha.6 → 1.0.0-alpha.7

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.
@@ -608,14 +608,26 @@ async function loginWithDeviceCode() {
608
608
  platform: device.platform,
609
609
  arch: device.arch
610
610
  });
611
- log(`
612
- Opening browser for sign-in…
613
- `);
614
- log(` If your browser didn't open, visit:`);
615
- log(` ${verification_url}?code=${user_code}
616
- `);
617
- log(` Waiting for confirmation…
618
- `);
611
+ const url = `${verification_url}?code=${user_code}`;
612
+ const isTTY2 = process.stdout.isTTY && !process.env.NO_COLOR;
613
+ const orange2 = (s) => isTTY2 ? `\x1B[38;5;208m${s}\x1B[0m` : s;
614
+ const bold2 = (s) => isTTY2 ? `\x1B[1m${s}\x1B[0m` : s;
615
+ const dim2 = (s) => isTTY2 ? `\x1B[2m${s}\x1B[0m` : s;
616
+ log("");
617
+ log(" " + orange2("claudemesh") + " — sign in to connect your terminal");
618
+ log("");
619
+ log(" ┌──────────────────────────────────┐");
620
+ log(" │ │");
621
+ log(" │ Your code: " + bold2(user_code) + " │");
622
+ log(" │ │");
623
+ log(" └──────────────────────────────────┘");
624
+ log("");
625
+ log(" " + dim2("Confirm this code matches your browser."));
626
+ log(" " + dim2("If your browser didn't open, visit:"));
627
+ log(" " + dim2(url));
628
+ log("");
629
+ log(" Waiting for confirmation… " + dim2("(Ctrl-C to cancel)"));
630
+ log("");
619
631
  try {
620
632
  await openBrowser(`${verification_url}?code=${user_code}`);
621
633
  } catch {
@@ -10602,4 +10614,4 @@ main().catch((err) => {
10602
10614
  process.exit(EXIT.INTERNAL_ERROR);
10603
10615
  });
10604
10616
 
10605
- //# debugId=9CB1A759EC6A796364756E2164756E21
10617
+ //# debugId=1511E5E3A793570664756E2164756E21