@usagefleet/cli 1.2.101 → 1.2.108
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 +2 -1
- package/dist/parser.js +5 -2
- package/dist/release.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,8 @@ shell once. `uninstall` removes both again, and self-update keeps them current.
|
|
|
58
58
|
- **Token usage** — Claude Code (`~/.claude/projects/**/*.jsonl`), Claude
|
|
59
59
|
Desktop agent-mode (Cowork) sessions, and the
|
|
60
60
|
[pi](https://github.com/badlogic/pi-mono) agent (`~/.pi/agent/sessions`,
|
|
61
|
-
|
|
61
|
+
`anthropic` and `claude-bridge` provider records only; other providers don't
|
|
62
|
+
touch Claude limits).
|
|
62
63
|
A per-file byte offset in the config file means each line is sent once;
|
|
63
64
|
rotation and truncation are handled and partial lines are never sent. Delivery
|
|
64
65
|
is at-least-once — the server dedups on `uuid`.
|
package/dist/parser.js
CHANGED
|
@@ -21,7 +21,10 @@ function cacheCreation(u) {
|
|
|
21
21
|
}
|
|
22
22
|
/** pi agent session line: `{type:"message", id, timestamp, message:{role:"assistant",
|
|
23
23
|
* provider, model, responseId, usage:{input, output, cacheRead, cacheWrite}}}`.
|
|
24
|
-
* Only
|
|
24
|
+
* Only requests that land on the user's Claude subscription count: provider
|
|
25
|
+
* "anthropic" (pi's own client) and "claude-bridge" (the extension that routes
|
|
26
|
+
* through Claude Code's OAuth login, so it burns the same limits — and writes no
|
|
27
|
+
* responseId, so those lines key by id+timestamp). Other providers
|
|
25
28
|
* (openai-codex, openrouter, …) are skipped. `output` already includes reasoning
|
|
26
29
|
* tokens (totalTokens = input + output + cacheRead + cacheWrite).
|
|
27
30
|
* The line carries no working directory; `sessionCwd` comes from the file's
|
|
@@ -31,7 +34,7 @@ function parsePiLine(o, sessionCwd) {
|
|
|
31
34
|
return null;
|
|
32
35
|
}
|
|
33
36
|
const m = o.message;
|
|
34
|
-
if (!m || m.role !== 'assistant' || m.provider !== 'anthropic') {
|
|
37
|
+
if (!m || m.role !== 'assistant' || (m.provider !== 'anthropic' && m.provider !== 'claude-bridge')) {
|
|
35
38
|
return null;
|
|
36
39
|
}
|
|
37
40
|
const u = m.usage;
|
package/dist/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by .github/workflows/release.yml.
|
|
2
|
-
export const RELEASE_VERSION = "1.2.
|
|
2
|
+
export const RELEASE_VERSION = "1.2.108";
|