dsh-browser-cdp 1.7.9 → 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);
@@ -6300,7 +6305,9 @@ const FULL = {
6300
6305
  /**
6301
6306
  * The capability projection per engine. `chrome` / `unknown` → full
6302
6307
  * capabilities (bit-for-bit today's behavior); `lightpanda` → the analysis
6303
- * (docs/plans/2026-10-04-lightpanda-backend-analysis.md §7) projection.
6308
+ * (docs/plans/2026-10-04-lightpanda-backend-analysis.md §7) projection;
6309
+ * `tabbit` → CLI-protocol limitations (no download events, no overlay pick,
6310
+ * no raw CDP screencast through the plugin's usual path).
6304
6311
  */
6305
6312
  function capabilitiesFor(engine) {
6306
6313
  if (engine === "lightpanda") return {
@@ -6313,6 +6320,16 @@ function capabilitiesFor(engine) {
6313
6320
  downloadEvents: false,
6314
6321
  browserClose: false
6315
6322
  };
6323
+ if (engine === "tabbit") return {
6324
+ engine: "tabbit",
6325
+ screencast: true,
6326
+ overlay: false,
6327
+ bindingCalled: false,
6328
+ imageFormat: "jpeg",
6329
+ loadEvent: true,
6330
+ downloadEvents: false,
6331
+ browserClose: false
6332
+ };
6316
6333
  return {
6317
6334
  ...FULL,
6318
6335
  engine
@@ -6331,7 +6348,10 @@ const BCDP_CDP_ENGINE = "BCDP_CDP_ENGINE";
6331
6348
  * conservatively break a Chrome endpoint.
6332
6349
  */
6333
6350
  function capabilitiesFromEnvValue(value) {
6334
- return capabilitiesFor(value !== void 0 && value.trim() === "lightpanda" ? "lightpanda" : "unknown");
6351
+ const v = (value ?? "").trim();
6352
+ if (v === "lightpanda") return capabilitiesFor("lightpanda");
6353
+ if (v === "tabbit") return capabilitiesFor("tabbit");
6354
+ return capabilitiesFor("unknown");
6335
6355
  }
6336
6356
 
6337
6357
  //#endregion
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.9",
5
+ "version": "1.7.11",
6
6
  "manifestVersion": "0.15",
7
7
  "facets": {
8
8
  "host": {
package/lib/client.js CHANGED
@@ -58,6 +58,8 @@ const MAX_LINKS = 32;
58
58
  const EGO_CLI_LABEL = "本机 ego CLI";
59
59
  /** Lightpanda managed-serve singleton default label — mirrors host `LP_LABEL`. */
60
60
  const LP_LABEL = "Lightpanda(受管)";
61
+ /** Tabbit CLI singleton default label — mirrors host `TABBIT_CLI_LABEL`. */
62
+ const TABBIT_CLI_LABEL = "Tabbit 浏览器";
61
63
  /** Fresh id, same shape as the host `newTargetId()` (uuid, `t-` fallback). */
62
64
  function newLinkId() {
63
65
  const cryptoObj = globalThis.crypto;
@@ -142,6 +144,29 @@ function hasLpLink(links) {
142
144
  return row.kind === "lightpanda";
143
145
  });
144
146
  }
147
+ /** Second tabbit-cli anywhere in the array would be silently dropped on read. */
148
+ function hasTabbitLink(links) {
149
+ return links.some(function(row) {
150
+ return row.kind === "tabbit-cli";
151
+ });
152
+ }
153
+ /** Full-field tabbit-cli row (`cliPath` '' = host auto-resolve chain). */
154
+ function buildTabbitRow(input) {
155
+ const cliPath = trimmed(input.cliPath);
156
+ return {
157
+ kind: "tabbit-cli",
158
+ id: newLinkId(),
159
+ label: trimmed(input.label) || cliPath || TABBIT_CLI_LABEL,
160
+ cliPath,
161
+ enabled: true,
162
+ note: "",
163
+ probeStatus: "unknown",
164
+ probeLatencyMs: 0,
165
+ probeError: "",
166
+ probeCode: "",
167
+ probeAt: 0
168
+ };
169
+ }
145
170
  function isFull(links) {
146
171
  return links.length >= MAX_LINKS;
147
172
  }
@@ -159,6 +184,10 @@ function addRow(links, row) {
159
184
  links,
160
185
  code: "lightpanda-already-exists"
161
186
  };
187
+ if (row.kind === "tabbit-cli" && hasTabbitLink(links)) return {
188
+ links,
189
+ code: "tabbit-cli-already-exists"
190
+ };
162
191
  if (links.length >= MAX_LINKS) return {
163
192
  links,
164
193
  code: "link-limit-reached"
@@ -584,6 +613,9 @@ var watchEn = {
584
613
  linksAddCli: "Add local ego CLI",
585
614
  linksAddLp: "Add Lightpanda (managed)",
586
615
  linksAddLpExists: "The Lightpanda link already exists — local-only, one per machine",
616
+ linksAddTabbit: "Add Tabbit CLI",
617
+ linksAddTabbitExists: "The Tabbit link already exists — local-only, one per machine",
618
+ linksTabbitPathHint: "Empty = auto-detect (%LOCALAPPDATA%\\Tabbit\\LocalAgent\\bin)",
587
619
  linksLpPathHint: "Empty = auto (PATH → ~/.local/bin; Windows runs it inside WSL2)",
588
620
  linksLpHeadlessHint: "Headless quick-trial engine — no manual fallback (login/captcha). Early in the order = quick trials use it; after the headed kinds (CDP / local Chrome / ego CLI) = backstop first.",
589
621
  linksLpRemoteWarn: "Activating a Lightpanda link under cdpMode=remote fails with mode-kind-mismatch",
@@ -680,6 +712,9 @@ var watchDict = {
680
712
  linksAddCli: "添加本机 ego CLI",
681
713
  linksAddLp: "添加 Lightpanda(受管)",
682
714
  linksAddLpExists: "Lightpanda 连接已存在——仅限本机,一台机器只允许一条",
715
+ linksAddTabbit: "添加 Tabbit CLI",
716
+ linksAddTabbitExists: "Tabbit 连接已存在——仅限本机,一台机器只允许一条",
717
+ linksTabbitPathHint: "留空 = 自动检测 (%LOCALAPPDATA%\\Tabbit\\LocalAgent\\bin)",
683
718
  linksLpPathHint: "留空 = 自动检测(PATH → ~/.local/bin;Windows 经 WSL2)",
684
719
  linksLpHeadlessHint: "无头快速试验引擎:无法人工兜底(登录/验证码)。排前面 = 快速场景优先用它;排在有头类型(CDP/本机 Chrome/ego CLI)后 = 兜底优先。",
685
720
  linksLpRemoteWarn: "cdpMode=remote 时激活 Lightpanda 行会报 mode-kind-mismatch",
@@ -2149,6 +2184,8 @@ function FamLinks(props) {
2149
2184
  var addCliPath = addCliPathState[0], setAddCliPath = addCliPathState[1];
2150
2185
  var addLpPathState = React.useState("");
2151
2186
  var addLpPath = addLpPathState[0], setAddLpPath = addLpPathState[1];
2187
+ var addTabbitPathState = React.useState("");
2188
+ var addTabbitPath = addTabbitPathState[0], setAddTabbitPath = addTabbitPathState[1];
2152
2189
  var btnStyle = {
2153
2190
  font: "inherit",
2154
2191
  fontSize: "12px",
@@ -2237,6 +2274,20 @@ function FamLinks(props) {
2237
2274
  setAddLpPath("");
2238
2275
  setErrText("");
2239
2276
  }
2277
+ function addTabbit() {
2278
+ var res = addRow(links, buildTabbitRow({
2279
+ label: "",
2280
+ cliPath: addTabbitPath
2281
+ }));
2282
+ if (res.code) {
2283
+ setErrText(res.code === "link-limit-reached" ? limitText() : wt("linksAddTabbitExists"));
2284
+ return;
2285
+ }
2286
+ writeLinks(res.links);
2287
+ if (activeId === "") commitField(scope, "activeTargetId", res.links[res.links.length - 1].id);
2288
+ setAddTabbitPath("");
2289
+ setErrText("");
2290
+ }
2240
2291
  function removeOne(row) {
2241
2292
  var res = removeRow(links, row.id);
2242
2293
  writeLinks(res.links);
@@ -2321,6 +2372,7 @@ function FamLinks(props) {
2321
2372
  } }, wt("linksEmpty")) : links.map(function(row, idx) {
2322
2373
  var isCli = row.kind === "ego-cli";
2323
2374
  var isLp = row.kind === "lightpanda";
2375
+ var isTabbit = row.kind === "tabbit-cli";
2324
2376
  var isActive = row.id !== void 0 && row.id === activeId;
2325
2377
  var probeBadge = null;
2326
2378
  if (row.probeStatus === "ok" || row.probeStatus === "error") probeBadge = h("span", {
@@ -2351,7 +2403,7 @@ function FamLinks(props) {
2351
2403
  onToggle: function(next) {
2352
2404
  writeLinks(updateRow(links, row.id, { enabled: next }));
2353
2405
  }
2354
- }), h("span", { style: badgeStyle }, isCli ? "CLI" : isLp ? "LP·无头" : "CDP"), h(FamRowInput, {
2406
+ }), h("span", { style: badgeStyle }, isCli ? "CLI" : isLp ? "LP·无头" : isTabbit ? "TABBIT" : "CDP"), h(FamRowInput, {
2355
2407
  v: row.label || "",
2356
2408
  writable,
2357
2409
  placeholder: wt("linksLabel"),
@@ -2377,11 +2429,11 @@ function FamLinks(props) {
2377
2429
  gap: "8px",
2378
2430
  flexWrap: "wrap"
2379
2431
  } }, h(FamRowInput, {
2380
- v: (isCli ? row.cliPath : isLp ? row.servePath : row.endpoint) || "",
2432
+ v: (isCli || isTabbit ? row.cliPath : isLp ? row.servePath : row.endpoint) || "",
2381
2433
  writable,
2382
- placeholder: isCli ? wt("linksCliPathHint") : isLp ? wt("linksLpPathHint") : wt("linksEndpointHint"),
2434
+ placeholder: isCli ? wt("linksCliPathHint") : isTabbit ? wt("linksTabbitPathHint") : isLp ? wt("linksLpPathHint") : wt("linksEndpointHint"),
2383
2435
  onCommit: function(v) {
2384
- if (isCli) {
2436
+ if (isCli || isTabbit) {
2385
2437
  writeLinks(updateRow(links, row.id, { cliPath: v }));
2386
2438
  return;
2387
2439
  }
@@ -2395,7 +2447,7 @@ function FamLinks(props) {
2395
2447
  }
2396
2448
  writeLinks(updateRow(links, row.id, { endpoint: v }));
2397
2449
  }
2398
- }), !isCli && !isLp ? h("button", {
2450
+ }), !isCli && !isLp && !isTabbit ? h("button", {
2399
2451
  type: "button",
2400
2452
  disabled: !writable || probingId === row.id,
2401
2453
  style: btnStyle,
@@ -2426,11 +2478,11 @@ function FamLinks(props) {
2426
2478
  onClick: function() {
2427
2479
  removeOne(row);
2428
2480
  }
2429
- }, "✕"), (isCli || isLp) && cdpMode === "remote" ? h("span", { style: {
2481
+ }, "✕"), (isCli || isLp || isTabbit) && cdpMode === "remote" ? h("span", { style: {
2430
2482
  fontSize: "11px",
2431
2483
  color: "#ff9f0a",
2432
2484
  flex: "1 1 100%"
2433
- } }, wt(isCli ? "linksCliRemoteWarn" : "linksLpRemoteWarn")) : null, isLp ? h("span", { style: {
2485
+ } }, wt(isCli || isTabbit ? "linksCliRemoteWarn" : "linksLpRemoteWarn")) : null, isLp ? h("span", { style: {
2434
2486
  fontSize: "11px",
2435
2487
  color: "var(--dsw-alias-label-tertiary, rgba(127,127,127,.7))",
2436
2488
  flex: "1 1 100%"
@@ -2526,7 +2578,33 @@ function FamLinks(props) {
2526
2578
  title: hasLpLink(links) ? wt("linksAddLpExists") : isFull(links) ? limitText() : void 0,
2527
2579
  style: btnStyle,
2528
2580
  onClick: addLp
2529
- }, wt("linksAddLp"))), errText ? h("div", { style: {
2581
+ }, wt("linksAddLp"))), h("div", { style: {
2582
+ display: "flex",
2583
+ gap: "8px",
2584
+ alignItems: "center",
2585
+ flexWrap: "wrap"
2586
+ } }, h("input", {
2587
+ type: "text",
2588
+ value: addTabbitPath,
2589
+ disabled: !writable || isFull(links) || hasTabbitLink(links),
2590
+ placeholder: wt("linksTabbitPathHint"),
2591
+ style: Object.assign({
2592
+ flex: "1 1 160px",
2593
+ minWidth: 0
2594
+ }, inputStyle),
2595
+ onChange: function(e) {
2596
+ setAddTabbitPath(e.target.value);
2597
+ },
2598
+ onKeyDown: function(e) {
2599
+ if (e.key === "Enter") addTabbit();
2600
+ }
2601
+ }), h("button", {
2602
+ type: "button",
2603
+ disabled: !writable || isFull(links) || hasTabbitLink(links),
2604
+ title: hasTabbitLink(links) ? wt("linksAddTabbitExists") : isFull(links) ? limitText() : void 0,
2605
+ style: btnStyle,
2606
+ onClick: addTabbit
2607
+ }, wt("linksAddTabbit"))), errText ? h("div", { style: {
2530
2608
  fontSize: "11px",
2531
2609
  color: "#ff453a"
2532
2610
  } }, errText) : null));