opencode-visual-cache 1.7.2-oc2 → 1.7.3-oc2

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.
@@ -1 +1 @@
1
- export declare const PLUGIN_VERSION = "1.7.2-oc2";
1
+ export declare const PLUGIN_VERSION = "1.7.3-oc2";
package/dist/_version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // auto-generated
2
- export const PLUGIN_VERSION = "1.7.2-oc2";
2
+ export const PLUGIN_VERSION = "1.7.3-oc2";
package/dist/tui.js CHANGED
@@ -684,7 +684,7 @@ import { createElement as _$createElement } from "@opentui/solid";
684
684
  import { createMemo, createSignal, createEffect, onMount, onCleanup, Show, untrack } from "solid-js";
685
685
 
686
686
  // src/_version.ts
687
- var PLUGIN_VERSION = "1.7.2-oc2";
687
+ var PLUGIN_VERSION = "1.7.3-oc2";
688
688
 
689
689
  // src/panel/TokenCachePanel.tsx
690
690
  var MIN_PANEL_WIDTH = 20;
package/dist/v2.js CHANGED
@@ -822,7 +822,7 @@ function estimateTokens(text) {
822
822
  }
823
823
 
824
824
  // src/_version.ts
825
- var PLUGIN_VERSION = "1.7.2-oc2";
825
+ var PLUGIN_VERSION = "1.7.3-oc2";
826
826
 
827
827
  // src/panel/TokenCachePanel.tsx
828
828
  var MIN_PANEL_WIDTH = 20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-visual-cache",
3
- "version": "1.7.2-oc2",
3
+ "version": "1.7.3-oc2",
4
4
  "description": "OpenCode TUI plugin displaying real-time token cache hit rate in the sidebar",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -12,10 +12,10 @@
12
12
  "files": [
13
13
  "dist",
14
14
  "src",
15
+ "tui",
15
16
  "install.mjs",
16
17
  "README.md",
17
- "README_EN.md",
18
- "tui"
18
+ "README_EN.md"
19
19
  ],
20
20
  "bin": {
21
21
  "opencode-visual-cache": "install.mjs"
package/src/_version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // auto-generated
2
- export const PLUGIN_VERSION="1.7.2-oc2";
2
+ export const PLUGIN_VERSION="1.7.3-oc2";
package/tui/index.js CHANGED
@@ -1,2 +1,12 @@
1
- // tui/index.js——V2 目录加载入口(opencode2 resolveLocal 对目录解析 dir/tui → 目录 index)
2
- export { default } from '../dist/v2.js'
1
+ // tui/index.js——V1/V2 共用入口(双格式)
2
+ // - V1(opencode):exports["./tui"] 本文件——readV1Plugin 读 tui 字段(V1 面板)
3
+ // - V2(opencode2):exports["./tui"] → 本文件——isPlugin 读 setup 字段(V2 面板)
4
+ import tuiMod from "./../dist/tui.js"
5
+ import v2Mod from "./../dist/v2.js"
6
+
7
+ export default {
8
+ id: "opencode-visual-cache",
9
+ tui: tuiMod.tui,
10
+ setup: v2Mod.setup,
11
+ }
12
+