@mai0313/vibe-coding-tracker 1.5.1 → 1.6.0

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
@@ -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
 
@@ -470,6 +471,42 @@ The binary version is produced at build time by `build.rs` from `git describe`,
470
471
 
471
472
  ---
472
473
 
474
+ ## Fetch Command
475
+
476
+ **Print a provider's raw quota/usage API response — no parsing, no aggregation.**
477
+
478
+ 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`).
479
+
480
+ ### Flags
481
+
482
+ | Flag | Purpose |
483
+ | --------- | --------------------------------------------- |
484
+ | *(none)* | Pretty JSON (default) |
485
+ | `--json` | Pretty JSON |
486
+ | `--text` | Flattened `key: value` lines, script-friendly |
487
+ | `--table` | Flattened Field / Value table |
488
+
489
+ ### Basic Usage
490
+
491
+ ```bash
492
+ # Raw JSON (default)
493
+ vct fetch claude
494
+ vct fetch codex
495
+ vct fetch copilot
496
+ vct fetch cursor
497
+
498
+ # Flattened plain text
499
+ vct fetch codex --text
500
+
501
+ # Flattened key/value table
502
+ vct fetch copilot --table
503
+ ```
504
+
505
+ > [!NOTE]
506
+ > 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.
507
+
508
+ ---
509
+
473
510
  ## Smart Pricing System
474
511
 
475
512
  ### How It Works
package/README.zh-CN.md CHANGED
@@ -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
 
@@ -470,6 +471,42 @@ Binary version 由 `build.rs` 在编译期通过 `git describe` 写入,开发
470
471
 
471
472
  ---
472
473
 
474
+ ## Fetch 命令
475
+
476
+ **打印某个供应商的原始 quota/usage API 响应 — 不解析、不聚合。**
477
+
478
+ 对 `usage` 面板使用的同一个 quota 端点(Claude / Codex / Copilot / Cursor)发一次请求,直接打印原始 body,方便你查看 API 的实际结构或检查凭证是否正常。它读取各供应商已保存的凭证,并且**不会**刷新 token:token 过期时,请用对应供应商自己的 CLI 重新登录(`claude` / `codex` / `copilot` / `cursor-agent`)。
479
+
480
+ ### 参数
481
+
482
+ | 参数 | 用途 |
483
+ | --------- | ----------------------------- |
484
+ | *(无)* | 彩色 JSON(默认) |
485
+ | `--json` | 彩色 JSON |
486
+ | `--text` | 摊平成 `key: value`,适合脚本 |
487
+ | `--table` | 摊平成 Field / Value 表格 |
488
+
489
+ ### 基本用法
490
+
491
+ ```bash
492
+ # 原始 JSON(默认)
493
+ vct fetch claude
494
+ vct fetch codex
495
+ vct fetch copilot
496
+ vct fetch cursor
497
+
498
+ # 摊平成纯文本
499
+ vct fetch codex --text
500
+
501
+ # 摊平成 key/value 表格
502
+ vct fetch copilot --table
503
+ ```
504
+
505
+ > [!NOTE]
506
+ > 响应 body 会原样打印到 stdout。遇到 HTTP 错误时仍会打印 body 并以非零状态退出;401/403 还会在 stderr 额外打印 `run: <cli> login` 提示。
507
+
508
+ ---
509
+
473
510
  ## 智能定价系统
474
511
 
475
512
  ### 工作原理
package/README.zh-TW.md CHANGED
@@ -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
 
@@ -470,6 +471,42 @@ Binary version 由 `build.rs` 在編譯期透過 `git describe` 寫入,開發
470
471
 
471
472
  ---
472
473
 
474
+ ## Fetch 指令
475
+
476
+ **印出某個供應商的原始 quota/usage API 回應 — 不解析、不彙整。**
477
+
478
+ 對 `usage` 面板使用的同一個 quota 端點(Claude / Codex / Copilot / Cursor)發一次請求,直接印出原始 body,方便你檢視 API 的實際結構或確認憑證是否正常。它讀取各供應商已儲存的憑證,而且**不會**刷新 token:token 過期時,請用對應供應商自己的 CLI 重新登入(`claude` / `codex` / `copilot` / `cursor-agent`)。
479
+
480
+ ### 參數
481
+
482
+ | 參數 | 用途 |
483
+ | --------- | ----------------------------- |
484
+ | *(無)* | 彩色 JSON(預設) |
485
+ | `--json` | 彩色 JSON |
486
+ | `--text` | 攤平成 `key: value`,適合腳本 |
487
+ | `--table` | 攤平成 Field / Value 表格 |
488
+
489
+ ### 基本用法
490
+
491
+ ```bash
492
+ # 原始 JSON(預設)
493
+ vct fetch claude
494
+ vct fetch codex
495
+ vct fetch copilot
496
+ vct fetch cursor
497
+
498
+ # 攤平成純文字
499
+ vct fetch codex --text
500
+
501
+ # 攤平成 key/value 表格
502
+ vct fetch copilot --table
503
+ ```
504
+
505
+ > [!NOTE]
506
+ > 回應 body 會原樣印到 stdout。遇到 HTTP 錯誤時仍會印出 body 並以非零狀態結束;401/403 會在 stderr 額外印出 `run: <cli> login` 提示。
507
+
508
+ ---
509
+
473
510
  ## 智慧定價系統
474
511
 
475
512
  ### 運作方式
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mai0313/vibe-coding-tracker",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Vibe Coding Tracker - AI coding assistant telemetry/usage parser, aggregate JSONL events into CodeAnalysis results",
5
5
  "author": "Wei Lee <mai@mai0313.com>",
6
6
  "license": "MIT",