feat: split dirigent_tools + human @mention override #14
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user