mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 11:53:32 +02:00
fix(plugins): clean third channel lint batch
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
||||
import { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline";
|
||||
import { resolveChannelStreamingBlockEnabled } from "openclaw/plugin-sdk/channel-streaming";
|
||||
import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/config-runtime";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { resolveChannelContextVisibilityMode } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { readSessionUpdatedAt, resolveStorePath } from "openclaw/plugin-sdk/config-runtime";
|
||||
|
||||
@@ -18,7 +18,6 @@ import {
|
||||
createComputedAccountStatusAdapter,
|
||||
createDefaultChannelRuntimeState,
|
||||
} from "openclaw/plugin-sdk/status-helpers";
|
||||
import { normalizeE164 } from "openclaw/plugin-sdk/text-runtime";
|
||||
import { resolveSignalAccount, type ResolvedSignalAccount } from "./accounts.js";
|
||||
import { signalApprovalAuth } from "./approval-auth.js";
|
||||
import { markdownToSignalTextChunks } from "./format.js";
|
||||
@@ -294,9 +293,7 @@ export const signalPlugin: ChannelPlugin<ResolvedSignalAccount, SignalProbe> =
|
||||
return await probeSignal(baseUrl, timeoutMs);
|
||||
},
|
||||
formatCapabilitiesProbe: ({ probe }) =>
|
||||
(probe as SignalProbe | undefined)?.version
|
||||
? [{ text: `Signal daemon: ${(probe as SignalProbe).version}` }]
|
||||
: [],
|
||||
probe?.version ? [{ text: `Signal daemon: ${probe.version}` }] : [],
|
||||
resolveAccountSnapshot: ({ account }) => ({
|
||||
accountId: account.accountId,
|
||||
name: account.name,
|
||||
|
||||
@@ -19,11 +19,7 @@ import {
|
||||
} from "openclaw/plugin-sdk/setup-runtime";
|
||||
import { formatCliCommand, formatDocsLink } from "openclaw/plugin-sdk/setup-tools";
|
||||
import { normalizeE164 } from "openclaw/plugin-sdk/text-runtime";
|
||||
import {
|
||||
listSignalAccountIds,
|
||||
resolveDefaultSignalAccountId,
|
||||
resolveSignalAccount,
|
||||
} from "./accounts.js";
|
||||
import { resolveDefaultSignalAccountId, resolveSignalAccount } from "./accounts.js";
|
||||
|
||||
const channel = "signal" as const;
|
||||
const MIN_E164_DIGITS = 5;
|
||||
|
||||
@@ -76,10 +76,6 @@ function toSlackEmojiName(emoji: string): string {
|
||||
return UNICODE_TO_SLACK[trimmed] ?? trimmed;
|
||||
}
|
||||
|
||||
function hasMedia(payload: ReplyPayload): boolean {
|
||||
return resolveSendableOutboundReplyParts(payload).hasMedia;
|
||||
}
|
||||
|
||||
export function isSlackStreamingEnabled(params: {
|
||||
mode: "off" | "partial" | "block" | "progress";
|
||||
nativeStreaming: boolean;
|
||||
@@ -436,7 +432,6 @@ export async function dispatchPreparedSlackMessage(prepared: PreparedSlackMessag
|
||||
const slackBlocks = readSlackReplyBlocks(payload);
|
||||
const draftMessageId = draftStream?.messageId();
|
||||
const draftChannelId = draftStream?.channelId();
|
||||
const finalText = reply.text;
|
||||
const trimmedFinalText = reply.trimmedText;
|
||||
const canFinalizeViaPreviewEdit =
|
||||
previewStreamingEnabled &&
|
||||
|
||||
Reference in New Issue
Block a user