Yige
f104d18165
feat(web-access): 截图像素直接给、clip 元素级裁剪、artifact 用绝对路径 (#77)
跟进 desirecore/desirecore#1741 与 #1756(均已合入 dev,随 10.0.100 发布)。
## 变更 / Changes
- **截图像素直接给**:现在作为 image 块进工具结果,视觉模型当场就能看。补一节说明什么时候才需要再 `Read`
一次(结果明确写了未附带像素、或需要原始分辨率),避免同一张图在上下文里占两份。同时说明非视觉模型下会明确告知「你看不到它的内容」,此时不要凭空描述画面。
- **元素级裁剪不再需要 `cdp.raw`**:`BrowserSnapshot` 的
`options.clip={x,y,width,height,scale}` 直接支持,`scale` 最大 4(已对照
`command-params.ts:333` 核实)。
- **artifact 改用 `result.artifact.absolutePath`**:原文教的
`${DESIRECORE_ROOT}/...` 在路径展开里根本不认(只认 `~` / `$HOME` /
`$USERPROFILE`),拼出来是相对路径、`Read`
报「文件不存在」;原文给的还是目录,照抄会撞上「路径不是文件」。真机实测两条都踩过。
## 刻意未改 / Deliberately unchanged
「用户真实鼠标会抢控制权」一条**保持原样**——修它的 desirecore/desirecore#1740 尚未合并,现状描述仍然准确。
## 版本门控 / Version gating
`required_client_version` 10.0.98 → **10.0.100**(含上述两个 PR 的最早版本)。market
是运行时拉取的,不提门槛会让老客户端拿到教它们用不存在能力的说明。
---
Follows desirecore/desirecore#1741 and #1756 (both merged to dev,
shipping in 10.0.100). Screenshot pixels now arrive as an image block
directly; element-level cropping no longer needs raw CDP; artifact reads
use the absolute path from the receipt. The 'real mouse steals control'
note is intentionally left as-is because its fix (#1740) is not merged
yet.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-08-07 23:54:22 +08:00
..
2026-07-19 14:37:19 +08:00
2026-07-19 14:37:19 +08:00
2026-07-19 14:37:19 +08:00
2026-08-07 23:54:03 +08:00
2026-07-22 20:03:56 +08:00
2026-07-29 17:48:28 +08:00
2026-07-19 17:31:31 +08:00
2026-07-14 11:55:22 +08:00
2026-07-19 16:14:22 +08:00
2026-06-09 11:27:13 +08:00
2026-07-19 14:37:19 +08:00
2026-07-19 17:31:31 +08:00
2026-06-04 11:14:36 +08:00
2026-07-19 00:45:05 +08:00
2026-07-19 14:37:19 +08:00
2026-05-05 00:26:33 +08:00
2026-07-07 21:14:31 +08:00
2026-07-19 14:37:19 +08:00
2026-07-14 11:55:22 +08:00
2026-07-19 19:19:33 +08:00
2026-07-16 19:59:41 +08:00
2026-07-19 14:37:19 +08:00
2026-07-19 14:37:19 +08:00
2026-07-16 19:59:41 +08:00
2026-07-19 14:37:19 +08:00
2026-07-07 21:14:31 +08:00
2026-07-14 11:55:22 +08:00
2026-05-05 00:26:33 +08:00
2026-07-14 11:55:22 +08:00
2026-08-07 23:54:03 +08:00
2026-07-19 14:37:19 +08:00
2026-07-16 19:59:41 +08:00
2026-07-07 21:14:31 +08:00
2026-07-16 19:59:41 +08:00
2026-07-07 21:14:31 +08:00
2026-07-19 14:37:19 +08:00
2026-07-19 14:37:19 +08:00
2026-07-07 21:14:31 +08:00
2026-05-05 00:26:33 +08:00
2026-07-07 21:14:31 +08:00
2026-07-07 21:14:31 +08:00
2026-07-29 17:48:28 +08:00
2026-07-07 21:14:31 +08:00
2026-07-14 11:55:22 +08:00
2026-07-19 14:37:19 +08:00
2026-07-14 11:55:22 +08:00
2026-07-19 16:14:22 +08:00
2026-07-29 17:48:28 +08:00
2026-08-07 23:54:22 +08:00
2026-07-19 19:19:33 +08:00
2026-08-07 23:54:22 +08:00
2026-07-19 14:37:19 +08:00
2026-07-19 14:37:19 +08:00
2026-07-07 21:14:31 +08:00
2026-07-14 11:55:22 +08:00
2026-07-07 21:14:31 +08:00
2026-02-28 22:47:09 +08:00
2026-05-29 15:36:19 +08:00