opencode-visual-cache 1.0.2 → 1.0.5
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 +16 -4
- package/README_EN.md +16 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<br>
|
|
8
8
|
|
|
9
9
|
[](https://github.com/Hotakus/opencode-visual-cache/stargazers)
|
|
10
|
-
[](LICENSE)
|
|
11
11
|
[](README_EN.md)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
@@ -40,13 +40,25 @@
|
|
|
40
40
|
|
|
41
41
|
## 安装
|
|
42
42
|
|
|
43
|
-
###
|
|
43
|
+
### 方式一:OpenCode 命令安装(推荐)
|
|
44
|
+
|
|
45
|
+
在 OpenCode 中按 **`Shift + P`** 打开命令面板,搜索 **`install plugin`**,输入:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
opencode-visual-cache
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
回车即可完成安装与配置。
|
|
52
|
+
|
|
53
|
+
### 方式二:手动安装
|
|
54
|
+
|
|
55
|
+
**1. 安装插件**
|
|
44
56
|
|
|
45
57
|
```bash
|
|
46
58
|
npm install -g opencode-visual-cache
|
|
47
59
|
```
|
|
48
60
|
|
|
49
|
-
|
|
61
|
+
**2. 配置 TUI 插件**
|
|
50
62
|
|
|
51
63
|
创建或编辑 `~/.config/opencode/tui.jsonc`:
|
|
52
64
|
|
|
@@ -57,7 +69,7 @@ npm install -g opencode-visual-cache
|
|
|
57
69
|
}
|
|
58
70
|
```
|
|
59
71
|
|
|
60
|
-
###
|
|
72
|
+
### 重启 OpenCode
|
|
61
73
|
|
|
62
74
|
进入任意 session,侧边栏即可看到缓存统计面板。
|
|
63
75
|
|
package/README_EN.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<br>
|
|
8
8
|
|
|
9
9
|
[](https://github.com/Hotakus/opencode-visual-cache/stargazers)
|
|
10
|
-
[](LICENSE)
|
|
11
11
|
[](README.md)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
@@ -41,13 +41,25 @@
|
|
|
41
41
|
|
|
42
42
|
## Installation
|
|
43
43
|
|
|
44
|
-
### 1
|
|
44
|
+
### Option 1: OpenCode Command (recommended)
|
|
45
|
+
|
|
46
|
+
Press **`Shift + P`** in OpenCode to open the command palette, search **`install plugin`**, then type:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
opencode-visual-cache
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Press Enter to install and configure automatically.
|
|
53
|
+
|
|
54
|
+
### Option 2: Manual
|
|
55
|
+
|
|
56
|
+
**1. Install the plugin**
|
|
45
57
|
|
|
46
58
|
```bash
|
|
47
59
|
npm install -g opencode-visual-cache
|
|
48
60
|
```
|
|
49
61
|
|
|
50
|
-
|
|
62
|
+
**2. Configure TUI plugin**
|
|
51
63
|
|
|
52
64
|
Create or edit `~/.config/opencode/tui.jsonc`:
|
|
53
65
|
|
|
@@ -58,7 +70,7 @@ Create or edit `~/.config/opencode/tui.jsonc`:
|
|
|
58
70
|
}
|
|
59
71
|
```
|
|
60
72
|
|
|
61
|
-
###
|
|
73
|
+
### Restart OpenCode
|
|
62
74
|
|
|
63
75
|
Open any session — the cache stats panel appears in the sidebar.
|
|
64
76
|
|