coder-config 0.50.2 → 0.50.3-beta
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/lib/constants.js +1 -1
- package/package.json +1 -1
- package/ui/routes/statuslines.js +13 -9
package/lib/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coder-config",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.3-beta",
|
|
4
4
|
"description": "Configuration manager for AI coding tools - Claude Code, Gemini CLI, Codex CLI, Antigravity. Manage MCPs, rules, permissions, memory, and workstreams.",
|
|
5
5
|
"author": "regression.io",
|
|
6
6
|
"main": "config-loader.js",
|
package/ui/routes/statuslines.js
CHANGED
|
@@ -62,7 +62,7 @@ echo "$OUT"
|
|
|
62
62
|
`,
|
|
63
63
|
|
|
64
64
|
full: `#!/bin/bash
|
|
65
|
-
# Full: model, context
|
|
65
|
+
# Full: model, colored context bar, token counts, lines, branch, duration, cost
|
|
66
66
|
input=$(cat)
|
|
67
67
|
MODEL=$(echo "$input" | jq -r '.model.display_name // "?"')
|
|
68
68
|
PCT=$(echo "$input" | jq -r '.context_window.used_percentage // 0' | cut -d. -f1)
|
|
@@ -74,6 +74,10 @@ LINES_REM=$(echo "$input" | jq -r '.cost.total_lines_removed // 0')
|
|
|
74
74
|
DUR_MS=$(echo "$input" | jq -r '.cost.total_duration_ms // 0')
|
|
75
75
|
COST=$(echo "$input" | jq -r '.cost.total_cost_usd // 0')
|
|
76
76
|
|
|
77
|
+
GREEN='\\033[32m'; YELLOW='\\033[33m'; RED='\\033[31m'
|
|
78
|
+
CYAN='\\033[36m'; DIM='\\033[2m'; RESET='\\033[0m'
|
|
79
|
+
[ "$PCT" -ge 90 ] && BAR_COLOR="$RED" || { [ "$PCT" -ge 70 ] && BAR_COLOR="$YELLOW" || BAR_COLOR="$GREEN"; }
|
|
80
|
+
|
|
77
81
|
FILLED=$((PCT / 10)); EMPTY=$((10 - FILLED))
|
|
78
82
|
BAR=""; [ "$FILLED" -gt 0 ] && BAR="$BAR$(printf '●%.0s' $(seq 1 $FILLED))"
|
|
79
83
|
[ "$EMPTY" -gt 0 ] && BAR="$BAR$(printf '○%.0s' $(seq 1 $EMPTY))"
|
|
@@ -84,12 +88,12 @@ HOURS=$((DUR_MS / 3600000)); MINS=$(((DUR_MS % 3600000) / 60000))
|
|
|
84
88
|
COST_FMT=$(printf '$%.3f' $COST)
|
|
85
89
|
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo '')
|
|
86
90
|
|
|
87
|
-
OUT="
|
|
88
|
-
[ "$LINES_ADD" != "0" ] || [ "$LINES_REM" != "0" ] && OUT="$OUT
|
|
89
|
-
[ -n "$BRANCH" ] && OUT="$OUT
|
|
90
|
-
[ "$HOURS" -gt 0 ] && OUT="$OUT
|
|
91
|
-
OUT="$OUT
|
|
92
|
-
echo "$OUT"
|
|
91
|
+
OUT="\${CYAN}*\${RESET} $MODEL | \${BAR_COLOR}\${BAR}\${RESET} \${DIM}\${CTX_K}/\${MAX_K}\${RESET} | \${REM}% left"
|
|
92
|
+
[ "$LINES_ADD" != "0" ] || [ "$LINES_REM" != "0" ] && OUT="$OUT | \${GREEN}+\${LINES_ADD}\${RESET} \${RED}-\${LINES_REM}\${RESET}"
|
|
93
|
+
[ -n "$BRANCH" ] && OUT="$OUT | \${CYAN}\${BRANCH}\${RESET}"
|
|
94
|
+
[ "$HOURS" -gt 0 ] && OUT="$OUT | \${HOURS}h \${MINS}m" || OUT="$OUT | \${MINS}m"
|
|
95
|
+
OUT="$OUT | \${YELLOW}\${COST_FMT}\${RESET}"
|
|
96
|
+
echo -e "$OUT"
|
|
93
97
|
`,
|
|
94
98
|
|
|
95
99
|
'cost-tracker': `#!/bin/bash
|
|
@@ -165,8 +169,8 @@ const PRESETS = [
|
|
|
165
169
|
{
|
|
166
170
|
id: 'full',
|
|
167
171
|
name: 'Full',
|
|
168
|
-
description: 'Everything: model, context
|
|
169
|
-
preview: '* opus-4-6
|
|
172
|
+
description: 'Everything with colors: model, context bar, token counts, lines, branch, duration, cost',
|
|
173
|
+
preview: '* opus-4-6 | ●●●●○○○○○○ 74.4K/200.0K | 37% left | +146 -13 | main | 5h 2m | $0.142',
|
|
170
174
|
category: 'Git',
|
|
171
175
|
},
|
|
172
176
|
{
|