fix minimax quota and add colored output via optional statusline_part_colored #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "guochao/agent-run:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Providers can now implement a second entry point, M.statusline_part_colored, that returns a version of the part with ANSI color escapes. The Rust engine: * calls statusline_part_colored when present and stores its result alongside the plain output in the cache as colored_output (Option<String>, omitted from JSON when None) * picks the colored form at output time only when the terminal can render it (NO_COLOR off, TERM not dumb/empty, COLORTERM mentions truecolor/24bit, or TERM matches a 256-color pattern) AND the provider actually returned a non-empty string * otherwise falls back to the plain statusline_part output 20-context.lua opts in with a hard-coded green/yellow/orange/red palette at 0/40/70/90 thresholds; no shared color util to keep this commit self-contained.