@antonkw/opencode-minimax-quota 0.2.0 → 0.2.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.
- package/README.md +19 -32
- package/package.json +12 -4
package/README.md
CHANGED
|
@@ -5,6 +5,20 @@ compact status line, plus `/quota-m` slash command for detail view.
|
|
|
5
5
|
|
|
6
6
|
**OpenCode V2 only** — the V1 plugin API is not supported.
|
|
7
7
|
|
|
8
|
+
## Screenshots
|
|
9
|
+
|
|
10
|
+
Sidebar:
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
Status line:
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
`/quota-m` dialog:
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
8
22
|
## Install
|
|
9
23
|
|
|
10
24
|
```bash
|
|
@@ -48,14 +62,12 @@ skipped without a warning in V2.0.28, which is why the shim above is used.
|
|
|
48
62
|
|
|
49
63
|
```bash
|
|
50
64
|
npm install
|
|
51
|
-
npm run build
|
|
65
|
+
npm run build # babel → dist/*.js, tsc → dist/*.d.ts (fails on type errors)
|
|
52
66
|
npm test
|
|
53
|
-
npm run check:dist
|
|
67
|
+
npm run check:dist # rebuild and verify the committed dist/ matches src/
|
|
54
68
|
```
|
|
55
69
|
|
|
56
|
-
`dist/`
|
|
57
|
-
`src/` обязательно пересобери и закоммить `dist/` — иначе пользователь получит
|
|
58
|
-
старую сборку. `npm run check:dist` это проверяет.
|
|
70
|
+
`dist/` is committed: rebuild and commit it after changing `src/`, otherwise users get a stale build.
|
|
59
71
|
|
|
60
72
|
## What it shows
|
|
61
73
|
|
|
@@ -97,33 +109,8 @@ read into a tracked effect.
|
|
|
97
109
|
|
|
98
110
|
## API
|
|
99
111
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Response shape:
|
|
104
|
-
|
|
105
|
-
```json
|
|
106
|
-
{
|
|
107
|
-
"base_resp": { "status_code": 0, "status_msg": "success" },
|
|
108
|
-
"model_remains": [
|
|
109
|
-
{
|
|
110
|
-
"model_name": "general",
|
|
111
|
-
"current_interval_status": 1,
|
|
112
|
-
"current_interval_remaining_percent": 34,
|
|
113
|
-
"current_interval_total_count": 0,
|
|
114
|
-
"current_interval_usage_count": 0,
|
|
115
|
-
"start_time": 1794814612292,
|
|
116
|
-
"end_time": 1794832612292,
|
|
117
|
-
"current_weekly_status": 1,
|
|
118
|
-
"current_weekly_remaining_percent": 65,
|
|
119
|
-
"current_weekly_total_count": 0,
|
|
120
|
-
"current_weekly_usage_count": 0,
|
|
121
|
-
"weekly_start_time": 1794564095976,
|
|
122
|
-
"weekly_end_time": 1795168895976
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
```
|
|
112
|
+
Reads `https://www.minimax.io/v1/token_plan/remains` with
|
|
113
|
+
`Authorization: Bearer $MINIMAX_CODING_PLAN_API_KEY`. Nothing else leaves the machine.
|
|
127
114
|
|
|
128
115
|
## References
|
|
129
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antonkw/opencode-minimax-quota",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MiniMax coding plan quota in OpenCode TUI sidebar + status line",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,8 +9,16 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/KVAnton-WEB/opencode-minimax-quota.git"
|
|
11
11
|
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
|
|
12
|
+
"keywords": [
|
|
13
|
+
"opencode",
|
|
14
|
+
"opencode-plugin",
|
|
15
|
+
"minimax",
|
|
16
|
+
"quota",
|
|
17
|
+
"tui"
|
|
18
|
+
],
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
14
22
|
"publishConfig": {
|
|
15
23
|
"access": "public"
|
|
16
24
|
},
|
|
@@ -49,4 +57,4 @@
|
|
|
49
57
|
"solid-js": "1.9.12",
|
|
50
58
|
"typescript": "^5.9.3"
|
|
51
59
|
}
|
|
52
|
-
}
|
|
60
|
+
}
|