@agenticmail/cli 0.5.58 → 0.5.60

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/dist/cli.js +26 -0
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -6481,6 +6481,17 @@ async function cmdStart() {
6481
6481
  if (svcResult.installed) {
6482
6482
  ok2(`${c2.bold("Auto-start")} enabled \u2014 survives reboots`);
6483
6483
  }
6484
+ } else {
6485
+ const repair = svc.needsRepair();
6486
+ if (repair) {
6487
+ info2(`Auto-start service is stale (${repair.reason}); refreshing...`);
6488
+ const svcResult = svc.reinstall();
6489
+ if (svcResult.installed) {
6490
+ ok2(`${c2.bold("Auto-start")} refreshed for the new install path`);
6491
+ } else {
6492
+ info2(`Could not refresh auto-start: ${svcResult.message}`);
6493
+ }
6494
+ }
6484
6495
  }
6485
6496
  } catch {
6486
6497
  }
@@ -6735,6 +6746,21 @@ switch (command) {
6735
6746
  process.exit(1);
6736
6747
  });
6737
6748
  break;
6749
+ case "--version":
6750
+ case "-v":
6751
+ case "version": {
6752
+ try {
6753
+ const { readFileSync: readFileSync3 } = await import("fs");
6754
+ const { join: join2, dirname: dirname2 } = await import("path");
6755
+ const { fileURLToPath: fileURLToPath2 } = await import("url");
6756
+ const thisDir = dirname2(fileURLToPath2(import.meta.url));
6757
+ const pkg = JSON.parse(readFileSync3(join2(thisDir, "..", "package.json"), "utf-8"));
6758
+ console.log(pkg.version ?? "unknown");
6759
+ } catch {
6760
+ console.log("unknown");
6761
+ }
6762
+ process.exit(0);
6763
+ }
6738
6764
  case "help":
6739
6765
  case "--help":
6740
6766
  case "-h":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/cli",
3
- "version": "0.5.58",
3
+ "version": "0.5.60",
4
4
  "description": "Email and SMS infrastructure for AI agents — the first platform to give agents real email addresses and phone numbers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "prepublishOnly": "npm run build"
29
29
  },
30
30
  "dependencies": {
31
- "@agenticmail/api": "^0.5.58",
32
- "@agenticmail/core": "^0.5.0",
31
+ "@agenticmail/api": "^0.5.60",
32
+ "@agenticmail/core": "^0.5.59",
33
33
  "json5": "^2.2.3"
34
34
  },
35
35
  "devDependencies": {