@restregular/dsh-powerup 0.9.6 → 0.9.7
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 +7 -5
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
const promptCreateDraft = { workspaceId: null, title: '', text: '', scope: 'current' };
|
|
84
84
|
/** Fallback bucket when the hero cannot resolve an owning workspace yet. */
|
|
85
85
|
const UNSCOPED_WORKSPACE = '__unscoped__';
|
|
86
|
-
const VERSION = '0.9.
|
|
86
|
+
const VERSION = '0.9.7';
|
|
87
87
|
const MENU_GAP = 8;
|
|
88
88
|
const MENU_WIDTH = 248;
|
|
89
89
|
/** Reference scheme understood by the Host's `powerup_step_read` tool. */
|
|
@@ -2904,7 +2904,9 @@
|
|
|
2904
2904
|
name.textContent = promptLabel(prompt, t);
|
|
2905
2905
|
const preview = document.createElement('span');
|
|
2906
2906
|
preview.className = 'dsh-powerup-prompt-pop-preview';
|
|
2907
|
-
preview
|
|
2907
|
+
// No hard character cut: the CSS clamps the preview to two lines so
|
|
2908
|
+
// the available width decides how much text is shown.
|
|
2909
|
+
preview.textContent = (prompt.text || '').trim().replace(/\s+/gu, ' ');
|
|
2908
2910
|
main.append(name, preview);
|
|
2909
2911
|
main.addEventListener('click', (event) => {
|
|
2910
2912
|
event.preventDefault();
|
|
@@ -3260,7 +3262,7 @@
|
|
|
3260
3262
|
anchor,
|
|
3261
3263
|
t,
|
|
3262
3264
|
items: visible,
|
|
3263
|
-
placement: (node) => popoverPlacement(node,
|
|
3265
|
+
placement: (node) => popoverPlacement(node, 420, 420, { preferUp: compact }),
|
|
3264
3266
|
onPick: (prompt) => apply(prompt, false),
|
|
3265
3267
|
onSend: (prompt) => apply(prompt, true),
|
|
3266
3268
|
onCreate: () => setCreating(true),
|
|
@@ -3974,8 +3976,8 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
3974
3976
|
.dsh-powerup-prompt-pop-item{display:flex;align-items:center;gap:6px;width:100%;min-width:0;min-height:38px;padding:4px 5px 4px 9px;border:.5px solid transparent;border-radius:var(--dsw-radius-md,8px);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:inherit;text-align:left;transition:border-color .12s ease,background .12s ease}
|
|
3975
3977
|
.dsh-powerup-prompt-pop-item:hover{border-color:var(--dsw-alias-border-l2);background:var(--dsw-alias-interactive-bg-hover)}
|
|
3976
3978
|
.dsh-powerup-prompt-pop-main{flex:1 1 auto;display:flex;flex-direction:column;gap:1px;min-width:0;padding:3px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
|
|
3977
|
-
.dsh-powerup-prompt-pop-name{display:
|
|
3978
|
-
.dsh-powerup-prompt-pop-preview{display:
|
|
3979
|
+
.dsh-powerup-prompt-pop-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;font-size:12.5px;line-height:18px;overflow-wrap:anywhere}
|
|
3980
|
+
.dsh-powerup-prompt-pop-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;color:var(--dsw-alias-label-tertiary);font-size:10.5px;line-height:15px;overflow-wrap:anywhere}
|
|
3979
3981
|
.dsh-powerup-prompt-pop-send{flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:.5px solid var(--dsw-alias-border-l2);border-radius:7px;background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary);font:inherit;line-height:1;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}
|
|
3980
3982
|
.dsh-powerup-prompt-pop-send svg{width:14px;height:14px}
|
|
3981
3983
|
.dsh-powerup-prompt-pop-send:hover{border-color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-brand-primary)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restregular/dsh-powerup",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"description": "为 DeepSeek Harness 提供一组可选的小型增强:轨迹右键菜单与步骤引用、后台任务停止原因、插件一键安装、侧边栏图标网格、会话切换、定位当前会话、工作区提示词;所有功能均可在 Power-Up 页面独立开关。 · Opt-in upgrades for DeepSeek Harness: Trajectory context menu and step references, job stop reasons, one-click plugin install, an adaptive sidebar launcher, session switching, locating the current session, and workspace prompts — each toggled independently on the Power-Up page.",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"type": "module",
|