opencode-usage-insights 0.1.2 → 0.2.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-usage-insights",
3
- "version": "0.1.2",
4
- "description": "OpenCode V2 plugin: a live turn telemetry line plus a persistent SQLite usage record, read back by an interactive /usage panel — models, providers, prompt cache, periods and latency.",
3
+ "version": "0.2.0",
4
+ "description": "OpenCode V2 plugin that puts per-turn and per-session cost back in the TUI and OpenCode Desktop \u2014 charged cost, list-price estimates, tokens, prompt-cache reuse, latency and local history in a live line, sidebar, header badge and /usage panel.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -28,12 +28,19 @@
28
28
  "observability",
29
29
  "token-usage",
30
30
  "cost-tracking",
31
- "cache-affinity",
31
+ "cost-visibility",
32
+ "cost-estimation",
33
+ "local-first",
32
34
  "bun",
33
- "typescript"
35
+ "typescript",
36
+ "opencode-desktop",
37
+ "desktop",
38
+ "electron",
39
+ "gui",
40
+ "rpc"
34
41
  ],
35
42
  "engines": {
36
- "opencode": ">=2.0.0"
43
+ "opencode": ">=2.4.2"
37
44
  },
38
45
  "publishConfig": {
39
46
  "access": "public"
@@ -41,7 +48,9 @@
41
48
  "files": [
42
49
  "dist",
43
50
  "README.md",
44
- "LICENSE"
51
+ "CONTRIBUTING.md",
52
+ "LICENSE",
53
+ "docs"
45
54
  ],
46
55
  "exports": {
47
56
  ".": {
@@ -53,34 +62,48 @@
53
62
  "types": "./dist/tui.d.ts",
54
63
  "import": "./dist/tui.js",
55
64
  "default": "./dist/tui.js"
56
- }
65
+ },
66
+ "./rpc": {
67
+ "types": "./dist/rpc.d.ts",
68
+ "import": "./dist/rpc.js",
69
+ "default": "./dist/rpc.js"
70
+ },
71
+ "./gui-experimental": "./dist/gui-experimental.cjs"
57
72
  },
58
73
  "scripts": {
59
74
  "test": "bun test",
60
- "typecheck": "tsc --noEmit",
75
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.gui.json",
61
76
  "build": "bun run scripts/build.ts",
62
77
  "demo": "bun run scripts/demo.ts",
63
78
  "docs:images": "bun run scripts/screenshot.ts",
64
79
  "report": "bun run scripts/report.ts",
65
- "prepublishOnly": "bun run typecheck && bun test && bun run build",
80
+ "prepublishOnly": "bun run typecheck && bun run build && bun test && bun run check:package",
66
81
  "bench": "bun run scripts/bench.ts",
67
- "check:platform": "bun run scripts/check-platform.ts"
82
+ "check:platform": "bun run scripts/check-platform.ts",
83
+ "build:gui": "vite build",
84
+ "dev:gui": "vite build --watch",
85
+ "check:package": "bun run scripts/check-package.ts"
68
86
  },
69
87
  "peerDependencies": {
70
- "@opencode/plugin": ">=2.0.16",
71
- "@opencode/theme": ">=2.0.29",
72
- "@opentui/core": ">=0.5.17",
73
- "@opentui/solid": ">=0.5.17",
88
+ "@opencode/plugin": ">=2.4.2",
89
+ "@opencode/theme": ">=2.4.2",
90
+ "@opentui/core": ">=0.8.0",
91
+ "@opentui/solid": ">=0.8.0",
92
+ "effect": ">=4.1.0",
74
93
  "solid-js": ">=1.9.12"
75
94
  },
76
95
  "devDependencies": {
77
- "@opencode/plugin": "2.0.29",
78
- "@opencode/theme": "2.0.29",
79
- "@opentui/core": "0.6.6",
80
- "@opentui/solid": "0.6.6",
96
+ "@happy-dom/global-registrator": "20.0.11",
97
+ "@opencode/plugin": "2.4.2",
98
+ "@opencode/theme": "2.4.2",
99
+ "@opentui/core": "0.9.9",
100
+ "@opentui/solid": "0.9.9",
81
101
  "@types/bun": "^1.4.1",
82
102
  "@types/node": "^24.0.0",
103
+ "effect": "4.1.0",
83
104
  "solid-js": "1.9.12",
84
- "typescript": "^5.8.0"
105
+ "typescript": "^5.8.0",
106
+ "vite": "^7",
107
+ "vite-plugin-solid": "^2.11.17"
85
108
  }
86
109
  }