opencode-visual-cache 1.0.1 → 1.0.2
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 +17 -4
- package/README_EN.md +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,14 +40,27 @@
|
|
|
40
40
|
|
|
41
41
|
## 安装
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
### 1. 安装插件
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm install -g opencode-visual-cache
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 2. 配置 TUI 插件
|
|
50
|
+
|
|
51
|
+
创建或编辑 `~/.config/opencode/tui.jsonc`:
|
|
46
52
|
|
|
47
53
|
```jsonc
|
|
48
|
-
|
|
54
|
+
{
|
|
55
|
+
"$schema": "https://opencode.ai/tui.json",
|
|
56
|
+
"plugin": ["opencode-visual-cache"]
|
|
57
|
+
}
|
|
49
58
|
```
|
|
50
59
|
|
|
60
|
+
### 3. 重启 OpenCode
|
|
61
|
+
|
|
62
|
+
进入任意 session,侧边栏即可看到缓存统计面板。
|
|
63
|
+
|
|
51
64
|
---
|
|
52
65
|
|
|
53
66
|
## 调试
|
package/README_EN.md
CHANGED
|
@@ -41,13 +41,27 @@
|
|
|
41
41
|
|
|
42
42
|
## Installation
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
### 1. Install the plugin
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install -g opencode-visual-cache
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 2. Configure TUI plugin
|
|
51
|
+
|
|
52
|
+
Create or edit `~/.config/opencode/tui.jsonc`:
|
|
46
53
|
|
|
47
54
|
```jsonc
|
|
48
|
-
|
|
55
|
+
{
|
|
56
|
+
"$schema": "https://opencode.ai/tui.json",
|
|
57
|
+
"plugin": ["opencode-visual-cache"]
|
|
58
|
+
}
|
|
49
59
|
```
|
|
50
60
|
|
|
61
|
+
### 3. Restart OpenCode
|
|
62
|
+
|
|
63
|
+
Open any session — the cache stats panel appears in the sidebar.
|
|
64
|
+
|
|
51
65
|
---
|
|
52
66
|
|
|
53
67
|
## Debug
|