mirror of https://github.com/openclaw/openclaw.git
refactor(feishu): split runtime helper seams
This commit is contained in:
parent
899fe6ffa5
commit
319aa2f1fe
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue