feat(hooks,doctor): statusline and banner read profile.sh current --plain once; doctor runs the pack census and checks cc.sh sourcing, user-scope residue and the opus default

This commit is contained in:
bchanot committed 2026-11-02 01:34:50 +01:00
1 parent 58958229d9
commit 6509ab2958
10 files changed
+131 -202

No files matched your search

+6 -5
View File
@@ -26,11 +26,12 @@ detect_superpowers() {
# --- Toggle plugins ---
detect_gstack() {
# gstack is exposed via per-skill symlinks in pack-gstack-* (browse, canary, qa, …);
# the legacy top-level symlink was removed to avoid duplicate entries.
# Detect by checking any of its individual skills.
[ -L "$HOME/.claude/skills/pack-gstack-browser/skills/browse" ] \
|| [ -L "$HOME/.claude/skills/pack-gstack-browser/skills/qa" ]
# gstack = the three packs; "on" = pack-gstack-dev on for this project and
# conversation. PROFILE_PLAIN (session-start) avoids a second profile.sh run.
local plain="${PROFILE_PLAIN:-}"
[ -n "$plain" ] || plain="$(bash "$HOME/.claude/lib/profile.sh" -C "$PWD" \
current --plain 2>/dev/null)" || return 1
grep -q '^pack-gstack-dev=on' <<<"$plain"
}
detect_gsd() {