feat(search): enable MindSearch defaults and sanitize user-facing search language.

Grant search_external and network egress for default users, enable search-enhanced skill, redact internal architecture terms from assistant UI text, and neutralize search skill prompts so chats use dual-engine web search without exposing vendor names.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-29 14:04:11 +08:00
parent 57d90e6113
commit 1edec6e196
10 changed files with 82 additions and 18 deletions
+9
View File
@@ -75,6 +75,15 @@ test('deriveAssistantFacingText hides skill/process narration without a delivera
assert.equal(deriveAssistantFacingText(internal), '');
});
test('deriveAssistantFacingText redacts architecture terms from user-visible replies', () => {
const raw =
'我通过 SearXNG 和 DuckDuckGo 搜索后汇总:OpenAI 最近发布了新模型。';
assert.equal(
deriveAssistantFacingText(raw),
'我通过 联网搜索 和 联网搜索 搜索后汇总:OpenAI 最近发布了新模型。',
);
});
test('deriveAssistantFacingText keeps user-facing replies with public links', () => {
const external =
'页面已生成:[AI 机器人研究报告 2026](https://m.tkmind.cn/MindSpace/john/public/ai-robot-report.html)';