corrected bun
This commit is contained in:
parent
6340a243ed
commit
a6de9829e6
@ -183,12 +183,25 @@ if [ ! -d "$GSTACK_DIR/.git" ] && [ ! -f "$GSTACK_DIR/.git" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$GSTACK_DIR" ]; then
|
if [ -d "$GSTACK_DIR" ]; then
|
||||||
|
# --- bun (required by GStack ./setup) ---
|
||||||
|
if ! command -v bun &>/dev/null; then
|
||||||
|
info "Installing bun (required by GStack)..."
|
||||||
|
BUN_VERSION="1.3.10"
|
||||||
|
tmpfile=$(mktemp)
|
||||||
|
curl -fsSL "https://bun.sh/install" -o "$tmpfile"
|
||||||
|
BUN_VERSION="$BUN_VERSION" bash "$tmpfile" && rm -f "$tmpfile"
|
||||||
|
export PATH="$HOME/.bun/bin:$PATH"
|
||||||
|
command -v bun &>/dev/null && ok "bun $(bun --version)" || err "bun install failed"
|
||||||
|
else
|
||||||
|
ok "bun $(bun --version)"
|
||||||
|
fi
|
||||||
|
|
||||||
info "Running GStack setup..."
|
info "Running GStack setup..."
|
||||||
if [ -x "$GSTACK_DIR/setup" ]; then
|
if [ -x "$GSTACK_DIR/setup" ]; then
|
||||||
if (cd "$GSTACK_DIR" && ./setup) 2>/dev/null; then
|
if (cd "$GSTACK_DIR" && ./setup); then
|
||||||
: # setup succeeded
|
: # setup succeeded
|
||||||
else
|
else
|
||||||
warn "GStack ./setup failed — submodule present but setup incomplete"
|
warn "GStack ./setup failed — check output above"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
warn "GStack ./setup not found or not executable — skipping"
|
warn "GStack ./setup not found or not executable — skipping"
|
||||||
@ -269,22 +282,21 @@ echo ""
|
|||||||
if detect_ruflo; then
|
if detect_ruflo; then
|
||||||
ok "Ruflo MCP already configured"
|
ok "Ruflo MCP already configured"
|
||||||
else
|
else
|
||||||
warn "Ruflo requires manual setup — cannot auto-install (enterprise tool)"
|
info "Installing Ruflo MCP (minimal, --omit=optional ~40MB)..."
|
||||||
echo ""
|
if npm install -g ruflo@latest --omit=optional; then
|
||||||
echo " Steps:"
|
ok "ruflo npm package installed"
|
||||||
echo " 1. Install the package:"
|
info "Registering Ruflo as MCP server..."
|
||||||
echo " npm install -g ruflo@latest # full (~340MB)"
|
if claude mcp add --scope user ruflo -- npx ruflo mcp start 2>/dev/null; then
|
||||||
echo " npm install -g ruflo@latest --omit=optional # minimal"
|
ok "Ruflo MCP registered"
|
||||||
echo ""
|
else
|
||||||
echo " 2. Register as MCP server in Claude Code:"
|
warn "Ruflo MCP registration failed or already registered"
|
||||||
echo " claude mcp add --scope user ruflo -- npx ruflo mcp start"
|
echo " Run manually: claude mcp add --scope user ruflo -- npx ruflo mcp start"
|
||||||
echo ""
|
fi
|
||||||
echo " 3. Verify:"
|
else
|
||||||
echo " claude mcp list | grep ruflo"
|
err "Ruflo npm install failed"
|
||||||
echo ""
|
echo " Fallback — run the official installer:"
|
||||||
echo " Or use the automated installer:"
|
|
||||||
echo " curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/ruflo@main/scripts/install.sh | bash -s -- --full"
|
echo " curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/ruflo@main/scripts/install.sh | bash -s -- --full"
|
||||||
echo ""
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
@ -298,7 +310,7 @@ echo ""
|
|||||||
install_plugin() {
|
install_plugin() {
|
||||||
local name="$1"
|
local name="$1"
|
||||||
local source="$2"
|
local source="$2"
|
||||||
if claude plugin list 2>/dev/null | grep -qi "^\s*$name"; then
|
if claude plugin list 2>/dev/null | grep -qi "$name"; then
|
||||||
ok "$name (already installed)"
|
ok "$name (already installed)"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -311,6 +323,9 @@ install_plugin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Official Anthropic (always on)
|
# Official Anthropic (always on)
|
||||||
|
# Add the official marketplace so CC knows the source; no-op if already registered or built-in
|
||||||
|
info "Adding official Anthropic plugins marketplace..."
|
||||||
|
claude plugin marketplace add anthropic/claude-plugins-official 2>/dev/null || true
|
||||||
install_plugin "security-guidance" "claude-plugins-official"
|
install_plugin "security-guidance" "claude-plugins-official"
|
||||||
install_plugin "frontend-design" "claude-plugins-official"
|
install_plugin "frontend-design" "claude-plugins-official"
|
||||||
install_plugin "skill-creator" "claude-plugins-official"
|
install_plugin "skill-creator" "claude-plugins-official"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user