opencode-usage-total 0.1.4 → 0.1.6

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +12 -2
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  import { createRoot, createSignal } from "solid-js";
7
7
 
8
8
  // package.json
9
- var version = "0.1.4";
9
+ var version = "0.1.6";
10
10
 
11
11
  // helpers.ts
12
12
  function safeNum(value) {
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "opencode-usage-total",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Track model usage, tokens, and costs per agent in the OpenCode TUI sidebar",
5
5
  "type": "module",
6
- "main": "dist/index.js",
6
+ "main": "./dist/index.js",
7
7
  "exports": {
8
8
  ".": {
9
9
  "types": "./dist/index.d.ts",
10
10
  "import": "./dist/index.js"
11
11
  },
12
+ "./tui": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ },
12
16
  "./runtime": {
13
17
  "types": "./dist/usage-total.d.ts",
14
18
  "import": "./dist/usage-total.js"
@@ -40,6 +44,12 @@
40
44
  "test:run": "vitest run",
41
45
  "prepublishOnly": "npm run build"
42
46
  },
47
+ "peerDependencies": {
48
+ "@opencode-ai/plugin": ">=1.14.50 <2",
49
+ "@opentui/core": ">=0.4.0 <0.5",
50
+ "@opentui/solid": ">=0.4.0 <0.5",
51
+ "solid-js": ">=1.9.12 <2"
52
+ },
43
53
  "devDependencies": {
44
54
  "@opencode-ai/plugin": "^1.17.8",
45
55
  "@opentui/core": "^0.4.1",