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:
@@ -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)';
|
||||
|
||||
Reference in New Issue
Block a user