mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-17 09:46:06 +00:00
- Fix version consistency (PyPI: 4.0.0, NPM: 4.0.3) - Update license format to PEP 639 compliance - Restore NPM package components (bin/ and package.json) - Fix NPM package name to @superclaude-org/superclaude - Add comprehensive RELEASE_INSTRUCTIONS.md - Update .gitignore to include NPM files - Ready for production release on both PyPI and NPM Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
923 B
JavaScript
32 lines
923 B
JavaScript
#!/usr/bin/env node
|
|
const { run, detectPython, detectPip, isSuperClaudeInstalled } = require("./checkEnv");
|
|
|
|
console.log("🔍 Checking environment...");
|
|
|
|
let pythonCmd = detectPython();
|
|
if (!pythonCmd) {
|
|
console.error("❌ Python 3 is required but not found.");
|
|
process.exit(1);
|
|
}
|
|
console.log(`✅ Found Python: ${pythonCmd}`);
|
|
|
|
let pipCmd = detectPip();
|
|
if (!pipCmd) {
|
|
console.error("❌ pip is required but not found.");
|
|
process.exit(1);
|
|
}
|
|
console.log(`✅ Found Pip: ${pipCmd}`);
|
|
|
|
// Check installation
|
|
if (!isSuperClaudeInstalled(pipCmd)) {
|
|
console.log("📦 Installing SuperClaude from PyPI...");
|
|
const result = run(pipCmd, ["install", "SuperClaude"], { stdio: "inherit" });
|
|
if (result.status !== 0) {
|
|
console.error("❌ Installation failed.");
|
|
process.exit(1);
|
|
}
|
|
console.log("✅ SuperClaude installed successfully!");
|
|
} else {
|
|
console.log("✅ SuperClaude already installed.");
|
|
}
|