agenticmail 0.5.51 → 0.5.53

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 +7 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5042,7 +5042,7 @@ async function registerWithOpenClaw(config) {
5042
5042
  info2(`Install manually: ${c2.green("npm i @agenticmail/openclaw@latest")}`);
5043
5043
  return;
5044
5044
  }
5045
- const existingEntry = existing.plugins?.entries?.agenticmail;
5045
+ const existingEntry = existing.plugins?.entries?.openclaw ?? existing.plugins?.entries?.agenticmail;
5046
5046
  if (existingEntry?.config?.apiKey) {
5047
5047
  const existingPaths = existing.plugins?.load?.paths ?? [];
5048
5048
  const pluginFound = existingPaths.some(
@@ -5533,10 +5533,13 @@ function mergePluginConfig(existing, apiUrl, masterKey, agentApiKey, pluginDir)
5533
5533
  const pluginConfig = { apiUrl };
5534
5534
  if (agentApiKey) pluginConfig.apiKey = agentApiKey;
5535
5535
  pluginConfig.masterKey = masterKey;
5536
- const existingEntry = existing?.plugins?.entries?.agenticmail;
5536
+ const existingEntry = existing?.plugins?.entries?.openclaw ?? existing?.plugins?.entries?.agenticmail;
5537
5537
  if (existingEntry) {
5538
5538
  pluginConfig.apiUrl = pluginConfig.apiUrl || existingEntry.config?.apiUrl;
5539
5539
  }
5540
+ if (existing?.plugins?.entries?.agenticmail) {
5541
+ delete existing.plugins.entries.agenticmail;
5542
+ }
5540
5543
  const existingPaths = existing?.plugins?.load?.paths ?? [];
5541
5544
  let loadPaths = [...existingPaths];
5542
5545
  if (pluginDir && !loadPaths.includes(pluginDir)) {
@@ -5563,7 +5566,7 @@ function mergePluginConfig(existing, apiUrl, masterKey, agentApiKey, pluginDir)
5563
5566
  ...existing?.plugins ?? {},
5564
5567
  entries: {
5565
5568
  ...existing?.plugins?.entries ?? {},
5566
- agenticmail: {
5569
+ openclaw: {
5567
5570
  enabled: true,
5568
5571
  ...existingEntry ?? {},
5569
5572
  config: {
@@ -6083,7 +6086,7 @@ async function cmdOpenClaw() {
6083
6086
  log2(` ${c2.dim("plugins.load.paths:")}`);
6084
6087
  log2(` ${c2.dim(` - "${pluginDir}"`)}`);
6085
6088
  }
6086
- log2(` ${c2.dim("plugins.entries.agenticmail:")}`);
6089
+ log2(` ${c2.dim("plugins.entries.openclaw:")}`);
6087
6090
  log2(` ${c2.dim(" enabled: true")}`);
6088
6091
  log2(` ${c2.dim(" config:")}`);
6089
6092
  log2(` ${c2.dim(` apiUrl: "${apiUrl}"`)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenticmail",
3
- "version": "0.5.51",
3
+ "version": "0.5.53",
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",