From e8de773ee43aaf79636170a394d68f04c7911b42 Mon Sep 17 00:00:00 2001 From: orion Date: Sat, 7 Mar 2026 19:22:11 +0000 Subject: [PATCH] fix(installer): install no-reply API at expected plugins/no-reply-api path --- scripts/install-dirigent-openclaw.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/install-dirigent-openclaw.mjs b/scripts/install-dirigent-openclaw.mjs index 3c56b27..7669627 100755 --- a/scripts/install-dirigent-openclaw.mjs +++ b/scripts/install-dirigent-openclaw.mjs @@ -133,7 +133,7 @@ function syncDir(srcDir, destDir) { // ── Determine plugin install path ───────────────────────────────────────── const PLUGINS_DIR = path.join(OPENCLAW_DIR, "plugins"); const PLUGIN_INSTALL_DIR = path.join(PLUGINS_DIR, "dirigent"); -const NO_REPLY_INSTALL_DIR = path.join(PLUGINS_DIR, "dirigent-no-reply-api"); +const NO_REPLY_INSTALL_DIR = path.join(PLUGINS_DIR, "no-reply-api"); // ── Config helpers ──────────────────────────────────────────────────────── const NO_REPLY_PROVIDER_ID = env.NO_REPLY_PROVIDER_ID || "dirigentway"; @@ -448,11 +448,17 @@ else if (mode === "uninstall") { console.log(`[dirigent] removed plugin dir: ${installedPluginDir}`); } // Also remove no-reply-api dir - const noReplyDir = path.join(path.dirname(installedPluginDir), "dirigent-no-reply-api"); + const noReplyDir = path.join(path.dirname(installedPluginDir), "no-reply-api"); if (fs.existsSync(noReplyDir)) { fs.rmSync(noReplyDir, { recursive: true, force: true }); console.log(`[dirigent] removed no-reply-api dir: ${noReplyDir}`); } + // Backward-compat cleanup for older mistaken install path + const legacyNoReplyDir = path.join(path.dirname(installedPluginDir), "dirigent-no-reply-api"); + if (fs.existsSync(legacyNoReplyDir)) { + fs.rmSync(legacyNoReplyDir, { recursive: true, force: true }); + console.log(`[dirigent] removed legacy no-reply-api dir: ${legacyNoReplyDir}`); + } writeRecord("uninstall", delta); console.log("[dirigent] uninstall ok");