Plain HTTP requests to claude.ai get blocked by Cloudflare JS challenges
(403). The fetcher now falls back to headless Chrome using the persistent
browser profile, which can solve challenges natively and reuses existing
cf_clearance cookies.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Drop claude-fetcher binary and cron job — the widget's built-in
BackgroundFetcher is the sole fetcher now. Add cmd/setup with cross-platform
install and uninstall (--uninstall): kills widget, removes binaries + autostart,
cleans Claude Code statusline setting, optionally removes config dir.
Also includes: browser-based login (chromedp), ICO wrapper for Windows tray
icon, and reduced icon size (64px).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The golang:1.23 container image lacks Node.js, causing
actions/checkout@v4 to fail. Use the default runner image
(which has Node) and install Go manually.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace Node.js + Python codebase with three Go binaries:
- claude-statusline: CLI status bar for Claude Code
- claude-fetcher: standalone cron job for API usage
- claude-widget: system tray icon (fyne-io/systray + fogleman/gg)
All CGO-free for trivial cross-compilation. Add nfpm .deb packaging
with autostart and cron. CI pipeline produces Linux + Windows binaries,
.deb, .tar.gz, and .zip release assets.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rewrite README with centered header, shields.io badges, mermaid topology
and session key diagrams, restructured installation section with Windows
quick start guide, and release documentation.
Add CHANGELOG.md for v0.2.0 and Gitea Actions release workflow that
builds source archives (tar.gz + zip) and publishes them on tag push.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Starburst was nearly invisible at tray icon size due to white color at
50% alpha on a 128px canvas. Now renders in Claude brand orange (#E07B53)
at full opacity on a 256px canvas with proportionally scaled geometry.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Desktop widget (Python/pystray): system tray icon showing 5h usage as
circular progress bar with Claude starburst logo, 10-step green-to-red
color scale, right-click menu with usage stats and configuration
- Shared cache: both widget and CLI statusline read/write the same
/tmp/claude_usage.json — only one fetcher needs to run
- Installer wizard (install_wizard.py): interactive cross-platform setup
with component selection, session key prompt, cron/autostart config
- OS wrappers: install.sh (Linux/macOS) and install.ps1 (Windows) find
Python 3.9+ and launch the wizard
- README with topology diagram, usage docs, and configuration reference
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The */5 in the cron example inside the JSDoc block comment was parsed
as end-of-comment, causing a SyntaxError. Replaced with a reference
to install.sh.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When the fetcher gets a 401/403, it writes an error state to the cache
file instead of silently failing. The statusline reads this and shows
"Token: session expired — refresh cookie" so the user knows to re-extract
the sessionKey cookie from claude.ai.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add .gitattributes enforcing LF line endings
- Renormalize all files from CRLF to LF
- Replace fragile sed-based JSON manipulation with node -e
- Add Node.js 18+ version check (required for built-in fetch)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Headless-friendly statusline with context window bar and optional
token usage fetcher (cron-based, no browser needed).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>