Add Beryl Agent and harness source

This commit is contained in:
2026-09-08 20:10:03 +08:00
parent 06d72d001c
commit 47cfbcd66a
70 changed files with 12558 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# 架构
```mermaid
sequenceDiagram
participant U as assistant-ui
participant H as Fastify/Harness
participant P as Pi AgentSession
U->>H: POST message (202)
H->>P: prompt(text,{images})
P-->>H: session events
H-->>U: ordered SSE events
P->>H: save_report_draft
H-->>U: approval.required
U->>H: approve/deny
H-->>P: resume/block
```
`packages/shared` 是无 Node 依赖协议;`packages/harness` 是无 React/Fastify 的核心;Fastify 只组合协议;Web 的 Store reducer 按 sequence 投影消息、Run、Tool 与 Approval。