refactor(feishu): split channel runtime seam

This commit is contained in:
Vincent Koc 2026-04-03 21:34:01 +09:00
parent 0a61138e77
commit a05daaa832
2 changed files with 30 additions and 11 deletions

View File

@ -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";

View File

@ -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 {