11// Feishu plugin module implements channel behavior.
22import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers" ;
3+ import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-resolution" ;
34import { resolveAgentConfig } from "openclaw/plugin-sdk/agent-scope-runtime" ;
45import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from" ;
5- import { ToolAuthorizationError } from "openclaw/plugin-sdk/channel-actions" ;
6+ import { createActionGate , ToolAuthorizationError } from "openclaw/plugin-sdk/channel-actions" ;
67import {
78 adaptScopedAccountAccessor ,
89 createHybridChannelConfigAdapter ,
@@ -25,6 +26,7 @@ import {
2526 createAllowlistProviderGroupPolicyWarningCollector ,
2627 createConditionalWarningCollector ,
2728} from "openclaw/plugin-sdk/channel-policy" ;
29+ import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status" ;
2830import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-runtime" ;
2931import {
3032 createChannelDirectoryAdapter ,
@@ -34,14 +36,24 @@ import { PlatformMessageNotDispatchedError } from "openclaw/plugin-sdk/error-run
3436import { resolveLegacyInteractiveTextFallback } from "openclaw/plugin-sdk/interactive-runtime" ;
3537import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime" ;
3638import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime" ;
37- import { createComputedAccountStatusAdapter } from "openclaw/plugin-sdk/status-helpers" ;
39+ import {
40+ buildProbeChannelStatusSummary ,
41+ createComputedAccountStatusAdapter ,
42+ createDefaultChannelRuntimeState ,
43+ } from "openclaw/plugin-sdk/status-helpers" ;
3844import {
3945 isRecord ,
4046 normalizeLowercaseStringOrEmpty ,
4147 normalizeOptionalString ,
4248} from "openclaw/plugin-sdk/string-coerce-runtime" ;
4349import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking" ;
44- import type { PluginRuntime } from "../runtime-api.js" ;
50+ import type {
51+ ChannelMessageActionName ,
52+ ChannelMeta ,
53+ ChannelPlugin ,
54+ ClawdbotConfig ,
55+ PluginRuntime ,
56+ } from "../runtime-api.js" ;
4557import {
4658 inspectFeishuCredentials ,
4759 listEnabledFeishuAccounts ,
@@ -52,19 +64,6 @@ import {
5264} from "./accounts.js" ;
5365import { feishuApprovalAuth } from "./approval-auth.js" ;
5466import { FEISHU_CARD_INTERACTION_VERSION } from "./card-interaction.js" ;
55- import type {
56- ChannelMessageActionName ,
57- ChannelMeta ,
58- ChannelPlugin ,
59- ClawdbotConfig ,
60- } from "./channel-runtime-api.js" ;
61- import {
62- buildProbeChannelStatusSummary ,
63- createActionGate ,
64- createDefaultChannelRuntimeState ,
65- DEFAULT_ACCOUNT_ID ,
66- PAIRING_APPROVED_MESSAGE ,
67- } from "./channel-runtime-api.js" ;
6867import { normalizeFeishuChatType , resolveFeishuChatType } from "./chat-type.js" ;
6968import { FeishuChannelConfigSchema } from "./config-schema.js" ;
7069import {
0 commit comments