claude-pace 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/claude-pace.sh +4 -3
- package/package.json +1 -1
package/claude-pace.sh
CHANGED
|
@@ -142,7 +142,7 @@ IFS=$'\t' read -r MODEL DIR PCT CTX COST EFF HAS_RL U5 U7 R5 R7 < <(
|
|
|
142
142
|
(.rate_limits.five_hour.resets_at//0),
|
|
143
143
|
(.rate_limits.seven_day.resets_at//0)]|@tsv' <<<"$input"
|
|
144
144
|
)
|
|
145
|
-
case "${EFF:-default}" in low) EF='
|
|
145
|
+
case "${EFF:-default}" in low) EF='low' ;; high) EF='high' ;; xhigh) EF='xhigh' ;; max) EF='max' ;; *) EF='medium' ;; esac
|
|
146
146
|
|
|
147
147
|
# ── Context label (needed by MODEL_SHORT and line 2) ──
|
|
148
148
|
if ((CTX >= 1000000)); then
|
|
@@ -154,9 +154,10 @@ else CL=""; fi
|
|
|
154
154
|
# ── MODEL_SHORT: strip redundant context label ──
|
|
155
155
|
MODEL=${MODEL/ context)/)}
|
|
156
156
|
[[ "$CTX" -gt 0 && "$MODEL" != *"("* ]] && MODEL="${MODEL} (${CL})"
|
|
157
|
-
#
|
|
157
|
+
# Cap "MODEL EF" at 28 chars; 28 fits the longest effort word ('medium', 6 chars)
|
|
158
|
+
# plus a typical "Sonnet 4.6 (200K)" without ellipsis.
|
|
158
159
|
_ML="${MODEL} ${EF}"
|
|
159
|
-
((${#_ML} >
|
|
160
|
+
((${#_ML} > 28)) && MODEL="${MODEL:0:$((28 - 2 - ${#EF}))}…"
|
|
160
161
|
|
|
161
162
|
# ── Progress Bar ──
|
|
162
163
|
F=$((PCT / 10))
|