@restregular/dsh-powerup 0.8.12 → 0.8.13
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/client.js +45 -5
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -2877,9 +2877,11 @@ nav.dsh-powerup-launcher.dsh-powerup-launcher-wide>[data-powerup-grid]:hover [cl
|
|
|
2877
2877
|
.dsh-powerup-session-pop.is-open{opacity:1;transform:none}
|
|
2878
2878
|
.dsh-powerup-session-pop-head{flex:none;padding:10px 12px 8px;border-bottom:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-secondary);font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
|
|
2879
2879
|
.dsh-powerup-session-pop-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:6px}
|
|
2880
|
-
.dsh-powerup-session-pop-item{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;padding:7px 9px;border:0;border-radius:var(--dsw-radius-md,7px);background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:12.5px;text-align:left;cursor:pointer}
|
|
2881
|
-
.dsh-powerup-session-pop-item:hover{background:var(--dsw-alias-bg-layer-
|
|
2880
|
+
.dsh-powerup-session-pop-item{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;padding:7px 9px;border:0;border-radius:var(--dsw-radius-md,7px);background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:12.5px;text-align:left;cursor:pointer;transition:background .12s ease,color .12s ease}
|
|
2881
|
+
.dsh-powerup-session-pop-item:hover{background:var(--dsw-alias-interactive-bg-hover,var(--dsw-alias-bg-layer-3));color:var(--dsw-alias-label-primary)}
|
|
2882
2882
|
.dsh-powerup-session-pop-item[data-current]{background:var(--dsw-alias-bg-layer-2)}
|
|
2883
|
+
.dsh-powerup-session-pop-item[data-current]:hover{background:var(--dsw-alias-interactive-bg-hover,var(--dsw-alias-bg-layer-3))}
|
|
2884
|
+
.dsh-powerup-session-pop-item:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}
|
|
2883
2885
|
.dsh-powerup-session-pop-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--dsw-alias-state-success-primary)}
|
|
2884
2886
|
.dsh-powerup-session-pop-item[data-current] .dsh-powerup-session-pop-dot{background:var(--dsw-alias-brand-primary)}
|
|
2885
2887
|
.dsh-powerup-session-pop-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -2888,6 +2890,11 @@ nav.dsh-powerup-launcher.dsh-powerup-launcher-wide>[data-powerup-grid]:hover [cl
|
|
|
2888
2890
|
`;
|
|
2889
2891
|
|
|
2890
2892
|
const LOCATE_CSS = `
|
|
2893
|
+
/* The host caps the toolbar's action row at 60px (two 28px buttons plus the
|
|
2894
|
+
4px gap) and clips the overflow, so a third button would be invisible. The
|
|
2895
|
+
marker is only present while our button is mounted, and the host's
|
|
2896
|
+
"search expanded" class still collapses the row. */
|
|
2897
|
+
[data-sidebar-workspace-header] [data-powerup-locate-actions]:not([class*="headerActionsHidden"]){max-width:none}
|
|
2891
2898
|
[data-sidebar-workspace-header] .dsh-powerup-locate{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--dsw-radius-sm,6px);background:transparent;color:var(--dsw-alias-label-caption);cursor:pointer;transition:background .12s ease,color .12s ease}
|
|
2892
2899
|
[data-sidebar-workspace-header] .dsh-powerup-locate:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
2893
2900
|
[data-sidebar-workspace-header] .dsh-powerup-locate:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}
|
|
@@ -3444,6 +3451,20 @@ nav.dsh-powerup-launcher.dsh-powerup-launcher-wide>[data-powerup-grid]:hover [cl
|
|
|
3444
3451
|
reveal();
|
|
3445
3452
|
}
|
|
3446
3453
|
|
|
3454
|
+
/** The action row the button lives in, marked so CSS can widen it. */
|
|
3455
|
+
let actions = null;
|
|
3456
|
+
|
|
3457
|
+
function clearActions() {
|
|
3458
|
+
if (actions !== null) {
|
|
3459
|
+
try {
|
|
3460
|
+
actions.removeAttribute('data-powerup-locate-actions');
|
|
3461
|
+
} catch {
|
|
3462
|
+
/* A detached node is already clean. */
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
actions = null;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3447
3468
|
function ensureButton() {
|
|
3448
3469
|
const host = header();
|
|
3449
3470
|
if (host === null || !isEnabled()) {
|
|
@@ -3451,9 +3472,21 @@ nav.dsh-powerup-launcher.dsh-powerup-launcher-wide>[data-powerup-grid]:hover [cl
|
|
|
3451
3472
|
button.remove();
|
|
3452
3473
|
button = null;
|
|
3453
3474
|
}
|
|
3475
|
+
clearActions();
|
|
3476
|
+
return;
|
|
3477
|
+
}
|
|
3478
|
+
if (button !== null && button.isConnected === true) {
|
|
3479
|
+
// React can replace the row without dropping our button; re-mark it.
|
|
3480
|
+
const parent = button.parentElement;
|
|
3481
|
+
if (parent !== null && parent !== undefined
|
|
3482
|
+
&& typeof parent.setAttribute === 'function'
|
|
3483
|
+
&& typeof parent.hasAttribute === 'function'
|
|
3484
|
+
&& !parent.hasAttribute('data-powerup-locate-actions')) {
|
|
3485
|
+
parent.setAttribute('data-powerup-locate-actions', '');
|
|
3486
|
+
actions = parent;
|
|
3487
|
+
}
|
|
3454
3488
|
return;
|
|
3455
3489
|
}
|
|
3456
|
-
if (button !== null && button.isConnected === true) return;
|
|
3457
3490
|
button = document.createElement('button');
|
|
3458
3491
|
button.type = 'button';
|
|
3459
3492
|
button.className = 'dsh-powerup-locate';
|
|
@@ -3466,8 +3499,14 @@ nav.dsh-powerup-launcher.dsh-powerup-launcher-wide>[data-powerup-grid]:hover [cl
|
|
|
3466
3499
|
event.stopPropagation();
|
|
3467
3500
|
locate();
|
|
3468
3501
|
});
|
|
3469
|
-
const
|
|
3470
|
-
|
|
3502
|
+
const row = host.querySelector('[class*="headerActions"]') ?? host;
|
|
3503
|
+
// The host clips this row at 60px; the marker lets LOCATE_CSS widen it
|
|
3504
|
+
// so the third button is actually reachable.
|
|
3505
|
+
if (typeof row.setAttribute === 'function') {
|
|
3506
|
+
row.setAttribute('data-powerup-locate-actions', '');
|
|
3507
|
+
actions = row;
|
|
3508
|
+
}
|
|
3509
|
+
row.appendChild(button);
|
|
3471
3510
|
}
|
|
3472
3511
|
|
|
3473
3512
|
function sync() {
|
|
@@ -3491,6 +3530,7 @@ nav.dsh-powerup-launcher.dsh-powerup-launcher-wide>[data-powerup-grid]:hover [cl
|
|
|
3491
3530
|
observer = null;
|
|
3492
3531
|
if (button !== null) button.remove();
|
|
3493
3532
|
button = null;
|
|
3533
|
+
clearActions();
|
|
3494
3534
|
}
|
|
3495
3535
|
|
|
3496
3536
|
return { start, stop, sync, locate, sessionRow, collapsedWorkspaces };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restregular/dsh-powerup",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.13",
|
|
4
4
|
"description": "Power-Up — small, opt-in upgrades for DeepSeek Harness. Adds a right-click action menu to the Trajectory ledger, an optional stop reason in the session header's background jobs panel (appended to the injected completion notice), and an install control for third-party plugins from the Plugins page: read versions from the configured registries, install the version in the input through the Add plugin path (removing the old copy first), mark restart-needed installs, hand Power-Up's own install to the background, and optionally restart DSH. One-click install skips the enable and restart questions and can apply those actions automatically with configurable defaults. The ledger menu also copies a step reference (session id + step id) that the read-only powerup_step_read tool resolves back into the raw session data. · 为 DeepSeek Harness 提供小型增强:在轨迹页面右键记录即可复制、引用、查看详情或从该记录 Fork;右键「复制步骤引用」得到「会话 ID + 步骤 ID」,Agent 用只读工具 powerup_step_read 即可取回该步骤的完整原始数据;在会话顶部的后台任务面板手动停止任务时可填写停止原因,原因会附加到任务结束后的会话提示;并在插件页为第三方已安装插件提供安装按钮,从安装源读取版本,按输入框中的版本沿用「添加插件」流程安装(先卸载旧版),支持待重启标记、Power-Up 自身后台安装与可选重启;安装面板提供「一键安装」,按输入框版本安装并跳过启用/重启询问,默认自动启用并重启,可在 Power-Up 页面调整默认行为。 · 侧边栏启动器:把左侧边栏的面板按钮变成随宽度自适应的图标网格(图标在上、文字在下),支持拖拽排序与分组(拖到另一个图标中间即合并为分组,点击分组弹出浮层展示内部图标),可随时整体关闭;网格里自带「返回会话」「重启 DSH」「关闭 DSH」三个按钮,它们和「更多」一样可以拖进分组,重启/关闭沿用插件安装流程的确认对话框。 · 会话切换:把会话标题变成可点击,点击后弹出下拉列表,列出正在运行中的会话标题(带工作区名称前缀),点击即可切换到对应会话。 · 定位当前会话:工作区按钮栏新增按钮,把当前会话在工作区列表中展开并居中显示,自动展开折叠的工作区。 · 所有功能均可在 Power-Up 页面独立启用/禁用,弹窗统一为宿主原生样式。",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"type": "module",
|