@syengup/friday-channel-next 0.0.45 → 0.0.46

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/install.js +13 -1
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { execSync } from "node:child_process";
3
- import { existsSync, readFileSync, writeFileSync } from "node:fs";
3
+ import { existsSync, readFileSync, writeFileSync, rmSync } from "node:fs";
4
4
  import { homedir, networkInterfaces } from "node:os";
5
5
  import { join } from "node:path";
6
6
 
@@ -102,6 +102,13 @@ try {
102
102
  if (out.trim()) console.log(out.trim());
103
103
  installed = true;
104
104
  log("Plugin registered with install record — auto-upgrade enabled.");
105
+
106
+ // Remove old manual install to avoid "duplicate plugin id" warning.
107
+ const legacyDir = join(USER_HOME, ".openclaw", "extensions", "friday-channel-next");
108
+ if (existsSync(legacyDir)) {
109
+ try { rmSync(legacyDir, { recursive: true, force: true }); log("Removed legacy manual install."); }
110
+ catch { /* non-critical */ }
111
+ }
105
112
  } catch (e) {
106
113
  const msg = (e.stderr || e.stdout || e.message || "").toString();
107
114
  warn("openclaw plugins install failed: " + msg.trim().split("\n").pop());
@@ -118,6 +125,11 @@ if (!installed) {
118
125
  }
119
126
  warn("Manual install complete, but auto-upgrade is NOT available.");
120
127
  warn("To enable auto-upgrade later, run: openclaw plugins install @syengup/friday-channel-next");
128
+ // Clean up legacy dir even in fallback to avoid duplicate warnings
129
+ if (existsSync(join(USER_HOME, ".openclaw", "extensions", "friday-channel-next"))) {
130
+ warn("Legacy install detected. Remove it to avoid duplicate warnings:");
131
+ warn(" rm -rf ~/.openclaw/extensions/friday-channel-next");
132
+ }
121
133
  }
122
134
 
123
135
  // --------------- configure OpenClaw ---------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syengup/friday-channel-next",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "description": "OpenClaw Friday Next Apple channel plugin",
5
5
  "type": "module",
6
6
  "files": [