agenticmail 0.3.16 → 0.3.17

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 +10 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4375,9 +4375,16 @@ async function registerWithOpenClaw(config) {
4375
4375
  try {
4376
4376
  const raw = readFileSync2(openclawConfigPath, "utf-8");
4377
4377
  const existing = JSON5.parse(raw);
4378
- if (existing.plugins?.entries?.agenticmail?.config?.apiKey) {
4379
- ok2(`OpenClaw integration already configured`);
4380
- return;
4378
+ const existingEntry = existing.plugins?.entries?.agenticmail;
4379
+ if (existingEntry?.config?.apiKey) {
4380
+ const existingPaths = existing.plugins?.load?.paths ?? [];
4381
+ const pluginFound = existingPaths.some(
4382
+ (p) => existsSync2(join(p, "openclaw.plugin.json"))
4383
+ );
4384
+ if (pluginFound) {
4385
+ ok2(`OpenClaw integration already configured`);
4386
+ return;
4387
+ }
4381
4388
  }
4382
4389
  const pluginDir = resolveOpenClawPluginDir();
4383
4390
  if (!pluginDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenticmail",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Email infrastructure for AI agents — send and receive real email programmatically",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",