Treat WeChat travel-guide requests as page.generate and re-sync Kimi before Goose fallback.
Memind CI / Test, build, and release guards (push) Failing after 4m15s
Memind CI / Test, build, and release guards (push) Failing after 4m15s
Fixes Tang-style「做攻略」messages missing the 页面 keyword from entering Cursor, and forces provider refresh before DeepSeek/Kimi fallback after Cursor failures. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,6 +12,18 @@ import {
|
||||
createWechatIntentRouterConfigService,
|
||||
defaultsFromEnv,
|
||||
} from './wechat-intent-router-config.mjs';
|
||||
import { isPageGenerateText } from './wechat/intent/patterns.mjs';
|
||||
|
||||
test('isPageGenerateText matches travel guide requests without explicit 页面', () => {
|
||||
assert.equal(
|
||||
isPageGenerateText('帮我做一个嵊泗 3 天 2 晚的游玩攻略吧,可能'),
|
||||
true,
|
||||
);
|
||||
assert.equal(
|
||||
isPageGenerateText('现帮我做一个嵊泗 3 天 2 晚的游玩攻略页面,'),
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
test('resolveWechatIntentRouterPolicy reads env defaults', () => {
|
||||
const policy = resolveWechatIntentRouterPolicy({
|
||||
|
||||
Reference in New Issue
Block a user