docs(i18n): standardize contract terminology

This commit is contained in:
xjt
2026-08-09 11:33:14 +08:00
parent 5d46c11784
commit a7af54a8d3
848 changed files with 1506 additions and 1506 deletions

View File

@@ -3,4 +3,4 @@
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write packages/pty/pty/README.md
README.md: 0f8b8e499dc81ce91e249f44bb38c8cc1af89d3f
README.zh.md: b0c2e21a2bd5fca1088908bdde76ff1eb2ee8bfd
README.zh.md: c1062de5f06cfbebbd10200ed5a835b1ab93b8a0

View File

@@ -4,7 +4,7 @@
限定所有者范围的持久 PTY seam。`PtyService` 注册为 `ctx.pty`,生成不透明的会话 id,通过具名后端路由创建操作,将每个操作限制在完全相同的活跃 `Agent` 内,并在该 agent(智能体)或服务 dispose(资源释放)时等待后端完全停稳。
## 契约
## 约定
- 后端注册一个稳定的 `type`,并返回尚未发布的 `PtyBackendSession`;失败或取消的设置过程必须清理部分资源。若清理失败,则以 `PtyBackendCleanupError` 拒绝,使注册表能在取消后继续保留该清理失败。
- spawn 取消会保留调用方提供的确切中止原因。后端设置完成后,服务 dispose 与所有者消失仍分别对应可供机器路由的不同失败。
@@ -38,4 +38,4 @@
## 已知限制与暂缓事项
- 会话只存在于进程本地,harness 重启后不会恢复。
- 系统有意不支持跨 agent 共享;未来的共享会话设计需要独立的权限契约。
- 系统有意不支持跨 agent 共享;未来的共享会话设计需要独立的权限约定。