mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 06:41:08 +00:00
refactor(feishu): split runtime helper seams
This commit is contained in:
9
extensions/feishu/src/monitor-transport-runtime-api.ts
Normal file
9
extensions/feishu/src/monitor-transport-runtime-api.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export type { RuntimeEnv } from "../runtime-api.js";
|
||||
export { safeEqualSecret } from "openclaw/plugin-sdk/browser-support";
|
||||
export {
|
||||
applyBasicWebhookRequestGuards,
|
||||
isRequestBodyLimitError,
|
||||
readRequestBodyWithLimit,
|
||||
requestBodyErrorToText,
|
||||
} from "openclaw/plugin-sdk/webhook-ingress";
|
||||
export { installRequestBodyLimitGuard } from "openclaw/plugin-sdk/webhook-request-guards";
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as http from "http";
|
||||
import crypto from "node:crypto";
|
||||
import * as Lark from "@larksuiteoapi/node-sdk";
|
||||
import { safeEqualSecret } from "openclaw/plugin-sdk/browser-support";
|
||||
import { createFeishuWSClient } from "./client.js";
|
||||
import {
|
||||
applyBasicWebhookRequestGuards,
|
||||
isRequestBodyLimitError,
|
||||
@@ -9,8 +9,8 @@ import {
|
||||
installRequestBodyLimitGuard,
|
||||
readRequestBodyWithLimit,
|
||||
requestBodyErrorToText,
|
||||
} from "../runtime-api.js";
|
||||
import { createFeishuWSClient } from "./client.js";
|
||||
safeEqualSecret,
|
||||
} from "./monitor-transport-runtime-api.js";
|
||||
import {
|
||||
botNames,
|
||||
botOpenIds,
|
||||
|
||||
2
extensions/feishu/src/reply-dispatcher-runtime-api.ts
Normal file
2
extensions/feishu/src/reply-dispatcher-runtime-api.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export type { ClawdbotConfig, OutboundIdentity, ReplyPayload, RuntimeEnv } from "../runtime-api.js";
|
||||
export { createReplyPrefixContext } from "openclaw/plugin-sdk/feishu";
|
||||
@@ -5,18 +5,18 @@ import {
|
||||
resolveTextChunksWithFallback,
|
||||
sendMediaWithLeadingCaption,
|
||||
} from "openclaw/plugin-sdk/reply-payload";
|
||||
import { resolveFeishuRuntimeAccount } from "./accounts.js";
|
||||
import { createFeishuClient } from "./client.js";
|
||||
import { sendMediaFeishu } from "./media.js";
|
||||
import type { MentionTarget } from "./mention.js";
|
||||
import { buildMentionedCardContent } from "./mention.js";
|
||||
import {
|
||||
createReplyPrefixContext,
|
||||
type ClawdbotConfig,
|
||||
type OutboundIdentity,
|
||||
type ReplyPayload,
|
||||
type RuntimeEnv,
|
||||
} from "../runtime-api.js";
|
||||
import { resolveFeishuRuntimeAccount } from "./accounts.js";
|
||||
import { createFeishuClient } from "./client.js";
|
||||
import { sendMediaFeishu } from "./media.js";
|
||||
import type { MentionTarget } from "./mention.js";
|
||||
import { buildMentionedCardContent } from "./mention.js";
|
||||
} from "./reply-dispatcher-runtime-api.js";
|
||||
import { getFeishuRuntime } from "./runtime.js";
|
||||
import { sendMessageFeishu, sendStructuredCardFeishu, type CardHeaderConfig } from "./send.js";
|
||||
import { FeishuStreamingSession, mergeStreamingText } from "./streaming-card.js";
|
||||
|
||||
Reference in New Issue
Block a user