dsh-desktop-enhance 0.3.7 → 0.3.8

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 -2
  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
@@ -5150,7 +5150,11 @@ window.__ModuleLoader__.load({
5150
5150
  childList: true,
5151
5151
  subtree: true,
5152
5152
  attributes: true,
5153
- attributeFilter: ["class"]
5153
+ attributeFilter: [
5154
+ "class",
5155
+ "data-conversation-session",
5156
+ "data-content-phase"
5157
+ ]
5154
5158
  });
5155
5159
  const onResize = () => {
5156
5160
  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.8",
4
4
  "description": "DSH Desktop 界面增强:页内查找(Cmd+F)、轮次编号、上下文压缩行常显、建议、每步耗时、会话信息、工具管理、Skill 管理。",
5
5
 
6
6