@mai0313/vct 1.5.1 → 1.7.1
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 +49 -11
- package/README.zh-CN.md +49 -11
- package/README.zh-TW.md +49 -11
- package/binaries/linux-arm64-gnu/vibe_coding_tracker +0 -0
- package/binaries/linux-x64-gnu/vibe_coding_tracker +0 -0
- package/binaries/macos-arm64/vibe_coding_tracker +0 -0
- package/binaries/macos-x64/vibe_coding_tracker +0 -0
- package/binaries/windows-arm64/vibe_coding_tracker.exe +0 -0
- package/binaries/windows-x64/vibe_coding_tracker.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
|
-
**Track your AI coding costs in real-time.** Vibe Coding Tracker is a lightweight, high-performance CLI tool built in Rust that monitors and analyzes your Claude Code, Codex, Copilot, Gemini, and
|
|
22
|
+
**Track your AI coding costs in real-time.** Vibe Coding Tracker is a lightweight, high-performance CLI tool built in Rust that monitors and analyzes your Claude Code, Codex, Copilot, Gemini, OpenCode, and Cursor usage — with detailed cost breakdowns, token statistics, and code operation insights, all while keeping the memory footprint minimal.
|
|
23
23
|
|
|
24
24
|
[English](README.md) | [繁體中文](README.zh-TW.md) | [简体中文](README.zh-CN.md)
|
|
25
25
|
|
|
@@ -48,7 +48,7 @@ Choose your preferred view:
|
|
|
48
48
|
|
|
49
49
|
### Zero Configuration
|
|
50
50
|
|
|
51
|
-
Automatically detects and processes logs from Claude Code, Codex, Copilot, Gemini, and
|
|
51
|
+
Automatically detects and processes logs from Claude Code, Codex, Copilot, Gemini, OpenCode, and Cursor. No setup required — just run and analyze.
|
|
52
52
|
|
|
53
53
|
### Rich Insights
|
|
54
54
|
|
|
@@ -62,15 +62,15 @@ Automatically detects and processes logs from Claude Code, Codex, Copilot, Gemin
|
|
|
62
62
|
|
|
63
63
|
## Key Features
|
|
64
64
|
|
|
65
|
-
| Feature | Description
|
|
66
|
-
| --------------------- |
|
|
67
|
-
| **Multi-Provider** | Claude Code, Codex, Copilot, Gemini, and
|
|
68
|
-
| **Smart Pricing** | Fuzzy model matching + daily cache from LiteLLM
|
|
69
|
-
| **4 Display Modes** | Interactive TUI, static table, plain text, and JSON
|
|
70
|
-
| **Dual Analysis** | Token/cost stats (`usage`) + code operation stats (`analysis`)
|
|
71
|
-
| **Live Quota Panels** | Live remaining quota for Claude, Codex, Copilot, and Cursor
|
|
72
|
-
| **Ultra-Lightweight** | Under ~50 MB RSS in the TUI, streaming JSONL parse — built with Rust
|
|
73
|
-
| **Live Updates** | Auto-refreshing dashboard (every 10s) with change highlighting
|
|
65
|
+
| Feature | Description |
|
|
66
|
+
| --------------------- | ---------------------------------------------------------------------------- |
|
|
67
|
+
| **Multi-Provider** | Claude Code, Codex, Copilot, Gemini, OpenCode, and Cursor — all in one place |
|
|
68
|
+
| **Smart Pricing** | Fuzzy model matching + daily cache from LiteLLM |
|
|
69
|
+
| **4 Display Modes** | Interactive TUI, static table, plain text, and JSON |
|
|
70
|
+
| **Dual Analysis** | Token/cost stats (`usage`) + code operation stats (`analysis`) |
|
|
71
|
+
| **Live Quota Panels** | Live remaining quota for Claude, Codex, Copilot, and Cursor |
|
|
72
|
+
| **Ultra-Lightweight** | Under ~50 MB RSS in the TUI, streaming JSONL parse — built with Rust |
|
|
73
|
+
| **Live Updates** | Auto-refreshing dashboard (every 10s) with change highlighting |
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
@@ -148,6 +148,7 @@ Commands:
|
|
|
148
148
|
usage Display token usage statistics
|
|
149
149
|
version Display version information
|
|
150
150
|
update Update to the latest version from GitHub releases
|
|
151
|
+
fetch Fetch a provider's raw quota/usage API response
|
|
151
152
|
help Print this message or the help of the given subcommand(s)
|
|
152
153
|
```
|
|
153
154
|
|
|
@@ -288,6 +289,7 @@ The tool automatically scans these directories:
|
|
|
288
289
|
- `~/.copilot/session-state/<sessionId>/events.jsonl` (Copilot CLI)
|
|
289
290
|
- `~/.gemini/tmp/<project_hash>/chats/*.jsonl` (Gemini CLI)
|
|
290
291
|
- `~/.local/share/opencode/opencode.db` (OpenCode — SQLite database; honors `$XDG_DATA_HOME`)
|
|
292
|
+
- `~/.cursor/chats/*/*/store.db` (Cursor — SQLite chat stores, for `analysis`) and Cursor's dashboard usage API (for `usage` tokens + cost, via the local session token; approximated from local context data when offline)
|
|
291
293
|
|
|
292
294
|
### Live Quota Panels
|
|
293
295
|
|
|
@@ -470,6 +472,42 @@ The binary version is produced at build time by `build.rs` from `git describe`,
|
|
|
470
472
|
|
|
471
473
|
---
|
|
472
474
|
|
|
475
|
+
## Fetch Command
|
|
476
|
+
|
|
477
|
+
**Print a provider's raw quota/usage API response — no parsing, no aggregation.**
|
|
478
|
+
|
|
479
|
+
Calls the same quota endpoint the `usage` dashboard uses (Claude / Codex / Copilot / Cursor) exactly once and prints the raw body, so you can inspect the exact API shape or sanity-check your credentials. It reads each provider's stored credentials and does **not** refresh tokens: if a token is expired, re-auth with that provider's own CLI (`claude` / `codex` / `copilot` / `cursor-agent`).
|
|
480
|
+
|
|
481
|
+
### Flags
|
|
482
|
+
|
|
483
|
+
| Flag | Purpose |
|
|
484
|
+
| --------- | --------------------------------------------- |
|
|
485
|
+
| *(none)* | Pretty JSON (default) |
|
|
486
|
+
| `--json` | Pretty JSON |
|
|
487
|
+
| `--text` | Flattened `key: value` lines, script-friendly |
|
|
488
|
+
| `--table` | Flattened Field / Value table |
|
|
489
|
+
|
|
490
|
+
### Basic Usage
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
# Raw JSON (default)
|
|
494
|
+
vct fetch claude
|
|
495
|
+
vct fetch codex
|
|
496
|
+
vct fetch copilot
|
|
497
|
+
vct fetch cursor
|
|
498
|
+
|
|
499
|
+
# Flattened plain text
|
|
500
|
+
vct fetch codex --text
|
|
501
|
+
|
|
502
|
+
# Flattened key/value table
|
|
503
|
+
vct fetch copilot --table
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
> [!NOTE]
|
|
507
|
+
> The response body is printed to stdout as-is. On an HTTP error the body is still printed and the process exits non-zero; a 401/403 additionally prints a `run: <cli> login` hint on stderr.
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
473
511
|
## Smart Pricing System
|
|
474
512
|
|
|
475
513
|
### How It Works
|
package/README.zh-CN.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
|
-
**实时追踪你的 AI 编程开销。** Vibe Coding Tracker 是一款基于 Rust 构建的轻量级高性能 CLI 工具,用于监控和分析你在 Claude Code、Codex、Copilot、Gemini 和
|
|
22
|
+
**实时追踪你的 AI 编程开销。** Vibe Coding Tracker 是一款基于 Rust 构建的轻量级高性能 CLI 工具,用于监控和分析你在 Claude Code、Codex、Copilot、Gemini、OpenCode 和 Cursor 上的使用情况——提供详细的费用明细、token 统计和代码操作洞察,同时保持极低的内存占用。
|
|
23
23
|
|
|
24
24
|
[English](README.md) | [繁體中文](README.zh-TW.md) | [简体中文](README.zh-CN.md)
|
|
25
25
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
### 零配置
|
|
50
50
|
|
|
51
|
-
自动检测并处理来自 Claude Code、Codex、Copilot、Gemini 和
|
|
51
|
+
自动检测并处理来自 Claude Code、Codex、Copilot、Gemini、OpenCode 和 Cursor 的日志。无需任何设置——直接运行即可分析。
|
|
52
52
|
|
|
53
53
|
### 丰富的洞察
|
|
54
54
|
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
|
|
63
63
|
## 核心特性
|
|
64
64
|
|
|
65
|
-
| 特性 | 说明
|
|
66
|
-
| ---------------- |
|
|
67
|
-
| **多供应商支持** | Claude Code、Codex、Copilot、Gemini 和
|
|
68
|
-
| **智能定价** | 模糊模型匹配 + 从 LiteLLM 每日缓存更新
|
|
69
|
-
| **4 种显示模式** | 交互式 TUI、静态表格、纯文本和 JSON
|
|
70
|
-
| **双维度分析** | token/费用统计(`usage`)+ 代码操作统计(`analysis`)
|
|
71
|
-
| **实时额度面板** | Claude、Codex、Copilot 和 Cursor 的实时剩余额度
|
|
72
|
-
| **超轻量级** | TUI 常驻内存 50 MB 以内、流式 JSONL 解析——基于 Rust 构建
|
|
73
|
-
| **实时更新** | 面板自动刷新(每 10 秒),并高亮变化
|
|
65
|
+
| 特性 | 说明 |
|
|
66
|
+
| ---------------- | ------------------------------------------------------------------- |
|
|
67
|
+
| **多供应商支持** | Claude Code、Codex、Copilot、Gemini、OpenCode 和 Cursor——一站式管理 |
|
|
68
|
+
| **智能定价** | 模糊模型匹配 + 从 LiteLLM 每日缓存更新 |
|
|
69
|
+
| **4 种显示模式** | 交互式 TUI、静态表格、纯文本和 JSON |
|
|
70
|
+
| **双维度分析** | token/费用统计(`usage`)+ 代码操作统计(`analysis`) |
|
|
71
|
+
| **实时额度面板** | Claude、Codex、Copilot 和 Cursor 的实时剩余额度 |
|
|
72
|
+
| **超轻量级** | TUI 常驻内存 50 MB 以内、流式 JSONL 解析——基于 Rust 构建 |
|
|
73
|
+
| **实时更新** | 面板自动刷新(每 10 秒),并高亮变化 |
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
@@ -148,6 +148,7 @@ Commands:
|
|
|
148
148
|
usage Display token usage statistics
|
|
149
149
|
version Display version information
|
|
150
150
|
update Update to the latest version from GitHub releases
|
|
151
|
+
fetch Fetch a provider's raw quota/usage API response
|
|
151
152
|
help Print this message or the help of the given subcommand(s)
|
|
152
153
|
```
|
|
153
154
|
|
|
@@ -288,6 +289,7 @@ Totals (by Provider)
|
|
|
288
289
|
- `~/.copilot/session-state/<sessionId>/events.jsonl`(Copilot CLI)
|
|
289
290
|
- `~/.gemini/tmp/<project_hash>/chats/*.jsonl`(Gemini CLI)
|
|
290
291
|
- `~/.local/share/opencode/opencode.db`(OpenCode,SQLite 数据库;遵循 `$XDG_DATA_HOME`)
|
|
292
|
+
- `~/.cursor/chats/*/*/store.db`(Cursor,SQLite 会话库,用于 `analysis`)以及 Cursor 官方 dashboard 用量 API(用于 `usage` 的 token 与费用,凭本地 session token 读取;离线时改用本地 context 数据估算)
|
|
291
293
|
|
|
292
294
|
### 实时额度面板
|
|
293
295
|
|
|
@@ -470,6 +472,42 @@ Binary version 由 `build.rs` 在编译期通过 `git describe` 写入,开发
|
|
|
470
472
|
|
|
471
473
|
---
|
|
472
474
|
|
|
475
|
+
## Fetch 命令
|
|
476
|
+
|
|
477
|
+
**打印某个供应商的原始 quota/usage API 响应 — 不解析、不聚合。**
|
|
478
|
+
|
|
479
|
+
对 `usage` 面板使用的同一个 quota 端点(Claude / Codex / Copilot / Cursor)发一次请求,直接打印原始 body,方便你查看 API 的实际结构或检查凭证是否正常。它读取各供应商已保存的凭证,并且**不会**刷新 token:token 过期时,请用对应供应商自己的 CLI 重新登录(`claude` / `codex` / `copilot` / `cursor-agent`)。
|
|
480
|
+
|
|
481
|
+
### 参数
|
|
482
|
+
|
|
483
|
+
| 参数 | 用途 |
|
|
484
|
+
| --------- | ----------------------------- |
|
|
485
|
+
| *(无)* | 彩色 JSON(默认) |
|
|
486
|
+
| `--json` | 彩色 JSON |
|
|
487
|
+
| `--text` | 摊平成 `key: value`,适合脚本 |
|
|
488
|
+
| `--table` | 摊平成 Field / Value 表格 |
|
|
489
|
+
|
|
490
|
+
### 基本用法
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
# 原始 JSON(默认)
|
|
494
|
+
vct fetch claude
|
|
495
|
+
vct fetch codex
|
|
496
|
+
vct fetch copilot
|
|
497
|
+
vct fetch cursor
|
|
498
|
+
|
|
499
|
+
# 摊平成纯文本
|
|
500
|
+
vct fetch codex --text
|
|
501
|
+
|
|
502
|
+
# 摊平成 key/value 表格
|
|
503
|
+
vct fetch copilot --table
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
> [!NOTE]
|
|
507
|
+
> 响应 body 会原样打印到 stdout。遇到 HTTP 错误时仍会打印 body 并以非零状态退出;401/403 还会在 stderr 额外打印 `run: <cli> login` 提示。
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
473
511
|
## 智能定价系统
|
|
474
512
|
|
|
475
513
|
### 工作原理
|
package/README.zh-TW.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
|
-
**即時追蹤你的 AI 程式設計花費。** Vibe Coding Tracker 是一款以 Rust 打造的輕量、高效能 CLI 工具,能監控與分析你在 Claude Code、Codex、Copilot、Gemini 及
|
|
22
|
+
**即時追蹤你的 AI 程式設計花費。** Vibe Coding Tracker 是一款以 Rust 打造的輕量、高效能 CLI 工具,能監控與分析你在 Claude Code、Codex、Copilot、Gemini、OpenCode 及 Cursor 的使用狀況——提供詳細的費用明細、token 統計資料與程式碼操作分析,同時維持極低的記憶體使用量。
|
|
23
23
|
|
|
24
24
|
[English](README.md) | [繁體中文](README.zh-TW.md) | [简体中文](README.zh-CN.md)
|
|
25
25
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
### 零設定
|
|
50
50
|
|
|
51
|
-
自動偵測並處理 Claude Code、Codex、Copilot、Gemini 及
|
|
51
|
+
自動偵測並處理 Claude Code、Codex、Copilot、Gemini、OpenCode 及 Cursor 的日誌檔。不需要任何設定——直接執行就能分析。
|
|
52
52
|
|
|
53
53
|
### 豐富洞察
|
|
54
54
|
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
|
|
63
63
|
## 主要功能
|
|
64
64
|
|
|
65
|
-
| 功能 | 說明
|
|
66
|
-
| ---------------- |
|
|
67
|
-
| **多供應商支援** | Claude Code、Codex、Copilot、Gemini 及
|
|
68
|
-
| **智慧定價** | 模糊模型比對 + 每日從 LiteLLM cache 更新
|
|
69
|
-
| **4 種顯示模式** | 互動式 TUI、靜態表格、純文字及 JSON
|
|
70
|
-
| **雙重分析** | Token / 費用統計(`usage`)+ 程式碼操作統計(`analysis`)
|
|
71
|
-
| **即時額度面板** | 即時顯示 Claude、Codex、Copilot 與 Cursor 的剩餘額度
|
|
72
|
-
| **超輕量** | TUI 常駐記憶體 ~50 MB 以內、串流 JSONL 解析——以 Rust 打造
|
|
73
|
-
| **即時更新** | 每 10 秒自動刷新的儀表板並突顯變更
|
|
65
|
+
| 功能 | 說明 |
|
|
66
|
+
| ---------------- | ----------------------------------------------------------------- |
|
|
67
|
+
| **多供應商支援** | Claude Code、Codex、Copilot、Gemini、OpenCode 及 Cursor——一站整合 |
|
|
68
|
+
| **智慧定價** | 模糊模型比對 + 每日從 LiteLLM cache 更新 |
|
|
69
|
+
| **4 種顯示模式** | 互動式 TUI、靜態表格、純文字及 JSON |
|
|
70
|
+
| **雙重分析** | Token / 費用統計(`usage`)+ 程式碼操作統計(`analysis`) |
|
|
71
|
+
| **即時額度面板** | 即時顯示 Claude、Codex、Copilot 與 Cursor 的剩餘額度 |
|
|
72
|
+
| **超輕量** | TUI 常駐記憶體 ~50 MB 以內、串流 JSONL 解析——以 Rust 打造 |
|
|
73
|
+
| **即時更新** | 每 10 秒自動刷新的儀表板並突顯變更 |
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
@@ -148,6 +148,7 @@ Commands:
|
|
|
148
148
|
usage Display token usage statistics
|
|
149
149
|
version Display version information
|
|
150
150
|
update Update to the latest version from GitHub releases
|
|
151
|
+
fetch Fetch a provider's raw quota/usage API response
|
|
151
152
|
help Print this message or the help of the given subcommand(s)
|
|
152
153
|
```
|
|
153
154
|
|
|
@@ -288,6 +289,7 @@ Totals (by Provider)
|
|
|
288
289
|
- `~/.copilot/session-state/<sessionId>/events.jsonl`(Copilot CLI)
|
|
289
290
|
- `~/.gemini/tmp/<project_hash>/chats/*.jsonl`(Gemini CLI)
|
|
290
291
|
- `~/.local/share/opencode/opencode.db`(OpenCode,SQLite 資料庫;遵循 `$XDG_DATA_HOME`)
|
|
292
|
+
- `~/.cursor/chats/*/*/store.db`(Cursor,SQLite 對話庫,用於 `analysis`)以及 Cursor 官方 dashboard 用量 API(用於 `usage` 的 token 與費用,以本地 session token 讀取;離線時改用本地 context 資料估算)
|
|
291
293
|
|
|
292
294
|
### 即時額度面板
|
|
293
295
|
|
|
@@ -470,6 +472,42 @@ Binary version 由 `build.rs` 在編譯期透過 `git describe` 寫入,開發
|
|
|
470
472
|
|
|
471
473
|
---
|
|
472
474
|
|
|
475
|
+
## Fetch 指令
|
|
476
|
+
|
|
477
|
+
**印出某個供應商的原始 quota/usage API 回應 — 不解析、不彙整。**
|
|
478
|
+
|
|
479
|
+
對 `usage` 面板使用的同一個 quota 端點(Claude / Codex / Copilot / Cursor)發一次請求,直接印出原始 body,方便你檢視 API 的實際結構或確認憑證是否正常。它讀取各供應商已儲存的憑證,而且**不會**刷新 token:token 過期時,請用對應供應商自己的 CLI 重新登入(`claude` / `codex` / `copilot` / `cursor-agent`)。
|
|
480
|
+
|
|
481
|
+
### 參數
|
|
482
|
+
|
|
483
|
+
| 參數 | 用途 |
|
|
484
|
+
| --------- | ----------------------------- |
|
|
485
|
+
| *(無)* | 彩色 JSON(預設) |
|
|
486
|
+
| `--json` | 彩色 JSON |
|
|
487
|
+
| `--text` | 攤平成 `key: value`,適合腳本 |
|
|
488
|
+
| `--table` | 攤平成 Field / Value 表格 |
|
|
489
|
+
|
|
490
|
+
### 基本用法
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
# 原始 JSON(預設)
|
|
494
|
+
vct fetch claude
|
|
495
|
+
vct fetch codex
|
|
496
|
+
vct fetch copilot
|
|
497
|
+
vct fetch cursor
|
|
498
|
+
|
|
499
|
+
# 攤平成純文字
|
|
500
|
+
vct fetch codex --text
|
|
501
|
+
|
|
502
|
+
# 攤平成 key/value 表格
|
|
503
|
+
vct fetch copilot --table
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
> [!NOTE]
|
|
507
|
+
> 回應 body 會原樣印到 stdout。遇到 HTTP 錯誤時仍會印出 body 並以非零狀態結束;401/403 會在 stderr 額外印出 `run: <cli> login` 提示。
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
473
511
|
## 智慧定價系統
|
|
474
512
|
|
|
475
513
|
### 運作方式
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED