dsh-browser-cdp 1.9.6 → 1.9.7
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 +13 -0
- package/dsh-plugin.json +1 -1
- package/lib/client.js +29 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 1.9.7 (2026-11-10)
|
|
2
|
+
|
|
3
|
+
**窄宽度下登录/验证横幅不再被挤成一列字。**
|
|
4
|
+
|
|
5
|
+
- **根因**:横幅是单行 flex,右侧 `note`(“登录态由该浏览器自身保存”)写了 `flex: none; white-space: nowrap`,不收缩;窄侧栏下它把主文案的可用宽压到 ~1 字,就变成竖排一列。
|
|
6
|
+
- **修法(两处横幅同步)**:
|
|
7
|
+
- 容器 `flex-wrap: wrap; row-gap` → 放不下时按钮/note 换行,而不是挤压正文;
|
|
8
|
+
- 正文 `flex: 1 1 11~12em; min-width: 0; overflow-wrap: anywhere`;
|
|
9
|
+
- `note` 改 `flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis`(超长就省略);
|
|
10
|
+
- 横幅设为 `container-type: inline-size`,`@container (max-width: 260px)` 时直接隐藏 `note` 与 captcha 的 kind 胶囊。
|
|
11
|
+
- **文案缩短**:`loginSelfPersist` 改为“登录态由该浏览器自身保存” / “Saved by the browser profile itself.”。
|
|
12
|
+
- **测试**:1021 passed / 13 skipped(纯样式改动)。
|
|
13
|
+
|
|
1
14
|
## 1.9.6 (2026-11-10)
|
|
2
15
|
|
|
3
16
|
**修掉两次捕获之间的画面缺口(1s 缓冲重播导致的重渲染回退)。**
|
package/dsh-plugin.json
CHANGED
package/lib/client.js
CHANGED
|
@@ -598,7 +598,7 @@ var watchEn = {
|
|
|
598
598
|
whereLocal: "managed Chrome window",
|
|
599
599
|
whereGeneric: "agent browser window",
|
|
600
600
|
loginHeadless: "The active target is Lightpanda (headless) — there is no window to sign in or verify in. Switch to a headed target (CDP endpoint / local Chrome / ego CLI / Tabbit).",
|
|
601
|
-
loginSelfPersist: "
|
|
601
|
+
loginSelfPersist: "Saved by the browser profile itself.",
|
|
602
602
|
captchaDismiss: "Dismiss",
|
|
603
603
|
hintReset: "Reset · scroll to pan · Ctrl+scroll to zoom · double-click to reset",
|
|
604
604
|
hintPan: "Ctrl+scroll to zoom · Ctrl+drag to pan · double-click to reset",
|
|
@@ -730,7 +730,7 @@ var watchDict = {
|
|
|
730
730
|
whereLocal: "本机 Chrome 窗口(受管启动)",
|
|
731
731
|
whereGeneric: "agent 浏览器窗口",
|
|
732
732
|
loginHeadless: "当前激活的是 Lightpanda(无头引擎),没有可登录/验证的窗口;请切换到有头目标(CDP 端点 / 本机 Chrome / ego CLI / Tabbit)。",
|
|
733
|
-
loginSelfPersist: "
|
|
733
|
+
loginSelfPersist: "登录态由该浏览器自身保存",
|
|
734
734
|
captchaDismiss: "关闭提示",
|
|
735
735
|
hintReset: "已复位 · 滚轮滚动页面 · Ctrl+滚轮缩放 · 双击复位",
|
|
736
736
|
hintPan: "Ctrl+滚轮缩放 · Ctrl+拖动平移 · 双击复位",
|
|
@@ -1258,15 +1258,20 @@ const PANEL_CSS = `
|
|
|
1258
1258
|
|
|
1259
1259
|
/* ---- login guide strip (top of the panel body) ---- */
|
|
1260
1260
|
#dsh-ego-login { display:none; align-items:center; gap:8px; margin:0 14px 9px; padding:7px 10px;
|
|
1261
|
-
border-radius:9px; border:1px solid rgba(255,214,10,.28); background: rgba(255,214,10,.09);
|
|
1261
|
+
border-radius:9px; border:1px solid rgba(255,214,10,.28); background: rgba(255,214,10,.09);
|
|
1262
|
+
/* Narrow panel: let the action row fall to its own line instead of squeezing
|
|
1263
|
+
the sentence into a one-character column. */
|
|
1264
|
+
flex-wrap: wrap; row-gap:6px; container-type: inline-size; }
|
|
1262
1265
|
#dsh-ego-login.show { display:flex; }
|
|
1263
|
-
#dsh-ego-login .dsh-ego-login-txt { flex:1; min-width:0; font-size:11px; line-height:1.45; color:#f5f5f7;
|
|
1266
|
+
#dsh-ego-login .dsh-ego-login-txt { flex:1 1 12em; min-width:0; font-size:11px; line-height:1.45; color:#f5f5f7;
|
|
1267
|
+
overflow-wrap: anywhere; }
|
|
1264
1268
|
#dsh-ego-login .dsh-ego-login-txt b { color:#ffd60a; }
|
|
1265
1269
|
#dsh-ego-login .dsh-ego-login-btn { flex:none; background:#0a84ff; color:#fff; border:none; border-radius:8px;
|
|
1266
1270
|
font-size:11px; padding:4px 10px; cursor:pointer; white-space:nowrap; transition: background .15s ease; }
|
|
1267
1271
|
#dsh-ego-login .dsh-ego-login-btn:hover { background:#338cff; }
|
|
1268
1272
|
#dsh-ego-login .dsh-ego-login-btn.saving { opacity:.55; pointer-events:none; }
|
|
1269
|
-
#dsh-ego-login .dsh-ego-login-note { flex:
|
|
1273
|
+
#dsh-ego-login .dsh-ego-login-note { flex:0 1 auto; min-width:0; max-width:100%; font-size:10.5px; color:#6e6e73;
|
|
1274
|
+
white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
1270
1275
|
/* dismiss (×) on guide strips so the user can close them and reclaim the space */
|
|
1271
1276
|
.dsh-ego-dismiss { flex:none; width:18px; height:18px; line-height:1; border-radius:50%; border:none;
|
|
1272
1277
|
background: rgba(255,255,255,.12); color:inherit; font-size:13px; cursor:pointer; opacity:.75;
|
|
@@ -1277,9 +1282,14 @@ const PANEL_CSS = `
|
|
|
1277
1282
|
|
|
1278
1283
|
/* ---- human-verification (CAPTCHA) reminder strip ---- */
|
|
1279
1284
|
#dsh-ego-captcha { display:none; align-items:center; gap:8px; margin:0 14px 9px; padding:8px 11px;
|
|
1280
|
-
border-radius:9px; border:1px solid rgba(255,69,58,.4); background: rgba(255,69,58,.13); color:#ffe1de;
|
|
1285
|
+
border-radius:9px; border:1px solid rgba(255,69,58,.4); background: rgba(255,69,58,.13); color:#ffe1de;
|
|
1286
|
+
flex-wrap: wrap; row-gap:6px; container-type: inline-size; }
|
|
1287
|
+
@container (max-width: 260px) {
|
|
1288
|
+
#dsh-ego-login .dsh-ego-login-note, #dsh-ego-captcha .dsh-ego-captcha-kind { display:none; }
|
|
1289
|
+
}
|
|
1281
1290
|
#dsh-ego-captcha.show { display:flex; }
|
|
1282
|
-
#dsh-ego-captcha .dsh-ego-captcha-txt { flex:1; min-width:0; font-size:11.5px; line-height:1.5;
|
|
1291
|
+
#dsh-ego-captcha .dsh-ego-captcha-txt { flex:1 1 12em; min-width:0; font-size:11.5px; line-height:1.5;
|
|
1292
|
+
overflow-wrap: anywhere; }
|
|
1283
1293
|
#dsh-ego-captcha .dsh-ego-captcha-txt b { color:#ff6961; }
|
|
1284
1294
|
#dsh-ego-captcha .dsh-ego-captcha-kind { flex:none; font-size:10px; padding:2px 8px; border-radius:999px;
|
|
1285
1295
|
background: rgba(255,255,255,.12); color:#ffd8d5; text-transform:uppercase; letter-spacing:.4px; }
|
|
@@ -4204,6 +4214,14 @@ var TAB_CSS = `
|
|
|
4204
4214
|
.dsh-ego-side-login, .dsh-ego-side-captcha {
|
|
4205
4215
|
display: flex; align-items: center; gap: 7px; margin: 0 10px 7px; padding: 6px 9px;
|
|
4206
4216
|
border-radius: 8px; font-size: 11px; line-height: 1.4;
|
|
4217
|
+
/* Narrow sidebar: wrap instead of squeezing the sentence to one character. */
|
|
4218
|
+
flex-wrap: wrap; row-gap: 5px;
|
|
4219
|
+
/* The strip is a query container so the secondary bits can step aside when the
|
|
4220
|
+
sidebar gets too narrow for them (see @container below). */
|
|
4221
|
+
container-type: inline-size;
|
|
4222
|
+
}
|
|
4223
|
+
@container (max-width: 260px) {
|
|
4224
|
+
.dsh-ego-side-login-note, .dsh-ego-side-captcha-kind { display: none; }
|
|
4207
4225
|
}
|
|
4208
4226
|
.dsh-ego-side-login {
|
|
4209
4227
|
border: 1px solid rgba(255,214,10,.3); background: rgba(255,214,10,.1);
|
|
@@ -4211,7 +4229,7 @@ var TAB_CSS = `
|
|
|
4211
4229
|
.dsh-ego-side-captcha {
|
|
4212
4230
|
border: 1px solid rgba(255,69,58,.4); background: rgba(255,69,58,.13);
|
|
4213
4231
|
}
|
|
4214
|
-
.dsh-ego-side-login .dsh-ego-side-login-txt { flex: 1; min-width: 0; }
|
|
4232
|
+
.dsh-ego-side-login .dsh-ego-side-login-txt { flex: 1 1 11em; min-width: 0; overflow-wrap: anywhere; }
|
|
4215
4233
|
.dsh-ego-side-login .dsh-ego-side-login-txt b { color: #ffd60a; }
|
|
4216
4234
|
.dsh-ego-side-login-btn {
|
|
4217
4235
|
flex: none; background: #0a84ff; color: #fff; border: none; border-radius: 7px;
|
|
@@ -4220,8 +4238,9 @@ var TAB_CSS = `
|
|
|
4220
4238
|
}
|
|
4221
4239
|
.dsh-ego-side-login-btn:hover { background: #338cff; }
|
|
4222
4240
|
.dsh-ego-side-login-btn.saving { opacity: .55; pointer-events: none; }
|
|
4223
|
-
.dsh-ego-side-login-note { flex:
|
|
4224
|
-
|
|
4241
|
+
.dsh-ego-side-login-note { flex: 0 1 auto; min-width: 0; max-width: 100%; font-size: 10px; opacity: .6;
|
|
4242
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
4243
|
+
.dsh-ego-side-captcha-txt { flex: 1 1 11em; min-width: 0; overflow-wrap: anywhere; }
|
|
4225
4244
|
.dsh-ego-side-captcha-txt b { color: #ff6961; }
|
|
4226
4245
|
.dsh-ego-side-captcha-kind {
|
|
4227
4246
|
flex: none; font-size: 9.5px; padding: 2px 7px; border-radius: 999px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-browser-cdp",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.7",
|
|
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",
|