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.
- package/dist/cli.js +10 -3
- 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
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
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) {
|