diff --git a/extensions/feishu/src/channel-runtime-api.ts b/extensions/feishu/src/channel-runtime-api.ts new file mode 100644 index 00000000000..f4ebb114533 --- /dev/null +++ b/extensions/feishu/src/channel-runtime-api.ts @@ -0,0 +1,15 @@ +export type { + ChannelMessageActionName, + ChannelMeta, + ChannelPlugin, + ClawdbotConfig, +} from "../runtime-api.js"; + +export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id"; +export { createActionGate } from "openclaw/plugin-sdk/channel-actions"; +export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema"; +export { + buildProbeChannelStatusSummary, + PAIRING_APPROVED_MESSAGE, +} from "openclaw/plugin-sdk/channel-status"; +export { chunkTextForOutbound, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/feishu"; diff --git a/extensions/feishu/src/channel.ts b/extensions/feishu/src/channel.ts index 03106951d9d..88339ec5d23 100644 --- a/extensions/feishu/src/channel.ts +++ b/extensions/feishu/src/channel.ts @@ -23,17 +23,6 @@ import { import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime"; import { createRuntimeOutboundDelegates } from "openclaw/plugin-sdk/outbound-runtime"; import { createComputedAccountStatusAdapter } from "openclaw/plugin-sdk/status-helpers"; -import type { ChannelMeta, ChannelPlugin, ClawdbotConfig } from "../runtime-api.js"; -import { - buildChannelConfigSchema, - buildProbeChannelStatusSummary, - chunkTextForOutbound, - createActionGate, - createDefaultChannelRuntimeState, - DEFAULT_ACCOUNT_ID, - PAIRING_APPROVED_MESSAGE, -} from "../runtime-api.js"; -import type { ChannelMessageActionName } from "../runtime-api.js"; import { inspectFeishuCredentials, resolveFeishuAccount, @@ -44,6 +33,21 @@ import { } from "./accounts.js"; import { feishuApprovalAuth } from "./approval-auth.js"; import { FEISHU_CARD_INTERACTION_VERSION } from "./card-interaction.js"; +import { + buildChannelConfigSchema, + buildProbeChannelStatusSummary, + chunkTextForOutbound, + createActionGate, + createDefaultChannelRuntimeState, + DEFAULT_ACCOUNT_ID, + PAIRING_APPROVED_MESSAGE, +} from "./channel-runtime-api.js"; +import type { + ChannelMessageActionName, + ChannelMeta, + ChannelPlugin, + ClawdbotConfig, +} from "./channel-runtime-api.js"; import { createFeishuClient } from "./client.js"; import { FeishuConfigSchema } from "./config-schema.js"; import {