Commit Graph

327 Commits

Author SHA1 Message Date
xiaodream
c8d9e809ed feat: add Chinese (zh) language support (#334)
Add i18n infrastructure with automatic language detection from system
locale (LANG/LC_ALL/LC_MESSAGES) and manual override via config.json.
Translates all user-facing HUD labels, status messages, and format
strings. English remains the default.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 16:39:45 +08:00
github-actions[bot]
30e1dfe46a build: compile dist/ [auto] 2026-03-23 04:05:49 +00:00
Jarrod Watts
7e3b1cd284 feat: configurable element colors 2026-03-23 15:05:16 +11:00
Jarrod Watts
7ea243ae88 feat: add configurable element colors 2026-03-23 15:04:40 +11:00
Jarrod Watts
557e563970 docs: collapse Windows runtime install note 2026-03-23 14:52:46 +11:00
Jarrod Watts
cb2f07c172 docs: remove stale plan label examples 2026-03-23 14:48:33 +11:00
github-actions[bot]
891cc9baee build: compile dist/ [auto] 2026-03-23 03:47:56 +00:00
Jarrod Watts
3aebe1b973 Simplify usage display to stdin only (#288)
* Simplify usage display to stdin only

* chore: bump version to 0.0.11
2026-03-23 14:47:39 +11:00
Jarrod Watts
c449c0ba29 milestone-5: prepare v0.0.10 release v0.0.10 2026-03-23 13:37:16 +11:00
Jarrod Watts
7c24dbf7d1 docs: refine v0.0.10 changelog 2026-03-23 13:36:51 +11:00
Jarrod Watts
fd9a25e35f release v0.0.10: refresh changelog and dist 2026-03-23 13:36:34 +11:00
Jarrod Watts
4482d8d51f milestone-4: clarify proxy vs custom endpoint usage 2026-03-23 13:26:36 +11:00
Jarrod Watts
738a0ce52c milestone-4: refine stdin usage fallback 2026-03-23 13:24:15 +11:00
Jarrod Watts
87cf7a020e milestone-4: prefer stdin rate limits when available 2026-03-23 13:20:24 +11:00
Jarrod Watts
23391b412d milestone-4: fix weekly-only usage rendering 2026-03-23 13:20:16 +11:00
Jarrod Watts
60cf0c65c8 prefer stdin rate limits for usage display 2026-03-23 13:19:14 +11:00
Jarrod Watts
2ac029d035 fix weekly-only usage rendering 2026-03-23 13:17:21 +11:00
Jarrod Watts
837ce37045 milestone-3: add opt-in approximate RAM line 2026-03-23 13:09:02 +11:00
Jarrod Watts
b76c7d36da clarify approximate memory hud wording 2026-03-23 13:08:02 +11:00
Jarrod Watts
aac2bcf532 milestone-3: avoid caching partial transcript parses 2026-03-23 13:04:46 +11:00
Jarrod Watts
210d274eee restack memory hud as opt-in expanded line 2026-03-23 13:03:45 +11:00
Jarrod Watts
ae24fe6ea9 milestone-3: mitigate repeated transcript reparsing 2026-03-23 13:01:10 +11:00
Jarrod Watts
c29a55e1dd mitigate transcript reparsing cost 2026-03-23 13:00:41 +11:00
Jarrod Watts
857216b83c milestone-3: add opt-in Claude Code version display 2026-03-23 12:44:48 +11:00
Jarrod Watts
104782a681 milestone-3: support Windows Claude wrapper launch 2026-03-23 12:43:51 +11:00
Jarrod Watts
5ccefae1cd milestone-3: avoid repeated version path scans 2026-03-23 12:40:32 +11:00
Jarrod Watts
c3f1a10f4a milestone-3: persist Claude Code version cache 2026-03-23 12:36:52 +11:00
Jarrod Watts
11311be1ea milestone-3: add opt-in Claude Code version display 2026-03-23 12:33:27 +11:00
Jarrod Watts
0c2c68c04a milestone-3: respect explicit TLS override in proxy tunnel 2026-03-23 12:32:17 +11:00
Jarrod Watts
1c694a6f8f fix: respect NODE_TLS_REJECT_UNAUTHORIZED in proxy tunnel 2026-03-23 12:31:39 +11:00
Jarrod Watts
98d67565ca milestone-2: align docs with context mode and config dir support 2026-03-23 12:26:40 +11:00
Jarrod Watts
1273d7d3a3 milestone-2: stop bun setup command from loading project env 2026-03-23 12:20:03 +11:00
Jarrod Watts
6f6ba4c4d4 milestone-2: preserve cached plan names after OAuth refresh 2026-03-23 12:17:34 +11:00
Jarrod Watts
ff6f4524ee fix: preserve cached plan names after OAuth refresh 2026-03-23 12:14:38 +11:00
Jarrod Watts
51013bc15b milestone-3: align context percentage docs with stdin 2026-03-23 12:14:22 +11:00
Jarrod Watts
720e331edf docs: align context percentage reference with stdin 2026-03-23 12:14:05 +11:00
Jarrod Watts
9b3e08a9c9 milestone-2: add opt-in combined context display 2026-03-23 12:12:24 +11:00
Jarrod Watts
8a2c435db0 milestone-2: harden setup docs and shell guidance 2026-03-23 12:12:24 +11:00
Jarrod Watts
770fc5ecc5 docs: harden setup guidance for Windows shells 2026-03-23 12:11:22 +11:00
Jarrod Watts
bafe095025 feat: add opt-in combined context display mode 2026-03-23 12:10:53 +11:00
github-actions[bot]
26e38decd7 build: compile dist/ [auto] 2026-03-20 00:53:22 +00:00
Andrew Moore
40c4451d9c feat: support 256-color and hex color values in config (#236)
* feat: support 256-color and hex color values in config

Extends the colors config to accept 256-color indices (0-255) and hex
strings (#rrggbb) in addition to the existing named color presets.
This allows full theme customization without patching source files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: allow number type in color config validation test

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:52:59 +11:00
github-actions[bot]
61a3769993 build: compile dist/ [auto] 2026-03-20 00:52:54 +00:00
Xy
cb407d0534 feat: add customLine display support (#223)
Add a static `display.customLine` config field that renders a user-defined
phrase (max 80 chars) in Claude orange on the project line, joined with
the standard │ separator.

- config.ts: add customLine to HudConfig.display with validation
- colors.ts: add claudeOrange() using 256-color (38;5;208)
- project.ts: append customLine to expanded mode project line
- session-line.ts: append customLine to compact mode parts
- setup.md: add "Custom line" option to Step 4
- configure.md: add Q5 Custom Line to both Flow A and Flow B
2026-03-20 11:52:29 +11:00
github-actions[bot]
15771700ea build: compile dist/ [auto] 2026-03-20 00:46:27 +00:00
hoklims
8e51163c96 fix: render showSpeed and showDuration in expanded layout (#232)
* fix: render showSpeed and showDuration in expanded layout

These config options were only implemented in the compact layout
(renderSessionLine in session-line.ts). When using lineLayout: "expanded",
enabling display.showSpeed or display.showDuration had no effect.

This adds both options to renderProjectLine (the expanded layout's
project line), matching the compact layout behavior:
- showSpeed: output token speed (tok/s)
- showDuration: session duration timer

Fixes #221

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: add renderProjectLine tests for showSpeed and showDuration

Address Copilot review feedback by adding test coverage for the
new expanded layout rendering of speed and duration:
- duration shown when showDuration is true
- duration omitted when showDuration is false
- speed code path doesn't crash when showSpeed is true
- speed omitted when showSpeed is false

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: cover expanded layout speed rendering

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz>
2026-03-20 11:45:39 +11:00
Abhishek Tiwari
faacda01ee fix: hud not appearing after setup without restart (#213) (#250)
* fix: detect macOS and show restart hint when HUD initializes without stdin (closes #213)

* fix: prompt user to restart Claude Code after config write for HUD setup

* fix: update assertion to check if output starts with initializing message

* Align restart messaging in docs

---------

Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz>
2026-03-20 11:45:33 +11:00
github-actions[bot]
68f8909322 build: compile dist/ [auto] 2026-03-20 00:44:16 +00:00
d 🔹
2330284631 fix: clarify usage time format — show 'resets in' instead of ambiguous elapsed/total (#244)
* fix: clarify usage time format — show 'resets in' instead of ambiguous elapsed/total

Fixes #240

The format `(2h 43m / 5h)` was confusing because it mimics the common
`(elapsed / total)` pattern, but actually showed time remaining until
reset. Changed to `(resets in 2h 43m)` which is unambiguous.

Before: `Usage █░░░░░░░░░ 7% (2h 43m / 5h)`
After:  `Usage █░░░░░░░░░ 7% (resets in 2h 43m)`

* test: cover usage reset wording

---------

Co-authored-by: d 🔹 <258577966+voidborne-d@users.noreply.github.com>
Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz>
2026-03-20 11:43:34 +11:00
Kuo-Hao Huang
618ae8deb2 fix(setup): respect CLAUDE_CONFIG_DIR when detecting and configuring plugin (#247)
Users running Claude Code with a custom config directory (e.g.
CLAUDE_CONFIG_DIR=~/.claude-work) had the plugin installed to that
directory, but /claude-hud:setup always looked in the hardcoded
~/.claude path, causing it to report the plugin as not installed.

Replace all hardcoded ~/.claude/ references with
${CLAUDE_CONFIG_DIR:-$HOME/.claude} so that setup correctly resolves
the plugin cache, settings.json, and config.json under whatever config
directory Claude Code is using.

Also fix glob-inside-quotes bug in the temp_local_* cleanup commands
(quotes prevented wildcard expansion).

Co-authored-by: dennis <dennis@brevitydata.net>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 11:43:27 +11:00