opencode-visual-cache 1.7.0-beta.0 → 1.7.0-beta.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.
@@ -1 +1 @@
1
- export declare const PLUGIN_VERSION = "1.7.0-beta.0";
1
+ export declare const PLUGIN_VERSION = "1.7.0-beta.2";
package/dist/_version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // auto-generated
2
- export const PLUGIN_VERSION = "1.7.0-beta.0";
2
+ export const PLUGIN_VERSION = "1.7.0-beta.2";
package/dist/server.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  import type { PluginModule } from "@opencode-ai/plugin";
2
- declare const mod: PluginModule;
2
+ import v2Mod from "./v2/index";
3
+ declare const mod: PluginModule & {
4
+ setup: typeof v2Mod.setup;
5
+ };
3
6
  export default mod;
package/dist/server.js CHANGED
@@ -1,6 +1,10 @@
1
+ import v2Mod from "./v2/index";
2
+ // V1 server 插件(空实现,保持原行为);V2 经 exports["./server"] 加载此入口,
3
+ // 需要 default.setup——此处复用 v2 的 setup,一个入口同时满足 V1(server)与 V2(setup)。
1
4
  const server = async () => ({});
2
5
  const mod = {
3
6
  id: "opencode-visual-cache",
4
7
  server,
8
+ setup: v2Mod.setup,
5
9
  };
6
10
  export default mod;
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.0-beta.0";
687
+ var PLUGIN_VERSION = "1.7.0-beta.2";
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.0-beta.0";
825
+ var PLUGIN_VERSION = "1.7.0-beta.2";
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.0-beta.0",
3
+ "version": "1.7.0-beta.2",
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",
package/src/_version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // auto-generated
2
- export const PLUGIN_VERSION="1.7.0-beta.0";
2
+ export const PLUGIN_VERSION="1.7.0-beta.2";
package/src/server.ts CHANGED
@@ -1,10 +1,14 @@
1
1
  import type { Plugin, PluginModule } from "@opencode-ai/plugin"
2
+ import v2Mod from "./v2/index"
2
3
 
4
+ // V1 server 插件(空实现,保持原行为);V2 经 exports["./server"] 加载此入口,
5
+ // 需要 default.setup——此处复用 v2 的 setup,一个入口同时满足 V1(server)与 V2(setup)。
3
6
  const server: Plugin = async () => ({})
4
7
 
5
- const mod: PluginModule = {
8
+ const mod: PluginModule & { setup: typeof v2Mod.setup } = {
6
9
  id: "opencode-visual-cache",
7
10
  server,
11
+ setup: v2Mod.setup,
8
12
  }
9
13
 
10
14
  export default mod