Classify WeChat page refine and MindSpace URL edits as page.generate.
Memind CI / Test, build, and release guards (push) Has been cancelled

Fixes Tang-style follow-ups like「页面还不够详细」or linked HTML update requests from falling through to Goose chat and hitting stale providers.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-31 10:44:50 +08:00
parent 61ba554feb
commit dc948e10c9
2 changed files with 31 additions and 0 deletions
+17
View File
@@ -25,6 +25,23 @@ test('isPageGenerateText matches travel guide requests without explicit 页面',
);
});
test('isPageGenerateText matches page refine and MindSpace URL edit requests', () => {
assert.equal(
isPageGenerateText('页面还不够详细,必须详细到时间节点'),
true,
);
assert.equal(
isPageGenerateText('这个页面还不够详细,必须详细到时间节点,把页面更新更详细和完整'),
true,
);
assert.equal(
isPageGenerateText(
'https://m.tkmind.cn/MindSpace/a70ff537-8908-486e-9b6c-042e07cc25db/public/shengsi-3day-guide.html这个页面还不够详细,必须详细到时间节点,把页面更新更详细和完整',
),
true,
);
});
test('resolveWechatIntentRouterPolicy reads env defaults', () => {
const policy = resolveWechatIntentRouterPolicy({
MEMIND_WECHAT_INTENT_LLM_ENABLED: '1',