Separate WeChat chat, page refine, and task flows with explicit routing.
Memind CI / Test, build, and release guards (push) Successful in 4m40s
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user