tokentank 0.1.1 → 0.1.3

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
@@ -13,8 +13,8 @@ tokentank
13
13
 
14
14
  ## 功能
15
15
 
16
- - **额度**:显示各家的已用百分比和重置时间,每 3 分钟自动刷新,打开面板时也会刷新一次。
17
- - Claude:读取 Claude Code 存在钥匙串里的登录信息,请求 Anthropic 的用量接口。第一次运行时 macOS 会询问是否允许读取,选「始终允许」即可。
16
+ - **额度**:显示各家的已用百分比和重置时间,每 5 分钟自动刷新;打开面板时,如果距上次刷新超过 2 分钟也会刷新一次。某家查询失败时保留上次成功的数据,并注明数据时间。
17
+ - Claude:读取 Claude Code 存在钥匙串里的登录信息,请求 Anthropic 的用量接口。第一次运行时 macOS 会询问是否允许读取,选「始终允许」即可。这个接口限流比较严,所以至少间隔 5 分钟才请求一次(App 重启也不会提前请求);被限流时不提示,继续显示上次的数据,至少 10 分钟后再试。
18
18
  - Codex:通过 `codex app-server` 读取 5 小时和每周额度。
19
19
  - Grok:用 `~/.grok/auth.json` 里的登录态请求 Grok CLI 的计费接口;登录过期时会先运行一次 `grok models`,让 CLI 自己刷新登录。
20
20
  - **一键升级**:检查当前版本和最新版本,有新版本时依次执行:
@@ -24,6 +24,8 @@ tokentank
24
24
 
25
25
  没装的 CLI 会显示读取失败,不影响其他几项。
26
26
 
27
+ - **TokenTank 自身更新**:每小时检查一次 npm 上的新版本,有新版本时标题旁出现蓝色小胶囊,点一下会自动安装并重启。
28
+
27
29
  ## 从源码构建
28
30
 
29
31
  需要 Xcode 命令行工具和 Node.js。
@@ -6,7 +6,7 @@
6
6
  <key>CFBundleIdentifier</key><string>io.github.segfaultlab.tokentank</string>
7
7
  <key>CFBundleName</key><string>TokenTank</string>
8
8
  <key>CFBundlePackageType</key><string>APPL</string>
9
- <key>CFBundleShortVersionString</key><string>0.1.1</string>
9
+ <key>CFBundleShortVersionString</key><string>0.1.3</string>
10
10
  <key>LSMinimumSystemVersion</key><string>14.0</string>
11
11
  <key>LSUIElement</key><true/>
12
12
  </dict>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokentank",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Mac 菜单栏小工具:查看 Claude / Codex / Grok 会员额度,一键升级 CLI",
5
5
  "bin": {
6
6
  "tokentank": "bin/tokentank.js"