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 caps | providers/runtime/web-device/src/device-caps.ts · DEVICE_CAPS_DOCUMENT |
| Degradation | packages/aup/src/degradation.ts · DEGRADATION_CHAINS |
| 内部矩阵 | docs/aup/capability-matrix.md(内部,不对外路由) |
| Taxonomy hub | Primitive 类型分类与证据 |
| Sample 合同规则 | Live 示例:范围与合同 |