@restregular/dsh-powerup 0.19.14 → 0.19.15
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 +15 -17
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
const requirementCreateDraft = { workspaceId: null, title: '', text: '', scope: 'current' };
|
|
99
99
|
/** Fallback bucket when the hero cannot resolve an owning workspace yet. */
|
|
100
100
|
const UNSCOPED_WORKSPACE = '__unscoped__';
|
|
101
|
-
const VERSION = '0.19.
|
|
101
|
+
const VERSION = '0.19.15';
|
|
102
102
|
const MENU_GAP = 8;
|
|
103
103
|
const MENU_WIDTH = 248;
|
|
104
104
|
/** Reference scheme understood by the Host's `powerup_step_read` tool. */
|
|
@@ -4259,7 +4259,7 @@ nav.dsh-powerup-launcher.dsh-powerup-launcher-wide>[data-powerup-grid]:hover [cl
|
|
|
4259
4259
|
.dsh-powerup-card-body{margin-top:12px}
|
|
4260
4260
|
.dsh-powerup-card-how{margin:0 0 0;padding:10px 12px;border-radius:var(--dsw-radius-md,8px);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
|
|
4261
4261
|
.dsh-powerup-card-detail{margin-top:12px;padding-top:4px}
|
|
4262
|
-
.dsh-powerup-card-foot{display:flex;align-items:center;gap:8px;margin-top:12px}
|
|
4262
|
+
.dsh-powerup-card-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}
|
|
4263
4263
|
.dsh-powerup-how-card .dsh-powerup-section-title{margin-bottom:10px}
|
|
4264
4264
|
.dsh-powerup-fold-btn{flex:none;display:inline-flex;align-items:center;gap:5px;padding:3px 9px 3px 7px;border:.5px solid var(--dsw-alias-border-l2);border-radius:7px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:11px;line-height:18px;cursor:pointer;white-space:nowrap}
|
|
4265
4265
|
.dsh-powerup-fold-btn:hover{background:var(--dsw-alias-interactive-bg-hover,var(--dsw-alias-bg-layer-2));color:var(--dsw-alias-label-primary)}
|
|
@@ -11059,8 +11059,9 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11059
11059
|
// ------------------------------------------------------------------
|
|
11060
11060
|
/**
|
|
11061
11061
|
* A feature card's full detail modal: icon + title + full description,
|
|
11062
|
-
* the "how to use" tutorial
|
|
11063
|
-
*
|
|
11062
|
+
* and the "how to use" tutorial. Description and tutorial are the only
|
|
11063
|
+
* two sections: fold-away sub-options (the "More" settings) are never
|
|
11064
|
+
* duplicated here — they live under the card's More button instead.
|
|
11064
11065
|
*/
|
|
11065
11066
|
function FeatureDetailModal({ card, t, onClose }) {
|
|
11066
11067
|
const [closing, setClosing] = useState(false);
|
|
@@ -11119,7 +11120,7 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11119
11120
|
h('p', { className: 'dsh-powerup-detail-modal-desc' }, t(card.descKey)),
|
|
11120
11121
|
)
|
|
11121
11122
|
: null,
|
|
11122
|
-
steps.length > 0
|
|
11123
|
+
(steps.length > 0 || card.modalExtra !== undefined && card.modalExtra !== null)
|
|
11123
11124
|
? h('section', { className: 'dsh-powerup-detail-section' },
|
|
11124
11125
|
h('h3', { className: 'dsh-powerup-detail-section-title' }, t('page.sectionHow')),
|
|
11125
11126
|
steps.length === 1
|
|
@@ -11130,9 +11131,9 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11130
11131
|
h('span', null, step),
|
|
11131
11132
|
)),
|
|
11132
11133
|
),
|
|
11134
|
+
card.modalExtra ?? null,
|
|
11133
11135
|
)
|
|
11134
11136
|
: null,
|
|
11135
|
-
card.detail ?? null,
|
|
11136
11137
|
),
|
|
11137
11138
|
),
|
|
11138
11139
|
));
|
|
@@ -11188,11 +11189,12 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11188
11189
|
/**
|
|
11189
11190
|
* One uniform feature card: icon + title + a one-line brief with a
|
|
11190
11191
|
* Details link and enable switch on its right (aligned with each other),
|
|
11191
|
-
* and a fold/unfold button on the card-foot row for
|
|
11192
|
-
*
|
|
11192
|
+
* and a right-aligned fold/unfold button on the card-foot row for
|
|
11193
|
+
* sub-options (the "More" settings; these never enter the detail modal).
|
|
11194
|
+
* opts: { descKey, howKey, howParts, detail, modalExtra }
|
|
11193
11195
|
*/
|
|
11194
11196
|
const featureCard = (key, iconComp, titleKey, briefKey, opts = {}) => {
|
|
11195
|
-
const { howKey, howParts, detail, descKey,
|
|
11197
|
+
const { howKey, howParts, detail, descKey, modalExtra } = opts;
|
|
11196
11198
|
const hasSub = detail !== undefined && detail !== null;
|
|
11197
11199
|
const expanded = expandedCards.has(key);
|
|
11198
11200
|
const toggleExpanded = () => {
|
|
@@ -11202,7 +11204,7 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11202
11204
|
setExpandedCards(next);
|
|
11203
11205
|
};
|
|
11204
11206
|
const hasDetail = descKey !== undefined || howKey !== undefined || Array.isArray(howParts);
|
|
11205
|
-
const openDetail = () => setDetailCard({ key, iconComp, titleKey, descKey, howKey, howParts,
|
|
11207
|
+
const openDetail = () => setDetailCard({ key, iconComp, titleKey, descKey, howKey, howParts, modalExtra });
|
|
11206
11208
|
return h('section', {
|
|
11207
11209
|
key,
|
|
11208
11210
|
className: 'dsh-powerup-card' + (settings[key] === false ? ' is-off' : ''),
|
|
@@ -11224,7 +11226,7 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11224
11226
|
),
|
|
11225
11227
|
),
|
|
11226
11228
|
),
|
|
11227
|
-
hasSub
|
|
11229
|
+
hasSub
|
|
11228
11230
|
? h('div', { className: 'dsh-powerup-card-foot' },
|
|
11229
11231
|
h('button', {
|
|
11230
11232
|
type: 'button',
|
|
@@ -11236,7 +11238,7 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11236
11238
|
h('span', null, t(expanded ? 'page.collapse' : 'page.more'))),
|
|
11237
11239
|
)
|
|
11238
11240
|
: null,
|
|
11239
|
-
hasSub &&
|
|
11241
|
+
hasSub && expanded
|
|
11240
11242
|
? h('div', { className: 'dsh-powerup-card-body' }, detail)
|
|
11241
11243
|
: null,
|
|
11242
11244
|
);
|
|
@@ -11330,8 +11332,7 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11330
11332
|
featureCard('contextMenu', PowerUpLineIcon, 'page.featureTitle', 'page.featureBrief', {
|
|
11331
11333
|
descKey: 'page.featureDesc',
|
|
11332
11334
|
howParts: [t('page.featureHow1'), t('page.featureHow2'), t('page.featureHow3')],
|
|
11333
|
-
|
|
11334
|
-
detailAsDetails: true,
|
|
11335
|
+
modalExtra: actionsDetail,
|
|
11335
11336
|
}),
|
|
11336
11337
|
featureCard('themeToggle', QuickIcon, 'page.themeTitle', 'page.themeBrief', {
|
|
11337
11338
|
descKey: 'page.themeDesc',
|
|
@@ -11339,9 +11340,6 @@ html[data-platform="darwin"] .dsh-powerup-scrolltop:hover{background:var(--dsw-s
|
|
|
11339
11340
|
}),
|
|
11340
11341
|
featureCard('launcher', LauncherIcon, 'page.launcherTitle', 'page.launcherBrief', {
|
|
11341
11342
|
descKey: 'page.launcherDesc',
|
|
11342
|
-
detail: h('div', { className: 'dsh-powerup-card-detail' },
|
|
11343
|
-
settingRow('launcher', settings.launcher !== false, t('page.launcherToggle'), t('page.launcherToggleHint')),
|
|
11344
|
-
),
|
|
11345
11343
|
}),
|
|
11346
11344
|
featureCard('sessionSwitch', QuickIcon, 'page.sessionSwitchTitle', 'page.sessionSwitchBrief', { howKey: 'page.sessionSwitchHow', descKey: 'page.sessionSwitchDesc' }),
|
|
11347
11345
|
featureCard('locateSession', LocateIcon, 'page.locateTitle', 'page.locateBrief', { howKey: 'page.locateHow', descKey: 'page.locateDesc' }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restregular/dsh-powerup",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.15",
|
|
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, workspace prompts, and non-blocking model-generated structured task progress — each toggled independently on the Power-Up page.",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"type": "module",
|