docs(i18n): standardize contract terminology
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 共享;未来的共享会话设计需要独立的权限约定。
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/pty/tool-bash-persistent/README.md
|
||||
README.md: cfb3acf41803f5b06ecb3f56ee8ffc29ce9147b1
|
||||
README.zh.md: a525485933344a8f9bc218456c099efdef572902
|
||||
README.zh.md: cf35a212159e7d12e1bdaa146b32b397d916a912
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[English](README.md) | 中文
|
||||
|
||||
模型可见的 `bash(command)`,底层复用一个按所有者隔离的 `ctx.pty` shell。该包拥有工具契约和 shell 复用;PTY 后端与沙箱策略由部署选择。
|
||||
模型可见的 `bash(command)`,底层复用一个按所有者隔离的 `ctx.pty` shell。该包拥有工具约定和 shell 复用;PTY 后端与沙箱策略由部署选择。
|
||||
|
||||
## 配置
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
| `backendType` | `shell` | 每个 Agent shell 使用的已注册 PTY 后端。 |
|
||||
| `timeoutMs` | `300000` | 单条命令的墙钟时间上限;超时会关闭 shell。 |
|
||||
| `maxOutputChars` | `16000` | 命令输出最多保留的字符数;固定诊断会在此后追加。 |
|
||||
| `description` | 持久 shell 描述 | 面向模型的环境契约。 |
|
||||
| `description` | 持久 shell 描述 | 面向模型的环境约定。 |
|
||||
|
||||
## 模型体验
|
||||
|
||||
|
||||
Reference in New Issue
Block a user