@1930dev/opencode-usage 0.1.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/README.md +144 -0
- package/dist/cli.js +922 -0
- package/dist/tui.js +833 -0
- package/package.json +58 -0
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@1930dev/opencode-usage",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Usage tracking, budget percentages and model ranking for opencode \u2014 CLI plus a /usage TUI plugin",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"opencode-usage": "./dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "bun test",
|
|
11
|
+
"typecheck": "tsc --noEmit",
|
|
12
|
+
"build": "bun scripts/build.ts",
|
|
13
|
+
"preview": "bun run build && bun packages/plugin/preview.ts",
|
|
14
|
+
"prepublishOnly": "bun run build && bun test && tsc --noEmit"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/agurod42/opencode-usage.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"opencode",
|
|
22
|
+
"opencode-plugin",
|
|
23
|
+
"usage",
|
|
24
|
+
"cost",
|
|
25
|
+
"budget",
|
|
26
|
+
"quota",
|
|
27
|
+
"tokens",
|
|
28
|
+
"llm"
|
|
29
|
+
],
|
|
30
|
+
"author": "Agu Rodr\u00edguez <me@agu.uy>",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@opencode-ai/plugin": "^1.18.26",
|
|
34
|
+
"@opentui/core": "0.5.10",
|
|
35
|
+
"@opentui/solid": "^0.5.10",
|
|
36
|
+
"@types/bun": "latest"
|
|
37
|
+
},
|
|
38
|
+
"workspaces": [
|
|
39
|
+
"packages/*"
|
|
40
|
+
],
|
|
41
|
+
"exports": {
|
|
42
|
+
"./tui": {
|
|
43
|
+
"import": "./dist/tui.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"README.md"
|
|
49
|
+
],
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"@opencode-ai/plugin": ">=1.18",
|
|
55
|
+
"@opentui/core": ">=0.5",
|
|
56
|
+
"@opentui/solid": ">=0.5"
|
|
57
|
+
}
|
|
58
|
+
}
|