dsh-desktop-enhance 0.3.7 → 0.3.9

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.
Files changed (2) hide show
  1. package/lib/client.js +6 -3
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -4555,7 +4555,7 @@ window.__ModuleLoader__.load({
4555
4555
  if (root === null || typeof root.querySelector !== "function") return null;
4556
4556
  const sessionId = root.getAttribute("data-conversation-session");
4557
4557
  if (sessionId === null || sessionId === "") return null;
4558
- if (root.querySelector("[data-chat-flow]") === null) return null;
4558
+ if (!(root.getAttribute("data-content-phase") === "hero") && root.querySelector("[data-chat-flow]") === null) return null;
4559
4559
  return {
4560
4560
  root,
4561
4561
  sessionId
@@ -4735,7 +4735,6 @@ window.__ModuleLoader__.load({
4735
4735
  activeSessionId = null;
4736
4736
  hostProjection = null;
4737
4737
  activePopover = null;
4738
- userMinimized = null;
4739
4738
  removePanel();
4740
4739
  }
4741
4740
  function ensureToolsCatalog(root, sessionId, force = false) {
@@ -5150,7 +5149,11 @@ window.__ModuleLoader__.load({
5150
5149
  childList: true,
5151
5150
  subtree: true,
5152
5151
  attributes: true,
5153
- attributeFilter: ["class"]
5152
+ attributeFilter: [
5153
+ "class",
5154
+ "data-conversation-session",
5155
+ "data-content-phase"
5156
+ ]
5154
5157
  });
5155
5158
  const onResize = () => {
5156
5159
  sync();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-desktop-enhance",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "DSH Desktop 界面增强:页内查找(Cmd+F)、轮次编号、上下文压缩行常显、建议、每步耗时、会话信息、工具管理、Skill 管理。",
5
5
 
6
6