-
Notifications
You must be signed in to change notification settings - Fork 431
[WIP] feat: ai plugin refactor #1657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis change set overhauls the robot plugin: introduces a new Home.vue entry/component, adds an OpenAI-compatible client/provider with dynamic LLM config, implements a streaming chat + MCP tools composable, updates modes from Builder→Agent, refactors components and icons, adjusts MCP types/usage, bumps robot deps, and tweaks minor layout/CSS and auth header handling. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant UI as Home.vue / RobotChat.vue
participant Chat as useChat (composable)
participant Client as AIClient
participant Prov as OpenAICompatibleProvider
participant MCP as MCP Server
User->>UI: Type prompt / select prompt
UI->>Chat: send(message, attachments?)
Chat->>Client: chatStream(request with messages/tools)
Client->>Prov: chatStream(payload, beforeRequest)
Note over Client,Prov: beforeRequest injects MCP tools, model, apiKey, baseURL
Prov-->>Client: SSE stream (delta, tool_calls, reasoning)
Client-->>Chat: onReceiveData(delta)
Chat->>UI: Update bubbles (reasoning/markdown)
alt Tool calls present
Chat->>MCP: Execute tool(name,args)
MCP-->>Chat: Tool result
Chat->>Client: Continue stream with tool result
end
Client-->>Chat: onFinish
Chat->>UI: Finalize message/state
sequenceDiagram
autonumber
actor User
participant UI as Home.vue / SettingsPopover
participant Cfg as updateLLMConfig
participant Client as AIClient
participant Prov as OpenAICompatibleProvider
User->>UI: Change model/apiKey/baseURL
UI->>Cfg: updateLLMConfig(newConfig)
Cfg->>Client: update in-memory config
Cfg->>Prov: updateConfig(newConfig)
Note over Client,Prov: Subsequent requests use updated provider settings
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Poem
Pre-merge checks and finishing touches and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
0d7f889
to
57ac995
Compare
57ac995
to
5eb53e9
Compare
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Chores