import type { PluginStateSyncKeyedStore } from "openclaw/plugin-sdk/plugin-state-runtime"; // Browser plugin runtime state shared across lazy bundles and duplicate SDK module instances. import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store"; type BrowserStateRuntime = { sessionTabs: PluginStateSyncKeyedStore; }; const { setRuntime: setBrowserStateRuntime, getRuntime: getBrowserStateRuntime, tryGetRuntime: getOptionalBrowserStateRuntime, } = createPluginRuntimeStore({ pluginId: "browser", errorMessage: "Browser state runtime not initialized", }); export { getBrowserStateRuntime, getOptionalBrowserStateRuntime, setBrowserStateRuntime };