feat(chat): add chat runtime and MCP integration - #412
Conversation
|
Warning Review limit reachedNext included review available in 16 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (50)
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 |
📦 Package Previewpnpm add https://pkg.pr.new/@opentiny/tiny-robot@2350a55 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-kit@2350a55 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-svgs@2350a55 commit: 2350a55 |

背景
本 PR 在 Chat UI 包的基础上补充 Chat Runtime,实现模型请求、响应处理、MCP 工具调用以及 Kit Runtime 适配能力。
本 PR 基于 #411 合入
关联关系
PR1 负责 Chat 包、UI 组件和构建边界;本 PR 仅补充 Runtime 实现。
变更内容
Runtime 入口与公共导出
新增并导出:
useLocalChatRuntimeuseKitChatRuntimeLocal Runtime
新增本地 Chat Runtime,支持:
Kit Runtime
新增基于
@opentiny/tiny-robot-kit的 Chat Runtime 适配:Provider Runtime
新增 Provider 请求处理链:
MCP Runtime
新增 MCP 能力:
运行配置
新增 Chat Runtime 默认配置和运行配置解析:
用于同步 Kit Runtime 的暂停状态。
文件范围
本 PR 相对 PR1 变更:
packages/chat/src/runtimepackages/chat/src/index.tspackages/chat/src/types/base.ts构建与验证
已验证: