opencode-openai-quota 0.3.0 → 0.3.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
@@ -3,12 +3,15 @@
3
3
  <p align="center">Codex subscription quota in your OpenCode 2 sidebar — read from your local Codex CLI, with no tokens copied and no inference spent.</p>
4
4
 
5
5
  <p align="center">
6
+ <a href="https://www.npmjs.com/package/opencode-openai-quota"><img src="https://img.shields.io/npm/v/opencode-openai-quota?style=flat-square&label=npm&color=cb3837" alt="npm version"></a>
6
7
  <a href="#requirements"><img src="https://img.shields.io/badge/OpenCode-2%20TUI%20plugin-7357d5?style=flat-square" alt="OpenCode 2 TUI plugin"></a>
7
8
  <a href="#how-it-reads-quota"><img src="https://img.shields.io/badge/Quota-local%20Codex%20app--server-159b83?style=flat-square" alt="Quota from the local Codex app-server"></a>
8
9
  <a href="#privacy-and-network-behavior"><img src="https://img.shields.io/badge/Tokens-never%20touched-0b7285?style=flat-square" alt="Tokens are never read"></a>
9
10
  </p>
10
11
 
11
- <p align="center"><a href="#quick-install"><strong>Quick install ↓</strong></a></p>
12
+ <p align="center"><code>opencode plugin add opencode-openai-quota</code></p>
13
+
14
+ <p align="center"><a href="#quick-install"><strong>Other install options ↓</strong></a></p>
12
15
 
13
16
  <p align="center">
14
17
  <img src="docs/assets/quota-preview.svg" alt="Recreation of the OpenCode 2 quota panel showing a 5-hour session window with 68 percent remaining, a weekly window with 9 percent remaining in red, two available banked resets, and the next reported expiration." width="440">
@@ -242,6 +245,7 @@ Targets **OpenCode 2** and its built-in TUI plugin API. The published package de
242
245
  - **Verify outside OpenCode:** `npm run probe` prints the same snapshot the panel uses, or fails with the underlying reason.
243
246
  - **Banked reset expiration says unavailable:** the count can still be right while the detail list is missing, incomplete, or uses an unknown expiration. The plugin never infers an expiration from a normal reset time.
244
247
  - **No weekly or no session row:** Codex only returned one window. The plugin shows what exists and never invents the other.
248
+ - **`TUI plugin error` mentioning `Cannot find package 'react'`:** a broken release older than 0.3.2. Update with `opencode plugin update opencode-openai-quota` and restart OpenCode.
245
249
 
246
250
  ## Development
247
251
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-openai-quota",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "OpenAI Codex subscription quota in your OpenCode 2 sidebar, read locally from the Codex CLI.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/tui.tsx CHANGED
@@ -1,3 +1,4 @@
1
+ /** @jsxImportSource @opentui/solid */
1
2
  import { Plugin } from "@opencode/plugin/tui"
2
3
  import { createSignal, Show } from "solid-js"
3
4
  import { readCodexRateLimits } from "./codex.js"