@ycodium-ai/plugin-conversation 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/assets/ui.js +4022 -0
- package/dist/index.js +11 -0
- package/locales/en.json +479 -0
- package/locales/zh-CN.json +479 -0
- package/package.json +62 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @ycodium-ai/plugin-conversation
|
|
2
|
+
|
|
3
|
+
会话呈现:聊天与轨迹双视图、输入卡(含卡片内第一行的视图切换与轮次导航)、排队列表。
|
|
4
|
+
|
|
5
|
+
- 宿主经 `PluginViewHost` 挂载嵌入视图 `conversation`;props 契约在
|
|
6
|
+
`@ycodium-ai/plugin-api/conversation`(数据是宿主视图模型的结构子集,派生函数
|
|
7
|
+
与副作用回调由宿主注入)。
|
|
8
|
+
- 服务端半边没有任何能力:数据、编排事实与发送副作用都在宿主。停用/卸载即撤下
|
|
9
|
+
会话呈现,宿主显示不可用状态;会话数据不受影响。
|
|
10
|
+
- 工具调用行的展开呈现走宿主接缝(`renderWorkGroup` / `renderToolCallDetail`),
|
|
11
|
+
由 tool-display 插件提供;接缝缺省时画极简回退。
|
|
12
|
+
|
|
13
|
+
## Mobile
|
|
14
|
+
|
|
15
|
+
移动端的原生会话 UI(React Native)**保持宿主原生**,不装载本插件的 web bundle。
|
|
16
|
+
conversation 视图需要完整会话快照(时间线行、排队、
|
|
17
|
+
输入态)与大量本地回调(发送、中断、审批),函数与组件引用过不了 WebView 的
|
|
18
|
+
postMessage 通道,plugin-surface 那条路(pages/panels)对它不成立。
|
|
19
|
+
|
|
20
|
+
移动端与 Web 共享的是**数据侧**:会话读模型派生(`packages/client-runtime` 的
|
|
21
|
+
turn-queue / thread-trajectory / thread-timeline-presentation)与命令
|
|
22
|
+
(threadCommands)本来就是两客户端共用的同一份;插件化不改变它们。RN 界面的
|
|
23
|
+
会话呈现更新继续走原生组件 + 共享派生。
|