@syengup/friday-channel-next 0.0.24 → 0.0.25

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 +9 -0
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -126,6 +126,15 @@ if (!existsSync(OPENCLAW_CONFIG)) {
126
126
 
127
127
  if (existsSync(PLUGIN_DIR)) {
128
128
  log(`Plugin directory found: ${PLUGIN_DIR}`);
129
+ if (existsSync(join(PLUGIN_DIR, ".git"))) {
130
+ try {
131
+ log("Pulling latest changes...");
132
+ execSync("git fetch origin && git checkout -f origin/main", { cwd: PLUGIN_DIR, stdio: "pipe" });
133
+ log("Updated to latest version.");
134
+ } catch {
135
+ warn("Could not update from git — continuing with existing source.");
136
+ }
137
+ }
129
138
  } else if (isRunningFromNpmPackage()) {
130
139
  log(`Copying plugin from npm package to ${PLUGIN_DIR} ...`);
131
140
  cpSync(__dirname, PLUGIN_DIR, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syengup/friday-channel-next",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "OpenClaw Friday Next Apple channel plugin",
5
5
  "type": "module",
6
6
  "files": [