@openclaw/feishu 2026.3.7 → 2026.3.8-beta.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/runtime.ts +4 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/feishu",
3
- "version": "2026.3.7",
3
+ "version": "2026.3.8-beta.1",
4
4
  "description": "OpenClaw Feishu/Lark channel plugin (community maintained by @m1heng)",
5
5
  "type": "module",
6
6
  "dependencies": {
package/src/runtime.ts CHANGED
@@ -1,14 +1,6 @@
1
+ import { createPluginRuntimeStore } from "openclaw/plugin-sdk/compat";
1
2
  import type { PluginRuntime } from "openclaw/plugin-sdk/feishu";
2
3
 
3
- let runtime: PluginRuntime | null = null;
4
-
5
- export function setFeishuRuntime(next: PluginRuntime) {
6
- runtime = next;
7
- }
8
-
9
- export function getFeishuRuntime(): PluginRuntime {
10
- if (!runtime) {
11
- throw new Error("Feishu runtime not initialized");
12
- }
13
- return runtime;
14
- }
4
+ const { setRuntime: setFeishuRuntime, getRuntime: getFeishuRuntime } =
5
+ createPluginRuntimeStore<PluginRuntime>("Feishu runtime not initialized");
6
+ export { getFeishuRuntime, setFeishuRuntime };