mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 04:30:42 +00:00
chore(format)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
import { sendMessageDiscord, sendPollDiscord } from "../../../discord/send.js";
|
||||
import { normalizeDiscordOutboundTarget } from "../normalize/discord.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
|
||||
export const discordOutbound: ChannelOutboundAdapter = {
|
||||
deliveryMode: "direct",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
import { chunkText } from "../../../auto-reply/chunk.js";
|
||||
import { sendMessageIMessage } from "../../../imessage/send.js";
|
||||
import { resolveChannelMediaMaxBytes } from "../media-limits.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
|
||||
function resolveIMessageMaxBytes(params: {
|
||||
cfg: Parameters<typeof resolveChannelMediaMaxBytes>[0]["cfg"];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { PluginRegistry } from "../../../plugins/registry.js";
|
||||
import { getActivePluginRegistry } from "../../../plugins/runtime.js";
|
||||
import type { ChannelId, ChannelOutboundAdapter } from "../types.js";
|
||||
import { getActivePluginRegistry } from "../../../plugins/runtime.js";
|
||||
|
||||
// Channel docking: outbound sends should stay cheap to import.
|
||||
//
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
import { chunkText } from "../../../auto-reply/chunk.js";
|
||||
import { sendMessageSignal } from "../../../signal/send.js";
|
||||
import { resolveChannelMediaMaxBytes } from "../media-limits.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
|
||||
function resolveSignalMaxBytes(params: {
|
||||
cfg: Parameters<typeof resolveChannelMediaMaxBytes>[0]["cfg"];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { OutboundIdentity } from "../../../infra/outbound/identity.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
import { getGlobalHookRunner } from "../../../plugins/hook-runner-global.js";
|
||||
import { sendMessageSlack, type SlackSendIdentity } from "../../../slack/send.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
|
||||
function resolveSlackSendIdentity(identity?: OutboundIdentity): SlackSendIdentity | undefined {
|
||||
if (!identity) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { TelegramInlineButtons } from "../../../telegram/button-types.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
import { markdownToTelegramHtmlChunks } from "../../../telegram/format.js";
|
||||
import {
|
||||
parseTelegramReplyToMessageId,
|
||||
parseTelegramThreadId,
|
||||
} from "../../../telegram/outbound-params.js";
|
||||
import { sendMessageTelegram } from "../../../telegram/send.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
|
||||
export const telegramOutbound: ChannelOutboundAdapter = {
|
||||
deliveryMode: "direct",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
import { chunkText } from "../../../auto-reply/chunk.js";
|
||||
import { shouldLogVerbose } from "../../../globals.js";
|
||||
import { sendPollWhatsApp } from "../../../web/outbound.js";
|
||||
import { resolveWhatsAppOutboundTarget } from "../../../whatsapp/resolve-outbound-target.js";
|
||||
import type { ChannelOutboundAdapter } from "../types.js";
|
||||
|
||||
export const whatsappOutbound: ChannelOutboundAdapter = {
|
||||
deliveryMode: "gateway",
|
||||
|
||||
Reference in New Issue
Block a user