docs: render UML diagrams and embed portable previews
Verify Tessera GUI / verify (push) Failing after 1m30s
Verify Tessera GUI / verify (push) Failing after 1m30s
This commit is contained in:
@@ -26,22 +26,9 @@ Tessera/
|
||||
|
||||
箭头表示主要运行时调用/数据流,不宣称是无环的 Rust import 图。
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
Agent[本机客户端 / Console] --> API[runtime: HTTP API]
|
||||
API --> Worker[runtime: 串行 VM worker]
|
||||
Worker --> Aster[Aster frontend / compiler / core]
|
||||
Worker --> Bridge[bridge: UI 类型和行为]
|
||||
Bridge <--> Model[model: 对象与展示状态]
|
||||
Bridge --> Render[render: 布局与画面提取]
|
||||
Worker --> Published[NamespaceState / RenderDocument]
|
||||
Published --> Shell[shell: 原生工作区]
|
||||
Shell --> Scene[render: 场景合成与光栅化]
|
||||
Scene --> OS[winit / softbuffer / 操作系统]
|
||||
Shell -->|序列化输入| API
|
||||
Worker --> IO[runtime: 有界 I/O provider]
|
||||
IO -->|纯数据完成消息| Worker
|
||||
```
|
||||

|
||||
|
||||
[放大 SVG](uml/rendered/components.svg) · [编辑 UML 源码](uml/components.puml)
|
||||
|
||||
标准 UML 组件表示见 [components.puml](uml/components.puml)。`System UI` 只依赖低层几何、文本和画图,不导入 Endor VM 或 guest bridge;开发工具的执行逻辑由外层提供。
|
||||
|
||||
@@ -56,24 +43,9 @@ flowchart LR
|
||||
| 按需 I/O 池 | 文件/HTTP 工作及取消控制 | 不持有托管根;通过 mailbox 回传文本/错误 |
|
||||
| 系统 curl 子进程 | `fetchText` 的实际 HTTP 传输 | 有超时、大小和协议限制;不是业务服务 |
|
||||
|
||||
```mermaid
|
||||
flowchart TB
|
||||
subgraph Desktop[Tessera 单个桌面进程]
|
||||
GUI[GUI 主线程]
|
||||
HTTP[本机 API 接收线程]
|
||||
VM[唯一执行 worker]
|
||||
IO[I/O 池]
|
||||
State[(Arc / RwLock NamespaceState)]
|
||||
HTTP -->|有界队列| VM
|
||||
VM -->|原子发布| State
|
||||
State -->|只读快照| GUI
|
||||
GUI -->|输入客户端| HTTP
|
||||
VM <--> IO
|
||||
end
|
||||
External[本机 agent] -->|127.0.0.1:4737| HTTP
|
||||
IO --> Curl[系统 curl 子进程]
|
||||
GUI --> Native[原生窗口 / 软件像素缓冲]
|
||||
```
|
||||

|
||||
|
||||
[放大 SVG](uml/rendered/deployment.svg) · [编辑 UML 源码](uml/deployment.puml)
|
||||
|
||||
可编辑部署图:[deployment.puml](uml/deployment.puml)。Aster 作为 Cargo path dependency 编译到同一应用,不是额外 VM 服务;Lyra 和 Hestia 不在应用依赖链中。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user