dsh-browser-cdp 1.15.0-rc.2 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dsh-plugin.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.15.0 (2026-11-26)
|
|
4
|
+
|
|
5
|
+
**新增本插件首个跨插件服务面 `browser-fetch`(主题线 1.15.0-rc.1 / rc.2,预发布线已验证)。**
|
|
6
|
+
|
|
7
|
+
- 新模块 `src/browser-fetch.ts`:经 cordis `ctx.provide("browser-fetch", …)` 注册,同会话插件
|
|
8
|
+
(首个消费方:dsh-union-search >= 0.13.0)`ctx.get("browser-fetch")` 取用;fiber 卸载自动注销。
|
|
9
|
+
- `fetchRenderedHtml({url, waitUntil, maxBytes, timeoutMs}, signal)`:每次调用现取端点
|
|
10
|
+
(browser.json / launcher.json 候选 + /json/version 活体探测,复用 1.14.14 endpoint-authority)
|
|
11
|
+
→ 自开短命 CDP 连接 → `Target.createTarget({background:true})` 后台 tab → navigate → 等
|
|
12
|
+
load → 取渲染后 `outerHTML`(主文档 statusCode 经 Network.responseReceived,拿不到回 null)
|
|
13
|
+
→ finally 必关 tab 与连接。不抢 ego-cli 工具锁、不与帧轮询串队;后台 tab 永不 activate。
|
|
14
|
+
- 服务端硬门(无绕过参数):仅 http(s),字面 IP + DNS 解析双重拒绝回环/私网/元数据;
|
|
15
|
+
maxBytes clamp 2MB,截断按 UTF-8 码点边界不劈字符(clipUtf8)。错误码五态:
|
|
16
|
+
bad-request / blocked-target / no-browser / nav-failed(含一次端点换代重试)/ timeout。
|
|
17
|
+
- tabbit / lightpanda 等无 CDP 端点路线统一 `no-browser` 降级;接口文档见 `docs/browser-fetch.md`。
|
|
18
|
+
- 测试:`tests/browser-fetch.test.ts` 9 用例(成功链/门/超时关 tab/abort 关 tab/换代重试/字节截断);
|
|
19
|
+
修复存量红 `tests/tabbit-backend-dispatch.test.ts`(attach 缓存用例补 `linkId`,对齐
|
|
20
|
+
attachMatchesLink 收紧后的实现)——CI 门禁自 11-21 起首次全绿,全量 1431 passed。
|
|
21
|
+
- 发布通道:rc.1/rc.2 经 prerelease 分支 + release.yml 通道判定自动挂 `--tag rc` + Pre-release
|
|
22
|
+
Release,latest 与 dsh-* 线标签全程未动;正式版走全链路。
|
|
23
|
+
|
|
3
24
|
## 1.14.14 (2026-11-25)
|
|
4
25
|
|
|
5
26
|
**修复 #20:观察窗焊死在旧实例 / 「不关浏览器也卡 New Tab」——两处独立缺陷,分开修。**
|
package/dsh-plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-browser-cdp",
|
|
3
|
-
"version": "1.15.0
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "dsh-browser-cdp: visible agent browser for DSH — drives the vendored ego-compatible Chromium over CDP, and can also attach to a running Chrome/Edge/Brave or route through egolite, Tabbit and Lightpanda backends. 35 structured bcdp_* tools; only bcdp_status stays resident by default (lazy injection, −91.9% schema per turn for non-browser sessions). Realtime watch panel with direct click/scroll/IME input, element picks quoted into the composer, human-verification notices; non-CDP channels sync frames by 3s polling. Web shell: floating watch ball without dsh-better-sidebar, sidebar tab with it. Headless/TUI hosts: tools-only. [DSH 0.1.0-rc.2 ~ 0.2.2-rc.1: declarative settings via Config .volatile() fields on 0.1.7+; imperative installSection / module-level registration + describe/mutate bridge on 0.1.0 ~ 0.1.5 (experimental, pending farm). Client peers stay optional so gen-1 hosts without dsh-client-store still load; for a production install on the current line use the 0.17.x line]",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|