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

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:
john
2026-08-31 10:36:04 +08:00
parent fa20f735a5
commit 61ba554feb
3 changed files with 18 additions and 0 deletions
+12
View File
@@ -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({