repospend 0.0.4 → 0.0.6
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/CHANGELOG.md +20 -0
- package/README.md +25 -0
- package/dist/cli.js +428 -78
- package/docs/PUBLISHING.md +4 -1
- package/package.json +1 -1
- package/web-dist/assets/index-BxuOiBnq.js +265 -0
- package/web-dist/assets/index-KkDIavlL.css +1 -0
- package/web-dist/index.html +2 -2
- package/web-dist/assets/index-B8lKmhuv.js +0 -260
- package/web-dist/assets/index-CUTybR_N.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to RepoSpend will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.0.6
|
|
6
|
+
|
|
7
|
+
- Improve Codex session metadata recovery from rollout logs, including standalone Codex Desktop sessions and imported Claude model metadata.
|
|
8
|
+
- Add an optional source-scoped app display mode so shared surfaces can be shown as source-specific entries such as "Codex on VS Code".
|
|
9
|
+
- Improve sparse timeline charts and RTK unavailable-state guidance in the dashboard.
|
|
10
|
+
- Document why RepoSpend token totals can differ from `ccusage` while API-equivalent costs still match.
|
|
11
|
+
- Show a git-branch icon next to repos with a confirmed git root and a folder icon for path-inferred repos, giving a quick visual signal of data confidence.
|
|
12
|
+
- Fix Windows extended-length path prefix (\\?\) handling in git root detection, which caused repos on Windows to incorrectly appear as unverified.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.0.5
|
|
16
|
+
|
|
17
|
+
- Fix Codex token under-count on long sessions by summing per-turn `last_token_usage` instead of taking the max of `total_token_usage`, which Codex resets on each context compaction.
|
|
18
|
+
- Track Codex context compactions per session (auto vs. manual `/compact`) and surface them in the session detail panel.
|
|
19
|
+
- Filter Codex startup-context blobs (AGENTS.md/INSTRUCTIONS/environment_context) out of the prompt timeline and prompt counts.
|
|
20
|
+
- Dedupe Claude Code token usage across resumed `.jsonl` files using `requestId` + message `id`, so replayed assistant turns are not double-billed.
|
|
21
|
+
- Label Codex sub-agent sessions as "Codex subagent" instead of folding them into "Codex app".
|
|
22
|
+
- Show the running RepoSpend version in the dashboard footer.
|
|
23
|
+
- Publish a GitHub release with the matching `CHANGELOG.md` section whenever a `v*.*.*` tag is pushed.
|
|
24
|
+
|
|
5
25
|
## 0.0.4
|
|
6
26
|
|
|
7
27
|
- Automatically retry Codex SQLite access after attempting to rebuild `better-sqlite3` when an `npx` or local install has a Node native module ABI mismatch.
|
package/README.md
CHANGED
|
@@ -156,6 +156,31 @@ Claude Code cost may show as unknown when local files do not include token count
|
|
|
156
156
|
or a model name. RepoSpend shows those sessions with unknown tokens/cost rather
|
|
157
157
|
than guessing.
|
|
158
158
|
|
|
159
|
+
### Why RepoSpend's token totals can look lower than `ccusage`
|
|
160
|
+
|
|
161
|
+
If you compare RepoSpend to `ccusage` you may see matching costs but different
|
|
162
|
+
"total tokens", especially for Codex where cache reads dominate. This is
|
|
163
|
+
expected.
|
|
164
|
+
|
|
165
|
+
RepoSpend treats `cached_input_tokens` as a **subset of** `input_tokens`, which
|
|
166
|
+
is how the OpenAI and Anthropic APIs document the field. The "total tokens"
|
|
167
|
+
number reflects the tokens the model actually processed. `ccusage` adds cached
|
|
168
|
+
tokens as a separate line item in its "Total Tokens" column, which inflates the
|
|
169
|
+
total but does not change billing.
|
|
170
|
+
|
|
171
|
+
The dollar cost is the source of truth and should agree between the two tools
|
|
172
|
+
within rounding. If costs diverge, that is a real discrepancy worth
|
|
173
|
+
investigating; token-count divergence on its own usually is not.
|
|
174
|
+
|
|
175
|
+
### Codex Desktop on Windows
|
|
176
|
+
|
|
177
|
+
RepoSpend captures Codex **CLI** usage on Windows from `~/.codex/`. The Codex
|
|
178
|
+
**Desktop app** (installed as the MSIX package
|
|
179
|
+
`OpenAI.Codex_<id>` under `%LOCALAPPDATA%\Packages\`) does not persist session
|
|
180
|
+
transcripts or per-turn token usage to disk. Only Electron caches and debug
|
|
181
|
+
logs are stored locally. Real session data lives server-side. Neither RepoSpend
|
|
182
|
+
nor `ccusage` can report on Codex Desktop usage from local files alone.
|
|
183
|
+
|
|
159
184
|
## What It Reads
|
|
160
185
|
|
|
161
186
|
RepoSpend only reads local files. It does not edit Codex, Claude Code, or RTK
|