418 Commits

Author SHA1 Message Date
github-actions[bot]
bfde7cfd96 build: compile dist/ [auto] 2026-04-05 01:01:58 +00:00
Jarrod Watts
017041ed0d Merge pull request #381 from Yimaha/feat/native-cost-field
feat: use cost.total_cost_usd from stdin instead of manual token estimation
2026-04-05 11:01:40 +10:00
github-actions[bot]
99b5c2d1c0 build: compile dist/ [auto] 2026-04-05 01:01:30 +00:00
Jarrod Watts
9a4606a5b0 Merge pull request #384 from jarrodwatts/maintainer/board-20260405
fix: keep compact usage windows labeled on wrap
2026-04-05 11:01:13 +10:00
Jarrod Watts
565154d5cd fix(cost): prefer native stdin cost with safe fallback 2026-04-05 10:59:33 +10:00
Jarrod Watts
0d331e0ade fix(render): keep compact usage windows labeled on wrap 2026-04-05 10:59:33 +10:00
Jarrod Watts
71d0a0d94d Merge pull request #383 from jarrodwatts/dependabot/npm_and_yarn/types/node-25.5.2
chore(deps-dev): bump @types/node from 25.5.0 to 25.5.2
2026-04-05 10:43:56 +10:00
dependabot[bot]
fb677baf9e chore(deps-dev): bump @types/node from 25.5.0 to 25.5.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 25.5.0 to 25.5.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.5.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-04 21:32:38 +00:00
Yimaha
b263939c73 feat: use cost.total_cost_usd from stdin instead of manual estimation
Replace the hardcoded Anthropic pricing table and estimateSessionCost()
logic with a direct read of stdin.cost.total_cost_usd — the native field
Claude Code provides after each API response.

- Add cost.* fields to StdinData type
- Extract costUsd in index.ts and pass through RenderContext
- Simplify renderCostEstimate to read ctx.costUsd directly
- Rename i18n key label.estimatedCost → label.cost
- Update label to "Cost ($USD)" / "耗油量(美元)" (zh)
- Remove dead estimateSessionCost, pricing table, and related helpers
- Update tests to use costUsd; add index.test.js coverage for the field
- Update README to reflect native field behavior

Closes #380

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 11:33:17 -04:00
github-actions[bot]
f4848b1acb build: compile dist/ [auto] 2026-04-04 07:07:41 +00:00
Jarrod Watts
aa1f00e5bb Merge pull request #378 from jarrodwatts/maintainer/issue-375-stdin-timeout
fix: bound stdin reads to avoid statusline hangs
2026-04-04 18:07:23 +11:00
Jarrod Watts
dad7ade968 fix: bound stdin reads to avoid statusline hangs 2026-04-04 18:06:06 +11:00
Jarrod Watts
c4fd79e6d3 release: cut v0.0.12 (#377) v0.0.12 2026-04-04 17:54:51 +11:00
Jarrod Watts
bfa69033dc docs: add language selection to configure flow (#376)
* docs: add language selection to configure flow

* docs: tighten configure language flow
2026-04-04 17:51:30 +11:00
github-actions[bot]
ede1147a4d build: compile dist/ [auto] 2026-04-04 06:38:52 +00:00
Jarrod Watts
6dddf2ed1b feat: add offline estimated cost display (#305) (#374) 2026-04-04 17:38:30 +11:00
github-actions[bot]
6662b4d686 build: compile dist/ [auto] 2026-04-04 06:26:09 +00:00
Jarrod Watts
b36a4977fa fix: stabilize CI version cache tests (#373) 2026-04-04 17:25:55 +11:00
Jarrod Watts
2cc8f28d21 feat: add git push count threshold coloring (#292) (#372) 2026-04-04 15:24:07 +11:00
Jarrod Watts
1d8b1ac491 fix: keep context and usage visible on narrow terminals (#314) (#371) 2026-04-04 15:20:33 +11:00
Jarrod Watts
1816b98fa9 feat: add output style display toggle (#343) (#370) 2026-04-04 15:18:42 +11:00
Jarrod Watts
37711c6c27 Merge pull request #369 from jarrodwatts/maintainer/pr-317-git-files
feat(git): add per-file diffs and files HUD line
2026-04-04 15:00:43 +11:00
Jarrod Watts
f8c05371f9 test: cover git file diff rendering 2026-04-04 15:00:05 +11:00
Peter Chan @ TreeholeHK
5869a69c25 feat(git): add per-file and total line diffs, clickable OSC 8 hyperlinks, dedicated files line
- git.ts: add LineDiff and TrackedFile interfaces; parse `git diff --numstat HEAD`
  for per-file and total line diffs; build GitHub branch URL from remote
- project.ts: add renderGitFilesLine() — a dedicated HUD line that shows
  modified/added/deleted files sorted by mtime, with per-file (+N -N) diffs,
  OSC 8 clickable file links, max 6 files, overflow count, untracked count
- project.ts: add OSC 8 clickable hyperlink for project folder (file://) and
  git branch (GitHub tree URL); show total [+N -N] on the project line
- render/index.ts: call renderGitFilesLine always-last in renderExpanded,
  passing terminalWidth so the line can suppress itself on narrow terminals
- render/lines/index.ts: export renderGitFilesLine

Enabled via existing `gitStatus.showFileStats: true` config flag.
2026-04-04 15:00:05 +11:00
github-actions[bot]
93c041b64b build: compile dist/ [auto] 2026-04-04 03:55:31 +00:00
Jarrod Watts
64de69c5cd Merge pull request #336 from krushnamegh/patch-1
Refactor agent rendering and status icon logic
2026-04-04 14:55:16 +11:00
Jarrod Watts
5d923d75ca test: cover agent elapsed formatting 2026-04-04 14:55:08 +11:00
github-actions[bot]
5e72fe9ba1 build: compile dist/ [auto] 2026-04-04 03:53:54 +00:00
Jarrod Watts
67885cec66 Merge pull request #310 from 1546926687/feat/session-token-usage
feat: add cumulative session token usage display
2026-04-04 14:53:40 +11:00
Jarrod Watts
dc329fcad7 Merge remote-tracking branch 'origin/main' into feat/session-token-usage 2026-04-04 14:53:18 +11:00
Jarrod Watts
1668b9ca50 test: harden session token usage parsing 2026-04-04 14:50:57 +11:00
github-actions[bot]
772e4aa222 build: compile dist/ [auto] 2026-04-04 03:45:12 +00:00
Jarrod Watts
e80335d5af Merge pull request #368 from jarrodwatts/maintainer/ts6-compat-check
build: fix TypeScript 6 compatibility
2026-04-04 14:44:57 +11:00
Jarrod Watts
9cfaf7bf7d build: fix typescript 6 compatibility 2026-04-04 14:44:17 +11:00
github-actions[bot]
d0ef6272f9 build: compile dist/ [auto] 2026-04-04 03:39:09 +00:00
Jarrod Watts
728fe8da99 Merge pull request #325 from devy1540/feat/label
feat: add styled Weekly label for 7-day usage window
2026-04-04 14:38:48 +11:00
Jarrod Watts
50128ce2f0 Merge remote-tracking branch 'origin/main' into feat/label
# Conflicts:
#	src/render/lines/usage.ts
#	src/render/session-line.ts
#	tests/render.test.js
2026-04-04 14:38:25 +11:00
github-actions[bot]
74665c024b build: compile dist/ [auto] 2026-04-04 03:30:10 +00:00
Jarrod Watts
dd804fb8e4 Merge pull request #367 from jarrodwatts/maintainer/pr-337-vmstat
fix: use vm_stat for accurate macOS memory percentage
2026-04-04 14:29:56 +11:00
Jarrod Watts
9113b138f1 fix: use vm_stat for accurate macOS memory percentage 2026-04-04 14:29:25 +11:00
github-actions[bot]
7b40bd7c2e build: compile dist/ [auto] 2026-04-04 03:27:16 +00:00
Jarrod Watts
7ab8421514 Merge pull request #311 from RisingV/perf/config-cache
perf: add mtime-based disk cache for countConfigs()
2026-04-04 14:27:01 +11:00
Jarrod Watts
54d93191eb chore: drop generated dist changes 2026-04-04 14:26:38 +11:00
Jarrod Watts
e1f76c17c7 fix: harden config cache invalidation 2026-04-04 14:26:26 +11:00
github-actions[bot]
addcb3658c build: compile dist/ [auto] 2026-04-04 03:20:51 +00:00
Jarrod Watts
ac0f367bb2 Merge pull request #366 from jarrodwatts/maintainer/pr-316-osc8-width
fix(render): cover OSC hyperlink width handling
2026-04-04 14:20:37 +11:00
Jarrod Watts
c7ef7520f7 Merge remote-tracking branch 'origin/main' into fix/osc8-visual-length
# Conflicts:
#	tests/render-width.test.js
2026-04-04 14:20:20 +11:00
Jarrod Watts
96a94d0858 fix: cover OSC hyperlink width handling 2026-04-04 14:17:57 +11:00
github-actions[bot]
d1c2babac2 build: compile dist/ [auto] 2026-04-04 03:10:30 +00:00
Jarrod Watts
b41250b538 Merge pull request #332 from amfibiotik/fix/detect-agent-tool-name
fix: detect agents recorded as "Agent" in transcript
2026-04-04 14:10:13 +11:00