claudeup 3.6.2 → 3.6.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudeup",
3
- "version": "3.6.2",
3
+ "version": "3.6.4",
4
4
  "description": "TUI tool for managing Claude Code plugins, MCPs, and configuration",
5
5
  "type": "module",
6
6
  "main": "src/main.tsx",
package/src/main.js CHANGED
@@ -3,10 +3,13 @@ import { jsx as _jsx } from "@opentui/react/jsx-runtime";
3
3
  import { createCliRenderer } from "@opentui/core";
4
4
  import { createRoot } from "@opentui/react";
5
5
  import { spawn } from "node:child_process";
6
+ import { createRequire } from "node:module";
6
7
  import { App } from "./ui/App.js";
7
8
  import { prerunClaude } from "./prerunner/index.js";
8
9
  import { checkForUpdates } from "./services/version-check.js";
9
- export const VERSION = "3.0.0";
10
+ const require = createRequire(import.meta.url);
11
+ const pkg = require("../package.json");
12
+ export const VERSION = pkg.version;
10
13
  // Note: OpenTUI renderer handles alternate screen buffer automatically
11
14
  // No need for manual ANSI escape codes
12
15
  async function main() {
package/src/main.tsx CHANGED
@@ -3,11 +3,14 @@
3
3
  import { createCliRenderer } from "@opentui/core";
4
4
  import { createRoot } from "@opentui/react";
5
5
  import { spawn } from "node:child_process";
6
+ import { createRequire } from "node:module";
6
7
  import { App } from "./ui/App.js";
7
8
  import { prerunClaude } from "./prerunner/index.js";
8
9
  import { checkForUpdates } from "./services/version-check.js";
9
10
 
10
- export const VERSION = "3.0.0";
11
+ const require = createRequire(import.meta.url);
12
+ const pkg = require("../package.json") as { version: string };
13
+ export const VERSION = pkg.version;
11
14
 
12
15
  // Note: OpenTUI renderer handles alternate screen buffer automatically
13
16
  // No need for manual ANSI escape codes
@@ -73,10 +73,14 @@ export async function disablePlugin(pluginId, scope = "user") {
73
73
  await execClaude(["plugin", "disable", pluginId, "--scope", scope]);
74
74
  }
75
75
  /**
76
- * Update a plugin to the latest version
76
+ * Update a plugin to the latest version.
77
+ * Uses `install` as primary method since `update` only works for plugins
78
+ * originally installed via the CLI. `install` handles both fresh installs
79
+ * and re-installs (upgrades) of existing plugins regardless of how they
80
+ * were originally added.
77
81
  */
78
82
  export async function updatePlugin(pluginId, scope = "user") {
79
- await execClaude(["plugin", "update", pluginId, "--scope", scope], 60000);
83
+ await execClaude(["plugin", "install", pluginId, "--scope", scope], 60000);
80
84
  }
81
85
  /**
82
86
  * Add a marketplace by GitHub repo (e.g., "MadAppGang/magus")
@@ -106,13 +106,17 @@ export async function disablePlugin(
106
106
  }
107
107
 
108
108
  /**
109
- * Update a plugin to the latest version
109
+ * Update a plugin to the latest version.
110
+ * Uses `install` as primary method since `update` only works for plugins
111
+ * originally installed via the CLI. `install` handles both fresh installs
112
+ * and re-installs (upgrades) of existing plugins regardless of how they
113
+ * were originally added.
110
114
  */
111
115
  export async function updatePlugin(
112
116
  pluginId: string,
113
117
  scope: PluginScope = "user",
114
118
  ): Promise<void> {
115
- await execClaude(["plugin", "update", pluginId, "--scope", scope], 60000);
119
+ await execClaude(["plugin", "install", pluginId, "--scope", scope], 60000);
116
120
  }
117
121
 
118
122
  /**