feat & fix: Full Web UI, OpenRouter Integration, Tool Propagation Fixes, and CI Resolution#166
Open
Priyanshu-x wants to merge 4 commits intovirattt:mainfrom
Open
feat & fix: Full Web UI, OpenRouter Integration, Tool Propagation Fixes, and CI Resolution#166Priyanshu-x wants to merge 4 commits intovirattt:mainfrom
Priyanshu-x wants to merge 4 commits intovirattt:mainfrom
Conversation
…k model] Merge branch 'main' of https://github.com/virattt/dexter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This is a substantial update that introduces a brand new React-based Web UI, extends AI model support via OpenRouter, fixes critical bugs in tool API key propagation, resolves complex merge conflicts, and ensures the CI pipeline (
typecheckandtest) passes smoothly.Key Achievements & Features:
1. 🖥️ New Web Application UI (React + Vite + Hono)
client/directory) to complement the CLI.src/server.ts) to bridge the backend AI agent with the frontend via streaming responses.2. 🧠 OpenRouter Integration & Model Registry
AgentRunnerController(src/controllers/agent-runner.ts) with anupdateConfigmethod to synchronize model selections dynamically between the CLI and the Web UI.llm.tsto seamlessly handle OpenRouter's specific model ID formats (e.g.,openrouter/deepseek/deepseek-chat).model.ts) to replace fake/placeholder IDs with real, working model names.3. 🛠️ Tool Execution & API Key Propagation Fixes
ALPHA_VANTAGE_API_KEY) were not being correctly propagated to the executing tools.src/agent/agent.tsto correctly map configured API keys down to theTavilySearch,AlphaVantage, and custom financial tools.src/tools/finance/financial-search.ts.4. 🔀 Merge Conflict Resolution & Code Cleanup
bun.lock,package.json,src/agent/types.ts,src/model/llm.ts, and multiple tool files.ModelSelector.tsxandenv.example) that were causing tracking issues.5. ✅ CI Pipeline & Test Stability
@mariozechner/pi-tui,@whiskeysockets/baileys, etc.) topackage.jsonthat were dropped during merge conflict resolution, fixing the remote CItypecheckfailures.errorValue,pendingApprovalValue) in theAgentRunnerController.ENOENTcrash in the WhatsApp outbound channel tests by ensuring the~/.dexter/debugging directory is automatically created before log writes.bun run typecheckandbun testnow pass locally and on GitHub Actions with 0 errors.Testing Performed
http://localhost:3000.bun start) and Web UI (bun run src/server.ts).tsc --noEmit).bun test).