feat: add Agent desktop UI with real-time web search (GDELT)#1099
feat: add Agent desktop UI with real-time web search (GDELT)#1099sjkncs wants to merge 2 commits intokoala73:mainfrom
Conversation
Adds a full-featured AI Agent interface accessible from the main dashboard. ## New Files - agent.html Vite multi-page entry point for Agent - src/agent/main.ts Entry point - src/agent/agent-app.ts Main UI controller: sidebar, chat, welcome screen, settings panel, splash screen, tool modes (intel/research/code/market/deep-think) - src/agent/services/chat-service.ts OpenAI-compatible SSE streaming client supporting custom API, Ollama, Groq, OpenRouter providers - src/agent/services/conversation-store.ts localStorage persistence + settings - src/agent/services/i18n.ts EN/ZH UI strings - src/agent/services/news-context.ts Real-time news via GDELT DOC API v2 (CORS:*, no auth, 10-min cache, 24h->3d fallback, rate-limit guard) - src/agent/styles/agent.css Full dark theme CSS, Qwen-inspired UI ## Modified Files - vite.config.ts Add agent entry to rollupOptions.input; auto-detect Windows system proxy from HKCU registry so Node.js fetch routes through VPN - index.html Add AI Agent navigation button to header ## Features - Multi-provider: custom OpenAI-compatible, Ollama, Groq, OpenRouter - Real-time web search: GDELT news injected into system prompt before each reply with animated search indicator (🔍 Searching... ✅ Found N results) - Conversation history persisted in localStorage - Tool modes with specialized system prompts - Responsive dark theme with animated splash screen
|
@sjkncs is attempting to deploy a commit to the Elie Team on Vercel. A member of the Team first needs to authorize it. |
|
@sjkncs can you please put some screenshots ? |
|
ok |
ScreenshotsMain Dashboard WorldMonitor with AI Agent button (top-right header)Agent Welcome ScreenDark theme, sidebar with conversation history, tool mode shortcuts (Intel Analysis, Deep Research, Code, Market Analysis, Discover) Agent Input Ready (query typed)Input activated with send button highlighted, tool mode chips visible below input Agent Tool Mode CardsQuick-access cards for each analysis mode with icons Live demo: accessible at /agent.html when running Real-time web search: Before each LLM reply, the agent fetches recent headlines from GDELT DOC API (no auth required, CORS: *) and injects them into the system prompt similar to Qwen/Doubao web search feature. |
|
Good stuff, I will review this by tomorrow and see how to integrate the look & feel |
|
No problem! Ready to help with the integration whenever you're ready. |
|
And I believe the World Monitor agent has the potential to significantly impact military and financial sectors globally. Moreover, it can be a game-changer for staff in various departments, drastically improving efficiency in tasks like drafting research analysis reports and creating high-quality presentation decks for briefings.THANK YOU!😄 |




Summary
Adds a full-featured AI Agent interface to WorldMonitor, accessible via a new button in the main dashboard header.
New Files
Modified Files
Features
Testing