feat: combine dedicated and web search providers

This commit is contained in:
john
2026-07-23 12:38:20 +08:00
parent d9eb11f5f5
commit 890264ba10
7 changed files with 29 additions and 20 deletions
+7 -1
View File
@@ -59,7 +59,13 @@ test('filterChatSkills shows generate-page when publish is allowed', () => {
});
test('buildChatSkillPrompt includes skill name for platform skills', () => {
assert.match(buildChatSkillPrompt('web', 'web'), /请使用 web 技能/);
const webPrompt = buildChatSkillPrompt('web', 'web');
assert.match(webPrompt, /请使用 web 技能/);
assert.match(webPrompt, /tkmind_search/);
assert.match(webPrompt, /web_search/);
const enhancedPrompt = buildChatSkillPrompt('search-enhanced', 'search-enhanced');
assert.match(enhancedPrompt, /tkmind_search/);
assert.match(enhancedPrompt, /web_search/);
assert.match(buildChatSkillPrompt('service-integration-smoke'), /标准联调流程/);
assert.match(buildChatSkillPrompt('product-campaign-page'), /商品宣传 \/ 活动页/);
assert.match(buildChatSkillPrompt('image-generation'), /asset\.htmlSrc/);