opencode-visual-cache 1.2.14 → 1.2.15-beta.1
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/LICENSE +21 -21
- package/dist/_version.d.ts +1 -1
- package/dist/_version.js +1 -1
- package/dist/index.js +3 -2
- package/dist/tui.js +1533 -0
- package/package.json +65 -62
- package/src/_version.ts +1 -1
- package/src/index.tsx +1185 -1184
package/package.json
CHANGED
|
@@ -1,62 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "opencode-visual-cache",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "OpenCode TUI plugin displaying real-time token cache hit rate in the sidebar",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
12
|
-
},
|
|
13
|
-
"./tui": {
|
|
14
|
-
"import": "./
|
|
15
|
-
"config": {
|
|
16
|
-
"enabled": true
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"dist",
|
|
22
|
-
"src",
|
|
23
|
-
"install.mjs",
|
|
24
|
-
"README.md",
|
|
25
|
-
"README_EN.md"
|
|
26
|
-
],
|
|
27
|
-
"bin": {
|
|
28
|
-
"opencode-visual-cache": "install.mjs"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "tsc",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"opencode
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
"@opencode-ai/
|
|
52
|
-
"@
|
|
53
|
-
"@opentui/
|
|
54
|
-
"solid
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"@opencode-ai/
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "opencode-visual-cache",
|
|
3
|
+
"version": "1.2.15-beta.1",
|
|
4
|
+
"description": "OpenCode TUI plugin displaying real-time token cache hit rate in the sidebar",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./tui": {
|
|
14
|
+
"import": "./dist/tui.js",
|
|
15
|
+
"config": {
|
|
16
|
+
"enabled": true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"src",
|
|
23
|
+
"install.mjs",
|
|
24
|
+
"README.md",
|
|
25
|
+
"README_EN.md"
|
|
26
|
+
],
|
|
27
|
+
"bin": {
|
|
28
|
+
"opencode-visual-cache": "install.mjs"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc && node build.tui.mjs",
|
|
32
|
+
"build:tui": "node build.tui.mjs",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"version": "node -e \"require('fs').writeFileSync('src/_version.ts','// auto-generated\\nexport const PLUGIN_VERSION='+JSON.stringify(require('./package.json').version)+';\\n')\"",
|
|
35
|
+
"prepublishOnly": "tsc"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"opencode",
|
|
39
|
+
"opencode-plugin",
|
|
40
|
+
"tui",
|
|
41
|
+
"token",
|
|
42
|
+
"cache-hit-rate",
|
|
43
|
+
"cost-tracking"
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/Hotakus/opencode-visual-cache.git"
|
|
48
|
+
},
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@opencode-ai/plugin": ">=1.14.0",
|
|
52
|
+
"@opencode-ai/sdk": ">=1.14.0",
|
|
53
|
+
"@opentui/core": ">=0.2.0",
|
|
54
|
+
"@opentui/solid": ">=0.2.0",
|
|
55
|
+
"solid-js": ">=1.9.0"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@opencode-ai/plugin": "^1.14.50",
|
|
59
|
+
"@opencode-ai/sdk": "^1.14.50",
|
|
60
|
+
"esbuild": "^0.25.0",
|
|
61
|
+
"esbuild-plugin-solid": "^0.5.0",
|
|
62
|
+
"tsx": "^4.22.3",
|
|
63
|
+
"typescript": "^5.8.0"
|
|
64
|
+
}
|
|
65
|
+
}
|
package/src/_version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// auto-generated
|
|
2
|
-
export const PLUGIN_VERSION="1.2.
|
|
2
|
+
export const PLUGIN_VERSION="1.2.15-beta.1";
|