@arandevcode/opencode-quota-extended 0.3.0 → 0.3.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/CHANGELOG.md +4 -0
- package/README-es.md +20 -2
- package/README.md +21 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1 — 2026-11-06
|
|
4
|
+
- Fix installation from npm on OpenCode 1.x and 2: accept current `@opentui` versions (0.4 to 0.x), which the OpenCode plugin SDK now pulls in. Before this, `opencode plugin` failed with "unable to resolve dependency tree".
|
|
5
|
+
- README: separate install and uninstall steps for OpenCode 1.x and OpenCode 2, plus a compatibility table.
|
|
6
|
+
|
|
3
7
|
## 0.3.0 — 2026-11-06
|
|
4
8
|
- OpenCode 2 support (early preview): the package now registers on both OpenCode 1.x and 2.x; tested on 2.1.2.
|
|
5
9
|
|
package/README-es.md
CHANGED
|
@@ -29,6 +29,10 @@ Inspirado por [`@slkiser/opencode-quota`](https://github.com/slkiser/opencode-qu
|
|
|
29
29
|
|
|
30
30
|
## Instalación
|
|
31
31
|
|
|
32
|
+
Un solo paquete para las dos generaciones de OpenCode: trae una entrada para cada una y carga la que toca.
|
|
33
|
+
|
|
34
|
+
### OpenCode 1.x
|
|
35
|
+
|
|
32
36
|
```sh
|
|
33
37
|
opencode plugin --global --force @arandevcode/opencode-quota-extended
|
|
34
38
|
```
|
|
@@ -46,11 +50,25 @@ O instala desde GitHub para seguir el desarrollo más reciente:
|
|
|
46
50
|
|
|
47
51
|
### OpenCode 2 (versión preliminar)
|
|
48
52
|
|
|
49
|
-
|
|
53
|
+
```sh
|
|
54
|
+
opencode plugin add @arandevcode/opencode-quota-extended
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
En OpenCode 2 el comando es `plugin add` (no `plugin --global`). El soporte para OpenCode 2 es nuevo; si ves algo raro, [abre un issue](https://github.com/arandevcode/opencode-plugins/issues).
|
|
58
|
+
|
|
59
|
+
### Compatibilidad
|
|
60
|
+
|
|
61
|
+
| Función | OpenCode 1.x | OpenCode 2 |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| Tarjetas de cuota en la barra lateral | ✅ | ✅ |
|
|
64
|
+
| Cuota en vivo de OpenAI, Copilot y OpenCode Go | ✅ | ⚠️ aún no probado con cuentas reales |
|
|
65
|
+
| CLI `quota` | ✅ | ✅ (no depende de OpenCode) |
|
|
50
66
|
|
|
51
67
|
## Desinstalación
|
|
52
68
|
|
|
53
|
-
|
|
69
|
+
**OpenCode 2:** ejecuta `opencode plugin remove @arandevcode/opencode-quota-extended` y después, si quieres, los pasos opcionales de limpieza de abajo.
|
|
70
|
+
|
|
71
|
+
**OpenCode 1.x:** Cuatro pasos, en orden:
|
|
54
72
|
|
|
55
73
|
1. Quita la entrada del plugin en la config de OpenCode (`~/.config/opencode/opencode.json`):
|
|
56
74
|
|
package/README.md
CHANGED
|
@@ -30,6 +30,10 @@ Heavily inspired by [`@slkiser/opencode-quota`](https://github.com/slkiser/openc
|
|
|
30
30
|
|
|
31
31
|
## Install
|
|
32
32
|
|
|
33
|
+
One package for both OpenCode generations: it ships an entry for each and loads the right one.
|
|
34
|
+
|
|
35
|
+
### OpenCode 1.x
|
|
36
|
+
|
|
33
37
|
```sh
|
|
34
38
|
opencode plugin --global --force @arandevcode/opencode-quota-extended
|
|
35
39
|
```
|
|
@@ -45,13 +49,27 @@ Or install from GitHub source to follow latest development:
|
|
|
45
49
|
}
|
|
46
50
|
```
|
|
47
51
|
|
|
48
|
-
### OpenCode 2 (
|
|
52
|
+
### OpenCode 2 (preview)
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
opencode plugin add @arandevcode/opencode-quota-extended
|
|
56
|
+
```
|
|
49
57
|
|
|
50
|
-
|
|
58
|
+
On OpenCode 2 the plugin command is `plugin add` (not `plugin --global`). Support for OpenCode 2 is new; please [open an issue](https://github.com/arandevcode/opencode-plugins/issues) if something looks wrong.
|
|
59
|
+
|
|
60
|
+
### Compatibility
|
|
61
|
+
|
|
62
|
+
| Feature | OpenCode 1.x | OpenCode 2 |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| Quota cards in the sidebar | ✅ | ✅ |
|
|
65
|
+
| Live quota from OpenAI, Copilot and OpenCode Go | ✅ | ⚠️ not yet tested with real accounts |
|
|
66
|
+
| `quota` CLI | ✅ | ✅ (does not depend on OpenCode) |
|
|
51
67
|
|
|
52
68
|
## Uninstall
|
|
53
69
|
|
|
54
|
-
|
|
70
|
+
**OpenCode 2:** run `opencode plugin remove @arandevcode/opencode-quota-extended`, then do the optional clean-up steps below.
|
|
71
|
+
|
|
72
|
+
**OpenCode 1.x:** Four steps, in order:
|
|
55
73
|
|
|
56
74
|
1. Remove the plugin entry from your OpenCode config (`~/.config/opencode/opencode.json`):
|
|
57
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arandevcode/opencode-quota-extended",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "OpenCode plugin: quota usage cards with theme-colored gauge progress bars (5h / weekly / monthly) for OpenAI, GitHub Copilot and OpenCode Go in the TUI sidebar.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@opencode-ai/plugin": "^1.4.3",
|
|
57
|
-
"@opentui/core": "
|
|
58
|
-
"@opentui/solid": "
|
|
57
|
+
"@opentui/core": ">=0.4.1 <1",
|
|
58
|
+
"@opentui/solid": ">=0.4.1 <1",
|
|
59
59
|
"solid-js": "^1.9.12"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|