dsh-browser-cdp 0.17.4 → 0.18.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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # dsh-browser-cdp — 看得见的 Agent 浏览器(CDP 接入)
2
2
 
3
3
  <p align="center">
4
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.1.7--rc.1-blue" alt="DSH >= 0.1.7-rc.1">
4
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.0--rc.1-blue" alt="DSH >= 0.2.0-rc.1">
5
5
  <img src="https://img.shields.io/badge/DSH--better--sidebar-%3E%3D0.12.2(optional)-red" alt="dsh-better-sidebar >= 0.12.2 (optional)">
6
6
  <img src="https://img.shields.io/badge/Node-%3E%3D22-brightgreen?logo=node.js&logoColor=white" alt="Node >= 22">
7
7
  </p>
@@ -12,11 +12,11 @@
12
12
 
13
13
  | 依赖 | 最低版本 | 推荐版本 | 说明 |
14
14
  |---|---|---|---|
15
- | **DSH** (DeepSeek Harness) | `0.1.7-rc.1` | `≥ 0.1.7-rc.1` | 0.1.7 起设置面为声明式(Config `.volatile()` 字段自动生成设置表单),`.volatile()` 在更早的宿主上不存在。peer 依赖同步锁定 `>=0.1.7-rc.1 <0.2.0-0`。DSH `0.1.2-rc.1` ~ `0.1.6` 请使用 0.16.x 版本线(含旧的 `settings.plugin.item` 设置卡),0.1.0-rc.x / 0.1.1-rc.x 请使用 v0.8.0 及更早版本 |
15
+ | **DSH** (DeepSeek Harness) | `0.2.0-rc.1` | `≥ 0.2.0-rc.1 <0.2.1-0` | 0.2.0 线:peer 依赖同步锁定 `>=0.2.0-rc.1 <0.2.1-0`;宿主对插件 API 向后兼容(0.2.0 的 composer/`forkSession` 为签名扩展,插件仅作调用方,免改)。声明式设置面自 0.1.7 引入(Config `.volatile()` 字段自动生成设置表单),0.2.0 延续该形态。DSH `0.1.2-rc.1` ~ `0.1.7` 请使用 **0.17.x** 版本线,0.1.0-rc.x / 0.1.1-rc.x 请使用 v0.8.0 及更早版本 |
16
16
  | **dsh-better-sidebar** | `0.12.2`(可选) | `≥ 0.17.1` | 未安装时自动回退浮动观察球;`< 0.12.2` 可运行但外部链接拦截(`urlTarget`)静默降级 |
17
17
  | **Node.js** | `22` | — | harness 环境自带 |
18
18
 
19
- **DSH 全版本适配说明**:本版本(v0.17.0 起)面向 DSH `0.1.7-rc.1+` 的声明式设置面:插件不再注册任何设置节(`ctx.settings` 注册类 API 已被宿主删除),改为在 Config schema 上以 `.volatile()` 标记可配置字段,由宿主设置页自动生成表单;volatile 字段变更通过 `loader/volatile-update` 事件热生效,无需重载插件。核心宿主 API(`defineTool`、`ctx.tools.register`、`ctx.subprocess.spawn`、`ctx.webServer.register`、`ctx.inject`、`ModuleLoader` CJS factory、`cordis.patch.yml`)沿用 0.1.2 以来形态。DSH `0.1.2-rc.1` ~ `0.1.6` 请使用 0.16.x 版本线。
19
+ **DSH 全版本适配说明**:本版本(**v0.18.0 起,0.2.0 线**)面向 DSH `0.2.0-rc.1+`:相对 0.1.7 线(v0.17.x)**零代码改动**,纯依赖/元数据换代——0.2.0 宿主对插件 API 向后兼容,本插件经 `ctx.get('conversation').input` 门面投递选区(不调 `submit()`、不 override),不在 0.2.0 变更影响面内。声明式设置面自 0.1.7 引入:插件不再注册任何设置节(`ctx.settings` 注册类 API 已被宿主删除),改为在 Config schema 上以 `.volatile()` 标记可配置字段,由宿主设置页自动生成表单;volatile 字段变更通过 `loader/volatile-update` 事件热生效,无需重载插件。核心宿主 API(`defineTool`、`ctx.tools.register`、`ctx.subprocess.spawn`、`ctx.webServer.register`、`ctx.inject`、`ModuleLoader` CJS factory、`cordis.patch.yml`)沿用 0.1.2 以来形态。DSH `0.1.2-rc.1` ~ `0.1.7` 请使用 **0.17.x** 版本线。
20
20
 
21
21
  **dsh-better-sidebar 适配说明**:本插件通过 `ctx.betterSidebar` 服务(try-catch 防御性获取)注册侧边栏 Tab 并监听外部链接。关键 API 引入版本:
22
22
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  **登录态导入(v0.8.5 新增)**:工具 `bcdp_login_import`,把你日常 Chrome/Edge/Brave 里的登录 cookie **按域名**复制进 agent 浏览器(真实二进制无头启动 + CDP 透传读取,兼容 Chrome 127+ 的 App-Bound Encryption,不做离线解密;源浏览器运行中可选择优雅关闭后导入,窗口下次启动自动恢复)。cookie 值不出现在任何日志与输出中;导入前自动备份源 cookie 库,异常清空自动还原。配合默认的磁盘持久化 Profile,导入的登录态跨重启永久保留。
36
36
 
37
- 一款 **CDP 浏览器代理**:把 [CitroLabs/ego-lite](https://github.com/CitroLabs/ego-lite)(给 AI Agent 用的 Chromium)作为内置运行时接入 DeepSeek Harness,以 **33 个结构化 `bcdp_*` 工具**驱动浏览器,并配一套**实时观察前端口**——agent 后台操作网页时,你能像看直播一样看到它正在浏览的每个页面,还能直接操作它。
37
+ 一款 **CDP 浏览器代理**:把 [CitroLabs/ego-lite](https://github.com/CitroLabs/ego-lite)(给 AI Agent 用的 Chromium)作为内置运行时接入 DeepSeek Harness,以 **38 个结构化 `bcdp_*` 工具**驱动浏览器,并配一套**实时观察前端口**——agent 后台操作网页时,你能像看直播一样看到它正在浏览的每个页面,还能直接操作它。
38
38
 
39
39
  **一点私藏的独特之处(self-observation)**:agent 用的就是这一个 Chromium——连它操作 **DSH 自身**(管理会话、任务看板、调设置)时,观察窗也实时显示、你能随时接手。不只是"看得见 agent 在网页上干活",连 agent 操作 DSH 界面本身都是全程可见、可掌控的。
40
40
 
@@ -48,28 +48,30 @@
48
48
 
49
49
  | 能力 | 本插件(本仓库) | 同类插件(Da1dr1em/dsh-ego-browser) |
50
50
  |---|---|---|
51
- | 结构化工具数 | **32 个**,职责单一、可确定性调用 | **3 个**(`run`/`help`/`status`) |
51
+ | 结构化工具数 | **38 个**,职责单一、可确定性调用 | **3 个**(`run`/`help`/`status`) |
52
52
  | 实时观察窗(CDP JPEG / FFmpeg H.264 双后端 + 标签条 + 历史抽屉) | ✅ 有 | ❌ 无 |
53
53
  | 监控窗鼠标**直接操作**真实浏览器(点击/拖拽/滚动回传 CDP) | ✅ 有 | ❌ 无 |
54
+ | **观察窗点选元素 → 捕获并引用进对话输入框**(`[CDP-PICKS]` 结构化块,人工指认目标) | ✅ 有 | ❌ 无 |
54
55
  | worker 单实例守卫 + 崩溃/重复自愈 | ✅ 有 | ❌ 无 |
55
- | 下载捕获 `ego_download` / 人机验证检测 `ego_captcha`/`ego_page_info` | ✅ 有 | ❌ 无 |
56
+ | 下载捕获 `bcdp_download` / 人机验证检测 `bcdp_captcha`/`bcdp_page_info` | ✅ 有 | ❌ 无 |
56
57
  | 平台自适应(Linux/macOS/Windows 自动探测 + root/无头/`--no-sandbox` 兜底) | ✅ 全平台 | 仅 Windows 预览宿主,需手动配 |
57
- | 登录态落盘持久化 `ego_auth_flush` | ✅ 有 | ⚠️ 仅文档级说明 |
58
+ | 登录态落盘持久化 `bcdp_auth_flush` | ✅ 有 | ⚠️ 仅文档级说明 |
58
59
 
59
- **关键差异两条:**
60
+ **关键差异三条:**
60
61
  - **看得到**:别家是"跑完告诉你结果"的黑盒;我们实时推流,你**看着 agent 操作**,卡在验证码/走岔立刻发现。
61
62
  - **控得住**:别家只读;我们监控窗**直接驱动**同一个 agent 浏览器,需要时你亲手接管(缩放/拖拽/点击),不必打断 agent 重来。
63
+ - **指得准**:你在观察窗里**点选**页面元素,插件捕获其 `backendNodeId`/`tag`/`id` 与语义描述,以 `[CDP-PICKS]` 结构化块并入对话输入框草稿(同页多元素自动合并编号)——agent 拿到的是精确目标,不用猜"你说的按钮是哪个"。
62
64
 
63
- > 以上对比基于公开可见的可核实事实:本仓库代码(`bin/cdp-cast-worker.mjs` 实时推流 + CDP 输入回传、`lib/index.js` 32 个注册工具、`lib/cast-server.js` host 桥接)与同类插件的源码/README。此文档不含对任何他人的贬低——我们只陈述自己多实现并验证了哪些能力。
65
+ > 以上对比基于公开可见的可核实事实:本仓库代码(`bin/cdp-cast-worker.mjs` 实时推流 + CDP 输入回传、`lib/index.js` 38 个注册工具、`lib/cast-server.js` host 桥接、`lib/client.js` 的 `deliverPickToConversation` 点选引用)与同类插件的源码/README(其 `src/tools.ts` 仅注册 `ego_browser_run` / `ego_browser_help` / `ego_browser_status`)。此文档不含对任何他人的贬低——我们只陈述自己多实现并验证了哪些能力。
64
66
 
65
67
  **相对 [ego-lite](https://github.com/CitroLabs/ego-lite) 本体,我们多做了这些(都可对照本仓库代码核实):**
66
68
 
67
69
  | 能力 | 说明(对应代码) |
68
70
  |---|---|
69
- | **观察窗前端口** | ego-lite 本体是无头 CLI(只有 heredoc 脚本 + 文本输出);我们在其上加了 **SSE 实时推流 + 标签条 + 历史抽屉 + 监控窗鼠标直操**(`bin/cdp-cast-worker.mjs`、`lib/cast-server.js`、`lib/client.js`),让"看"和"控"成为一等能力 |
71
+ | **观察窗前端口** | ego-lite 本体是无头 CLI(只有 heredoc 脚本 + 文本输出);我们在其上加了 **SSE 实时推流 + 标签条 + 历史抽屉 + 监控窗鼠标直操 + 点选元素引用进输入框**(`bin/cdp-cast-worker.mjs`、`lib/cast-server.js`、`lib/client.js` 的 `createPickControl`/`deliverPickToConversation`),让"看"、"控"、"指"成为一等能力 |
70
72
  | **开箱即用 + 跨平台自足** | `resolveEgoEnv` 自动探测 Chrome/Edge/Brave,内置 `--no-sandbox` wrapper,root / Docker / 无显示器免配置(`lib/index.js`);不必像官方那样先装一个 GUI 宿主 |
71
73
  | **健壮性层** | 冷启动自动重试(只重试 CDP 瞬态,不吞真错)、worker 单实例守卫 + 崩溃自动重启、插件卸载 fire-and-forget 不阻塞宿主退出、前端帧缓存上限(`withWarmupRetry` / `makeEnsureWorker` / `frameCache`) |
72
- | **运维型工具** | `ego_doctor`(环境体检)、`ego_captcha`(人机验证探测)、`ego_auth_flush`(登录落盘)、`bcdp_login_import`(系统浏览器登录态导入)、`ego_http`(浏览器上下文请求)等,是原生 CLI helper 没有的一层 |
74
+ | **运维型工具** | `bcdp_doctor`(环境体检)、`bcdp_captcha`(人机验证探测)、`bcdp_auth_flush`(登录落盘)、`bcdp_login_import`(系统浏览器登录态导入)、`bcdp_http`(浏览器上下文请求)等,是原生 CLI helper 没有的一层 |
73
75
  | **self-observation** | agent 操作 DSH 自身界面时同样实时可见、可接手 |
74
76
 
75
77
  > 我们不声称媲美官方 macOS App 的内核级快照或原生多窗口体验;本仓库解决的是"把同一套浏览器能力带进 DSH + Linux/WSL + 看得见"这件事。
@@ -166,24 +168,26 @@ dshx list # 应显示:[on] dsh-
166
168
 
167
169
  `bcdp_doctor` 会报告当前序列类型计数、CLI 实际解析到的路径与形态,以及(若同机装了上游 `dsh-ego-browser`)一条共存提示。
168
170
 
169
- ## 工具清单(33 个,前缀 `bcdp_`,完整索引见 `bcdp_help`)
171
+ ## 工具清单(38 个,前缀 `bcdp_`,完整索引见 `bcdp_help`)
170
172
 
171
173
  | 类别 | 工具 |
172
174
  |---|---|
173
- | 任务空间 | `ego_space_open` `ego_space_close` `ego_status` |
174
- | 页面读取 | `ego_snapshot`(语义树) `ego_page_info` `ego_read_element` |
175
- | 导航/等待 | `ego_navigate`(复用 tab) `ego_wait` `ego_wait_for_selector` `ego_wait_for_url` `ego_wait_for_response` |
176
- | 交互 | `ego_click` `ego_fill` `ego_hover` `ego_drag` `ego_select` `ego_check` `ego_key` `ego_scroll` |
177
- | 执行/调试 | `ego_js`(页面求值) `ego_cdp`(原始 CDP) `ego_cli`(任意 heredoc) `ego_script`(多步脚本) |
178
- | 输出 | `ego_screenshot` `ego_download` `ego_upload` |
179
- | 会话/安全 | `ego_auth_flush`(登录落盘) `ego_captcha` `ego_dialog` |
180
- | 元工具 | `ego_help` `ego_doctor` `ego_http` |
175
+ | 任务空间 | `bcdp_space_open` `bcdp_space_close` `bcdp_status` |
176
+ | 页面读取 | `bcdp_snapshot`(语义树) `bcdp_page_info` `bcdp_read_element` |
177
+ | 导航/等待 | `bcdp_navigate`(复用 tab) `bcdp_wait` `bcdp_wait_for_selector` `bcdp_wait_for_url` `bcdp_wait_for_response` |
178
+ | 交互 | `bcdp_click` `bcdp_fill` `bcdp_hover` `bcdp_drag` `bcdp_select` `bcdp_check` `bcdp_key` `bcdp_scroll` |
179
+ | 执行/调试 | `bcdp_js`(页面求值) `bcdp_cdp`(原始 CDP) `bcdp_cli`(任意 heredoc) `bcdp_script`(多步脚本) |
180
+ | 输出 | `bcdp_screenshot` `bcdp_download` `bcdp_upload` |
181
+ | 会话/安全 | `bcdp_auth_flush`(登录落盘) `bcdp_login_import`(跨浏览器登录态导入) `bcdp_captcha` `bcdp_dialog` |
182
+ | 元工具 | `bcdp_help` `bcdp_doctor` `bcdp_http` |
183
+ | 评审(JEV/Laya,外接判定服务可选) | `bcdp_jev_status` `bcdp_jev_frame` `bcdp_jev_ask` `bcdp_jev_run` `bcdp_jev_attempt` |
181
184
 
182
185
  ## 观察窗怎么用
183
186
 
184
187
  右下角 **🌐 常驻小球** → 点开:
185
188
 
186
189
  - **主画面**:agent 当前页面实况;点击/拖动/滚轮直接操作页面,Ctrl+滚轮缩放视图、Ctrl+拖动平移,双击复位。点击画面后可直接键盘输入,支持中文 IME、粘贴、Tab/Enter/方向键及 Ctrl/Cmd 快捷键。
190
+ - **选择元素**(点选引用):点一下工具条进入点选模式,再点实时画面里的任意元素——插件捕获其 `backendNodeId`/`tag`/`id` 与语义描述,以 `[CDP-PICKS]` 结构化块并入对话输入框草稿;同一页面的多次点选自动合并进同一块并依次编号,agent 按编号精确取用。浮动观察球与侧边栏 Tab 均可用。
187
191
  - **标签页条**:顶部横排,点选切换,`×` 关闭。
188
192
  - **历史抽屉**(🕘):按时间回看访问轨迹。
189
193
  - 操作时下方网址行就地显示提示,2 秒后恢复。
@@ -245,7 +249,7 @@ pnpm test # vitest 单元测试
245
249
  pnpm run build # tsdown 三 bundle:lib/index.js + lib/client.js + bin/cdp-cast-worker.mjs
246
250
  ```
247
251
 
248
- > 直接改 `src/`(`src/index.ts` 工具层、`src/client/index.ts` 前端、`src/worker/cdp-cast-worker.ts` worker)。新工具在 `registerActionTools` 里按 `t({...})` 加,并在 `ego_help` 索引(`src/help.ts`)补一条,跑 `pnpm typecheck && pnpm test && pnpm run build`。`lib/` 与 `bin/cdp-cast-worker.mjs` 是构建产物(预构建入库),不要手改。
252
+ > 直接改 `src/`(`src/index.ts` 工具层、`src/client/index.ts` 前端、`src/worker/cdp-cast-worker.ts` worker)。新工具在 `registerActionTools` 里按 `t({...})` 加,并在 `bcdp_help` 索引(`src/help.ts`)补一条,跑 `pnpm typecheck && pnpm test && pnpm run build`。`lib/` 与 `bin/cdp-cast-worker.mjs` 是构建产物(预构建入库),不要手改。
249
253
 
250
254
  `node_modules/` 仅含指向 DSH checkout 的符号链接(编译期类型解析);运行时由 harness 解析 `@deepseek-ai/dsh-tools`。
251
255
 
@@ -2129,10 +2129,14 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websoc
2129
2129
  this._bufferedAmount = 0;
2130
2130
  this._isServer = false;
2131
2131
  this._redirects = 0;
2132
- if (protocols === void 0) protocols = [];
2132
+ if (protocols === void 0) if (!options || options.protocols === void 0) protocols = [];
2133
+ else if (Array.isArray(options.protocols)) protocols = options.protocols;
2134
+ else protocols = [options.protocols];
2133
2135
  else if (!Array.isArray(protocols)) if (typeof protocols === "object" && protocols !== null) {
2134
2136
  options = protocols;
2135
- protocols = [];
2137
+ if (options.protocols === void 0) protocols = [];
2138
+ else if (Array.isArray(options.protocols)) protocols = options.protocols;
2139
+ else protocols = [options.protocols];
2136
2140
  } else protocols = [protocols];
2137
2141
  initAsClient(this, address, protocols, options);
2138
2142
  } else {
@@ -2321,12 +2325,12 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websoc
2321
2325
  if (this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted)) this._socket.end();
2322
2326
  return;
2323
2327
  }
2324
- this._readyState = WebSocket$3.CLOSING;
2325
2328
  this._sender.close(code, data, !this._isServer, (err) => {
2326
2329
  if (err) return;
2327
2330
  this._closeFrameSent = true;
2328
2331
  if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) this._socket.end();
2329
2332
  });
2333
+ this._readyState = WebSocket$3.CLOSING;
2330
2334
  setCloseTimer(this);
2331
2335
  }
2332
2336
  /**
@@ -2609,6 +2613,7 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websoc
2609
2613
  socketPath: void 0,
2610
2614
  hostname: void 0,
2611
2615
  protocol: void 0,
2616
+ protocols: void 0,
2612
2617
  timeout: void 0,
2613
2618
  method: "GET",
2614
2619
  host: void 0,
@@ -517,6 +517,67 @@ async function viewportInfo() {
517
517
  }
518
518
  }
519
519
 
520
+ /** The quality ladder never descends past this; the overrun is reported, not hidden. */
521
+ const JPEG_QUALITY_FLOOR = 24
522
+ /** Ladder step between capture attempts. */
523
+ const JPEG_QUALITY_STEP = 12
524
+
525
+ /**
526
+ * One Page.captureScreenshot round trip: full content size (beyond the
527
+ * viewport), geometrically downscaled when `scale.maxWidth` is narrower than
528
+ * the page. Returns raw bytes for the budget loop to measure.
529
+ */
530
+ async function screenshotOnce(format, quality, scale) {
531
+ const params = { format, captureBeyondViewport: true }
532
+ if (format === 'jpeg' && quality !== null) params.quality = quality
533
+ try {
534
+ const metrics = await call('Page.getLayoutMetrics', {})
535
+ const content = metrics?.cssContentSize || metrics?.contentSize
536
+ const width = Number(content?.width) || 0
537
+ const height = Number(content?.height) || 0
538
+ if (width > 0 && height > 0) {
539
+ const maxWidth = Number(scale?.maxWidth) || 0
540
+ const downscale = maxWidth > 0 && width > maxWidth ? maxWidth / width : 1
541
+ params.clip = { x: 0, y: 0, width, height, scale: downscale }
542
+ }
543
+ } catch { /* no metrics → viewport-only capture; better than failing the shot */ }
544
+ const shot = await call('Page.captureScreenshot', params, undefined, 30000)
545
+ return Buffer.from(String(shot?.data || ''), 'base64')
546
+ }
547
+
548
+ /**
549
+ * Screenshot under a byte budget (阶段 10 frame contract): a JPEG quality
550
+ * ladder that steps down from the requested quality until the shot fits or
551
+ * the floor is reached — `overBudget: true` reports the miss instead of
552
+ * hiding it. PNG and unbounded JPEG are single-attempt (`quality: null`,
553
+ * `overBudget: false`) because they have no knob to turn.
554
+ */
555
+ async function captureWithinBudget(options) {
556
+ const format = options.format === 'png' ? 'png' : 'jpeg'
557
+ const maxBytes = Number(options.maxBytes) || 0
558
+ if (format === 'png' || maxBytes <= 0) {
559
+ const data = await screenshotOnce(format, null, options.scale)
560
+ return { data: data.toString('base64'), bytes: data.length, quality: null, overBudget: false, attempts: 1 }
561
+ }
562
+ let quality = Number(options.quality) || 72
563
+ let attempts = 0
564
+ let best = null
565
+ for (;;) {
566
+ attempts++
567
+ const data = await screenshotOnce(format, quality, options.scale)
568
+ best = { data: data.toString('base64'), bytes: data.length, quality, attempts }
569
+ if (data.length <= maxBytes || quality <= JPEG_QUALITY_FLOOR) break
570
+ quality = Math.max(JPEG_QUALITY_FLOOR, quality - JPEG_QUALITY_STEP)
571
+ }
572
+ return {
573
+ data: best.data,
574
+ bytes: best.bytes,
575
+ quality: best.quality,
576
+ overBudget: best.bytes > maxBytes,
577
+ attempts: best.attempts,
578
+ }
579
+ }
580
+
520
581
  async function handle(method, params) {
521
582
  switch (method) {
522
583
  case 'hello':
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": "0.17.0",
5
+ "version": "0.18.0",
6
6
  "manifestVersion": "0.15",
7
7
  "facets": {
8
8
  "host": {
package/package.json CHANGED
@@ -1,99 +1,99 @@
1
- {
2
- "name": "dsh-browser-cdp",
3
- "version": "0.17.4",
4
- "description": "dsh-browser-cdp: DSH browser plugin — attach to a running Chrome/Edge over CDP (no bundled browser needed); structured browser-automation tools (30+ bcdp_*) that drive the vendored ego runtime through ctx.subprocess, plus a realtime watch panel (live SSE screencast + direct mouse interaction + download capture + human-verification notice). Web shell: floating watch panel without dsh-better-sidebar, sidebar tab with it. Headless/TUI hosts: tools-only. [DSH 0.1.7+ line: declarative settings via Config .volatile() fields; for DSH 0.1.2-rc.1 ~ 0.1.6 use the 0.16.x line]",
5
- "type": "module",
6
- "main": "./lib/index.js",
7
- "exports": {
8
- ".": "./lib/index.js",
9
- "./client": "./lib/client.js",
10
- "./dsh-plugin.json": "./dsh-plugin.json",
11
- "./package.json": "./package.json"
12
- },
13
- "files": [
14
- "lib/",
15
- "bin/",
16
- "runtime/",
17
- "cordis.patch.yml",
18
- "dsh-plugin.json",
19
- "THIRD_PARTY_NOTICES.md",
20
- "!**/*.map"
21
- ],
22
- "dsh": {
23
- "engines": {
24
- "dsh": ">=0.1.7-rc.1 <0.1.8-0"
25
- },
26
- "bundle": {
27
- "patch": "./cordis.patch.yml"
28
- },
29
- "client": {
30
- "platform": "web",
31
- "inject": []
32
- }
33
- },
34
- "scripts": {
35
- "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.client.json",
36
- "test": "vitest run",
37
- "build": "tsdown -c tsdown.config.ts"
38
- },
39
- "dependencies": {
40
- "@deepseek-ai/schemastery": "^3.18.4"
41
- },
42
- "peerDependencies": {
43
- "@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.1 <0.1.8-0",
44
- "@deepseek-ai/dsh-client-store": ">=0.1.7-rc.1 <0.1.8-0",
45
- "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.7-rc.1 <0.1.8-0",
46
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-rc.1 <0.1.8-0",
47
- "@deepseek-ai/dsh-settings": ">=0.1.7-rc.1 <0.1.8-0",
48
- "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.1.8-0",
49
- "react": "^18.2.0"
50
- },
51
- "peerDependenciesMeta": {
52
- "@deepseek-ai/dsh-client-locale": {
53
- "optional": true
54
- },
55
- "@deepseek-ai/dsh-client-store": {
56
- "optional": true
57
- },
58
- "@deepseek-ai/dsh-client-ui-settings-plugins": {
59
- "optional": true
60
- },
61
- "@deepseek-ai/dsh-client-ui-slots": {
62
- "optional": true
63
- },
64
- "@deepseek-ai/dsh-settings": {
65
- "optional": true
66
- },
67
- "@deepseek-ai/dsh-tools": {
68
- "optional": true
69
- },
70
- "react": {
71
- "optional": true
72
- }
73
- },
74
- "devDependencies": {
75
- "@deepseek-ai/cosmokit": "^1.8.5",
76
- "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.1.8-0",
77
- "@types/node": "^22.20.1",
78
- "@types/react": "~18.3.31",
79
- "@types/ws": "^8.5.10",
80
- "jsdom": "^26.0.0",
81
- "tsdown": "^0.15.0",
82
- "typescript": "^5.9.0",
83
- "vitest": "^3.2.0",
84
- "ws": "^8.18.0",
85
- "@deepseek-ai/dsh-sandbox": "^0.1.7-rc.1"
86
- },
87
- "engines": {
88
- "node": ">=22",
89
- "dsh": ">=0.1.7-rc.1 <0.1.8-0"
90
- },
91
- "license": "MIT",
92
- "repository": {
93
- "type": "git",
94
- "url": "git+https://github.com/drscrewdriver/dsh-browser-cdp.git"
95
- },
96
- "publishConfig": {
97
- "tag": "dsh-0.1.7"
98
- }
99
- }
1
+ {
2
+ "name": "dsh-browser-cdp",
3
+ "version": "0.18.0",
4
+ "description": "dsh-browser-cdp: DSH browser plugin — attach to a running Chrome/Edge over CDP (no bundled browser needed); structured browser-automation tools (30+ bcdp_*) that drive the vendored ego runtime through ctx.subprocess, plus a realtime watch panel (live SSE screencast + direct mouse interaction + download capture + human-verification notice). Web shell: floating watch panel without dsh-better-sidebar, sidebar tab with it. Headless/TUI hosts: tools-only. [DSH 0.2.0-rc.1+ line: declarative settings via Config .volatile() fields; for DSH 0.1.2-rc.1 ~ 0.1.7 use the 0.17.x line]",
5
+ "type": "module",
6
+ "main": "./lib/index.js",
7
+ "exports": {
8
+ ".": "./lib/index.js",
9
+ "./client": "./lib/client.js",
10
+ "./dsh-plugin.json": "./dsh-plugin.json",
11
+ "./package.json": "./package.json"
12
+ },
13
+ "files": [
14
+ "lib/",
15
+ "bin/",
16
+ "runtime/",
17
+ "cordis.patch.yml",
18
+ "dsh-plugin.json",
19
+ "THIRD_PARTY_NOTICES.md",
20
+ "!**/*.map"
21
+ ],
22
+ "dsh": {
23
+ "engines": {
24
+ "dsh": ">=0.2.0-rc.1 <0.2.1-0"
25
+ },
26
+ "bundle": {
27
+ "patch": "./cordis.patch.yml"
28
+ },
29
+ "client": {
30
+ "platform": "web",
31
+ "inject": []
32
+ }
33
+ },
34
+ "scripts": {
35
+ "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.client.json",
36
+ "test": "vitest run",
37
+ "build": "tsdown -c tsdown.config.ts"
38
+ },
39
+ "dependencies": {
40
+ "@deepseek-ai/schemastery": "^3.18.4"
41
+ },
42
+ "peerDependencies": {
43
+ "@deepseek-ai/dsh-client-locale": ">=0.2.0-rc.1 <0.2.1-0",
44
+ "@deepseek-ai/dsh-client-store": ">=0.2.0-rc.1 <0.2.1-0",
45
+ "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.2.0-rc.1 <0.2.1-0",
46
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.1 <0.2.1-0",
47
+ "@deepseek-ai/dsh-settings": ">=0.2.0-rc.1 <0.2.1-0",
48
+ "@deepseek-ai/dsh-tools": ">=0.2.0-rc.1 <0.2.1-0",
49
+ "react": "^18.2.0"
50
+ },
51
+ "peerDependenciesMeta": {
52
+ "@deepseek-ai/dsh-client-locale": {
53
+ "optional": true
54
+ },
55
+ "@deepseek-ai/dsh-client-store": {
56
+ "optional": true
57
+ },
58
+ "@deepseek-ai/dsh-client-ui-settings-plugins": {
59
+ "optional": true
60
+ },
61
+ "@deepseek-ai/dsh-client-ui-slots": {
62
+ "optional": true
63
+ },
64
+ "@deepseek-ai/dsh-settings": {
65
+ "optional": true
66
+ },
67
+ "@deepseek-ai/dsh-tools": {
68
+ "optional": true
69
+ },
70
+ "react": {
71
+ "optional": true
72
+ }
73
+ },
74
+ "devDependencies": {
75
+ "@deepseek-ai/cosmokit": "^1.8.5",
76
+ "@deepseek-ai/dsh-tools": ">=0.2.0-rc.1 <0.2.1-0",
77
+ "@types/node": "^22.20.1",
78
+ "@types/react": "~18.3.31",
79
+ "@types/ws": "^8.5.10",
80
+ "jsdom": "^26.0.0",
81
+ "tsdown": "^0.15.0",
82
+ "typescript": "^5.9.0",
83
+ "vitest": "^3.2.0",
84
+ "ws": "^8.18.0",
85
+ "@deepseek-ai/dsh-sandbox": ">=0.2.0-rc.1 <0.2.1-0"
86
+ },
87
+ "engines": {
88
+ "node": ">=22",
89
+ "dsh": ">=0.2.0-rc.1 <0.2.1-0"
90
+ },
91
+ "license": "MIT",
92
+ "repository": {
93
+ "type": "git",
94
+ "url": "git+https://github.com/drscrewdriver/dsh-browser-cdp.git"
95
+ },
96
+ "publishConfig": {
97
+ "tag": "dsh-0.1.7"
98
+ }
99
+ }