这是 AUP Web-only widget,不是 cross-device primitive,也不是 Web Device layout component。
该名称登记在 AUP_WIDGETS(packages/aup/src/aup-types.ts)。结构校验可以接受它,Web runtime(或注明的原生目标)可以实现它。它不是 18 个跨设备 AUP_PRIMITIVES 之一,不会经 fillPrimitives 进入 DeviceCaps.primitives,也不是 Web Device 主题/站点 layout component(例如 content-card 或 page-breadcrumb)。
用途
基于 xterm.js 的 WebSocket terminal widget,拥有独立 endpoint 协议——与 AUP session 协议分离。
边界
- 不要把该类型写成可移植 primitive。
- 不要与 Web Device layout-component 参考页混装在
widgets/下。 - parser 接受名称 ≠ 可移植性或产品就绪声明。
作者入口
AUP type: "terminal",含 props.endpoint(及可选 rows/font)。需要 live 连接。
表面
仅交互 Web。Snapshot 模式显示占位。
Fallback
缺 endpoint → 占位。无共享 degradation chain。需要信任/endpoint 审查。
证据
| Source | Path |
|---|---|
| Registration | packages/aup/src/aup-types.ts |
| Registry | providers/runtime/ui/src/aup-registry.ts (terminal) |
| Renderer | providers/runtime/ui/src/web-page/renderers/terminal.ts |
| Interactive switch | providers/runtime/ui/src/web-page/core.ts case "terminal"`` |
| Related | frames-bridges-embedded-surfaces (terminal boundary note) |
路径相对于本文档基线所用的 Arc 仓库 checkout。
Sample
不适合作为 docs sample。 副作用、写入路径、仅原生表面或信任敏感 endpoint 使公开 sample 不合适。本页仅作边界与证据索引。
相关
- Widgets hub — 仅导航
- Primitive 类型分类 — 18 vs 42 边界
- 自定义 primitive 与 Web widget
- 内部矩阵:
docs/aup/capability-matrix.md