feat(wechat): migrate schedule and sync handlers into wechat package
Extract schedule, greeting/status/connectivity replies, chat-general prompt, and display-name helpers from wechat-mp.mjs. Route sync intents via classifyWechatIntent and add channel isolation CI check. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export function normalizeWechatName(value) {
|
||||
const name = String(value ?? '').trim();
|
||||
if (!name || /^wx_[a-z0-9_]{4,64}$/i.test(name)) return '';
|
||||
return name;
|
||||
}
|
||||
|
||||
export function resolveWechatAddressName(user) {
|
||||
return normalizeWechatName(user?.nickname) || normalizeWechatName(user?.displayName) || '';
|
||||
}
|
||||
Reference in New Issue
Block a user