@kairyou/agent-tools 0.4.0 → 0.5.2

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
@@ -101,16 +101,17 @@ Here `5h` and `w` are Claude's rolling usage windows; `⟳` is the reset countdo
101
101
  When a compatible API relay is active, the statusline also appends provider usage.
102
102
 
103
103
  To choose what appears, edit `statusline.fields` in
104
- `~/.agent-tools/config.jsonc`. The installer may add new default keys on update;
105
- it preserves top-of-file comments and existing values.
104
+ `~/.agent-tools/config.jsonc`. Installer updates only add missing default keys
105
+ and never touch your edits or comments.
106
106
 
107
107
  ### Provider usage
108
108
 
109
109
  For API relay / gateway setups: shows the relay's balance / quota inside the
110
110
  agent, so when you pay per use or have plan limits you always know how much you
111
111
  have spent and how much is left — without opening the gateway console.
112
- Works with compatible Sub2API-like,
113
- NewAPI/OneAPI/OneHub/DoneHub/Veloera/AnyRouter-like, and OpenRouter gateways.
112
+ Works with the usage APIs of Sub2API, NewAPI/OneAPI-family panels (OneHub,
113
+ DoneHub, Veloera, ...), and OpenRouter; compatibility can vary with a
114
+ deployment's version and auth scheme.
114
115
 
115
116
  ```bash
116
117
  npx -y @kairyou/agent-tools@latest usage -a claude
@@ -139,7 +140,7 @@ endpoint and key — and tune `providerUsage` in `~/.agent-tools/config.jsonc`:
139
140
  ```jsonc
140
141
  {
141
142
  "providerUsage": {
142
- "preset": "auto", // sub2api | new-api | veloera | anyrouter | openrouter | ...
143
+ "preset": "auto", // sub2api | new-api | veloera | openrouter | ...
143
144
  "userId": "", // some NewAPI/Veloera panels require your panel user id
144
145
  "days": 30, // spend window for the "30d" field (max 90)
145
146
  "debug": false // true: log probes to ~/.agent-tools/logs/usage-debug.log
package/README.zh-CN.md CHANGED
@@ -96,14 +96,14 @@ npx -y @kairyou/agent-tools@latest statusline -a claude
96
96
  使用兼容的 API 中转时, statusline 还会追加 provider usage.
97
97
 
98
98
  如需控制显示项, 修改 `~/.agent-tools/config.jsonc` 里的
99
- `statusline.fields`. 安装器更新时可能补充新的默认键; 文件顶部注释和已有值会保留.
99
+ `statusline.fields`. 安装器更新时只会补充缺失的默认键, 不会动你的修改和注释.
100
100
 
101
101
  ### Provider usage
102
102
 
103
103
  面向使用 API 中转的场景: 在 agent 内直接显示中转网关的余额/额度, 按量付费或
104
104
  有套餐限额时, 随时知道花了多少, 还剩多少, 不用切出去登录网关后台.
105
- 支持兼容 Sub2API-like, NewAPI/OneAPI/OneHub/DoneHub/Veloera/AnyRouter-like
106
- 与 OpenRouter 的网关.
105
+ 支持 Sub2API, NewAPI/OneAPI 系面板 (OneHub, DoneHub, Veloera 等)
106
+ 与 OpenRouter 的用量接口; 同类网关的部署版本和鉴权方式不同, 兼容性可能有差异.
107
107
 
108
108
  ```bash
109
109
  npx -y @kairyou/agent-tools@latest usage -a claude
@@ -130,7 +130,7 @@ provider 的 `base_url` 和密钥; Claude Code: 读取 `ANTHROPIC_BASE_URL` 与
130
130
  ```jsonc
131
131
  {
132
132
  "providerUsage": {
133
- "preset": "auto", // sub2api | new-api | veloera | anyrouter | openrouter | ...
133
+ "preset": "auto", // sub2api | new-api | veloera | openrouter | ...
134
134
  "userId": "", // 部分 NewAPI/Veloera 面板需要填面板用户 id
135
135
  "days": 30, // "30d" 字段的统计窗口(最大 90)
136
136
  "debug": false // true: 探测过程写入 ~/.agent-tools/logs/usage-debug.log