claude-code-hud 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -50,7 +50,8 @@ tmux split-window -h "npx claude-code-hud"
50
50
  - Anthropic API 기반 5h / 주간 사용률 — `1h 23m` 형식으로 리셋까지 남은 시간 표시
51
51
  - input / output / cache-read / cache-write 토큰 분류
52
52
  - 세션 output 통계 (total / avg / peak)
53
- - `now`현재 진행 중인 작업 (마지막 사용자 메시지) 표시
53
+ - **오늘 사용량** 자정 기준 input / output / cache / 비용 합산
54
+ - `now` — 현재 진행 중인 작업 (직접 입력한 마지막 프롬프트) 한 줄 표시
54
55
 
55
56
  **2 PROJECT 탭 — 인터랙티브 파일 브라우저**
56
57
  - 디렉토리 트리 (펼치기/접기)
@@ -164,7 +165,8 @@ tmux split-window -h "npx claude-code-hud"
164
165
  - Real 5h / weekly usage from Anthropic OAuth API — not estimates. Reset time shown as `1h 23m`
165
166
  - Input / output / cache-read / cache-write breakdown
166
167
  - Session output stats: total / avg / peak per hour
167
- - `now` linelast user message (current task at a glance)
168
+ - **Today's usage**input / output / cache / cost totals since midnight
169
+ - `now` line — last prompt you typed (not tool results)
168
170
 
169
171
  **2 PROJECT tab — interactive file browser**
170
172
  - Navigable directory tree with expand/collapse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-hud",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Terminal HUD for Claude Code — real-time token usage, git status, project monitor",
5
5
  "type": "module",
6
6
  "bin": {
package/tui/hud.tsx CHANGED
@@ -99,10 +99,10 @@ async function scanProject(cwd: string): Promise<ProjectInfo> {
99
99
  const { default: fg } = await import('fast-glob');
100
100
 
101
101
  // File counts by extension
102
- const files: string[] = await fg('**/*', {
103
- cwd, ignore: ['**/node_modules/**', '**/.git/**', '**/dist/**', '**/build/**'],
104
- onlyFiles: true, dot: false,
105
- });
102
+ const files: string[] = (await fg('**/*', {
103
+ cwd, ignore: ['**/node_modules/**', '**/.git/**', '**/dist/**', '**/build/**', '**/__pycache__/**', '**/target/**', '**/.next/**', '**/.nuxt/**'],
104
+ onlyFiles: true, dot: false, deep: 8,
105
+ })).slice(0, 3000);
106
106
 
107
107
  const byExt: Record<string, number> = {};
108
108
  for (const f of files) {
@@ -155,7 +155,7 @@ async function scanProject(cwd: string): Promise<ProjectInfo> {
155
155
 
156
156
  // Endpoint detection
157
157
  const srcFiles: string[] = await fg('**/*.{ts,tsx,js,jsx,py,java,go}', {
158
- cwd, ignore: ['**/node_modules/**', '**/.git/**', '**/*.test.*', '**/*.spec.*'], onlyFiles: true,
158
+ cwd, ignore: ['**/node_modules/**', '**/.git/**', '**/*.test.*', '**/*.spec.*'], onlyFiles: true, deep: 8,
159
159
  });
160
160
  const endpoints: Record<string, number> = { GET: 0, POST: 0, PUT: 0, DELETE: 0, PATCH: 0 };
161
161
  const PATTERNS: [string, RegExp][] = [