refactor: dedupe plugin lazy runtime helpers

This commit is contained in:
Peter Steinberger
2026-03-17 09:24:14 -07:00
parent c94beb03b2
commit 39a8dab0da
20 changed files with 94 additions and 78 deletions

View File

@@ -12,7 +12,7 @@ import {
PAIRING_APPROVED_MESSAGE,
} from "openclaw/plugin-sdk/feishu";
import type { ChannelMessageActionName } from "openclaw/plugin-sdk/feishu";
import { createLazyRuntimeSurface } from "openclaw/plugin-sdk/lazy-runtime";
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
import {
resolveFeishuAccount,
resolveFeishuCredentials,
@@ -42,11 +42,9 @@ const meta: ChannelMeta = {
order: 70,
};
type FeishuChannelRuntime = typeof import("./channel.runtime.js").feishuChannelRuntime;
const loadFeishuChannelRuntime = createLazyRuntimeSurface(
const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(
() => import("./channel.runtime.js"),
({ feishuChannelRuntime }) => feishuChannelRuntime,
"feishuChannelRuntime",
);
function setFeishuNamedAccountEnabled(