@mai0313/vct 0.5.12 โ†’ 0.5.13

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
@@ -146,12 +146,31 @@ Commands:
146
146
  help Print this message or the help of the given subcommand(s)
147
147
  ```
148
148
 
149
+ Time range flags (shared by `usage` and `analysis`, mutually exclusive, default `--all`):
150
+
151
+ | Flag | Window |
152
+ | ----------- | --------------------------------- |
153
+ | `--daily` | Sessions modified today |
154
+ | `--weekly` | Current ISO week (Monday โ†’ today) |
155
+ | `--monthly` | Current calendar month |
156
+ | `--all` | Every session on disk (default) |
157
+
149
158
  ---
150
159
 
151
160
  ## ๐Ÿ’ฐ Usage Command
152
161
 
153
162
  **Track your spending across all AI coding sessions.**
154
163
 
164
+ ### Flags
165
+
166
+ | Flag | Purpose |
167
+ | ---------------------------------------------- | ----------------------------------- |
168
+ | *(none)* | Interactive TUI dashboard (default) |
169
+ | `--table` | Static table, no TUI |
170
+ | `--text` | Plain text, script-friendly |
171
+ | `--json` | JSON with enriched pricing metadata |
172
+ | `--daily` / `--weekly` / `--monthly` / `--all` | Time range filter (see table above) |
173
+
155
174
  ### Basic Usage
156
175
 
157
176
  ```bash
@@ -164,10 +183,18 @@ vct usage --table
164
183
  # Plain text for scripts
165
184
  vct usage --text
166
185
 
167
- # JSON for data processing
186
+ # JSON for data processing (includes cost_usd and matched_model fields)
168
187
  vct usage --json
188
+
189
+ # Combine time range with output format
190
+ vct usage --weekly
191
+ vct usage --table --monthly
192
+ vct usage --json --daily
169
193
  ```
170
194
 
195
+ > [!NOTE]
196
+ > Model rows are sorted by cost in ascending order, so the highest-spending model sits right above the `TOTAL` row. This applies to the interactive dashboard, `--table`, and `--text` output; `--json` preserves the same order.
197
+
171
198
  ### Preview: Interactive Dashboard (`vct usage`)
172
199
 
173
200
  ```
@@ -177,9 +204,9 @@ vct usage --json
177
204
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
178
205
  โ”‚ Model Input Output Cache Read Cache Create Total Cost โ”‚
179
206
  โ”‚ โ”‚
207
+ โ”‚ gemini-3.1-pro-preview 129,115 10,339 67,385 0 $0.40 โ”‚
180
208
  โ”‚ claude-haiku-4-5-20251001 5,567 19,769 4,627,938 619,816 $1.34 โ”‚
181
209
  โ”‚ claude-opus-4-6 25,651 179,066 40,830,154 2,572,258 $77.59 โ”‚
182
- โ”‚ gemini-3.1-pro-preview 129,115 10,339 67,385 0 $0.40 โ”‚
183
210
  โ”‚ TOTAL 160,333 209,174 45,525,477 3,192,074 $79.33 โ”‚
184
211
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
185
212
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
@@ -210,6 +237,19 @@ The tool automatically scans these directories:
210
237
 
211
238
  **Deep dive into code operations โ€” see exactly what your AI assistant did.**
212
239
 
240
+ ### Flags
241
+
242
+ | Flag | Purpose |
243
+ | ---------------------------------------------- | ------------------------------------------------------------------ |
244
+ | *(none)* | Interactive TUI dashboard over all sessions |
245
+ | `--path <FILE>` | Analyze a single JSONL/JSON conversation file (prints JSON) |
246
+ | `--table` | Static table with per-provider daily averages |
247
+ | `--output <FILE>` | Save results as pretty-printed JSON |
248
+ | `--by-provider` | Group rows by provider (claude / codex / copilot / gemini) as JSON |
249
+ | `--daily` / `--weekly` / `--monthly` / `--all` | Time range filter (see table above) |
250
+
251
+ See [`examples/`](examples/) for sample inputs and matching JSON outputs for all four providers.
252
+
213
253
  ### Basic Usage
214
254
 
215
255
  ```bash
@@ -219,17 +259,22 @@ vct analysis
219
259
  # Static table output with daily averages
220
260
  vct analysis --table
221
261
 
222
- # Analyze a single conversation file
262
+ # Analyze a single conversation file โ†’ stdout JSON
223
263
  vct analysis --path ~/.claude/projects/session.jsonl
224
264
 
225
265
  # Save results to JSON
226
266
  vct analysis --output report.json
227
267
 
228
268
  # Group results by provider
229
- vct analysis --all
269
+ vct analysis --by-provider
230
270
 
231
271
  # Save grouped results
232
- vct analysis --all --output grouped_report.json
272
+ vct analysis --by-provider --output grouped_report.json
273
+
274
+ # Combine time range with output format
275
+ vct analysis --weekly
276
+ vct analysis --table --monthly
277
+ vct analysis --by-provider --daily --output today.json
233
278
  ```
234
279
 
235
280
  ### Preview: Interactive Dashboard (`vct analysis`)
@@ -290,6 +335,20 @@ vct update --force
290
335
 
291
336
  ---
292
337
 
338
+ ## ๐Ÿท๏ธ Version Command
339
+
340
+ Report the embedded build metadata (binary version, Rust toolchain, Cargo version):
341
+
342
+ ```bash
343
+ vct version # Pretty table
344
+ vct version --text # One-field-per-line, script-friendly
345
+ vct version --json # Machine-readable JSON
346
+ ```
347
+
348
+ The binary version is produced at build time by `build.rs` from `git describe`, so development builds include commit count + short SHA + `dirty` suffix when applicable.
349
+
350
+ ---
351
+
293
352
  ## ๐Ÿ’ก Smart Pricing System
294
353
 
295
354
  ### How It Works
package/README.zh-CN.md CHANGED
@@ -146,12 +146,31 @@ Commands:
146
146
  help Print this message or the help of the given subcommand(s)
147
147
  ```
148
148
 
149
+ ๆ—ถ้—ด่Œƒๅ›ด flag๏ผˆ`usage` ไธŽ `analysis` ๅ…ฑ็”จ๏ผŒไบ’ๆ–ฅ๏ผŒ้ป˜่ฎค `--all`๏ผ‰๏ผš
150
+
151
+ | Flag | ่Œƒๅ›ด |
152
+ | ----------- | ---------------------------- |
153
+ | `--daily` | ไปŠๅคฉๆ›ดๆ–ฐ่ฟ‡็š„ session |
154
+ | `--weekly` | ๆœฌ ISO ๅ‘จ๏ผˆๅ‘จไธ€ โ†’ ไปŠๅคฉ๏ผ‰ |
155
+ | `--monthly` | ๆœฌ่‡ช็„ถๆœˆ |
156
+ | `--all` | ็ฃ็›˜ไธŠๆ‰€ๆœ‰ session๏ผˆ้ป˜่ฎคๅ€ผ๏ผ‰ |
157
+
149
158
  ---
150
159
 
151
160
  ## ๐Ÿ’ฐ Usage ๅ‘ฝไปค
152
161
 
153
162
  **่ฟฝ่ธชไฝ ๅœจๆ‰€ๆœ‰ AI ็ผ–็จ‹ไผš่ฏไธญ็š„ๅผ€้”€ใ€‚**
154
163
 
164
+ ### Flag ไธ€่งˆ
165
+
166
+ | Flag | ็”จ้€” |
167
+ | ---------------------------------------------- | -------------------------- |
168
+ | *(ไธๅธฆๅ‚ๆ•ฐ)* | ไบ’ๅŠจๅผ TUI ้ขๆฟ๏ผˆ้ป˜่ฎค๏ผ‰ |
169
+ | `--table` | ้™ๆ€่กจๆ ผ๏ผŒไธๅฏๅŠจ TUI |
170
+ | `--text` | ็บฏๆ–‡ๆœฌ๏ผŒ้€‚ๅˆ่„šๆœฌๅค„็† |
171
+ | `--json` | JSON ่พ“ๅ‡บ๏ผŒ้™„ๅธฆๅฎšไปทไฟกๆฏ |
172
+ | `--daily` / `--weekly` / `--monthly` / `--all` | ๆ—ถ้—ด่Œƒๅ›ด็ญ›้€‰๏ผˆ่งไธŠๆ–น่กจๆ ผ๏ผ‰ |
173
+
155
174
  ### ๅŸบๆœฌ็”จๆณ•
156
175
 
157
176
  ```bash
@@ -164,10 +183,18 @@ vct usage --table
164
183
  # Plain text for scripts
165
184
  vct usage --text
166
185
 
167
- # JSON for data processing
186
+ # JSON ่พ“ๅ‡บ๏ผŒๅŒ…ๅซ cost_usd ไธŽ matched_model ๅญ—ๆฎต
168
187
  vct usage --json
188
+
189
+ # ๆ—ถ้—ด่Œƒๅ›ดไธŽ่พ“ๅ‡บๆ ผๅผๅฏ่‡ช็”ฑ็ป„ๅˆ
190
+ vct usage --weekly
191
+ vct usage --table --monthly
192
+ vct usage --json --daily
169
193
  ```
170
194
 
195
+ > [!NOTE]
196
+ > Model ่กŒไผšๆŒ‰ cost ๅ‡ๅบๆŽ’ๅบ๏ผŒๅ› ๆญค่Šฑ่ดนๆœ€้ซ˜็š„ model ไผš็ดง้‚ปๅœจ `TOTAL` ่กŒไธŠๆ–นใ€‚่ฏฅๆŽ’ๅบ้€‚็”จไบŽไบคไบ’ๅผ้ขๆฟใ€`--table` ไธŽ `--text` ไธ‰็ง่พ“ๅ‡บ๏ผ›`--json` ไนŸไผšไฟๆŒ็›ธๅŒ้กบๅบใ€‚
197
+
171
198
  ### ้ข„่งˆ๏ผšไบคไบ’ๅผ้ขๆฟ๏ผˆ`vct usage`๏ผ‰
172
199
 
173
200
  ```
@@ -177,9 +204,9 @@ vct usage --json
177
204
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
178
205
  โ”‚ Model Input Output Cache Read Cache Create Total Cost โ”‚
179
206
  โ”‚ โ”‚
207
+ โ”‚ gemini-3.1-pro-preview 129,115 10,339 67,385 0 $0.40 โ”‚
180
208
  โ”‚ claude-haiku-4-5-20251001 5,567 19,769 4,627,938 619,816 $1.34 โ”‚
181
209
  โ”‚ claude-opus-4-6 25,651 179,066 40,830,154 2,572,258 $77.59 โ”‚
182
- โ”‚ gemini-3.1-pro-preview 129,115 10,339 67,385 0 $0.40 โ”‚
183
210
  โ”‚ TOTAL 160,333 209,174 45,525,477 3,192,074 $79.33 โ”‚
184
211
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
185
212
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
@@ -210,6 +237,19 @@ vct usage --json
210
237
 
211
238
  **ๆทฑๅ…ฅไบ†่งฃไปฃ็ ๆ“ไฝœโ€”โ€”ๆŸฅ็œ‹ไฝ ็š„ AI ๅŠฉๆ‰‹ๅˆฐๅบ•ๅšไบ†ไป€ไนˆใ€‚**
212
239
 
240
+ ### Flag ไธ€่งˆ
241
+
242
+ | Flag | ็”จ้€” |
243
+ | ---------------------------------------------- | --------------------------------------------------------------- |
244
+ | *(ไธๅธฆๅ‚ๆ•ฐ)* | ไบ’ๅŠจๅผ TUI ้ขๆฟ๏ผŒ่ฆ†็›–ๆ‰€ๆœ‰ session |
245
+ | `--path <FILE>` | ๅˆ†ๆžๅ•ไธ€ JSONL/JSON ๅฏน่ฏๆ–‡ไปถ๏ผˆstdout ่พ“ๅ‡บ JSON๏ผ‰ |
246
+ | `--table` | ้™ๆ€่กจๆ ผ๏ผŒ้™„ๅธฆๆฏๆ—ฅๅนณๅ‡ๅ€ผ |
247
+ | `--output <FILE>` | ๅฐ†็ป“ๆžœไปฅๆ ผๅผๅŒ– JSON ไฟๅญ˜ๅˆฐๆ–‡ไปถ |
248
+ | `--by-provider` | ๆŒ‰ provider๏ผˆclaude / codex / copilot / gemini๏ผ‰ๅˆ†็ป„ๅนถ่พ“ๅ‡บ JSON |
249
+ | `--daily` / `--weekly` / `--monthly` / `--all` | ๆ—ถ้—ด่Œƒๅ›ด็ญ›้€‰๏ผˆ่งไธŠๆ–น่กจๆ ผ๏ผ‰ |
250
+
251
+ ๅ‚่ง [`examples/`](examples/) ็›ฎๅฝ•๏ผŒๅ…ถไธญๅŒ…ๅซๅ››็ง provider ็š„็คบไพ‹่พ“ๅ…ฅไธŽๅฏนๅบ” JSON ่พ“ๅ‡บใ€‚
252
+
213
253
  ### ๅŸบๆœฌ็”จๆณ•
214
254
 
215
255
  ```bash
@@ -219,17 +259,22 @@ vct analysis
219
259
  # Static table output with daily averages
220
260
  vct analysis --table
221
261
 
222
- # Analyze a single conversation file
262
+ # ๅˆ†ๆžๅ•ไธ€ๅฏน่ฏๆ–‡ไปถ โ†’ stdout JSON
223
263
  vct analysis --path ~/.claude/projects/session.jsonl
224
264
 
225
265
  # Save results to JSON
226
266
  vct analysis --output report.json
227
267
 
228
268
  # Group results by provider
229
- vct analysis --all
269
+ vct analysis --by-provider
230
270
 
231
271
  # Save grouped results
232
- vct analysis --all --output grouped_report.json
272
+ vct analysis --by-provider --output grouped_report.json
273
+
274
+ # ๆ—ถ้—ด่Œƒๅ›ดไธŽ่พ“ๅ‡บๆ ผๅผๅฏ่‡ช็”ฑ็ป„ๅˆ
275
+ vct analysis --weekly
276
+ vct analysis --table --monthly
277
+ vct analysis --by-provider --daily --output today.json
233
278
  ```
234
279
 
235
280
  ### ้ข„่งˆ๏ผšไบคไบ’ๅผ้ขๆฟ๏ผˆ`vct analysis`๏ผ‰
@@ -290,6 +335,20 @@ vct update --force
290
335
 
291
336
  ---
292
337
 
338
+ ## ๐Ÿท๏ธ Version ๅ‘ฝไปค
339
+
340
+ ๆŸฅ็œ‹ๅ†…็ฝฎ็š„ๆž„ๅปบไฟกๆฏ๏ผˆbinary versionใ€Rust toolchainใ€Cargo version๏ผ‰๏ผš
341
+
342
+ ```bash
343
+ vct version # ๅฝฉ่‰ฒ่กจๆ ผ
344
+ vct version --text # ๆฏ่กŒไธ€ไธชๅญ—ๆฎต๏ผŒ้€‚ๅˆ่„šๆœฌ
345
+ vct version --json # ๆœบ่ฏป JSON
346
+ ```
347
+
348
+ Binary version ็”ฑ `build.rs` ๅœจ็ผ–่ฏ‘ๆœŸ้€š่ฟ‡ `git describe` ๅ†™ๅ…ฅ๏ผŒๅผ€ๅ‘็‰ˆๆœฌไผš้™„ๅธฆ commit ่ฎกๆ•ฐใ€short SHA ไธŽ `dirty` ๅŽ็ผ€ใ€‚
349
+
350
+ ---
351
+
293
352
  ## ๐Ÿ’ก ๆ™บ่ƒฝๅฎšไปท็ณป็ปŸ
294
353
 
295
354
  ### ๅทฅไฝœๅŽŸ็†
package/README.zh-TW.md CHANGED
@@ -146,12 +146,31 @@ Commands:
146
146
  help Print this message or the help of the given subcommand(s)
147
147
  ```
148
148
 
149
+ ๆ™‚้–“็ฏ„ๅœ flag๏ผˆ`usage` ่ˆ‡ `analysis` ๅ…ฑ็”จ๏ผŒไบ’ๆ–ฅ๏ผŒ้ ่จญ `--all`๏ผ‰๏ผš
150
+
151
+ | Flag | ็ฏ„ๅœ |
152
+ | ----------- | -------------------------- |
153
+ | `--daily` | ไปŠๅคฉๆ›ดๆ–ฐ้Ž็š„ session |
154
+ | `--weekly` | ๆœฌ ISO ้€ฑ๏ผˆ้€ฑไธ€ โ†’ ไปŠๅคฉ๏ผ‰ |
155
+ | `--monthly` | ๆœฌ่‡ช็„ถๆœˆ |
156
+ | `--all` | ็ฃ็ขŸไธŠๆ‰€ๆœ‰ session๏ผˆ้ ่จญ๏ผ‰ |
157
+
149
158
  ---
150
159
 
151
160
  ## ๐Ÿ’ฐ Usage ๆŒ‡ไปค
152
161
 
153
162
  **่ฟฝ่นคไฝ ๅœจๆ‰€ๆœ‰ AI ็จ‹ๅผ่จญ่จˆๅทฅไฝœ้šŽๆฎต็š„่Šฑ่ฒปใ€‚**
154
163
 
164
+ ### Flag ไธ€่ฆฝ
165
+
166
+ | Flag | ็”จ้€” |
167
+ | ---------------------------------------------- | ---------------------------- |
168
+ | *(ไธๅธถๅƒๆ•ธ)* | ไบ’ๅ‹•ๅผ TUI ๅ„€่กจๆฟ๏ผˆ้ ่จญ๏ผ‰ |
169
+ | `--table` | ้œๆ…‹่กจๆ ผ๏ผŒไธๅ•Ÿๅ‹• TUI |
170
+ | `--text` | ็ด”ๆ–‡ๅญ—๏ผŒ้ฉๅˆ่…ณๆœฌ่™•็† |
171
+ | `--json` | JSON ่ผธๅ‡บ๏ผŒ้™„ๅธถ pricing ่ณ‡่จŠ |
172
+ | `--daily` / `--weekly` / `--monthly` / `--all` | ๆ™‚้–“็ฏ„ๅœ็ฏฉ้ธ๏ผˆ่ฆ‹ไธŠๆ–น่กจๆ ผ๏ผ‰ |
173
+
155
174
  ### ๅŸบๆœฌ็”จๆณ•
156
175
 
157
176
  ```bash
@@ -164,10 +183,18 @@ vct usage --table
164
183
  # Plain text for scripts
165
184
  vct usage --text
166
185
 
167
- # JSON for data processing
186
+ # JSON ่ผธๅ‡บ๏ผŒๅŒ…ๅซ cost_usd ่ˆ‡ matched_model ๆฌ„ไฝ
168
187
  vct usage --json
188
+
189
+ # ๆ™‚้–“็ฏ„ๅœ่ˆ‡่ผธๅ‡บๆ ผๅผๅฏ่‡ช็”ฑ็ต„ๅˆ
190
+ vct usage --weekly
191
+ vct usage --table --monthly
192
+ vct usage --json --daily
169
193
  ```
170
194
 
195
+ > [!NOTE]
196
+ > Model ๅˆ—ๆœƒไพ cost ็”ฑๅฐๅˆฐๅคงๆŽ’ๅบ๏ผŒๆ‰€ไปฅ่Šฑ่ฒปๆœ€้ซ˜็š„ model ๆœƒ็ทŠ้„ฐๅœจ `TOTAL` ๅˆ—ไธŠๆ–นใ€‚้€™ๅ€‹ๆŽ’ๅบๆœƒๅฅ—็”จๅˆฐไบ’ๅ‹•ๅผๅ„€่กจๆฟใ€`--table` ่ˆ‡ `--text` ไธ‰็จฎ่ผธๅ‡บ๏ผ›`--json` ไนŸๆœƒไฟๆŒ็›ธๅŒ้ †ๅบใ€‚
197
+
171
198
  ### ้ ่ฆฝ๏ผšไบ’ๅ‹•ๅผๅ„€่กจๆฟ๏ผˆ`vct usage`๏ผ‰
172
199
 
173
200
  ```
@@ -177,9 +204,9 @@ vct usage --json
177
204
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
178
205
  โ”‚ Model Input Output Cache Read Cache Create Total Cost โ”‚
179
206
  โ”‚ โ”‚
207
+ โ”‚ gemini-3.1-pro-preview 129,115 10,339 67,385 0 $0.40 โ”‚
180
208
  โ”‚ claude-haiku-4-5-20251001 5,567 19,769 4,627,938 619,816 $1.34 โ”‚
181
209
  โ”‚ claude-opus-4-6 25,651 179,066 40,830,154 2,572,258 $77.59 โ”‚
182
- โ”‚ gemini-3.1-pro-preview 129,115 10,339 67,385 0 $0.40 โ”‚
183
210
  โ”‚ TOTAL 160,333 209,174 45,525,477 3,192,074 $79.33 โ”‚
184
211
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
185
212
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
@@ -210,6 +237,19 @@ vct usage --json
210
237
 
211
238
  **ๆทฑๅ…ฅๅˆ†ๆž็จ‹ๅผ็ขผๆ“ไฝœโ€”โ€”็ฒพ็ขบๆŽŒๆกไฝ ็š„ AI ๅŠฉๆ‰‹ๅšไบ†ๅ“ชไบ›ไบ‹ใ€‚**
212
239
 
240
+ ### Flag ไธ€่ฆฝ
241
+
242
+ | Flag | ็”จ้€” |
243
+ | ---------------------------------------------- | --------------------------------------------------------------- |
244
+ | *(ไธๅธถๅƒๆ•ธ)* | ไบ’ๅ‹•ๅผ TUI ๅ„€่กจๆฟ๏ผŒๆถต่“‹ๆ‰€ๆœ‰ session |
245
+ | `--path <FILE>` | ๅˆ†ๆžๅ–ฎไธ€ JSONL/JSON ๅฐ่ฉฑๆช”ๆกˆ๏ผˆstdout ่ผธๅ‡บ JSON๏ผ‰ |
246
+ | `--table` | ้œๆ…‹่กจๆ ผ๏ผŒ้™„ๅธถๆฏๆ—ฅๅนณๅ‡ๅ€ผ |
247
+ | `--output <FILE>` | ๅฐ‡็ตๆžœไปฅๆ ผๅผๅŒ– JSON ๅญ˜ๆˆๆช”ๆกˆ |
248
+ | `--by-provider` | ไพ provider๏ผˆclaude / codex / copilot / gemini๏ผ‰ๅˆ†็ต„ไธฆ่ผธๅ‡บ JSON |
249
+ | `--daily` / `--weekly` / `--monthly` / `--all` | ๆ™‚้–“็ฏ„ๅœ็ฏฉ้ธ๏ผˆ่ฆ‹ไธŠๆ–น่กจๆ ผ๏ผ‰ |
250
+
251
+ ่ซ‹ๅƒ่€ƒ [`examples/`](examples/) ็›ฎ้Œ„๏ผŒ่ฃก้ขๆœ‰ๅ››็จฎ provider ็š„็ฏ„ไพ‹่ผธๅ…ฅ่ˆ‡ๅฐๆ‡‰็š„ JSON ่ผธๅ‡บใ€‚
252
+
213
253
  ### ๅŸบๆœฌ็”จๆณ•
214
254
 
215
255
  ```bash
@@ -219,17 +259,22 @@ vct analysis
219
259
  # Static table output with daily averages
220
260
  vct analysis --table
221
261
 
222
- # Analyze a single conversation file
262
+ # ๅˆ†ๆžๅ–ฎไธ€ๅฐ่ฉฑๆช”ๆกˆ โ†’ stdout JSON
223
263
  vct analysis --path ~/.claude/projects/session.jsonl
224
264
 
225
265
  # Save results to JSON
226
266
  vct analysis --output report.json
227
267
 
228
268
  # Group results by provider
229
- vct analysis --all
269
+ vct analysis --by-provider
230
270
 
231
271
  # Save grouped results
232
- vct analysis --all --output grouped_report.json
272
+ vct analysis --by-provider --output grouped_report.json
273
+
274
+ # ๆ™‚้–“็ฏ„ๅœ่ˆ‡่ผธๅ‡บๆ ผๅผๅฏ่‡ช็”ฑ็ต„ๅˆ
275
+ vct analysis --weekly
276
+ vct analysis --table --monthly
277
+ vct analysis --by-provider --daily --output today.json
233
278
  ```
234
279
 
235
280
  ### ้ ่ฆฝ๏ผšไบ’ๅ‹•ๅผๅ„€่กจๆฟ๏ผˆ`vct analysis`๏ผ‰
@@ -290,6 +335,20 @@ vct update --force
290
335
 
291
336
  ---
292
337
 
338
+ ## ๐Ÿท๏ธ Version ๆŒ‡ไปค
339
+
340
+ ๆชข่ฆ–ๅ…งๅปบ็š„ๅปบ็ฝฎ่ณ‡่จŠ๏ผˆbinary versionใ€Rust toolchainใ€Cargo version๏ผ‰๏ผš
341
+
342
+ ```bash
343
+ vct version # ๅฝฉ่‰ฒ่กจๆ ผ
344
+ vct version --text # ๆฏ่กŒไธ€ๅ€‹ๆฌ„ไฝ๏ผŒ้ฉๅˆ่…ณๆœฌ
345
+ vct version --json # ๆฉŸๅ™จๅฏ่ฎ€็š„ JSON
346
+ ```
347
+
348
+ Binary version ็”ฑ `build.rs` ๅœจ็ทจ่ญฏๆœŸ้€้Ž `git describe` ๅฏซๅ…ฅ๏ผŒ้–‹็™ผ็‰ˆๆœฌๆœƒ้™„ไธŠ commit ๆ•ธใ€short SHA ่ˆ‡ `dirty` ๅพŒ็ถดใ€‚
349
+
350
+ ---
351
+
293
352
  ## ๐Ÿ’ก ๆ™บๆ…งๅฎšๅƒน็ณป็ตฑ
294
353
 
295
354
  ### ้‹ไฝœๆ–นๅผ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mai0313/vct",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
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",