opencode-usage-limits 0.3.2 → 0.3.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/CHANGELOG.en.md CHANGED
@@ -6,6 +6,23 @@ All notable changes to `usage-limits` are documented here. The format is based o
6
6
 
7
7
  [简体中文](./CHANGELOG.md) · [English](./CHANGELOG.en.md)
8
8
 
9
+ ## 0.3.3 - 2026-11-05
10
+
11
+ ### Changed
12
+
13
+ - **Go allowance table synced with the official 2026-11 table**
14
+ ([docs](https://opencode.ai/v2/docs/console/go/)): **DeepSeek V4.1 Flash is now $100/month**
15
+ (Go Plus $200, up from $80/$160) — the only price change in this release.
16
+ - **Six models added**: `gemini-4-argon` ($30/$120), `kimi-k3.1-pro` ($15/$60),
17
+ `minimax-m3.1-flash` ($20/$80), `hy4` ($60/$240), plus `beam-free` and `iceman-contributor-free` (free).
18
+ - **`step-5-preview-free` corrected to `step-5-preview`**: the model is paid now ($15/$60), so showing `∞`
19
+ was wrong.
20
+ - **Six delisted models removed**: `grok-4.6`, `space-bunny`, `minimax-m2.7`, `deepseek-v4-flash`,
21
+ `deepseek-v4-flash-vision-exp`, `longcat-2.5-preview-free`. Unknown models keep rendering `—`.
22
+ - The table is now **sorted by model ID** so it can be diffed against the docs page; the source link in
23
+ the comment points at `https://opencode.ai/v2/docs/console/go/`.
24
+ - Go Teams (Go + $5 per model) is not part of the reference line, which keeps showing `$Go/$Go Plus`.
25
+
9
26
  ## 0.3.2 - 2026-11-05
10
27
 
11
28
  ### Fixed
package/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@
4
4
 
5
5
  [简体中文](./CHANGELOG.md) · [English](./CHANGELOG.en.md)
6
6
 
7
+ ## 0.3.3 - 2026-11-05
8
+
9
+ ### 变更
10
+
11
+ - **Go 额度表同步官方 2026-11 版**([官方表](https://opencode.ai/v2/docs/console/go/)):
12
+ **DeepSeek V4.1 Flash 月度额度 $80 → $100**(Go Plus $160 → $200),这是本次唯一的金额上调。
13
+ - **新增 6 个模型**:`gemini-4-argon`($30/$120)、`kimi-k3.1-pro`($15/$60)、
14
+ `minimax-m3.1-flash`($20/$80)、`hy4`($60/$240)、`beam-free` 与 `iceman-contributor-free`(免费)。
15
+ - **`step-5-preview-free` 修正为 `step-5-preview`**:该模型已转为付费($15/$60),原先按免费显示 `∞` 有误。
16
+ - **移除 6 个官方已下架模型**:`grok-4.6`、`space-bunny`、`minimax-m2.7`、`deepseek-v4-flash`、
17
+ `deepseek-v4-flash-vision-exp`、`longcat-2.5-preview-free`。未收录模型继续显示 `—`。
18
+ - 额度表改为**按模型 ID 升序**排列,便于与官方表逐条对照;注释中的出处链接更新为
19
+ `https://opencode.ai/v2/docs/console/go/`。
20
+ - Go Teams 档(每个模型比 Go 高 $5)不纳入参考行,参考行仍显示 `$Go/$Go Plus`。
21
+
7
22
  ## 0.3.2 - 2026-11-05
8
23
 
9
24
  ### 修复
package/README.en.md CHANGED
@@ -27,7 +27,7 @@ Monthly 60%
27
27
  ███████████████████░░░░░░░░░░░░░░░░░
28
28
  ↻ 7d 14h
29
29
 
30
- deepseek-v4.1-flash $80/$160
30
+ deepseek-v4.1-flash $100/$200
31
31
  ```
32
32
 
33
33
  ## Features
@@ -36,7 +36,7 @@ deepseek-v4.1-flash $80/$160
36
36
  - **Three windows**: rolling 5 hours / weekly / monthly, with percentage, bar and reset countdown.
37
37
  - **Green / yellow / red**: < 50% green, 50–79% yellow, ≥ 80% red (thresholds live in `core.ts`).
38
38
  - **Spend display**: ClinePass shows `used / limit` (caps read live from `/users/me/plan`, $10 / $25 / $50);
39
- OpenCode Go shows percentages only, with the selected model's allowance (e.g. `$80/$160`) noted at the bottom
39
+ OpenCode Go shows percentages only, with the selected model's allowance (e.g. `$100/$200`) noted at the bottom
40
40
  as a reference.
41
41
  - **Collapsible**: click the title row to collapse to a single line; the state is persisted.
42
42
  - **Unobtrusive**: nothing is rendered for any other provider, so it never takes up space.
package/README.md CHANGED
@@ -27,7 +27,7 @@ Monthly 60%
27
27
  ███████████████████░░░░░░░░░░░░░░░░░
28
28
  ↻ 7d 14h
29
29
 
30
- deepseek-v4.1-flash $80/$160
30
+ deepseek-v4.1-flash $100/$200
31
31
  ```
32
32
 
33
33
  ## 功能
@@ -35,7 +35,7 @@ deepseek-v4.1-flash $80/$160
35
35
  - **两个用量来源**:OpenCode Go、ClinePass,按当前模型自动切换。
36
36
  - **三个窗口**:5 小时滚动 / 周 / 月,含百分比、进度条、重置倒计时。
37
37
  - **绿黄红提醒**:< 50% 绿、50–79% 黄、≥ 80% 红(阈值见 `core.ts`)。
38
- - **金额显示**:ClinePass 显示 `已用 / 限额`(限额从 `/users/me/plan` 实时读取,$10 / $25 / $50);OpenCode Go 只显示百分比,并在**底部**标注当前模型的额度(如 `$80/$160`)供参考。
38
+ - **金额显示**:ClinePass 显示 `已用 / 限额`(限额从 `/users/me/plan` 实时读取,$10 / $25 / $50);OpenCode Go 只显示百分比,并在**底部**标注当前模型的额度(如 `$100/$200`)供参考。
39
39
  - **整体折叠**:点标题行收起,只留一行;状态持久化,重启保持。
40
40
  - **不打扰**:选中其他 provider 时**完全不渲染**,不占空间。
41
41
  - **限流退避**:遇 429 / 5xx / 网络失败自动指数退避(最长 5 分钟),并显示 `retry in Ns`。
package/dist/tui.js CHANGED
@@ -33,91 +33,69 @@ var PROVIDERS = {
33
33
  }
34
34
  };
35
35
  var GO_MODEL_ALLOWANCE = {
36
- "kimi-k3": {
37
- go: 15,
38
- plus: 60
39
- },
40
- "qwen3.8-max": {
36
+ "beam-free": "free",
37
+ "claude-haiku-5-5": {
41
38
  go: 15,
42
39
  plus: 60
43
40
  },
44
- "grok-4.7": {
41
+ "deepseek-v4-pro": {
45
42
  go: 15,
46
43
  plus: 60
47
44
  },
48
- "grok-4.6": {
49
- go: 15,
50
- plus: 60
45
+ "deepseek-v4.1-flash": {
46
+ go: 100,
47
+ plus: 200
51
48
  },
52
- "glm-5.3": {
53
- go: 15,
49
+ "gemini-4-argon": {
50
+ go: 30,
54
51
  plus: 120
55
52
  },
56
53
  "glm-5.2": {
57
54
  go: 60,
58
55
  plus: 180
59
56
  },
60
- "deepseek-v4-pro": {
57
+ "glm-5.3": {
61
58
  go: 15,
62
- plus: 60
59
+ plus: 120
63
60
  },
64
- "kimi-k2.7-code": {
61
+ "glm-5.3-flash": {
65
62
  go: 60,
66
63
  plus: 180
67
64
  },
68
- "hy4-preview": {
69
- go: 30,
70
- plus: 120
71
- },
72
65
  "gpt-5.6-luna": {
73
66
  go: 15,
74
67
  plus: 60
75
68
  },
76
- "space-bunny": {
77
- go: 30,
78
- plus: 120
79
- },
80
- "minimax-m3": {
81
- go: 60,
82
- plus: 180
83
- },
84
- "mimo-v2.6-pro": {
69
+ "gpt-6-luna": {
85
70
  go: 15,
86
71
  plus: 60
87
72
  },
88
- "mimo-v2.5-pro": {
73
+ "grok-4.7": {
89
74
  go: 15,
90
75
  plus: 60
91
76
  },
92
- "minimax-m2.7": {
77
+ hy3: {
93
78
  go: 60,
94
79
  plus: 240
95
80
  },
96
- "claude-haiku-5-5": {
97
- go: 15,
98
- plus: 60
99
- },
100
- "gpt-6-luna": {
101
- go: 15,
102
- plus: 60
103
- },
104
- "qwen3.7-plus": {
105
- go: 60,
106
- plus: 180
107
- },
108
- hy3: {
81
+ hy4: {
109
82
  go: 60,
110
83
  plus: 240
111
84
  },
112
- "qwen3.8-flash": {
85
+ "hy4-preview": {
113
86
  go: 30,
114
- plus: 90
87
+ plus: 120
115
88
  },
116
- "glm-5.3-flash": {
89
+ "iceman-contributor-free": "free",
90
+ "kimi-k2.7-code": {
117
91
  go: 60,
118
92
  plus: 180
119
93
  },
120
- "deepseek-v4-flash-vision-exp": {
94
+ "kimi-k3": {
95
+ go: 15,
96
+ plus: 60
97
+ },
98
+ "kimi-k3.1-pro": {
121
99
  go: 15,
122
100
  plus: 60
123
101
  },
@@ -125,32 +103,54 @@ var GO_MODEL_ALLOWANCE = {
125
103
  go: 60,
126
104
  plus: 240
127
105
  },
128
- "deepseek-v4-flash": {
129
- go: 30,
106
+ "mimo-v2.5": {
107
+ go: 60,
130
108
  plus: 120
131
109
  },
110
+ "mimo-v2.5-pro": {
111
+ go: 15,
112
+ plus: 60
113
+ },
132
114
  "mimo-v2.6-flash": {
133
115
  go: 60,
134
116
  plus: 120
135
117
  },
136
- "mimo-v2.5": {
118
+ "mimo-v2.6-pro": {
119
+ go: 15,
120
+ plus: 60
121
+ },
122
+ "minimax-m3": {
137
123
  go: 60,
138
- plus: 120
124
+ plus: 180
139
125
  },
140
- "deepseek-v4.1-flash": {
141
- go: 80,
142
- plus: 160
126
+ "minimax-m3.1-flash": {
127
+ go: 20,
128
+ plus: 80
143
129
  },
144
- "muse-spark-1.3-contributor": {
130
+ "muse-spark-1.2-contributor": {
145
131
  go: 60,
146
132
  plus: 120
147
133
  },
148
- "muse-spark-1.2-contributor": {
134
+ "muse-spark-1.3-contributor": {
149
135
  go: 60,
150
136
  plus: 120
151
137
  },
152
- "longcat-2.5-preview-free": "free",
153
- "step-5-preview-free": "free"
138
+ "qwen3.7-plus": {
139
+ go: 60,
140
+ plus: 180
141
+ },
142
+ "qwen3.8-flash": {
143
+ go: 30,
144
+ plus: 90
145
+ },
146
+ "qwen3.8-max": {
147
+ go: 15,
148
+ plus: 60
149
+ },
150
+ "step-5-preview": {
151
+ go: 15,
152
+ plus: 60
153
+ }
154
154
  };
155
155
  function modelAllowance(modelID) {
156
156
  if (!modelID) return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-usage-limits",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Show OpenCode Go and ClinePass subscription usage (5-hour / weekly / monthly) in the OpenCode TUI sidebar.",
6
6
  "license": "MIT",