diff --git a/bin/update.js b/bin/update.js new file mode 100644 index 0000000..e1381c7 --- /dev/null +++ b/bin/update.js @@ -0,0 +1,17 @@ +#!/usr/bin/env node +const { run, detectPip } = require("./checkEnv"); + +let pipCmd = detectPip(); +if (!pipCmd) { + console.error("❌ pip not found, cannot update."); + process.exit(1); +} + +console.log("🔄 Updating SuperClaude from PyPI..."); +const result = run(pipCmd, ["install", "--upgrade", "SuperClaude"], { stdio: "inherit" }); +if (result.status !== 0) { + console.error("❌ Update failed."); + process.exit(1); +} +console.log("✅ SuperClaude updated successfully!"); +