Skip to content

Commit a05daaa

Browse files
committed
refactor(feishu): split channel runtime seam
1 parent 0a61138 commit a05daaa

2 files changed

Lines changed: 30 additions & 11 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export type {
2+
ChannelMessageActionName,
3+
ChannelMeta,
4+
ChannelPlugin,
5+
ClawdbotConfig,
6+
} from "../runtime-api.js";
7+
8+
export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
9+
export { createActionGate } from "openclaw/plugin-sdk/channel-actions";
10+
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
11+
export {
12+
buildProbeChannelStatusSummary,
13+
PAIRING_APPROVED_MESSAGE,
14+
} from "openclaw/plugin-sdk/channel-status";
15+
export { chunkTextForOutbound, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/feishu";

‎extensions/feishu/src/channel.ts‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ import {
2323
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
2424
import { createRuntimeOutboundDelegates } from "openclaw/plugin-sdk/outbound-runtime";
2525
import { createComputedAccountStatusAdapter } from "openclaw/plugin-sdk/status-helpers";
26-
import type { ChannelMeta, ChannelPlugin, ClawdbotConfig } from "../runtime-api.js";
27-
import {
28-
buildChannelConfigSchema,
29-
buildProbeChannelStatusSummary,
30-
chunkTextForOutbound,
31-
createActionGate,
32-
createDefaultChannelRuntimeState,
33-
DEFAULT_ACCOUNT_ID,
34-
PAIRING_APPROVED_MESSAGE,
35-
} from "../runtime-api.js";
36-
import type { ChannelMessageActionName } from "../runtime-api.js";
3726
import {
3827
inspectFeishuCredentials,
3928
resolveFeishuAccount,
@@ -44,6 +33,21 @@ import {
4433
} from "./accounts.js";
4534
import { feishuApprovalAuth } from "./approval-auth.js";
4635
import { FEISHU_CARD_INTERACTION_VERSION } from "./card-interaction.js";
36+
import {
37+
buildChannelConfigSchema,
38+
buildProbeChannelStatusSummary,
39+
chunkTextForOutbound,
40+
createActionGate,
41+
createDefaultChannelRuntimeState,
42+
DEFAULT_ACCOUNT_ID,
43+
PAIRING_APPROVED_MESSAGE,
44+
} from "./channel-runtime-api.js";
45+
import type {
46+
ChannelMessageActionName,
47+
ChannelMeta,
48+
ChannelPlugin,
49+
ClawdbotConfig,
50+
} from "./channel-runtime-api.js";
4751
import { createFeishuClient } from "./client.js";
4852
import { FeishuConfigSchema } from "./config-schema.js";
4953
import {

0 commit comments

Comments
 (0)