Separate WeChat chat, page refine, and task flows with explicit routing.
Memind CI / Test, build, and release guards (push) Successful in 4m40s

Add channel prefixes, pin edit targets in Cursor prompts, and force fresh sessions for page refine URLs so DeepSeek/Goose chat history does not pollute page tasks.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-31 14:10:02 +08:00
parent b80584696d
commit 8f88eec2bd
10 changed files with 308 additions and 13 deletions
+12
View File
@@ -13,6 +13,18 @@ import {
defaultsFromEnv,
} from './wechat-intent-router-config.mjs';
import { isPageGenerateText } from './wechat/intent/patterns.mjs';
import { classifyWechatIntent } from './wechat/intent/classifier.mjs';
test('classifyWechatIntent honors channel prefix for chat vs page', () => {
assert.equal(
classifyWechatIntent({ msgType: 'text', agentText: '【聊天】帮我做一个游玩攻略页面' }).kind,
'chat.general',
);
assert.equal(
classifyWechatIntent({ msgType: 'text', agentText: '【改页】public/demo.html 更详细' }).kind,
'page.generate',
);
});
test('isPageGenerateText matches travel guide requests without explicit 页面', () => {
assert.equal(