opencode-usage-total 0.1.5 → 0.1.7
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.en.md +1 -9
- package/README.md +1 -9
- package/dist/index.js +1 -1
- package/package.json +13 -5
package/README.en.md
CHANGED
|
@@ -16,15 +16,7 @@ Track model usage, tokens, and costs per agent in the OpenCode TUI sidebar.
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
opencode plugin
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Or add it manually to `tui.json`:
|
|
23
|
-
|
|
24
|
-
```json
|
|
25
|
-
{
|
|
26
|
-
"plugin": ["opencode-usage-total"]
|
|
27
|
-
}
|
|
19
|
+
opencode plugin -g opencode-usage-total
|
|
28
20
|
```
|
|
29
21
|
|
|
30
22
|
## Usage
|
package/README.md
CHANGED
|
@@ -16,15 +16,7 @@ Realiza el seguimiento de modelos, tokens y costos por agente en la barra latera
|
|
|
16
16
|
## Instalación
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
opencode plugin
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
O agrégalo manualmente en `tui.json`:
|
|
23
|
-
|
|
24
|
-
```json
|
|
25
|
-
{
|
|
26
|
-
"plugin": ["opencode-usage-total"]
|
|
27
|
-
}
|
|
19
|
+
opencode plugin -g opencode-usage-total
|
|
28
20
|
```
|
|
29
21
|
|
|
30
22
|
## Uso
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-usage-total",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
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,14 +44,18 @@
|
|
|
40
44
|
"test:run": "vitest run",
|
|
41
45
|
"prepublishOnly": "npm run build"
|
|
42
46
|
},
|
|
43
|
-
"
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
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"
|
|
46
52
|
},
|
|
47
53
|
"devDependencies": {
|
|
48
54
|
"@opencode-ai/plugin": "^1.17.8",
|
|
49
55
|
"@opentui/core": "^0.4.1",
|
|
50
56
|
"@opentui/keymap": "^0.4.1",
|
|
57
|
+
"@opentui/solid": "^0.4.1",
|
|
58
|
+
"solid-js": "^1.9.12",
|
|
51
59
|
"tsup": "^8.5.1",
|
|
52
60
|
"vitest": "^4.1.9"
|
|
53
61
|
}
|