mirror of https://github.com/openclaw/openclaw.git
refactor(signal): route target normalization through channel-targets
This commit is contained in:
parent
5ce7aee33b
commit
38a4b2b14c
|
|
@ -2,10 +2,10 @@ import {
|
|||
createResolvedApproverActionAuthAdapter,
|
||||
resolveApprovalApprovers,
|
||||
} from "openclaw/plugin-sdk/approval-runtime";
|
||||
import { normalizeSignalMessagingTarget } from "openclaw/plugin-sdk/channel-targets";
|
||||
import { normalizeE164 } from "openclaw/plugin-sdk/text-runtime";
|
||||
import { resolveSignalAccount } from "./accounts.js";
|
||||
import { looksLikeUuid } from "./identity.js";
|
||||
import { normalizeSignalMessagingTarget } from "./normalize.js";
|
||||
|
||||
function normalizeSignalApproverId(value: string | number): string | undefined {
|
||||
const normalized = normalizeSignalMessagingTarget(String(value));
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@ import {
|
|||
attachChannelToResult,
|
||||
attachChannelToResults,
|
||||
} from "openclaw/plugin-sdk/channel-send-result";
|
||||
import {
|
||||
looksLikeSignalTargetId,
|
||||
normalizeSignalMessagingTarget,
|
||||
} from "openclaw/plugin-sdk/channel-targets";
|
||||
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { createChatChannelPlugin } from "openclaw/plugin-sdk/core";
|
||||
import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime";
|
||||
|
|
@ -14,7 +18,6 @@ import { resolveSignalAccount, type ResolvedSignalAccount } from "./accounts.js"
|
|||
import { signalApprovalAuth } from "./approval-auth.js";
|
||||
import { markdownToSignalTextChunks } from "./format.js";
|
||||
import { signalMessageActions } from "./message-actions.js";
|
||||
import { looksLikeSignalTargetId, normalizeSignalMessagingTarget } from "./normalize.js";
|
||||
import { resolveSignalOutboundTarget } from "./outbound-session.js";
|
||||
import { resolveSignalReactionLevel } from "./reaction-level.js";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import {
|
|||
resolveMentionGatingWithBypass,
|
||||
} from "openclaw/plugin-sdk/channel-inbound";
|
||||
import { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline";
|
||||
import { normalizeSignalMessagingTarget } from "openclaw/plugin-sdk/channel-targets";
|
||||
import { resolveControlCommandGate } from "openclaw/plugin-sdk/command-auth";
|
||||
import { hasControlCommand } from "openclaw/plugin-sdk/command-auth";
|
||||
import {
|
||||
|
|
@ -56,7 +57,6 @@ import {
|
|||
resolveSignalSender,
|
||||
type SignalSender,
|
||||
} from "../identity.js";
|
||||
import { normalizeSignalMessagingTarget } from "../normalize.js";
|
||||
import { sendMessageSignal, sendReadReceiptSignal, sendTypingSignal } from "../send.js";
|
||||
import { handleSignalDirectMessageAccess, resolveSignalAccessState } from "./access-policy.js";
|
||||
import type {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,10 @@ export {
|
|||
createDefaultChannelRuntimeState,
|
||||
} from "openclaw/plugin-sdk/status-helpers";
|
||||
export { normalizeE164 } from "openclaw/plugin-sdk/text-runtime";
|
||||
export { looksLikeSignalTargetId, normalizeSignalMessagingTarget } from "./normalize.js";
|
||||
export {
|
||||
looksLikeSignalTargetId,
|
||||
normalizeSignalMessagingTarget,
|
||||
} from "openclaw/plugin-sdk/channel-targets";
|
||||
export {
|
||||
listEnabledSignalAccounts,
|
||||
listSignalAccountIds,
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@ export {
|
|||
type ParsedChatTarget,
|
||||
type ServicePrefix,
|
||||
} from "../channels/plugins/chat-target-prefixes.js";
|
||||
export {
|
||||
looksLikeSignalTargetId,
|
||||
normalizeSignalMessagingTarget,
|
||||
} from "../channels/plugins/normalize/signal.js";
|
||||
export type { ChannelId } from "../channels/plugins/types.js";
|
||||
export { normalizeChannelId } from "../channels/plugins/registry.js";
|
||||
export {
|
||||
|
|
|
|||
Loading…
Reference in New Issue