dsh-browser-cdp 1.9.15 → 1.9.16

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 CHANGED
@@ -1,3 +1,12 @@
1
+ ## 1.9.16 (2026-11-12)
2
+
3
+ **修复 `bcdp_snapshot` 的死开关:`maxChars` 补进工具 schema 声明。**
4
+
5
+ - **成因**:1.9.12 给 tabbit 分支接上了 maxChars 夹取(256..20000)与 `maxCharsUsed` 回显,但参数表里从未声明这个字段——宿主按 schema 收参数,模型永远传不进来,只能吃默认 8000;夹取/回显代码全测试可达、生产死路。
6
+ - **修法**:`bcdp_snapshot` 新增 optional `maxChars`(integer),描述里钉死语义:tabbit 专用、夹到厂商接受的 256..20000、其他通道忽略。配合 1.9.12 的 resource 读回,模型现在能一次拿到大快照而不用反复拍两轮。
7
+ - **闸门**:新增「参数必须在注册 schema 里声明」的断言(`tests/tabbit-backend-dispatch.test.ts`),防止实现与接口面脱节的同类回归再发生。
8
+ - **审计后维持现状**:bcdp_script/bcdp_js 的 description 已含 tabbit 语义(1.9.14);bcdp_http 的 tabbit 限制(server 拒绝/CORS 归因)继续走运行时文案与 help.ts ACTIVATED CHANNEL,不塞常驻 schema。
9
+
1
10
  ## 1.9.15 (2026-11-12)
2
11
 
3
12
  **面板「显示一秒后恢复空」的真因:两路数据源在同一条 SSE 上打架。**
package/README.md CHANGED
@@ -20,7 +20,7 @@
20
20
  [简体中文](README.md) | [Français](README.fr.md) | [Deutsch](README.de.md) | [Italiano](README.it.md) | [Русский](README.ru.md) | [Español](README.es.md)
21
21
 
22
22
 
23
- > **仓库**:`github.com/drscrewdriver/dsh-browser-cdp`|当前版本 **v1.9.15**|版本历史见 [CHANGELOG.md](CHANGELOG.md)|详情页:[dshfind](https://dshfind.com/zh/plugins/drscrewdriver/dsh-browser-cdp)
23
+ > **仓库**:`github.com/drscrewdriver/dsh-browser-cdp`|当前版本 **v1.9.16**|版本历史见 [CHANGELOG.md](CHANGELOG.md)|详情页:[dshfind](https://dshfind.com/zh/plugins/drscrewdriver/dsh-browser-cdp)
24
24
 
25
25
  ### 版本兼容矩阵
26
26
 
package/dsh-plugin.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://dsh.community/schemas/dsh-plugin-0.15.json",
3
3
  "id": "dsh-browser-cdp",
4
4
  "name": "dsh-browser-cdp",
5
- "version": "1.9.15",
5
+ "version": "1.9.16",
6
6
  "manifestVersion": "0.15",
7
7
  "facets": {
8
8
  "host": {
package/lib/index.js CHANGED
@@ -11761,7 +11761,7 @@ function registerActionTools(ctx, cfg, reg) {
11761
11761
  }));
11762
11762
  reg(t({
11763
11763
  name: "bcdp_snapshot",
11764
- description: "Read the current page as text: the full-page semantic tree annotated with [ref=N, loc=...] selectors that bcdp_click / bcdp_fill can target. To target across calls prefer a `loc=` over `@N`: a loc is stable, a ref is renumbered every snapshot.",
11764
+ description: "Read the page as text: the semantic tree annotated with [ref=N, loc=...] selectors usable by bcdp_click / bcdp_fill. Prefer `loc=` over `@N` across calls: locs are stable, refs renumber each snapshot.",
11765
11765
  parameters: {
11766
11766
  space: spaceParam,
11767
11767
  scope: {
@@ -11771,6 +11771,10 @@ function registerActionTools(ctx, cfg, reg) {
11771
11771
  root: {
11772
11772
  type: "string",
11773
11773
  description: "scope='subtree': the node to capture - a `loc=` token (stable across calls) or a ref like '@12' from a fresh snapshot."
11774
+ },
11775
+ maxChars: {
11776
+ type: "integer",
11777
+ description: "tabbit only: char budget 256..20000."
11774
11778
  }
11775
11779
  },
11776
11780
  buildScript: (args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-browser-cdp",
3
- "version": "1.9.15",
3
+ "version": "1.9.16",
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.7-rc.1 ~ 0.2.2-rc.1 (exact rc enumeration): declarative settings via Config .volatile() fields; for DSH 0.1.2-rc.1 ~ 0.1.5-rc.3 use the 0.17.x line]",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",