plugin-updater 1.0.35 → 1.0.36

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/dist/index.js +9 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -423,7 +423,15 @@ async function deployToExecutionDir(pluginName, executionPath, changed, configDi
423
423
  const deployed = await import(pluginExecutionFile);
424
424
  if (typeof deployed.activate === "function") {
425
425
  writeLog(`Activating ${pluginName}`);
426
- await deployed.activate();
426
+ // tells the plugin the updater is the caller, so it must not start
427
+ // another earlyLaunch and recurse back into the updater
428
+ process.env.PLUGIN_UPDATER_ACTIVATION = "1";
429
+ try {
430
+ await deployed.activate();
431
+ }
432
+ finally {
433
+ delete process.env.PLUGIN_UPDATER_ACTIVATION;
434
+ }
427
435
  writeLog(`Activated ${pluginName}`);
428
436
  }
429
437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-updater",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Plugin lifecycle manager for OpenCode and Claude Code launchers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",