feat(websearch): add MCP fallback and Gemini CLI hook for third-party profiles

- Add Gemini CLI transformer hook (websearch-gemini-transformer.cjs)
- Implement MCP auto-configuration with web-search-prime, brave, tavily fallback
- Add installWebSearchHook() to activate hook on profile launch
- Update settings.tsx to clarify web-search-prime requires z.ai subscription
- Add WebSearch config types and loader support
- Create implementation plan for WebSearch UX enhancement (startup status, dashboard)

Third-party profiles (gemini, agy, codex, qwen, glm, kimi) now have WebSearch
capability via Gemini CLI primary + MCP fallback chain.
This commit is contained in:
kaitranntt
2025-12-16 02:49:07 -05:00
parent 071ec041ed
commit fd99ebca98
8 changed files with 635 additions and 35 deletions
+2 -4
View File
@@ -163,9 +163,7 @@ export function SettingsPage() {
<Label htmlFor="provider" className="text-base">
Preferred Provider
</Label>
<p className="text-sm text-muted-foreground">
Primary web search provider to use
</p>
<p className="text-sm text-muted-foreground">Primary web search provider to use</p>
</div>
<Select
value={config?.provider || 'auto'}
@@ -223,7 +221,7 @@ export function SettingsPage() {
<div>
<p className="font-medium">web-search-prime</p>
<p className="text-sm text-muted-foreground">
Free, no API key required. Primary fallback option.
Requires z.ai coding plan subscription. Primary fallback option.
</p>
</div>
</div>