agyuse 0.1.0 → 0.1.1

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 (3) hide show
  1. package/README.en.md +13 -1
  2. package/README.md +13 -1
  3. package/package.json +7 -6
package/README.en.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # agyuse
2
2
 
3
- [中文](README.md)
3
+ [中文](README.md) · [Website](https://superyang006.github.io/agyuse/)
4
4
 
5
5
  Switch the Antigravity CLI (`agy`) and the Antigravity desktop app between your Google accounts and see the remaining quota of each one in a single table.
6
6
 
@@ -35,6 +35,17 @@ Or run it without installing: `npx agyuse`. npm downloads only the binary for yo
35
35
  go install github.com/SuperYang006/agyuse@latest
36
36
  ```
37
37
 
38
+ ### Upgrade
39
+
40
+ agyuse does not update itself; upgrade it the way you installed it. `agyuse -v` shows the current version. Saved accounts live in `~/.agyuse` and are kept across upgrades.
41
+
42
+ | Installed with | Upgrade |
43
+ |---|---|
44
+ | npm | `npm install -g agyuse@latest` |
45
+ | npx | Run `npx agyuse@latest`; plain `npx agyuse` may keep using an older cached version |
46
+ | Download | Download the new version from GitHub Releases and replace the old `agyuse` |
47
+ | From source | Run `go install github.com/SuperYang006/agyuse@latest` again |
48
+
38
49
  ## Usage
39
50
 
40
51
  ```
@@ -63,6 +74,7 @@ Quota comes from agy's own `/usage` command, which spends no quota. agy can only
63
74
  - The active account is queried live on every run, which waits for `agy` and depends on your network.
64
75
  - Other accounts show their last queried values. An unused account's quota only recovers, and a bucket past its reset time is shown as 100%. The UPDATED column shows how old each value is.
65
76
  - `agyuse -r` logs agy into each other account in turn and restores the original login afterwards, also on Ctrl-C. `agy` sessions or the desktop app started during the query may pick up the account being queried.
77
+ - `/usage` does not say whose quota it reports, so agyuse can only check after each query that the login still belongs to that account. Programs that query quota or switch the `agy` login on their own, such as CC Switch, may change the login during a query. When agyuse notices, the account shows "login changed by another program" and no quota is recorded; if the login is changed and changed back during the query, it goes unnoticed and the quota may be recorded for the wrong account. Pause their automatic quota queries before running `agyuse -r`.
66
78
 
67
79
  ## How it works and what is stored
68
80
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # agyuse
2
2
 
3
- [English](README.en.md)
3
+ [English](README.en.md) · [官网](https://superyang006.github.io/agyuse/)
4
4
 
5
5
  在多个 Google 账号之间切换 Antigravity CLI(`agy`)和 Antigravity 桌面端的登录,并用一张表查看每个账号的剩余额度。
6
6
 
@@ -35,6 +35,17 @@ npm install -g agyuse
35
35
  go install github.com/SuperYang006/agyuse@latest
36
36
  ```
37
37
 
38
+ ### 升级
39
+
40
+ agyuse 不会自动更新,请用安装时的方式升级,`agyuse -v` 可以查看当前版本。已保存的账号在 `~/.agyuse` 中,升级不受影响。
41
+
42
+ | 安装方式 | 升级方法 |
43
+ |---|---|
44
+ | npm | `npm install -g agyuse@latest` |
45
+ | npx | 运行 `npx agyuse@latest`;只写 `npx agyuse` 可能继续使用缓存中的旧版本 |
46
+ | 直接下载 | 从 GitHub Releases 下载新版本,覆盖原来的 `agyuse` |
47
+ | 从源码安装 | 再次运行 `go install github.com/SuperYang006/agyuse@latest` |
48
+
38
49
  ## 使用
39
50
 
40
51
  ```
@@ -61,6 +72,7 @@ CLI 和桌面端共用同一个登录,切换对两者同时生效。切换后
61
72
  - 当前账号每次都会实时查询,需要等待 `agy` 返回结果,耗时取决于网络。
62
73
  - 其他账号使用上次查询的缓存。未使用的账号额度只会恢复、不会减少;已经过了重置时间的额度显示为 100%。“更新”列显示缓存的新旧程度。
63
74
  - `agyuse -r` 会依次临时登录每个其他账号查询,完成后恢复原登录(按 Ctrl-C 中断时也会恢复)。查询期间新启动的 `agy` 会话或桌面端可能会登录到正在查询的账号上。
75
+ - `/usage` 的结果不包含账号信息,agyuse 只能在每次查询后检查登录是否还是这个账号。CC Switch 等会定时查询额度或切换 `agy` 登录的程序,可能在查询期间改动登录:能检测到的,该账号显示“登录被其他程序改动”,不记录额度;若对方在查询期间改动后又改回,则无法察觉,额度可能记到错误的账号上。运行 `agyuse -r` 前,请先暂停这类程序的自动查询。
64
76
 
65
77
  ## 工作原理与数据存储
66
78
 
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "agyuse",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Switch Antigravity (agy CLI and desktop app) accounts and see their quota",
5
+ "homepage": "https://superyang006.github.io/agyuse/",
5
6
  "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
@@ -26,10 +27,10 @@
26
27
  "node": ">=16"
27
28
  },
28
29
  "optionalDependencies": {
29
- "agyuse-darwin-arm64": "0.1.0",
30
- "agyuse-darwin-x64": "0.1.0",
31
- "agyuse-linux-arm64": "0.1.0",
32
- "agyuse-linux-x64": "0.1.0",
33
- "agyuse-win32-x64": "0.1.0"
30
+ "agyuse-darwin-arm64": "0.1.1",
31
+ "agyuse-darwin-x64": "0.1.1",
32
+ "agyuse-linux-arm64": "0.1.1",
33
+ "agyuse-linux-x64": "0.1.1",
34
+ "agyuse-win32-x64": "0.1.1"
34
35
  }
35
36
  }