dsh-desktop-enhance 0.11.3 → 0.11.4
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/lib/client.js +11 -10
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -9587,13 +9587,14 @@ ABORT_ERR ETIMEDOUT ECONNREFUSED ECONNRESET EPIPE EADDRINUSE ENOSPC EACCES STORE
|
|
|
9587
9587
|
`body.dsh-remote-portrait header[class*="_header"] [class$="_headerActions"] button{height:24px;min-height:24px;font-size:11px;padding:0 6px}`,
|
|
9588
9588
|
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]){padding-top:0 !important}`,
|
|
9589
9589
|
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]) [class$="_titleRow"]{height:40px;min-height:40px;align-items:center;gap:4px}`,
|
|
9590
|
-
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]) [class$="_titleCluster"]{flex:1;min-width:0;flex-wrap:nowrap;gap:4px;align-items:center}`,
|
|
9590
|
+
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]) [class$="_titleCluster"]{flex:1;min-width:0;flex-wrap:nowrap;gap:4px;align-items:center;--title-cluster-fade:0px;mask-image:none}`,
|
|
9591
9591
|
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]) [class$="_crumbs"]{flex:1;min-width:0;max-width:100%}`,
|
|
9592
9592
|
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]) [class$="_headerActions"]{flex:none;margin-left:0;flex-wrap:nowrap;gap:0}`,
|
|
9593
9593
|
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]) [class$="_tabs"]{height:28px;box-sizing:border-box;margin-top:0}`,
|
|
9594
|
-
`body.dsh-remote-portrait
|
|
9595
|
-
`body.dsh-remote-portrait [data-desktop-enhance-mobile-header-
|
|
9596
|
-
`body.dsh-remote-portrait [data-desktop-enhance-mobile-header-count]
|
|
9594
|
+
`body.dsh-remote-portrait [data-subagent-action]:has(> button[data-desktop-enhance-mobile-header-action]){flex:none}`,
|
|
9595
|
+
`body.dsh-remote-portrait header:has([data-slot="conversation.session.header"]) button[data-desktop-enhance-mobile-header-action]{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;box-sizing:border-box;width:auto;height:40px;min-height:40px;padding:0 4px;gap:4px;border:0;background:transparent;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums}`,
|
|
9596
|
+
`body.dsh-remote-portrait [data-desktop-enhance-mobile-header-count]{display:inline-flex;flex:none;align-items:center;height:18px;line-height:18px;font-size:0 !important;white-space:nowrap;overflow-wrap:normal;word-break:normal;margin:0}`,
|
|
9597
|
+
`body.dsh-remote-portrait [data-desktop-enhance-mobile-header-count]::after{content:attr(data-desktop-enhance-mobile-header-count);font-size:12px;white-space:nowrap}`,
|
|
9597
9598
|
`body.dsh-remote-portrait [data-desktop-enhance-mobile-header-action] > svg{display:none}`,
|
|
9598
9599
|
`body.dsh-remote-portrait [data-desktop-enhance-mobile-header-action]::before{content:"";display:block;width:18px;height:18px;flex:none;background:currentColor;mask:var(--desktop-enhance-header-icon) center/contain no-repeat}`,
|
|
9599
9600
|
`body.dsh-remote-portrait [data-desktop-enhance-mobile-header-action="subagent"]{--desktop-enhance-header-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='5' height='5' rx='1.2'/%3E%3Crect x='16' y='3' width='5' height='5' rx='1.2'/%3E%3Crect x='16' y='16' width='5' height='5' rx='1.2'/%3E%3Cpath d='M8 5.5h8M10.5 5.5v10a3 3 0 0 0 3 3H16'/%3E%3C/svg%3E")}`,
|
|
@@ -9614,8 +9615,8 @@ ABORT_ERR ETIMEDOUT ECONNREFUSED ECONNRESET EPIPE EADDRINUSE ENOSPC EACCES STORE
|
|
|
9614
9615
|
`body.dsh-remote-portrait [data-phase="hero"] [data-composer-card] .dsh-codex-quota-popover{max-height:${HERO_OVERLAY_MAX_HEIGHT}}`,
|
|
9615
9616
|
"[class$=\"_composerSeat\"] [data-slot=\"conversation.composer.dock\"] [class$=\"_root\"]{font-size:10px;white-space:normal;word-break:break-word;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;line-height:13px;letter-spacing:-0.2px;padding-left:0;padding-right:0}",
|
|
9616
9617
|
"[class*=\"_bubble\"][role=\"tooltip\"]{display:none}",
|
|
9617
|
-
"[
|
|
9618
|
-
"[
|
|
9618
|
+
"[data-composer-seat] :is([data-plan-review-key],[data-question-key]){box-sizing:border-box;width:100%;max-width:100%;padding-left:12px;padding-right:12px;height:auto;max-height:calc(100dvh - 96px);align-items:flex-start;overflow-y:auto}",
|
|
9619
|
+
"[data-composer-seat] :is([data-plan-review-key],[data-question-key]) > section{max-width:none;width:100%}",
|
|
9619
9620
|
`body.dsh-remote-portrait [class$="_header"] [class$="_tabs"]{margin-top:2px;gap:18px;padding-left:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}`,
|
|
9620
9621
|
`body.dsh-remote-portrait [class*="_root"]:has([data-desktop-enhance-session-info][data-compact="true"][data-minimized="true"]) [class$="_header"] [class$="_tabs"]{max-width:calc(100% - 96px)}`,
|
|
9621
9622
|
`body.dsh-remote-portrait [class$="_header"] [class$="_tabs"]::-webkit-scrollbar{display:none}`,
|
|
@@ -9635,8 +9636,8 @@ ABORT_ERR ETIMEDOUT ECONNREFUSED ECONNRESET EPIPE EADDRINUSE ENOSPC EACCES STORE
|
|
|
9635
9636
|
const HEADER = ":is([data-slot=\"conversation.session.header.actions\"], [data-slot=\"conversation.session.header.lineage\"])";
|
|
9636
9637
|
const ACTION = "data-desktop-enhance-mobile-header-action";
|
|
9637
9638
|
const COUNT = "data-desktop-enhance-mobile-header-count";
|
|
9638
|
-
const subagentLabel = /^(?:\d+
|
|
9639
|
-
const jobsLabel = /^(?:\d+
|
|
9639
|
+
const subagentLabel = /^(?:\d+ 个子智能体|\d+ subagents?)$/;
|
|
9640
|
+
const jobsLabel = /^(?:\d+ 个后台任务|\d+ background jobs?)$/;
|
|
9640
9641
|
function mountMobileHeader() {
|
|
9641
9642
|
const marked = new Map();
|
|
9642
9643
|
function clear(button, span) {
|
|
@@ -9649,8 +9650,8 @@ ABORT_ERR ETIMEDOUT ECONNREFUSED ECONNRESET EPIPE EADDRINUSE ENOSPC EACCES STORE
|
|
|
9649
9650
|
const label = button.getAttribute("aria-label") ?? "";
|
|
9650
9651
|
const kind = subagentLabel.test(label) ? "subagent" : jobsLabel.test(label) ? "jobs" : null;
|
|
9651
9652
|
if (!kind) continue;
|
|
9652
|
-
if (kind === "subagent" && button.getAttribute("aria-haspopup") !== "
|
|
9653
|
-
const span = button.querySelector(kind === "subagent" ? ":scope >
|
|
9653
|
+
if (kind === "subagent" && button.getAttribute("aria-haspopup") !== "dialog") continue;
|
|
9654
|
+
const span = button.querySelector(kind === "subagent" ? ":scope > [data-subagent-count]" : ":scope > [data-job-count]");
|
|
9654
9655
|
const text = span?.textContent?.trim() ?? "";
|
|
9655
9656
|
if (!span || !(kind === "subagent" ? subagentLabel : jobsLabel).test(text)) continue;
|
|
9656
9657
|
const count = Number.parseInt(text, 10);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-desktop-enhance",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "DSH Desktop 界面增强:页内查找(Cmd+F)、轮次编号、上下文压缩行常显、建议、每步耗时、折叠文件夹状态计数、会话信息(含上下文注入 C1 视图)、工具管理、Skill 管理、插件上下文审计、已归档会话只读查看与侧栏安全删除、独立远程接入与手机体验,以及智能建议、会话能力和远程接入的持久诊断日志。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "./icon.svg",
|