@windyroad/agent-plugins 0.1.5-preview.72 → 0.1.6-preview.75

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.
package/bin/install.mjs CHANGED
@@ -140,7 +140,7 @@ To uninstall: npx @windyroad/agent-plugins --uninstall
140
140
  `);
141
141
  }
142
142
 
143
- function doUpdate(plugins) {
143
+ function doUpdate(plugins, { scope = "project" } = {}) {
144
144
  console.log("\nUpdating Windy Road AI agent plugins...\n");
145
145
 
146
146
  console.log("[1/2] Updating marketplace...");
@@ -152,7 +152,7 @@ function doUpdate(plugins) {
152
152
  console.log(`\n[2/2] Updating plugins (${plugins.length})...`);
153
153
  let updated = 0;
154
154
  for (const plugin of plugins) {
155
- if (utils.updatePlugin(plugin)) updated++;
155
+ if (utils.updatePlugin(plugin, { scope })) updated++;
156
156
  }
157
157
  console.log(` ${updated}/${plugins.length} plugins updated.`);
158
158
 
@@ -188,7 +188,7 @@ const plugins = flags.plugins ?? PLUGINS;
188
188
  if (flags.uninstall) {
189
189
  doUninstall(plugins);
190
190
  } else if (flags.update) {
191
- doUpdate(plugins);
191
+ doUpdate(plugins, { scope: flags.scope });
192
192
  } else {
193
193
  doInstall(plugins, { scope: flags.scope });
194
194
  }
@@ -62,8 +62,11 @@ export function installPlugin(pluginName, { scope = "project" } = {}) {
62
62
  );
63
63
  }
64
64
 
65
- export function updatePlugin(pluginName) {
66
- return run(`claude plugin update ${pluginName}`, pluginName);
65
+ export function updatePlugin(pluginName, { scope = "project" } = {}) {
66
+ return run(
67
+ `claude plugin update "${pluginName}@${MARKETPLACE_NAME}" --scope ${scope}`,
68
+ pluginName
69
+ );
67
70
  }
68
71
 
69
72
  export function uninstallPlugin(pluginName) {
@@ -94,14 +97,14 @@ export function installPackage(pluginName, { deps = [], scope = "project" } = {}
94
97
  /**
95
98
  * Update a single package.
96
99
  */
97
- export function updatePackage(pluginName) {
100
+ export function updatePackage(pluginName, { scope = "project" } = {}) {
98
101
  console.log(`\nUpdating @windyroad/${pluginName.replace("wr-", "")}...\n`);
99
102
 
100
103
  run(
101
104
  `claude plugin marketplace update ${MARKETPLACE_NAME}`,
102
105
  "Updating marketplace"
103
106
  );
104
- updatePlugin(pluginName);
107
+ updatePlugin(pluginName, { scope });
105
108
 
106
109
  console.log("\nDone! Restart Claude Code to apply updates.\n");
107
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/agent-plugins",
3
- "version": "0.1.5-preview.72",
3
+ "version": "0.1.6-preview.75",
4
4
  "description": "One-command installer for all Windy Road AI agent plugins and skills",
5
5
  "bin": {
6
6
  "windyroad-agent-plugins": "./bin/install.mjs"