open-usage 0.1.0 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -96,7 +96,10 @@ It reuses the logins your CLIs already have: Claude and Codex limits come from t
96
96
  The one credential file it opens is OpenCode's `auth.json`, and only to show connection status - the key is masked on read and never displayed, logged, or sent anywhere.
97
97
 
98
98
  Nothing is written outside its own config directory, and there is no telemetry or analytics of any kind.
99
- The only outbound request it makes on its own is to `opencode.ai`, and only if you opt in by configuring the cookie below.
99
+ It makes two outbound requests of its own accord.
100
+ One is to `opencode.ai`, and only if you opt in by configuring the cookie below.
101
+ The other asks `registry.npmjs.org` whether a newer version has been published, so an installed copy can tell you it is out of date - it sends nothing but the request, caches the answer for a day, gives up after 1.5 seconds, and stays silent on any failure.
102
+ Set `OPEN_USAGE_NO_UPDATE_CHECK` to switch it off.
100
103
 
101
104
  OpenCode Go does not publish per-account limits, so its percentages are local estimates and are labelled as such in the UI.
102
105
  Configuring the cookie below replaces those estimates with exact figures, and is enough on its own: OpenCode itself need not be installed, though without it the Go card has no token history to chart.
@@ -113,6 +116,7 @@ They persist to `~/.config/open-usage/preferences.json` (or `$XDG_CONFIG_HOME/op
113
116
  | `CODEX_HOME` | non-default Codex home |
114
117
  | `OPENCODE_DB` | non-default `opencode.db` path, for history |
115
118
  | `OPEN_USAGE_OPENCODE_COOKIE` | exact OpenCode Go windows, no install needed |
119
+ | `OPEN_USAGE_NO_UPDATE_CHECK` | set to anything to stop the daily version check |
116
120
 
117
121
  ## Development
118
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-usage",
3
- "version": "0.1.0",
3
+ "version": "0.3.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",
@@ -46,18 +46,18 @@
46
46
  "typecheck": "tsc --noEmit"
47
47
  },
48
48
  "devDependencies": {
49
- "@opentui/core": "^0.4.5",
50
- "@opentui/react": "^0.4.5",
49
+ "@opentui/core": "^0.5.1",
50
+ "@opentui/react": "^0.5.1",
51
51
  "@types/bun": "latest",
52
52
  "@types/react": "^19",
53
53
  "react": "^19.2.6",
54
54
  "typescript": "^5"
55
55
  },
56
56
  "optionalDependencies": {
57
- "@open-usage/darwin-arm64": "0.1.0",
58
- "@open-usage/linux-arm64": "0.1.0",
59
- "@open-usage/linux-x64": "0.1.0",
60
- "@open-usage/win32-arm64": "0.1.0",
61
- "@open-usage/win32-x64": "0.1.0"
57
+ "@open-usage/darwin-arm64": "0.3.0",
58
+ "@open-usage/linux-arm64": "0.3.0",
59
+ "@open-usage/linux-x64": "0.3.0",
60
+ "@open-usage/win32-arm64": "0.3.0",
61
+ "@open-usage/win32-x64": "0.3.0"
62
62
  }
63
63
  }