Skip to content

v0.4.1 — 默认 daily 热力图 + 多主题系统 + 交互向导 + 全面重构

Choose a tag to compare

@stormzhang stormzhang released this 25 Jun 03:26
· 186 commits to main since this release

大批量功能与重构合并发布(约 100 commit)。

✨ 新功能

  • tt 默认走 daily —— GitHub 风格 token 贡献热力图 + 顶部单 Panel 三段概览(Last 12 months / This Month / This Week,带环比)
  • 多主题统一配色 —— 6 套主题(Catppuccin Mocha/Latte/Frappe/Macchiato + Nord + Dracula),CLI 报表 / CC 状态栏 / Codex 伪 statusline 三者同源;tt theme 一键切换
  • 首次运行交互向导 —— tt setup 上下键选语言 / 主题 / 组件,questionary 驱动
  • 老用户升级引导(SETUP_VERSION 机制)—— 新增重要配置项时自动引导用户重走一遍
  • Codex 伪 statusline 两行布局 —— 接入主题、[项目](分支) | Total | Model + Limit: 5h/7d/Ctx
  • CC statusline 四行布局 —— git diff + TPS + Code 行数 + reset 倒计时
  • tt status 替代旧交互式 dashboard —— 过去 5h 三段实时面板(合并概览 + 5h/7d 额度 + 近期会话)
  • tt sessions 取最近 N 条再按 cost 排 —— 修「史上高 cost 霸榜」bug
  • install.sh 多安装方式阶梯 —— uv / pipx / 私有 venv / pip 绕开 PEP 668

🔧 内部

  • 产物全集中放 ~/.config/token-tracker/,agent 自己的 ~/.claude / ~/.codex 不再被污染
  • config 文件统一 config.json(theme + lang + 组件意图)
  • 包目录迁移标准 src layout(导入名 token_tracker)

📦 安装

curl -sSL https://raw.githubusercontent.com/stormzhang/token-tracker/main/install.sh | bash

PyPI: https://pypi.org/project/token-tracker/0.4.1/