agenticmail 0.3.13 → 0.3.14

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 +24 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4451,7 +4451,30 @@ async function registerWithOpenClaw(config) {
4451
4451
  }
4452
4452
  };
4453
4453
  writeFileSync2(openclawConfig, JSON.stringify(ocConfig, null, 2) + "\n", "utf8");
4454
- ok2(`OpenClaw integration configured \u2014 your agents can now use email!`);
4454
+ ok2(`OpenClaw config updated: ${c2.cyan(openclawConfig)}`);
4455
+ if (pluginPath) ok2(`Plugin found: ${c2.cyan(pluginPath)}`);
4456
+ let hasOpenClawCli = false;
4457
+ try {
4458
+ const { execSync } = await import("child_process");
4459
+ execSync("which openclaw", { stdio: "ignore" });
4460
+ hasOpenClawCli = true;
4461
+ } catch {
4462
+ }
4463
+ if (hasOpenClawCli) {
4464
+ log2("");
4465
+ const restartSpinner = new Spinner("gateway", "Restarting OpenClaw gateway...");
4466
+ restartSpinner.start();
4467
+ try {
4468
+ const { execSync } = await import("child_process");
4469
+ execSync("openclaw gateway restart", { stdio: "pipe", timeout: 3e4 });
4470
+ restartSpinner.succeed("OpenClaw gateway restarted");
4471
+ } catch {
4472
+ restartSpinner.fail("Gateway restart failed");
4473
+ log2(` Run manually: ${c2.green("openclaw gateway restart")}`);
4474
+ }
4475
+ } else {
4476
+ info2(`Restart OpenClaw to pick up the changes: ${c2.green("openclaw gateway restart")}`);
4477
+ }
4455
4478
  } catch {
4456
4479
  }
4457
4480
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenticmail",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Email infrastructure for AI agents — send and receive real email programmatically",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",