claudemesh-cli 1.0.0-alpha.3 → 1.0.0-alpha.4

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.
@@ -1414,38 +1414,10 @@ __export(exports_register, {
1414
1414
  register: () => register2
1415
1415
  });
1416
1416
  async function register2() {
1417
- try {
1418
- console.log(`
1419
- Opening browser for account signup…`);
1420
- console.log(` Create your account, then approve the CLI sign-in.
1421
- `);
1422
- try {
1423
- await openBrowser("https://claudemesh.com/auth/register");
1424
- } catch {
1425
- console.log(` Visit: https://claudemesh.com/auth/register
1426
- `);
1427
- }
1428
- const result = await loginWithDeviceCode();
1429
- console.log(` ${green(icons.check)} Signed in as ${result.user.display_name}.`);
1430
- try {
1431
- const meshes = await exports_my.getMeshes(result.session_token);
1432
- if (meshes.length > 0) {
1433
- const names = meshes.map((m) => m.slug).join(", ");
1434
- console.log(` ${green(icons.check)} Synced ${meshes.length} mesh${meshes.length === 1 ? "" : "es"}: ${names}`);
1435
- }
1436
- } catch {}
1437
- return EXIT.SUCCESS;
1438
- } catch (err) {
1439
- console.error(` ${icons.cross} Registration failed: ${err instanceof Error ? err.message : err}`);
1440
- return EXIT.AUTH_FAILED;
1441
- }
1417
+ return login();
1442
1418
  }
1443
1419
  var init_register = __esm(() => {
1444
- init_facade6();
1445
- init_facade2();
1446
- init_facade4();
1447
- init_styles();
1448
- init_exit_codes();
1420
+ init_login();
1449
1421
  });
1450
1422
 
1451
1423
  // src/commands/welcome.ts
@@ -10619,4 +10591,4 @@ main().catch((err) => {
10619
10591
  process.exit(EXIT.INTERNAL_ERROR);
10620
10592
  });
10621
10593
 
10622
- //# debugId=FA11CE2414855F8F64756E2164756E21
10594
+ //# debugId=E19FD569ECEFBA4764756E2164756E21