mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 01:03:29 +00:00
refactor: centralize outbound policy + target schema
This commit is contained in:
9
src/infra/outbound/channel-target.ts
Normal file
9
src/infra/outbound/channel-target.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const CHANNEL_TARGET_DESCRIPTION =
|
||||
"Recipient/channel: E.164 for WhatsApp/Signal, Telegram chat id/@username, Discord/Slack channel/user, or iMessage handle/chat_id";
|
||||
|
||||
export const CHANNEL_TARGETS_DESCRIPTION =
|
||||
"Recipient/channel targets (same format as --to); accepts ids or names when the directory is available.";
|
||||
|
||||
export function normalizeChannelTargetInput(raw: string): string {
|
||||
return raw.trim();
|
||||
}
|
||||
Reference in New Issue
Block a user