feat: update defaults, schema, and installer for new capabilities
Configuration and deployment updates to match the new feature set.
defaults.json:
- Dark theme palette switched from named ANSI to Dracula-inspired hex:
success=#50fa7b, warning=#f1fa8c, danger=#ff5555, accent=#8be9fd,
info=#bd93f9. Light theme unchanged (named ANSI with bold).
- Glyph characters normalized to Unicode escapes (clean/ahead/behind).
- Verbose layout (3 lines) reorganized:
Line 1: model, provider, spacer, lines_changed, project, vcs, beads
Line 2: context_bar, context_usage, cache_efficiency, spacer, cost,
cost_velocity, cost_trend, duration
Line 3: context_trend, tokens_raw, spacer, tools, turns, load,
cloud_profile, k8s_context, python_env, toolchain
- context_usage, cost_trend, context_trend now enabled by default.
- Trend widths increased from 8 to 12 characters.
- Context bar: bar_style=block, gradient=true.
- Tools: show_breakdown=true, top_n=7.
- New sections enabled: cloud_profile (P2), k8s_context (P3, ttl=30),
python_env (P3), toolchain (P3).
schema.json:
- Added $schema self-reference field for editor autocomplete.
- Expanded colorName from fixed enum to freeform string with docs
covering hex, bg:, modifiers, and palette refs.
- New section schemas: trendSection, contextTrendSection with width,
gradient, and threshold properties.
- context_bar: added bar_style, gradient, fill_char, empty_char.
- tools: added show_breakdown, top_n, palette array.
- All section types: added background and placeholder properties.
- Width description updated to clarify it's a max cap + fallback,
not an override.
- colorMatch additionalProperties relaxed from enum to string.
install.sh:
Complete rewrite for Rust binary workflow:
- Checks cargo and jq prerequisites.
- Builds release binary via cargo build --release.
- Installs to ~/.local/bin/claude-statusline with PATH check.
- Creates/updates ~/.claude/settings.json with statusLine command
(type: "command", --color=always, padding: 0).
- Symlinks statusline.json config if present in project.
- Removed all bash-script-era logic (symlinks, bash version checks).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"version": 1,
|
||||
"global": {
|
||||
"separator": " | ",
|
||||
"separator_style": "text",
|
||||
"justify": "space-between",
|
||||
"vcs": "auto",
|
||||
"cache_dir": "/tmp/claude-sl-{session_id}-{cache_version}-{config_hash}",
|
||||
@@ -14,14 +15,14 @@
|
||||
},
|
||||
"colors": {
|
||||
"dark": {
|
||||
"success": "green",
|
||||
"warning": "yellow",
|
||||
"danger": "red",
|
||||
"critical": "red bold",
|
||||
"success": "#50fa7b",
|
||||
"warning": "#f1fa8c",
|
||||
"danger": "#ff5555",
|
||||
"critical": "#ff5555 bold",
|
||||
"muted": "dim",
|
||||
"accent": "cyan",
|
||||
"accent": "#8be9fd",
|
||||
"highlight": "bold",
|
||||
"info": "blue"
|
||||
"info": "#bd93f9"
|
||||
},
|
||||
"light": {
|
||||
"success": "green bold",
|
||||
@@ -41,9 +42,9 @@
|
||||
"separator_alt": "",
|
||||
"branch": "",
|
||||
"dirty": "*",
|
||||
"clean": "✓",
|
||||
"ahead": "↑",
|
||||
"behind": "↓",
|
||||
"clean": "\u2713",
|
||||
"ahead": "\u2191",
|
||||
"behind": "\u2193",
|
||||
"folder": "",
|
||||
"clock": "",
|
||||
"dollar": ""
|
||||
@@ -93,24 +94,33 @@
|
||||
[
|
||||
"model",
|
||||
"provider",
|
||||
"spacer",
|
||||
"lines_changed",
|
||||
"project",
|
||||
"vcs",
|
||||
"beads"
|
||||
],
|
||||
[
|
||||
"context_bar",
|
||||
"tokens_raw",
|
||||
"context_usage",
|
||||
"cache_efficiency",
|
||||
"spacer",
|
||||
"cost",
|
||||
"cost_velocity"
|
||||
"cost_velocity",
|
||||
"cost_trend",
|
||||
"duration"
|
||||
],
|
||||
[
|
||||
"lines_changed",
|
||||
"duration",
|
||||
"context_trend",
|
||||
"tokens_raw",
|
||||
"spacer",
|
||||
"tools",
|
||||
"turns",
|
||||
"load",
|
||||
"version"
|
||||
"cloud_profile",
|
||||
"k8s_context",
|
||||
"python_env",
|
||||
"toolchain"
|
||||
]
|
||||
]
|
||||
},
|
||||
@@ -167,6 +177,8 @@
|
||||
"flex": true,
|
||||
"min_width": 15,
|
||||
"bar_width": 10,
|
||||
"bar_style": "block",
|
||||
"gradient": true,
|
||||
"thresholds": {
|
||||
"warn": 50,
|
||||
"danger": 70,
|
||||
@@ -174,7 +186,7 @@
|
||||
}
|
||||
},
|
||||
"context_usage": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"priority": 2,
|
||||
"capacity": 200000,
|
||||
"thresholds": {
|
||||
@@ -210,14 +222,16 @@
|
||||
"priority": 3
|
||||
},
|
||||
"cost_trend": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"priority": 3,
|
||||
"width": 8
|
||||
"width": 12,
|
||||
"gradient": true
|
||||
},
|
||||
"context_trend": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"priority": 3,
|
||||
"width": 8,
|
||||
"width": 12,
|
||||
"gradient": true,
|
||||
"thresholds": {
|
||||
"warn": 50,
|
||||
"danger": 70,
|
||||
@@ -237,6 +251,8 @@
|
||||
"priority": 2,
|
||||
"min_width": 6,
|
||||
"show_last_name": true,
|
||||
"show_breakdown": true,
|
||||
"top_n": 7,
|
||||
"ttl": 2
|
||||
},
|
||||
"turns": {
|
||||
@@ -265,6 +281,23 @@
|
||||
"hostname": {
|
||||
"enabled": true,
|
||||
"priority": 3
|
||||
},
|
||||
"cloud_profile": {
|
||||
"enabled": true,
|
||||
"priority": 2
|
||||
},
|
||||
"k8s_context": {
|
||||
"enabled": true,
|
||||
"priority": 3,
|
||||
"ttl": 30
|
||||
},
|
||||
"python_env": {
|
||||
"enabled": true,
|
||||
"priority": 3
|
||||
},
|
||||
"toolchain": {
|
||||
"enabled": true,
|
||||
"priority": 3
|
||||
}
|
||||
},
|
||||
"custom": []
|
||||
|
||||
Reference in New Issue
Block a user