forked from bchanot/claude
docs(phase5): higgsfield citers, MIGRATION fenced steps + real-dir impeccable, gate header, /profile allowed-tools, wording
This commit is contained in:
1 parent
9327b4fcd0
commit
94ce345aa2
12 files changed
+93
-55
No files matched your search
@@ -65,7 +65,8 @@ unset _gg_lib
|
||||
# ── Toggle plugin detection ──
|
||||
|
||||
# One profile.sh run, shared with detect_gstack through PROFILE_PLAIN.
|
||||
PROFILE_PLAIN="$(bash "$HOME/.claude/lib/profile.sh" -C "$PWD" current --plain 2>/dev/null)" || PROFILE_PLAIN=""
|
||||
PROFILE_PLAIN="$(bash "$HOME/.claude/lib/profile.sh" -C "$PWD" current \
|
||||
--plain 2>/dev/null)" || PROFILE_PLAIN=""
|
||||
export PROFILE_PLAIN
|
||||
|
||||
TOGGLE_ACTIVE=()
|
||||
|
||||
+6
-3
@@ -6,7 +6,8 @@ INPUT=$(cat)
|
||||
|
||||
MODEL=$(echo "$INPUT" | jq -r '.model.display_name // "?"')
|
||||
DIR=$(echo "$INPUT" | jq -r '.cwd // "?"')
|
||||
PROJ=$(echo "$INPUT" | jq -r '.workspace.project_dir // .cwd // "."' 2>/dev/null)
|
||||
PROJ=$(echo "$INPUT" \
|
||||
| jq -r '.workspace.project_dir // .cwd // "."' 2>/dev/null)
|
||||
FOLDER="${DIR##*/}"
|
||||
PCT=$(echo "$INPUT" | jq -r \
|
||||
'.context_window.used_percentage // 0' \
|
||||
@@ -24,10 +25,12 @@ REPO="$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
# Profile of this project and conversation: `profile.sh current --plain`
|
||||
# (two jq calls) on the session's project dir. `(conv)` = a --settings
|
||||
# conversation. Any failure -> "?".
|
||||
_plain="$(bash "$REPO/lib/profile.sh" -C "$PROJ" current --plain 2>/dev/null)" || _plain=""
|
||||
_plain="$(bash "$REPO/lib/profile.sh" -C "$PROJ" current --plain \
|
||||
2>/dev/null)" || _plain=""
|
||||
PROFILE="$(sed -n 's/^profile=//p' <<<"$_plain" | head -1)"
|
||||
[ -n "$PROFILE" ] || PROFILE="?"
|
||||
[ "$(sed -n 's/^source=//p' <<<"$_plain" | head -1)" = flag ] && PROFILE="$PROFILE (conv)"
|
||||
_src="$(sed -n 's/^source=//p' <<<"$_plain" | head -1)"
|
||||
[ "$_src" = flag ] && PROFILE="$PROFILE (conv)"
|
||||
|
||||
# Effort level: the live value when the harness exports it (skill/agent
|
||||
# `effort:` shifts included, BDR-107), else the persisted settings.json key
|
||||
|
||||
Reference in new issue
Block a user