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.
- package/dist/cli.js +20 -3
- 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
|
-
|
|
4389
|
+
let pluginDir = resolveOpenClawPluginDir();
|
|
4390
4390
|
if (!pluginDir) {
|
|
4391
|
-
|
|
4392
|
-
|
|
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;
|