跳到主要内容

AUP 跨设备 primitive · ARC 2.0.0-beta.28

`chat` primitive

chat 是面向 session 的 primitive;document 没有 chat 能力 chain。

chat 是 AUP 跨设备 primitive,不是 Web Device 的 layout 组件,也不是 Web-only widget。它属于 AUP_PRIMITIVES 中的 18 个名称之一,并出现在每个 target 的 DeviceCaps.primitives map 中(取值为 native、webview、partial 或 unsupported)。

合同

字段值
Primitive 名称chat
层级AUP 跨设备 primitive(AUP_PRIMITIVES)
公共状态unsupported (document)
Document 能力unsupported
共享 degradation chain无共享 document degradation chain
作者入口AUP session · web-chat / web-full caps(DEVICE_CAPS_WEB_CHAT)
Document renderer / 备注Interactive renderers; not document-native
Showcase 证据blocklets/showcase-dsl/.aup/pages/chat.aup (often composed with afs-list)

何时使用

需要 session 身份、频道列表与消息流的消息表面。

何时不要使用

不要把 chat shell 贴进静态文档。身份与权限前提适用。

Document sample

不提供。 document 对 chat 报告 unsupported。没有会伪造安全 chat UI 的 document degradation chain。用 Showcase chat 与真实 session 验收。

证据锚点

项值
注册表packages/aup/src/aup-types.ts · AUP_PRIMITIVES
Document capsproviders/runtime/web-device/src/device-caps.ts · DEVICE_CAPS_DOCUMENT
Degradationpackages/aup/src/degradation.ts · DEGRADATION_CHAINS
内部矩阵docs/aup/capability-matrix.md(内部,不对外路由)
Taxonomy hubPrimitive 类型分类与证据
Sample 合同规则Live 示例:范围与合同

相关页面