Merge master into browser-use backends

This commit is contained in:
Tianyi Cui committed 2026-09-14 14:30:58 +08:00
commit ee031f9cf9
464 files changed
+60857 -40680

No files matched your search

@@ -0,0 +1,6 @@
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
# 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 docs/persistence-changes/2026-09-14-image-offload.md
2026-09-14-image-offload.md: 1d4f47f5a25cc9dd39ad16f111af7f30d906a297
2026-09-14-image-offload.zh.md: b184b32e96d04a425eda6faf9f5d50f815a9c32a
@@ -0,0 +1,96 @@
---
description: "Records a persistence type transition and its compatibility acknowledgement."
kind: persistence-change
---
# 2026-09-14-image-offload
English | [中文](2026-09-14-image-offload.zh.md)
## Summary
Record selected image occurrences with the image/offload event and derive their offloaded marks through the owning plugin's message projection.
## Table of Contents
- [Declaration](#declaration)
- [Compatibility](#compatibility)
- [Verification](#verification)
- [Dev Note](#dev-note)
<a id="declaration"></a>
## Declaration
```yaml persistence-change
schemaVersion: 1
id: 2026-09-14-image-offload
baseline: false
changes:
- root: "event:agent/inbox/spliced"
previous: "2026-09-11-initial"
after: "646c2f1d243d3a78c5bc9305786fb340f5209c48a97e65f2a186cc5195491f3f"
decision: same-version
- root: "event:assistant/attempt"
previous: "2026-09-11-initial"
after: "c80c89da83c46db7a454f034c10f969e03cfb574859c7316e5bff683f5a14b0e"
decision: same-version
- root: "event:assistant/message"
previous: "2026-09-11-initial"
after: "1169b301aaabcd992657b93ec93750c43175dda81ada5cac086f14f2eaaeed6d"
decision: same-version
- root: "event:compaction/summary"
previous: "2026-09-11-initial"
after: "f6f3f30109e9008fccf7da2a3268a63da8646b59dd7cf7b75bcd9cf08ac08a59"
decision: same-version
- root: "event:image/offload"
previous: null
after: "b222069eea2d768065161c1147b1f2c78c1b54328c84b3586ae5c8f91b8ed35e"
decision: same-version
- root: "event:llm/retry"
previous: "2026-09-11-initial"
after: "525254db03b1d1e6b74cf55aced52817568331ac1f96c0818728910b6692e336"
decision: same-version
- root: "event:session/title-llm-request"
previous: "2026-09-11-initial"
after: "e0b5bf44c27bbfc6ab144239e3e4169c4d21146645e0e3121bbb359c3bc8591d"
decision: same-version
- root: "event:system/message"
previous: "2026-09-11-initial"
after: "69becfb6b2d3fd5da91518089454cae8ef33f1835637ec44dde35dd077fd4bae"
decision: same-version
- root: "event:team/message/queued"
previous: "2026-09-11-initial"
after: "443371ec07a03a82a0e93d93abca3e70b03bca55ba5b01d507030fcb66e8fbb4"
decision: same-version
- root: "event:tool/ptc-dispatch"
previous: "2026-09-12-auto-review-error-metadata"
after: "b33142af8176323ffbb20762541be81c1d51b60a60887803836e0b146e5bef0c"
decision: same-version
- root: "event:tool/result"
previous: "2026-09-12-auto-review-error-metadata"
after: "29af48b840d0cd9e48b6f50bf3b354f8f6340607c5b99220a48e74f60beac9e2"
decision: same-version
- root: "event:turn/end"
previous: "2026-09-11-initial"
after: "bab768260853e13a7cf2e22e65af572a1e76a5b2c01f3cdc2ce09d39b87fb70b"
decision: same-version
- root: "event:user/message"
previous: "2026-09-11-initial"
after: "314765bdff29c7862fb6ce820f1773563ba3094a680d163ea21180a2591b8578"
decision: same-version
```
<a id="compatibility"></a>
## Compatibility
Existing logs remain readable. The optional offloaded image field leaves unmarked occurrences retained. The new event is required on read: older builds that do not recognize image/offload refuse those logs, and current readers require its message projection. Event envelopes and structural Session format versions are unchanged.
<a id="verification"></a>
## Verification
Session and image-offload tests cover event validation, immutable message projection, missing interpreters, restore, and retry. The focused 1,144-test run and two TypeScript image snapshots pass. The Python advanced SDK recording was refreshed through the built dsh profile and includes the standalone image/offload event.
<a id="dev-note"></a>
## Dev Note
None.
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,96 @@
---
description: "记录持久化类型更改及其兼容性确认。"
kind: persistence-change
---
# 2026-09-14-image-offload
[English](2026-09-14-image-offload.md) | 中文
## 概述
用 image/offload 事件记录选中的图片出现位置,通过所属插件的消息投影派生 offloaded 标记。
## 目录
- [声明](#declaration)
- [兼容性](#compatibility)
- [验证](#verification)
- [开发备注](#dev-note)
<a id="declaration"></a>
## 声明
```yaml persistence-change
schemaVersion: 1
id: 2026-09-14-image-offload
baseline: false
changes:
- root: "event:agent/inbox/spliced"
previous: "2026-09-11-initial"
after: "646c2f1d243d3a78c5bc9305786fb340f5209c48a97e65f2a186cc5195491f3f"
decision: same-version
- root: "event:assistant/attempt"
previous: "2026-09-11-initial"
after: "c80c89da83c46db7a454f034c10f969e03cfb574859c7316e5bff683f5a14b0e"
decision: same-version
- root: "event:assistant/message"
previous: "2026-09-11-initial"
after: "1169b301aaabcd992657b93ec93750c43175dda81ada5cac086f14f2eaaeed6d"
decision: same-version
- root: "event:compaction/summary"
previous: "2026-09-11-initial"
after: "f6f3f30109e9008fccf7da2a3268a63da8646b59dd7cf7b75bcd9cf08ac08a59"
decision: same-version
- root: "event:image/offload"
previous: null
after: "b222069eea2d768065161c1147b1f2c78c1b54328c84b3586ae5c8f91b8ed35e"
decision: same-version
- root: "event:llm/retry"
previous: "2026-09-11-initial"
after: "525254db03b1d1e6b74cf55aced52817568331ac1f96c0818728910b6692e336"
decision: same-version
- root: "event:session/title-llm-request"
previous: "2026-09-11-initial"
after: "e0b5bf44c27bbfc6ab144239e3e4169c4d21146645e0e3121bbb359c3bc8591d"
decision: same-version
- root: "event:system/message"
previous: "2026-09-11-initial"
after: "69becfb6b2d3fd5da91518089454cae8ef33f1835637ec44dde35dd077fd4bae"
decision: same-version
- root: "event:team/message/queued"
previous: "2026-09-11-initial"
after: "443371ec07a03a82a0e93d93abca3e70b03bca55ba5b01d507030fcb66e8fbb4"
decision: same-version
- root: "event:tool/ptc-dispatch"
previous: "2026-09-12-auto-review-error-metadata"
after: "b33142af8176323ffbb20762541be81c1d51b60a60887803836e0b146e5bef0c"
decision: same-version
- root: "event:tool/result"
previous: "2026-09-12-auto-review-error-metadata"
after: "29af48b840d0cd9e48b6f50bf3b354f8f6340607c5b99220a48e74f60beac9e2"
decision: same-version
- root: "event:turn/end"
previous: "2026-09-11-initial"
after: "bab768260853e13a7cf2e22e65af572a1e76a5b2c01f3cdc2ce09d39b87fb70b"
decision: same-version
- root: "event:user/message"
previous: "2026-09-11-initial"
after: "314765bdff29c7862fb6ce820f1773563ba3094a680d163ea21180a2591b8578"
decision: same-version
```
<a id="compatibility"></a>
## 兼容性
现有日志仍可读取。可选的图片字段 offloaded 使未标记的出现位置保持保留状态。新事件在读取时必须被识别:不认识 image/offload 的旧版本拒绝读取这些日志,当前读取器需要对应的消息投影。事件信封和结构性的 Session 格式版本不变。
<a id="verification"></a>
## 验证
Session 和图片省略测试覆盖事件校验、不可变消息投影、缺少处理器、恢复和重试。所选的 1,144 项测试和两项 TypeScript 图片快照通过。Python advanced SDK 录制已通过构建后的 dsh profile 刷新,包含独立的 image/offload 事件。
<a id="dev-note"></a>
## 开发备注
无。
@@ -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 docs/persistence-changes/historical-formats/README.md
README.md: 65e07738c907ba0a463cd6ffb876cd14b8f66941
README.zh.md: 8af9aeb332327f5ff6cb2880aed5c6b290e426a7
README.md: 186bec44b2b910b370d80e3115d5de628d8810e2
README.zh.md: 680a3e279d724acb632efc1d90b54fcdd1fec31c
@@ -31,7 +31,7 @@ The index is generated from validated snapshots and the current writer constant.
| 0 | `dsh-v0.1.2-rc.1` | [V0](v0.md) | [JSON](v0.schema.json) | 54 / 415 |
| 1 | PR #3349 | [V1](v1.md) | [JSON](v1.schema.json) | 54 / 415 |
| 2 | `dsh-v0.1.3-alpha.2` | [V2](v2.md) | [JSON](v2.schema.json) | 56 / 435 |
| 3 | Current checkout | [Current catalog](../../persistence-catalog.md) | [JSON](../../persistence-schema.json) | 61 / 475 |
| 3 | Current checkout | [Current catalog](../../persistence-catalog.md) | [JSON](../../persistence-schema.json) | 62 / 480 |
<!-- persistence-format-index:end -->
@@ -31,7 +31,7 @@ description: "查找从 V0 到工作区写入器版本的每个 Session 格式
| 0 | `dsh-v0.1.2-rc.1` | [V0](v0.zh.md) | [JSON](v0.schema.json) | 54 / 415 |
| 1 | PR #3349 | [V1](v1.zh.md) | [JSON](v1.schema.json) | 54 / 415 |
| 2 | `dsh-v0.1.3-alpha.2` | [V2](v2.zh.md) | [JSON](v2.schema.json) | 56 / 435 |
| 3 | 当前工作树 | [当前目录](../../persistence-catalog.zh.md) | [JSON](../../persistence-schema.json) | 61 / 475 |
| 3 | 当前工作树 | [当前目录](../../persistence-catalog.zh.md) | [JSON](../../persistence-schema.json) | 62 / 480 |
<!-- persistence-format-index:end -->