plugin-updater 1.0.9 → 1.0.10

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/index.js +11 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -209,11 +209,14 @@ const pluginUpdaterEntry = async function(input) {
209
209
  return {};
210
210
  };
211
211
 
212
- const apiMethods = { ...updaterAPI };
213
- delete apiMethods.name;
214
- Object.assign(pluginUpdaterEntry, apiMethods);
215
-
216
- // Guarantee the entry point can be activated as a standard plugin
217
- pluginUpdaterEntry.activate = async function() { return await pluginUpdaterEntry(); };
218
-
219
- module.exports = pluginUpdaterEntry;
212
+ module.exports = {
213
+ activate: async function() { return await pluginUpdaterEntry(); },
214
+ earlyLaunch: updaterAPI.earlyLaunch,
215
+ updatePlugin: updaterAPI.updatePlugin,
216
+ deployToExecutionDir: updaterAPI.deployToExecutionDir,
217
+ rebuild: updaterAPI.rebuild,
218
+ downgrade: updaterAPI.downgrade,
219
+ disable: updaterAPI.disable,
220
+ uninstall: updaterAPI.uninstall,
221
+ default: pluginUpdaterEntry
222
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-updater",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Plugin lifecycle manager for OpenCode and Claude Code launchers",
5
5
  "main": "index.js",
6
6
  "license": "MIT",