@linxin666/dsh-client-ui-browser-view 0.4.14 → 0.4.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/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # node scripts/verify-docs.mjs --write <dir>
5
- README.md: c36310fc8838ff5d6421e5c1e1d437b61bc13df4
6
- README.zh.md: 4b4daa790ee6047b4173776cde36598c10f2651e
5
+ README.md: d8996bcd1fb7dd16b00592b909fc9806c353a70e
6
+ README.zh.md: a0ef21137f0ab8e7afd799cfac7c412083f2e05c
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  English | [中文](README.zh.md)
4
4
 
5
5
  <p align="center">
6
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.3-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
6
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
7
7
  &nbsp;
8
8
  <img src="https://img.shields.io/badge/license-BSD--3--Clause-blue?style=flat-square" alt="License">
9
9
  </p>
@@ -84,7 +84,7 @@ Sign in to the sites the agent should see inside that profile once; the plugin d
84
84
  - **Your sign-ins stay in your browser**: the plugin reads pages, not the cookie jar; nothing is copied out of the attached profile into the plugin, the isolated profile or disk.
85
85
  - **Every DSH session sees every tab**: while CDP mode is on, every session on this host can enumerate, read, navigate, click and type in every tab of the attached browser, including tabs opened after it attached. The mode grants that to the host, not to one session.
86
86
  - **Headless by default**: in isolated mode nothing pops up on the desktop; the tab is the only view.
87
- - **Process lifetime**: a Chromium the plugin launched is killed when the plugin disposes; disposing or changing configuration only detaches from an external browser and closes neither the browser nor any of its tabs.
87
+ - **Process lifetime**: a Chromium the plugin launched is killed when the plugin disposes; disposing or changing configuration only detaches from an external browser and closes neither the browser nor any of its tabs. A session whose CDP socket has closed is dropped on its next call and detached the same way — it never closes an external browser or its tabs — then reconnected to the configured endpoint; a reconnect that fails is reported as the connection error, and the configured source is never swapped for another one.
88
88
  - **Failure is an error, not a downgrade**: an endpoint that does not answer fails the tool call with the connection error, and the plugin never falls back to the isolated browser, so the panel cannot show a browser other than the configured one.
89
89
  - **Token handling**: the launch token is minted per navigation, held in memory, and never written to disk; the retry only happens on a loopback target whose document is DSH's own challenge, so no other local service is ever handed the token.
90
90
 
@@ -93,7 +93,7 @@ Sign in to the sites the agent should see inside that profile once; the plugin d
93
93
  - The tab is a **view**. Input comes from the agent through the tools; it does not forward your mouse or keyboard.
94
94
  - CDP mode lists every tab the browser has, including tabs that have nothing to do with this workspace; the panel does not filter or hide them.
95
95
  - Chrome 136 and later ignore `--remote-debugging-port` for the default data directory, so the default Chrome profile cannot be attached this way: use a profile explicitly started with a non-default `--user-data-dir` ([Changes to remote debugging switches](https://developer.chrome.com/blog/remote-debugging-port)).
96
- - A browser that was launched without the debug port, or that has since exited, produces a connection error on the tool call; the plugin starts nothing in its place.
96
+ - A browser that was launched without the debug port, or that has since exited, produces a connection error on the tool call. The retry on the next call reconnects only to the configured endpoint; the plugin never starts a real browser in its place.
97
97
  - The tab lives inside the right sidebar, so it needs that column; a layout that hides the column hides the tab.
98
98
  - Frames are produced when the page changes, so a static page holds the last frame instead of streaming duplicates.
99
99
  - Switching chips keeps the body mounted (`keepMounted`), so the socket survives; the frame still waits for the next change.
package/README.zh.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [English](README.md) | 中文
4
4
 
5
5
  <p align="center">
6
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.3-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
6
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
7
7
  &nbsp;
8
8
  <img src="https://img.shields.io/badge/license-BSD--3--Clause-blue?style=flat-square" alt="License">
9
9
  </p>
@@ -84,7 +84,7 @@ agent 工具调用 ──► 宿主半区 ──► CDP ──► 它自己的 C
84
84
  - **登录态留在你自己的浏览器里**:插件读的是页面,不是 cookie 罐;被接管 profile 里的任何东西都不会被复制进插件、隔离 profile 或磁盘。
85
85
  - **每个 DSH 会话都能看到每个标签页**:接管模式开着的时候,本机每个会话都能枚举、读取、导航、点击与输入被接管浏览器的每个标签页,包括接管之后新开的那些。这份权力是给这台主机的,不是给某一个会话的。
86
86
  - **默认无头**:隔离模式下桌面上不会弹出窗口,标签页是唯一的可见视图。
87
- - **进程寿命**:插件自己拉起的 Chromium 在插件卸载时被杀掉;插件卸载或配置变更只从外部浏览器分离,不关闭浏览器,也不关闭它的任何标签页。
87
+ - **进程寿命**:插件自己拉起的 Chromium 在插件卸载时被杀掉;插件卸载或配置变更只从外部浏览器分离,不关闭浏览器,也不关闭它的任何标签页。CDP socket 已关闭的会话在下一次调用时被丢弃、按同样方式分离——绝不关闭外部浏览器或其标签页——再重新连接到所配置的端点;重连失败按连接错误上报,所配置的来源绝不会被换成另一个。
88
88
  - **失败是报错,不是降级**:端点没有应答时工具调用以连接错误失败,插件绝不回退到隔离浏览器,因此面板不会显示出所配置之外的那个浏览器。
89
89
  - **令牌处理**:启动令牌每次导航现取、只在内存里,从不落盘;补票只发生在 loopback 目标且文档确实是 DSH 自己的鉴权页时,因此令牌不会被交给别的本地服务。
90
90
 
@@ -93,7 +93,7 @@ agent 工具调用 ──► 宿主半区 ──► CDP ──► 它自己的 C
93
93
  - 标签页只是**视图**。输入来自 agent 的工具调用,不转发你的鼠标与键盘。
94
94
  - 接管模式列出浏览器现有的每一个标签页,包括与当前工作区毫无关系的那些;面板不过滤也不隐藏它们。
95
95
  - Chrome 136 及以后对默认数据目录忽略 `--remote-debugging-port`,因此默认 Chrome profile 无法这样接管:要使用显式以非默认 `--user-data-dir` 启动的 profile([Changes to remote debugging switches](https://developer.chrome.com/blog/remote-debugging-port))。
96
- - 没有用调试端口启动的浏览器,或已经退出的浏览器,会在工具调用上报连接错误;插件不会替它启动任何东西。
96
+ - 没有用调试端口启动的浏览器,或已经退出的浏览器,会在工具调用上报连接错误。下一次调用的重试只重新连接所配置的端点;插件绝不替它启动真实浏览器。
97
97
  - 标签页住在右侧栏里,因此需要那一栏存在;布局把栏收起来时它也一起不可见。
98
98
  - 帧在页面变化时才产生,静态页面停留在最后一帧,而不是重复推流。
99
99
  - 切换 chip 时内容保持挂载(`keepMounted`),socket 不会断;画面仍等下一次变化。
package/lib/client.js CHANGED
@@ -2578,9 +2578,9 @@ window.__ModuleLoader__.load({
2578
2578
  }
2579
2579
  };
2580
2580
  if (typeof ctx.on === "function") try {
2581
- ctx.on("slots/changed", () => {
2581
+ ctx.on("slots/changed", (() => {
2582
2582
  reconcile();
2583
- });
2583
+ }));
2584
2584
  } catch {}
2585
2585
  reconcile();
2586
2586
  }