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.
Files changed (3) hide show
  1. package/README.md +16 -4
  2. package/README_EN.md +16 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  <br>
8
8
 
9
9
  [![Stars](https://img.shields.io/github/stars/Hotakus/opencode-visual-cache?style=flat-square)](https://github.com/Hotakus/opencode-visual-cache/stargazers)
10
- [![License](https://img.shields.io/github/license/Hotakus/opencode-visual-cache?style=flat-square)](LICENSE)
10
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
11
  [![English](https://img.shields.io/badge/English-README-blue?style=flat-square)](README_EN.md)
12
12
 
13
13
  </div>
@@ -40,13 +40,25 @@
40
40
 
41
41
  ## 安装
42
42
 
43
- ### 1. 安装插件
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
- ### 2. 配置 TUI 插件
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
- ### 3. 重启 OpenCode
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
  [![Stars](https://img.shields.io/github/stars/Hotakus/opencode-visual-cache?style=flat-square)](https://github.com/Hotakus/opencode-visual-cache/stargazers)
10
- [![License](https://img.shields.io/github/license/Hotakus/opencode-visual-cache?style=flat-square)](LICENSE)
10
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
11
  [![中文](https://img.shields.io/badge/中文-README-red?style=flat-square)](README.md)
12
12
 
13
13
  </div>
@@ -41,13 +41,25 @@
41
41
 
42
42
  ## Installation
43
43
 
44
- ### 1. Install the plugin
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
- ### 2. Configure TUI plugin
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
- ### 3. Restart OpenCode
73
+ ### Restart OpenCode
62
74
 
63
75
  Open any session — the cache stats panel appears in the sidebar.
64
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-visual-cache",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "OpenCode TUI plugin displaying real-time token cache hit rate in the sidebar",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",