dsh-browser-cdp 1.7.10 → 1.7.11

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.
@@ -35,8 +35,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
35
35
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
36
 
37
37
  //#endregion
38
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/constants.js
39
- var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/constants.js": ((exports, module) => {
38
+ //#region node_modules/ws/lib/constants.js
39
+ var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/constants.js": ((exports, module) => {
40
40
  const BINARY_TYPES$2 = [
41
41
  "nodebuffer",
42
42
  "arraybuffer",
@@ -59,8 +59,8 @@ var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21
59
59
  }) });
60
60
 
61
61
  //#endregion
62
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/buffer-util.js
63
- var require_buffer_util = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/buffer-util.js": ((exports, module) => {
62
+ //#region node_modules/ws/lib/buffer-util.js
63
+ var require_buffer_util = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/buffer-util.js": ((exports, module) => {
64
64
  const { EMPTY_BUFFER: EMPTY_BUFFER$3 } = require_constants();
65
65
  const FastBuffer$2 = Buffer[Symbol.species];
66
66
  /**
@@ -160,8 +160,8 @@ var require_buffer_util = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.
160
160
  }) });
161
161
 
162
162
  //#endregion
163
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/limiter.js
164
- var require_limiter = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/limiter.js": ((exports, module) => {
163
+ //#region node_modules/ws/lib/limiter.js
164
+ var require_limiter = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/limiter.js": ((exports, module) => {
165
165
  const kDone = Symbol("kDone");
166
166
  const kRun = Symbol("kRun");
167
167
  /**
@@ -212,8 +212,8 @@ var require_limiter = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3
212
212
  }) });
213
213
 
214
214
  //#endregion
215
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/permessage-deflate.js
216
- var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/permessage-deflate.js": ((exports, module) => {
215
+ //#region node_modules/ws/lib/permessage-deflate.js
216
+ var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/permessage-deflate.js": ((exports, module) => {
217
217
  const zlib = __require("zlib");
218
218
  const bufferUtil = require_buffer_util();
219
219
  const Limiter = require_limiter();
@@ -546,8 +546,8 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "node_modules/.pnp
546
546
  }) });
547
547
 
548
548
  //#endregion
549
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/validation.js
550
- var require_validation = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/validation.js": ((exports, module) => {
549
+ //#region node_modules/ws/lib/validation.js
550
+ var require_validation = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/validation.js": ((exports, module) => {
551
551
  const { isUtf8 } = __require("buffer");
552
552
  const { hasBlob } = require_constants();
553
553
  const tokenChars$2 = [
@@ -743,8 +743,8 @@ var require_validation = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.2
743
743
  }) });
744
744
 
745
745
  //#endregion
746
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/receiver.js
747
- var require_receiver = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/receiver.js": ((exports, module) => {
746
+ //#region node_modules/ws/lib/receiver.js
747
+ var require_receiver = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/receiver.js": ((exports, module) => {
748
748
  const { Writable } = __require("stream");
749
749
  const PerMessageDeflate$4 = require_permessage_deflate();
750
750
  const { BINARY_TYPES: BINARY_TYPES$1, EMPTY_BUFFER: EMPTY_BUFFER$2, kStatusCode: kStatusCode$1, kWebSocket: kWebSocket$3 } = require_constants();
@@ -1207,8 +1207,8 @@ var require_receiver = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.
1207
1207
  }) });
1208
1208
 
1209
1209
  //#endregion
1210
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/sender.js
1211
- var require_sender = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/sender.js": ((exports, module) => {
1210
+ //#region node_modules/ws/lib/sender.js
1211
+ var require_sender = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/sender.js": ((exports, module) => {
1212
1212
  const { Duplex: Duplex$3 } = __require("stream");
1213
1213
  const { randomFillSync } = __require("crypto");
1214
1214
  const { types: { isUint8Array } } = __require("util");
@@ -1705,8 +1705,8 @@ var require_sender = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/
1705
1705
  }) });
1706
1706
 
1707
1707
  //#endregion
1708
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/event-target.js
1709
- var require_event_target = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/event-target.js": ((exports, module) => {
1708
+ //#region node_modules/ws/lib/event-target.js
1709
+ var require_event_target = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/event-target.js": ((exports, module) => {
1710
1710
  const { kForOnEventAttribute: kForOnEventAttribute$1, kListener: kListener$1 } = require_constants();
1711
1711
  const kCode = Symbol("kCode");
1712
1712
  const kData = Symbol("kData");
@@ -1925,8 +1925,8 @@ var require_event_target = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8
1925
1925
  }) });
1926
1926
 
1927
1927
  //#endregion
1928
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/extension.js
1929
- var require_extension = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/extension.js": ((exports, module) => {
1928
+ //#region node_modules/ws/lib/extension.js
1929
+ var require_extension = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/extension.js": ((exports, module) => {
1930
1930
  const { tokenChars: tokenChars$1 } = require_validation();
1931
1931
  /**
1932
1932
  * Adds an offer to the map of extension offers or a parameter to the map of
@@ -2069,8 +2069,8 @@ var require_extension = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21
2069
2069
  }) });
2070
2070
 
2071
2071
  //#endregion
2072
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/websocket.js
2073
- var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/websocket.js": ((exports, module) => {
2072
+ //#region node_modules/ws/lib/websocket.js
2073
+ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websocket.js": ((exports, module) => {
2074
2074
  const EventEmitter$1 = __require("events");
2075
2075
  const https = __require("https");
2076
2076
  const http$1 = __require("http");
@@ -2129,10 +2129,14 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21
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/.pnpm/ws@8.21
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/.pnpm/ws@8.21
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,
@@ -3059,8 +3064,8 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21
3059
3064
  }) });
3060
3065
 
3061
3066
  //#endregion
3062
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/stream.js
3063
- var require_stream = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/stream.js": ((exports, module) => {
3067
+ //#region node_modules/ws/lib/stream.js
3068
+ var require_stream = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/stream.js": ((exports, module) => {
3064
3069
  require_websocket();
3065
3070
  const { Duplex: Duplex$1 } = __require("stream");
3066
3071
  /**
@@ -3176,8 +3181,8 @@ var require_stream = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/
3176
3181
  }) });
3177
3182
 
3178
3183
  //#endregion
3179
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/subprotocol.js
3180
- var require_subprotocol = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/subprotocol.js": ((exports, module) => {
3184
+ //#region node_modules/ws/lib/subprotocol.js
3185
+ var require_subprotocol = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/subprotocol.js": ((exports, module) => {
3181
3186
  const { tokenChars } = require_validation();
3182
3187
  /**
3183
3188
  * Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.
@@ -3216,8 +3221,8 @@ var require_subprotocol = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.
3216
3221
  }) });
3217
3222
 
3218
3223
  //#endregion
3219
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/websocket-server.js
3220
- var require_websocket_server = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/websocket-server.js": ((exports, module) => {
3224
+ //#region node_modules/ws/lib/websocket-server.js
3225
+ var require_websocket_server = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websocket-server.js": ((exports, module) => {
3221
3226
  const EventEmitter = __require("events");
3222
3227
  const http = __require("http");
3223
3228
  const { Duplex } = __require("stream");
@@ -3603,7 +3608,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/
3603
3608
  }) });
3604
3609
 
3605
3610
  //#endregion
3606
- //#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/wrapper.mjs
3611
+ //#region node_modules/ws/wrapper.mjs
3607
3612
  var import_stream = /* @__PURE__ */ __toESM(require_stream(), 1);
3608
3613
  var import_extension = /* @__PURE__ */ __toESM(require_extension(), 1);
3609
3614
  var import_permessage_deflate = /* @__PURE__ */ __toESM(require_permessage_deflate(), 1);
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.7.10",
5
+ "version": "1.7.11",
6
6
  "manifestVersion": "0.15",
7
7
  "facets": {
8
8
  "host": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-browser-cdp",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
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-rc.1 ~ 0.2.1-rc.1 line (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",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "dsh": {
23
23
  "engines": {
24
- "dsh": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5"
24
+ "dsh": ">=0.1.7-rc.1 <0.3.0"
25
25
  },
26
26
  "bundle": {
27
27
  "patch": "./cordis.patch.yml"
@@ -42,7 +42,7 @@
42
42
  "0.2.1-rc.2": "compatible",
43
43
  "0.2.1-rc.3": "compatible",
44
44
  "0.2.1-rc.4": "compatible",
45
- "0.2.1-rc.5": "compatible"
45
+ "0.2.1-rc.5 || 0.2.2-rc.1": "compatible"
46
46
  }
47
47
  }
48
48
  },
@@ -56,12 +56,12 @@
56
56
  "@deepseek-ai/schemastery": "^3.18.4"
57
57
  },
58
58
  "peerDependencies": {
59
- "@deepseek-ai/dsh-client-locale": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5",
60
- "@deepseek-ai/dsh-client-store": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5",
61
- "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5",
62
- "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5",
63
- "@deepseek-ai/dsh-settings": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5",
64
- "@deepseek-ai/dsh-tools": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5",
59
+ "@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.1 <0.3.0",
60
+ "@deepseek-ai/dsh-client-store": ">=0.1.7-rc.1 <0.3.0",
61
+ "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.7-rc.1 <0.3.0",
62
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-rc.1 <0.3.0",
63
+ "@deepseek-ai/dsh-settings": ">=0.1.7-rc.1 <0.3.0",
64
+ "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.3.0",
65
65
  "react": "^18.2.0"
66
66
  },
67
67
  "peerDependenciesMeta": {
@@ -85,8 +85,19 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
+ "@deepseek-ai/cordis": "^4.1.0",
88
89
  "@deepseek-ai/cosmokit": "^1.8.5",
90
+ "@deepseek-ai/dsh-agent": "^0.2.1-rc.3",
91
+ "@deepseek-ai/dsh-llm": "^0.2.1-rc.3",
92
+ "@deepseek-ai/dsh-ptc-runtime": "^0.2.1-rc.3",
93
+ "@deepseek-ai/dsh-sandbox": "0.2.1-rc.3",
94
+ "@deepseek-ai/dsh-sandbox-policy": "^0.2.1-rc.3",
95
+ "@deepseek-ai/dsh-scope": "^0.2.1-rc.3",
96
+ "@deepseek-ai/dsh-session": "^0.2.1-rc.3",
97
+ "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.3",
89
98
  "@deepseek-ai/dsh-tools": "0.2.1-rc.3",
99
+ "@deepseek-ai/dsh-user-approval": "^0.2.1-rc.3",
100
+ "@deepseek-ai/dsh-working-directory": "^0.2.1-rc.3",
90
101
  "@types/node": "^22.20.1",
91
102
  "@types/react": "~18.3.31",
92
103
  "@types/ws": "^8.5.10",
@@ -94,12 +105,11 @@
94
105
  "tsdown": "^0.15.0",
95
106
  "typescript": "^5.9.0",
96
107
  "vitest": "^3.2.0",
97
- "ws": "^8.18.0",
98
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.3"
108
+ "ws": "^8.18.0"
99
109
  },
100
110
  "engines": {
101
111
  "node": ">=22",
102
- "dsh": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5"
112
+ "dsh": "0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1"
103
113
  },
104
114
  "license": "MIT",
105
115
  "repository": {