@windyroad/c4 0.1.3 → 0.1.4-preview.77

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
@@ -37,7 +37,7 @@ utils.checkPrerequisites();
37
37
  if (flags.uninstall) {
38
38
  utils.uninstallPackage(PLUGIN);
39
39
  } else if (flags.update) {
40
- utils.updatePackage(PLUGIN);
40
+ utils.updatePackage(PLUGIN, { scope: flags.scope });
41
41
  } else {
42
42
  utils.installPackage(PLUGIN, { deps: DEPS, scope: flags.scope });
43
43
  }
@@ -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/c4",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-preview.77",
4
4
  "description": "C4 architecture diagram generation and validation",
5
5
  "bin": {
6
6
  "windyroad-c4": "./bin/install.mjs"