forked from bchanot/claude
feat(install): gstack disabled by default — opt-in via toggle-external
gstack ships ~40 skills that all load into Claude's context. Keeping them active by default taxes every session, even when the project has no browser-QA or deploy workflow. install-plugins.sh now calls `toggle-external.sh disable gstack` right after gstack's ./setup, so fresh installs land with gstack symlinks staged in skills-disabled/. update-all.sh captures the current enabled/disabled state before the submodule bump and restores it afterwards — otherwise ./setup would silently re-enable a user who had explicitly disabled gstack. To use gstack: `bash lib/toggle-external.sh enable gstack`. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,14 @@ echo ""
|
||||
printf " Proceed with GStack update? [y/N] "
|
||||
read -r _gstack_confirm
|
||||
if [[ "$_gstack_confirm" =~ ^[Yy]$ ]]; then
|
||||
# Capture gstack state before the update so we can restore it after
|
||||
# ./setup runs (setup re-creates every symlink; without this, an
|
||||
# update would silently re-enable a tool the user had disabled).
|
||||
_gstack_state="unknown"
|
||||
if [ -x "$REPO/lib/toggle-external.sh" ]; then
|
||||
_gstack_state=$(bash "$REPO/lib/toggle-external.sh" status gstack 2>/dev/null || echo "unknown")
|
||||
fi
|
||||
|
||||
if git submodule update --remote skills-external/gstack 2>/dev/null; then
|
||||
if [ -d "skills-external/gstack" ]; then
|
||||
if [ -x "skills-external/gstack/setup" ]; then
|
||||
@@ -76,6 +84,12 @@ if [[ "$_gstack_confirm" =~ ^[Yy]$ ]]; then
|
||||
else
|
||||
warn "GStack submodule update failed — run: git submodule update --init"
|
||||
fi
|
||||
|
||||
# Restore prior enabled/disabled state
|
||||
if [ "$_gstack_state" = "disabled" ] && [ -x "$REPO/lib/toggle-external.sh" ]; then
|
||||
bash "$REPO/lib/toggle-external.sh" disable gstack >/dev/null
|
||||
info "gstack was disabled before update — restored to disabled"
|
||||
fi
|
||||
else
|
||||
info "GStack update skipped"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user