Plugins 导读

Message Presentation 让核心只描述消息意图,各通道自己渲染原生样式

这页定义 rich outbound chat UI 的共享合同。代理、CLI、approval flows 和插件描述文本段、上下文、footer、divider 等可移植意图;Discord、Slack、Telegram、Teams、Feishu 等通道插件负责输出各自平台的原生 blocks、buttons 或 cards。

先讲这一页到底在解决什么

Message Presentation 让核心只描述消息意图,各通道自己渲染原生样式

这页定义 rich outbound chat UI 的共享合同。代理、CLI、approval flows 和插件描述文本段、上下文、footer、divider 等可移植意图;Discord、Slack、Telegram、Teams、Feishu 等通道插件负责输出各自平台的原生 blocks、buttons 或 cards。

原文共 11 节,先看 Start Here 路径:/plugins/message-presentation 查看官方原文
共享层

文本段落、小上下文、footer、divider 这些可移植意图放在合同里。

平台层

Slack blocks、Discord components、Telegram buttons 等由 channel renderer 输出。

为什么

同一条消息可以在不同平台长得不同,但意图应该只有一份。

一句话

核心写“信的意思”,平台负责“信封长相”。