open-usage 0.8.1 → 0.9.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 +5 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -149,6 +149,7 @@ They persist to `~/.config/open-usage/preferences.json` (or `$XDG_CONFIG_HOME/op
|
|
|
149
149
|
| `CODEX_HOME` | non-default Codex home |
|
|
150
150
|
| `OPENCODE_DB` | non-default `opencode.db` path, for history |
|
|
151
151
|
| `OPEN_USAGE_OPENCODE_COOKIE` | exact OpenCode Go windows, no install needed |
|
|
152
|
+
| `OPEN_USAGE_OPENCODE_API_KEY` | forward-looking; the Go usage API it calls is not live yet |
|
|
152
153
|
| `OPEN_USAGE_NO_UPDATE_CHECK` | set to anything to stop the daily version check |
|
|
153
154
|
|
|
154
155
|
### Exact OpenCode Go limits
|
|
@@ -178,6 +179,10 @@ The cookie is optional, and it is also sufficient on its own.
|
|
|
178
179
|
Without it the Go card still works, on the local estimate; with it, OpenCode need not be installed at all, though a machine with no `opencode.db` has no token history to chart and the card says so.
|
|
179
180
|
|
|
180
181
|
Only the `auth` / `__Host-auth` pair is ever sent, and anything else in a pasted header is stripped before the request leaves your machine.
|
|
182
|
+
|
|
183
|
+
There is also an `opencodeApiKey` config key, and `OPEN_USAGE_OPENCODE_API_KEY` to match.
|
|
184
|
+
It targets the proposed `GET /zen/go/v1/usage` route, which is not merged and returns 404 today, so it is only useful once OpenCode ships that endpoint.
|
|
185
|
+
The cookie is used in preference to it until then, and a key alone will simply report the endpoint as unreachable while the local estimate carries on.
|
|
181
186
|
The cookie carries its own expiry, and the card warns you through its final seven days and again once it lapses, so a dead session cannot quietly pass for a live one.
|
|
182
187
|
If the dashboard changes shape underneath it, the card falls back to the estimate with a note rather than showing a figure it can no longer stand behind.
|
|
183
188
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-usage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A terminal dashboard for unified AI plan usage across Claude Code, Codex, and OpenCode Go",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"typescript": "^5"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@open-usage/darwin-arm64": "0.
|
|
59
|
-
"@open-usage/linux-arm64": "0.
|
|
60
|
-
"@open-usage/linux-x64": "0.
|
|
61
|
-
"@open-usage/win32-arm64": "0.
|
|
62
|
-
"@open-usage/win32-x64": "0.
|
|
58
|
+
"@open-usage/darwin-arm64": "0.9.0",
|
|
59
|
+
"@open-usage/linux-arm64": "0.9.0",
|
|
60
|
+
"@open-usage/linux-x64": "0.9.0",
|
|
61
|
+
"@open-usage/win32-arm64": "0.9.0",
|
|
62
|
+
"@open-usage/win32-x64": "0.9.0"
|
|
63
63
|
}
|
|
64
64
|
}
|