feat(wechat): migrate schedule and sync handlers to wechat package #4

Closed
tkmind wants to merge 0 commits from feature/wechat-handler-migration into main
Owner

Summary

  • Extract schedule handler, schedule confirmation guard, sync replies (greeting/status/connectivity), chat-general prompt, and display-name helpers into wechat/.
  • Route lightweight sync intents through classifyWechatIntent + resolveSyncReply instead of duplicate regex checks in wechat-mp.mjs.
  • Slim wechat-mp.mjs by ~300 lines; re-export buildWechatAgentPrompt for existing tests.
  • Add npm run verify:wechat-channel-isolation to prevent wechat/ ↔ H5 finish-sync cross-imports.

Test plan

  • node --test wechat/wechat-channel.test.mjs wechat-mp.test.mjs (68 pass)
  • npm run verify:wechat-channel-isolation
  • After merge: hot-deploy wechat-mp.bundle.mjs to 103
  • Tang: greeting, schedule todo, page.generate, general chat

Follow-up

  • Extract runIntentMessage agent dispatch into wechat/handlers/chat-general.mjs
  • Further slim webhook/XML adapter layer in wechat-mp.mjs
## Summary - Extract schedule handler, schedule confirmation guard, sync replies (greeting/status/connectivity), chat-general prompt, and display-name helpers into `wechat/`. - Route lightweight sync intents through `classifyWechatIntent` + `resolveSyncReply` instead of duplicate regex checks in `wechat-mp.mjs`. - Slim `wechat-mp.mjs` by ~300 lines; re-export `buildWechatAgentPrompt` for existing tests. - Add `npm run verify:wechat-channel-isolation` to prevent `wechat/` ↔ H5 finish-sync cross-imports. ## Test plan - [x] `node --test wechat/wechat-channel.test.mjs wechat-mp.test.mjs` (68 pass) - [x] `npm run verify:wechat-channel-isolation` - [ ] After merge: hot-deploy `wechat-mp.bundle.mjs` to 103 - [ ] Tang: greeting, schedule todo, page.generate, general chat ## Follow-up - Extract `runIntentMessage` agent dispatch into `wechat/handlers/chat-general.mjs` - Further slim webhook/XML adapter layer in `wechat-mp.mjs`
tkmind added 1 commit 2026-07-04 05:48:58 +00:00
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>
tkmind added 1 commit 2026-07-04 06:00:36 +00:00
Block service-account page links when HTML lacks mindspace-cover and
description so WeChat forwards always get TKMind branding and thumbnail.

Co-authored-by: Cursor <cursoragent@cursor.com>
tkmind closed this pull request 2026-07-05 07:03:27 +00:00
tkmind deleted branch feature/wechat-handler-migration 2026-07-05 07:03:28 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tkmind/memind#4