Files
claude-statusline/defaults.json
Taylor Eernisse 8853afffa1 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>
2026-02-09 23:42:58 -05:00

305 lines
5.6 KiB
JSON

{
"version": 1,
"global": {
"separator": " | ",
"separator_style": "text",
"justify": "space-between",
"vcs": "auto",
"cache_dir": "/tmp/claude-sl-{session_id}-{cache_version}-{config_hash}",
"responsive": true,
"breakpoints": {
"narrow": 60,
"medium": 100
},
"theme": "auto"
},
"colors": {
"dark": {
"success": "#50fa7b",
"warning": "#f1fa8c",
"danger": "#ff5555",
"critical": "#ff5555 bold",
"muted": "dim",
"accent": "#8be9fd",
"highlight": "bold",
"info": "#bd93f9"
},
"light": {
"success": "green bold",
"warning": "yellow bold",
"danger": "red bold",
"critical": "red bold",
"muted": "dim",
"accent": "blue",
"highlight": "bold",
"info": "cyan"
}
},
"glyphs": {
"enabled": false,
"set": {
"separator": "",
"separator_alt": "",
"branch": "",
"dirty": "*",
"clean": "\u2713",
"ahead": "\u2191",
"behind": "\u2193",
"folder": "",
"clock": "",
"dollar": ""
},
"fallback": {
"separator": "|",
"separator_alt": "|",
"branch": "",
"dirty": "*",
"clean": "",
"ahead": "+",
"behind": "-",
"folder": "",
"clock": "",
"dollar": "$"
}
},
"presets": {
"standard": [
[
"model",
"provider",
"project",
"spacer",
"vcs"
],
[
"context_bar",
"cost",
"lines_changed",
"duration",
"tools"
]
],
"dense": [
[
"model",
"provider",
"project",
"vcs",
"context_bar",
"cost",
"duration"
]
],
"verbose": [
[
"model",
"provider",
"spacer",
"lines_changed",
"project",
"vcs",
"beads"
],
[
"context_bar",
"context_usage",
"cache_efficiency",
"spacer",
"cost",
"cost_velocity",
"cost_trend",
"duration"
],
[
"context_trend",
"tokens_raw",
"spacer",
"tools",
"turns",
"load",
"cloud_profile",
"k8s_context",
"python_env",
"toolchain"
]
]
},
"layout": "verbose",
"sections": {
"model": {
"enabled": true,
"priority": 1
},
"provider": {
"enabled": true,
"priority": 2
},
"project": {
"enabled": true,
"priority": 1,
"truncate": {
"enabled": true,
"max": 30,
"style": "middle"
}
},
"vcs": {
"enabled": true,
"priority": 1,
"min_width": 8,
"prefer": "auto",
"show_ahead_behind": true,
"show_dirty": true,
"truncate": {
"enabled": true,
"max": 25,
"style": "right"
},
"ttl": {
"branch": 3,
"dirty": 5,
"ahead_behind": 30
}
},
"beads": {
"enabled": true,
"priority": 3,
"show_wip": true,
"show_wip_count": true,
"show_ready_count": true,
"show_open_count": true,
"show_closed_count": true,
"ttl": 30
},
"context_bar": {
"enabled": true,
"priority": 1,
"flex": true,
"min_width": 15,
"bar_width": 10,
"bar_style": "block",
"gradient": true,
"thresholds": {
"warn": 50,
"danger": 70,
"critical": 85
}
},
"context_usage": {
"enabled": true,
"priority": 2,
"capacity": 200000,
"thresholds": {
"warn": 50,
"danger": 70,
"critical": 85
}
},
"tokens_raw": {
"enabled": true,
"priority": 3,
"format": "{input} in/{output} out"
},
"cache_efficiency": {
"enabled": true,
"priority": 3
},
"cost": {
"enabled": true,
"priority": 1,
"thresholds": {
"warn": 5.00,
"danger": 8.00,
"critical": 10.00
}
},
"cost_velocity": {
"enabled": true,
"priority": 3
},
"token_velocity": {
"enabled": false,
"priority": 3
},
"cost_trend": {
"enabled": true,
"priority": 3,
"width": 12,
"gradient": true
},
"context_trend": {
"enabled": true,
"priority": 3,
"width": 12,
"gradient": true,
"thresholds": {
"warn": 50,
"danger": 70,
"critical": 85
}
},
"lines_changed": {
"enabled": true,
"priority": 2
},
"duration": {
"enabled": true,
"priority": 2
},
"tools": {
"enabled": true,
"priority": 2,
"min_width": 6,
"show_last_name": true,
"show_breakdown": true,
"top_n": 7,
"ttl": 2
},
"turns": {
"enabled": true,
"priority": 3,
"ttl": 2
},
"load": {
"enabled": true,
"priority": 3,
"ttl": 10
},
"version": {
"enabled": false,
"priority": 3
},
"time": {
"enabled": false,
"priority": 3,
"format": "%H:%M"
},
"output_style": {
"enabled": false,
"priority": 3
},
"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": []
}