feat(status-bar): add @davstack/claude-status-bar#80
Open
DawidWraga wants to merge 1 commit into
Open
Conversation
Distributable battery-like token usage status bar for Claude Code. Ports the existing ~/.claude/statusline.py to a dependency-free Node runtime script, installable via `npx @davstack/claude-status-bar`. - Pure renderStatusLine() matches the Python original (verified by port-fidelity test against a frozen reference copy of the script) - Installer merges statusLine into settings.json without touching other keys, backs the file up first, and refuses to clobber a foreign statusLine without --force - uninstall subcommand reverses the install only if it still owns it
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@davstack/claude-status-bar: a battery-like token usage status bar for Claude Code, distributed vianpx @davstack/claude-status-bar.~/.claude/statusline.pylogic to a dependency-free Node runtime script (no Python requirement for end users).statusLineentry into~/.claude/settings.jsonwithout touching other keys, backs the file up first, and refuses to overwrite a foreignstatusLineunless--forceis passed.uninstallreverses the install only if it still owns the entry.Test plan
pnpm exec vitest run --project status-bar— 28 tests passing (render thresholds, port-fidelity vs a frozen copy of the original Python script, settings merge/conflict/force logic, install/uninstall round-trip against a temp dir)bin/davstack-status-bar.mjs) against a throwaway directory — install, piped sample stdin through the installed runtime script (verified colored bar + rate-limit segment render correctly), then uninstall — confirmed settings.json and the runtime file are cleaned up correctlynpx @davstack/claude-status-barrun against the published package (blocked on publish)