Skip to content

Releases

v0.4.0

Choose a tag to compare

@behrangsa behrangsa released this 14 Feb 15:00

What's New

Powerline Theme

  • New single-row powerline theme with arrow separators (U+E0B0) and muted dark RGB background colors
  • Select with --theme powerline
  • Segments wrap to multiple lines when they exceed terminal width

Chalk Migration

  • Replaced ansi-colors with chalk for truecolor (24-bit RGB) support
  • Force chalk.level = 3 in the binary entry point to ensure colors render when invoked via piped stdin

Default Theme Improvements

  • Display Claude Code version next to model ID on row 1
  • Read stdin as text and parse JSON in the theme function (aligns input contract with custom themes)
  • Color-coded context window usage percentage (green ≤50%, blue ≤75%, yellow ≤87.5%, red >87.5%)
  • Log all error types, not just ZodError

Other

  • Added PNG preview images for both themes in README
  • Simplified justfile recipes
  • Updated fixture model IDs to current versions (Opus 4.6, Sonnet 4.5)
  • Anonymized test fixture data

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@behrangsa behrangsa released this 13 Feb 21:31

What's Changed

Theme & Layout

  • Redesign default theme to a two-row layout with model, session, project directory (row 1) and git status, context usage (row 2)
  • Use telescope for project directory display and compress for path shortening

Refactoring

  • Extract utilities into dedicated modules: utils/git.ts, utils/path.ts, utils/model.ts, utils/term.ts
  • Move schema to src/schema/statusLine.ts
  • Add neverthrow for type-safe error handling

New Utilities

  • compress(path) — shorten path segments to first character
  • tildify(path) — replace home directory with ~
  • telescope(path) — show first/last segments with ellipsis
  • getDisplayWidth(str) — calculate display width accounting for emoji

Tooling

  • Add Biome for formatting and linting
  • Add justfile for task automation
  • Exclude justfile and AGENTS.md from npm package

Documentation

  • Comprehensive AGENTS.md with full project structure, utility docs, and troubleshooting
  • Update README with new theme preview, all schema fields, and theming docs
  • Fix schema link path in README

Fixes

  • Return empty string on invalid/missing input instead of error labels
  • Rename BranchResult.status from 'not-git' to 'none'
  • Add missing await for makeDirStatus in default theme

Full Changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@behrangsa behrangsa released this 25 Jan 08:57

Patch release with minor improvements.

v0.2.0

Choose a tag to compare

@behrangsa behrangsa released this 25 Jan 08:49

What's New

Custom Theme Support 🎨

You can now create and use custom themes for your Claude Code status line!

cc-statusline --theme ~/.config/cc-statusline/my-theme.js

Changes

  • Add custom theme support via --theme / -t flag
  • Refactor CLI to use meow for argument parsing
  • Improved code organization with theme module

Installation

npm install -g @nutthead/cc-statusline
# or
bun install -g @nutthead/cc-statusline

Full Changelog: v0.1.11...v0.2.0

v0.1.12

Choose a tag to compare

@behrangsa behrangsa released this 25 Jan 08:41

What's Changed

v0.1.12

  • Add custom theme support and refactor CLI with meow

v0.1.11

  • Refactor statusLine construction with nested array pattern

v0.1.10

Choose a tag to compare

@behrangsa behrangsa released this 17 Jan 05:36

Bug Fix

  • Fix missing separator in second status line
    • Array.join() without argument defaults to comma; now correctly passes separator

v0.1.8

Choose a tag to compare

@behrangsa behrangsa released this 14 Jan 21:51

What's New

  • Add CLI install command for bunx and npx support
  • Users can now install with: bunx @nutthead/cc-statusline install
  • Use --overwrite flag to replace existing installation

Install

bunx @nutthead/cc-statusline install

v0.1.3

Choose a tag to compare

@behrangsa behrangsa released this 10 Jan 19:47

What's New

  • Modern ESM exports — Replaced module field with exports for better module resolution
  • Engine requirements — Now requires Bun >= 1.3.3 with strict enforcement
  • Leaner package — Reduced npm package size by 67% with .npmignore

Package Info

  • Install: bun add -g @nutthead/cc-statusline
  • Size: 4.5 kB (packed) / 11.1 kB (unpacked)