agenticmail 0.3.17 → 0.3.18

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 +20 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4386,10 +4386,27 @@ async function registerWithOpenClaw(config) {
4386
4386
  return;
4387
4387
  }
4388
4388
  }
4389
- const pluginDir = resolveOpenClawPluginDir();
4389
+ let pluginDir = resolveOpenClawPluginDir();
4390
4390
  if (!pluginDir) {
4391
- info2(`Install the OpenClaw plugin first: ${c2.green("npm i @agenticmail/openclaw")}`);
4392
- info2(`Then run: ${c2.green("agenticmail openclaw")}`);
4391
+ const installSpinner = new Spinner("plugin", "Installing @agenticmail/openclaw...");
4392
+ installSpinner.start();
4393
+ try {
4394
+ const { execSync } = await import("child_process");
4395
+ execSync("npm i @agenticmail/openclaw", {
4396
+ cwd: homedir(),
4397
+ timeout: 6e4,
4398
+ stdio: ["ignore", "pipe", "pipe"]
4399
+ });
4400
+ installSpinner.succeed("Installed @agenticmail/openclaw");
4401
+ pluginDir = resolveOpenClawPluginDir();
4402
+ } catch (err) {
4403
+ installSpinner.fail(`Could not install: ${err.message}`);
4404
+ info2(`Install manually: ${c2.green("npm i @agenticmail/openclaw")}`);
4405
+ return;
4406
+ }
4407
+ }
4408
+ if (!pluginDir) {
4409
+ fail2("Could not find @agenticmail/openclaw after install");
4393
4410
  return;
4394
4411
  }
4395
4412
  let agentApiKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenticmail",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "Email infrastructure for AI agents — send and receive real email programmatically",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",