@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 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
- El mismo paquete funciona en OpenCode 1.x y en OpenCode 2: trae una entrada para cada uno y carga la que toca. El soporte V2 es nuevo (probado en OpenCode 2.1.2); si ves algo raro, abre un issue.
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
- Cuatro pasos, en orden:
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 (early preview)
52
+ ### OpenCode 2 (preview)
53
+
54
+ ```sh
55
+ opencode plugin add @arandevcode/opencode-quota-extended
56
+ ```
49
57
 
50
- The same package works on OpenCode 1.x and OpenCode 2: it ships one entry for each and loads the right one. V2 support is new (tested on OpenCode 2.1.2), so please report anything odd.
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
- Four steps, in order:
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.0",
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": "^0.4.1 || ^0.5.0",
58
- "@opentui/solid": "^0.4.1 || ^0.5.0",
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": {