From 851de3554ec066f206bf3d4a89aeeb26636f610b Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 3 Apr 2026 21:43:23 +0900 Subject: [PATCH] refactor(feishu): split comment dispatcher seam --- extensions/feishu/src/comment-dispatcher-runtime-api.ts | 6 ++++++ extensions/feishu/src/comment-dispatcher.ts | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 extensions/feishu/src/comment-dispatcher-runtime-api.ts diff --git a/extensions/feishu/src/comment-dispatcher-runtime-api.ts b/extensions/feishu/src/comment-dispatcher-runtime-api.ts new file mode 100644 index 00000000000..d8e13d3d7c8 --- /dev/null +++ b/extensions/feishu/src/comment-dispatcher-runtime-api.ts @@ -0,0 +1,6 @@ +export { + createReplyPrefixContext, + type ClawdbotConfig, + type ReplyPayload, + type RuntimeEnv, +} from "openclaw/plugin-sdk/feishu"; diff --git a/extensions/feishu/src/comment-dispatcher.ts b/extensions/feishu/src/comment-dispatcher.ts index 9365cac83bf..bc8ca375472 100644 --- a/extensions/feishu/src/comment-dispatcher.ts +++ b/extensions/feishu/src/comment-dispatcher.ts @@ -1,12 +1,12 @@ import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload"; +import { resolveFeishuRuntimeAccount } from "./accounts.js"; +import { createFeishuClient } from "./client.js"; import { createReplyPrefixContext, type ClawdbotConfig, type ReplyPayload, type RuntimeEnv, -} from "../runtime-api.js"; -import { resolveFeishuRuntimeAccount } from "./accounts.js"; -import { createFeishuClient } from "./client.js"; +} from "./comment-dispatcher-runtime-api.js"; import type { CommentFileType } from "./comment-target.js"; import { deliverCommentThreadText } from "./drive.js"; import { getFeishuRuntime } from "./runtime.js";