docs(example): update persistent-tools snapshot command

This commit is contained in:
Tianyi Cui
2026-07-30 00:10:32 +08:00
parent 93ae5ea867
commit 9b9d3838ba
3 changed files with 6 additions and 6 deletions

View File

@@ -2,5 +2,5 @@
# side as of the last confirmed-consistent state. Both languages carry equal authority;
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write examples/jsonrpc-agent/README.md
README.md: 9a4c715e8988f52b647dbbd6b14a478cc1357d92
README.zh.md: fa792f9cf6bdad4f32a980f478a131f19de97611
README.md: 5e7b7d79415a4af0b0d16c61b0a4590dce57e545
README.zh.md: 8f2cca582853d420a542606c8a0f3e534e9c9bec

View File

@@ -33,8 +33,8 @@ Pass the config path through the Python SDK's `cordis` option or `DSH_CORDIS_CON
- owner-scoped persistent `bash`
- `str_replace_editor` with `view`, `create`, `str_replace`, and `insert`
It composes the real local PTY, filesystem intent policy, and session sandbox policy. The keyless behavior snapshot drives the shipped JSON-RPC runtime through both tools and proves that shell cwd/environment survive across calls:
It composes the real local PTY, filesystem intent policy, and session sandbox policy. The keyless SDK snapshot drives the shipped JSON-RPC runtime through both tools, proves that shell cwd/environment survive across calls, and pins the notification stream, turn result, and persisted JSONL:
```bash
pnpm exec vitest run examples/jsonrpc-agent/tests/persistent-tools.snapshot.spec.ts
pnpm exec vitest run --config vitest.snapshot.config.ts -t persistent-tools
```

View File

@@ -33,8 +33,8 @@
- agent 独占、状态持久的 `bash`
- 提供 `view`、`create`、`str_replace` 与 `insert` 的 `str_replace_editor`
它组合真实本地 PTY、文件系统 intent 策略与 session 沙箱策略。无密钥行为快照会通过正式 JSON-RPC runtime 驱动这两个工具,并验证 shell 的 cwd 与环境变量能跨调用保留:
它组合真实本地 PTY、文件系统 intent 策略与 session 沙箱策略。无密钥 SDK 快照会通过正式 JSON-RPC runtime 驱动这两个工具,验证 shell 的 cwd 与环境变量能跨调用保留,并锁定通知流、轮次结果与已持久化的 JSONL:
```bash
pnpm exec vitest run examples/jsonrpc-agent/tests/persistent-tools.snapshot.spec.ts
pnpm exec vitest run --config vitest.snapshot.config.ts -t persistent-tools
```