opencode-models-usage-plugin 1.0.0 → 1.0.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/README.ja.md CHANGED
@@ -78,7 +78,7 @@ OpenCode のサイドバーで、現在のセッションツリー(再帰的
78
78
  "opencode-models-usage-plugin/tui"
79
79
  ],
80
80
  "plugin_enabled": {
81
- "local:session-model-usage": true
81
+ "session-model-usage": true
82
82
  }
83
83
  }
84
84
  ```
@@ -88,7 +88,7 @@ OpenCode のサイドバーで、現在のセッションツリー(再帰的
88
88
  ### 方法 2: CLI でワンコマンドインストール
89
89
 
90
90
  ```bash
91
- opencode plugin opencode-models-usage-plugin/tui --global
91
+ opencode plugin opencode-models-usage-plugin --global
92
92
  ```
93
93
 
94
94
  このコマンドでプラグインのインストールとグローバル設定の更新を自動で行えます。
package/README.ko.md CHANGED
@@ -78,7 +78,7 @@ OpenCode 사이드바에서 현재 세션 트리(재귀적인 하위 세션 포
78
78
  "opencode-models-usage-plugin/tui"
79
79
  ],
80
80
  "plugin_enabled": {
81
- "local:session-model-usage": true
81
+ "session-model-usage": true
82
82
  }
83
83
  }
84
84
  ```
@@ -88,7 +88,7 @@ OpenCode 사이드바에서 현재 세션 트리(재귀적인 하위 세션 포
88
88
  ### 방법 2: CLI 한 줄로 설치하기
89
89
 
90
90
  ```bash
91
- opencode plugin opencode-models-usage-plugin/tui --global
91
+ opencode plugin opencode-models-usage-plugin --global
92
92
  ```
93
93
 
94
94
  이 명령은 플러그인을 설치하고 전역 설정도 자동으로 갱신합니다.
package/README.md CHANGED
@@ -87,7 +87,7 @@ Add the following:
87
87
  "opencode-models-usage-plugin/tui"
88
88
  ],
89
89
  "plugin_enabled": {
90
- "local:session-model-usage": true
90
+ "session-model-usage": true
91
91
  }
92
92
  }
93
93
  ```
@@ -97,7 +97,7 @@ Save the file and restart OpenCode. The plugin will be installed automatically v
97
97
  ### Method 2: One-click install via CLI
98
98
 
99
99
  ```bash
100
- opencode plugin opencode-models-usage-plugin/tui --global
100
+ opencode plugin opencode-models-usage-plugin --global
101
101
  ```
102
102
 
103
103
  This command installs the plugin and updates your global config automatically.
package/README.zh-CN.md CHANGED
@@ -88,7 +88,7 @@
88
88
  "opencode-models-usage-plugin/tui"
89
89
  ],
90
90
  "plugin_enabled": {
91
- "local:session-model-usage": true
91
+ "session-model-usage": true
92
92
  }
93
93
  }
94
94
  ```
@@ -98,7 +98,7 @@
98
98
  ### 方式二:CLI 一键安装(最便捷)
99
99
 
100
100
  ```bash
101
- opencode plugin opencode-models-usage-plugin/tui --global
101
+ opencode plugin opencode-models-usage-plugin --global
102
102
  ```
103
103
 
104
104
  这条命令会自动安装插件,并更新全局配置。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-models-usage-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Show per-model usage, live TPS, tokens, and cost in the OpenCode sidebar.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/tui.tsx CHANGED
@@ -6,7 +6,7 @@ import { For, Show, createEffect, createMemo, createSignal, onCleanup, onMount }
6
6
 
7
7
  import { getSessionUsage, type SessionMessageLike, type LiveTpsState } from "./session-usage"
8
8
 
9
- const pluginID = "local:session-model-usage"
9
+ const pluginID = "session-model-usage"
10
10
 
11
11
  const isRecord = (value: unknown): value is Record<string, unknown> =>
12
12
  typeof value === "object" && value !== null