@restregular/dsh-powerup 0.8.16 → 0.8.18
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/README.md +11 -7
- package/client.js +132 -44
- package/package.json +98 -98
package/README.md
CHANGED
|
@@ -178,19 +178,23 @@ entries other plugins add) become an icon grid instead of a one-per-row list:
|
|
|
178
178
|
Save reusable prompts and drop one into a new session without retyping it.
|
|
179
179
|
|
|
180
180
|
- Open the sidebar **Power-Up** page, switch on **Workspace prompts**, then open
|
|
181
|
-
the **Prompts** tab.
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
the **Prompts** tab. Prompts are grouped by workspace, each group collapsible,
|
|
182
|
+
and every prompt card stays folded to just its title plus edit/delete until you
|
|
183
|
+
open it. Create a prompt with an optional title, an optional workspace scope,
|
|
184
|
+
and the prompt body. Without a title the dropdown shows the first few
|
|
185
|
+
characters of the body. A blank workspace scope makes the prompt available in
|
|
186
|
+
every workspace; otherwise it appears only in that one.
|
|
185
187
|
- In the New Session row, to the right of the Agent preset, a dropdown lists the
|
|
186
188
|
prompts available in the current workspace. **Clicking a prompt fills the
|
|
187
189
|
composer** so you can keep editing before sending. Each row also has a
|
|
188
190
|
**Send now** button that fills and submits immediately.
|
|
189
191
|
- **Create a new prompt…** in the dropdown opens an in-conversation dialog. A
|
|
190
192
|
prompt created here is pinned to the current workspace — you may only keep
|
|
191
|
-
that scope or switch to **All workspaces**, never pick another workspace.
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
that scope or switch to **All workspaces**, never pick another workspace.
|
|
194
|
+
Closing the dialog keeps what you typed, so reopening it restores the draft
|
|
195
|
+
until the prompt is actually created. The **Prompts** settings tab can also
|
|
196
|
+
create and manage prompts freely across workspaces; both use the same
|
|
197
|
+
dsh-memory-style segmented tabs and cards.
|
|
194
198
|
- Prompts are stored on disk under the active workspace, in
|
|
195
199
|
`.dsh/dsh-powerup/prompts.json`; they travel with the workspace rather than
|
|
196
200
|
living in the browser.
|
package/client.js
CHANGED
|
@@ -75,9 +75,15 @@
|
|
|
75
75
|
*/
|
|
76
76
|
/** Last prompt used per workspace, for the dropdown button label. */
|
|
77
77
|
const PROMPTS_LAST_KEY = 'dsh-powerup:prompts:last:v1';
|
|
78
|
+
/**
|
|
79
|
+
* In-progress "new prompt" dialog text, kept in memory so closing and
|
|
80
|
+
* reopening the dialog restores what the user had already typed instead
|
|
81
|
+
* of resetting it. Cleared once the prompt is actually created.
|
|
82
|
+
*/
|
|
83
|
+
const promptCreateDraft = { workspaceId: null, title: '', text: '', scope: 'current' };
|
|
78
84
|
/** Fallback bucket when the hero cannot resolve an owning workspace yet. */
|
|
79
85
|
const UNSCOPED_WORKSPACE = '__unscoped__';
|
|
80
|
-
const VERSION = '0.8.
|
|
86
|
+
const VERSION = '0.8.18';
|
|
81
87
|
const MENU_GAP = 8;
|
|
82
88
|
const MENU_WIDTH = 248;
|
|
83
89
|
/** Reference scheme understood by the Host's `powerup_step_read` tool. */
|
|
@@ -304,7 +310,7 @@
|
|
|
304
310
|
'prompts.tabFeatures': '功能列表',
|
|
305
311
|
'prompts.tabManage': '提示词',
|
|
306
312
|
'prompts.sectionTitle': '统一管理各工作区的提示词',
|
|
307
|
-
'prompts.sectionSub': '
|
|
313
|
+
'prompts.sectionSub': '提示词按工作区分组保存在工作区目录的 .dsh/dsh-powerup/prompts.json;选择后填入输入框,可继续编辑再发送。',
|
|
308
314
|
'prompts.new': '新建提示词',
|
|
309
315
|
'prompts.cancel': '取消',
|
|
310
316
|
'prompts.save': '保存',
|
|
@@ -556,7 +562,7 @@
|
|
|
556
562
|
'prompts.tabFeatures': 'Features',
|
|
557
563
|
'prompts.tabManage': 'Prompts',
|
|
558
564
|
'prompts.sectionTitle': 'Manage prompts for every workspace',
|
|
559
|
-
'prompts.sectionSub': 'Prompts
|
|
565
|
+
'prompts.sectionSub': 'Prompts are grouped by workspace and stored in that workspace\'s .dsh/dsh-powerup/prompts.json. Picking one fills the composer so you can edit before sending.',
|
|
560
566
|
'prompts.new': 'New prompt',
|
|
561
567
|
'prompts.cancel': 'Cancel',
|
|
562
568
|
'prompts.save': 'Save',
|
|
@@ -2742,10 +2748,25 @@
|
|
|
2742
2748
|
*/
|
|
2743
2749
|
function PromptCreateModal({ workspaceId, workspaceTitle, onClose, onCreated }) {
|
|
2744
2750
|
const t = (key, params) => translateCurrent(key, params);
|
|
2745
|
-
const
|
|
2746
|
-
|
|
2747
|
-
|
|
2751
|
+
const fixedScope = typeof workspaceId !== 'string' || workspaceId === '';
|
|
2752
|
+
// Reopening the dialog for the same workspace restores the previous
|
|
2753
|
+
// draft; switching to another workspace starts from a clean slate.
|
|
2754
|
+
const sameWorkspace = promptCreateDraft.workspaceId === (fixedScope ? '' : workspaceId);
|
|
2755
|
+
if (!sameWorkspace) {
|
|
2756
|
+
promptCreateDraft.workspaceId = fixedScope ? '' : workspaceId;
|
|
2757
|
+
promptCreateDraft.title = '';
|
|
2758
|
+
promptCreateDraft.text = '';
|
|
2759
|
+
promptCreateDraft.scope = fixedScope ? 'all' : 'current';
|
|
2760
|
+
}
|
|
2761
|
+
const [title, setTitle] = useState(promptCreateDraft.title);
|
|
2762
|
+
const [text, setText] = useState(promptCreateDraft.text);
|
|
2763
|
+
const [scope, setScope] = useState(promptCreateDraft.scope);
|
|
2748
2764
|
const titleRef = useRef(null);
|
|
2765
|
+
useEffect(() => {
|
|
2766
|
+
promptCreateDraft.title = title;
|
|
2767
|
+
promptCreateDraft.text = text;
|
|
2768
|
+
promptCreateDraft.scope = scope;
|
|
2769
|
+
}, [title, text, scope]);
|
|
2749
2770
|
useEffect(() => {
|
|
2750
2771
|
try {
|
|
2751
2772
|
titleRef.current?.focus?.();
|
|
@@ -2775,11 +2796,14 @@
|
|
|
2775
2796
|
const list = readPrompts();
|
|
2776
2797
|
list.push(record);
|
|
2777
2798
|
writePrompts(list);
|
|
2799
|
+
// The draft became a real prompt: the next dialog starts empty.
|
|
2800
|
+
promptCreateDraft.title = '';
|
|
2801
|
+
promptCreateDraft.text = '';
|
|
2802
|
+
promptCreateDraft.scope = fixedScope ? 'all' : 'current';
|
|
2778
2803
|
onCreated(record);
|
|
2779
2804
|
};
|
|
2780
2805
|
const fieldClass = 'dsh-powerup-prompt-input';
|
|
2781
2806
|
const labelClass = 'dsh-powerup-prompt-field-label';
|
|
2782
|
-
const fixedScope = typeof workspaceId !== 'string' || workspaceId === '';
|
|
2783
2807
|
return renderInBody(h('div', {
|
|
2784
2808
|
className: 'dsh-powerup-prompt-modal-mask',
|
|
2785
2809
|
role: 'presentation',
|
|
@@ -3632,18 +3656,23 @@ marker is only present while our button is mounted, and the host's
|
|
|
3632
3656
|
.dsh-powerup-prompt-new{height:30px;padding:0 12px;border:1px solid var(--dsw-alias-border-l1);border-radius:8px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);font:inherit;font-size:12.5px;line-height:1.5;cursor:pointer;transition:border-color .12s ease,color .12s ease}
|
|
3633
3657
|
.dsh-powerup-prompt-new:hover{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary)}
|
|
3634
3658
|
.dsh-powerup-prompt-new:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}
|
|
3635
|
-
.dsh-powerup-prompt-
|
|
3636
|
-
.dsh-powerup-prompt-
|
|
3637
|
-
.dsh-powerup-prompt-
|
|
3638
|
-
.dsh-powerup-prompt-
|
|
3659
|
+
.dsh-powerup-prompt-groups{display:flex;flex-direction:column;gap:14px;margin-top:14px}
|
|
3660
|
+
.dsh-powerup-prompt-group{border:1px solid var(--dsw-alias-border-l1);border-radius:12px;background:var(--dsw-alias-bg-layer-2);overflow:hidden}
|
|
3661
|
+
.dsh-powerup-prompt-group-head{display:flex;align-items:center;gap:8px;width:100%;padding:9px 12px;border:0;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;text-align:left;cursor:pointer}
|
|
3662
|
+
.dsh-powerup-prompt-group-head:hover{background:var(--dsw-alias-interactive-bg-hover)}
|
|
3663
|
+
.dsh-powerup-prompt-group-head:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-2px}
|
|
3664
|
+
.dsh-powerup-prompt-group-chevron{flex:none;display:inline-flex;color:var(--dsw-alias-label-tertiary);transition:transform .15s ease}
|
|
3665
|
+
.dsh-powerup-prompt-group.is-collapsed .dsh-powerup-prompt-group-chevron{transform:rotate(-90deg)}
|
|
3666
|
+
.dsh-powerup-prompt-group-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:1.4}
|
|
3667
|
+
.dsh-powerup-prompt-group-count{flex:none;color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
|
|
3668
|
+
.dsh-powerup-prompt-group-body{display:flex;flex-direction:column;gap:7px;padding:0 8px 8px}
|
|
3669
|
+
.dsh-powerup-prompt-card{border:1px solid var(--dsw-alias-border-l1);border-radius:10px;background:var(--dsw-alias-bg-layer-1);overflow:hidden}
|
|
3670
|
+
.dsh-powerup-prompt-card-head{display:flex;align-items:center;gap:10px;padding:8px 11px;flex-wrap:wrap}
|
|
3639
3671
|
.dsh-powerup-prompt-name{font-size:13px;font-weight:600;line-height:1.4;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
3640
|
-
.dsh-powerup-prompt-scope{flex:none;padding:0 7px;border:1px solid var(--dsw-alias-border-l1);border-radius:999px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);font-size:10px;line-height:1.7}
|
|
3641
3672
|
.dsh-powerup-prompt-card-actions{display:flex;align-items:center;gap:4px;margin-left:auto;flex-wrap:wrap}
|
|
3642
3673
|
.dsh-powerup-linkbtn{background:none;border:0;padding:2px 4px;color:var(--dsw-alias-label-secondary);font:inherit;font-size:12px;line-height:1.7;cursor:pointer;border-radius:5px}
|
|
3643
3674
|
.dsh-powerup-linkbtn:hover{color:var(--dsw-alias-brand-primary);background:var(--dsw-alias-interactive-bg-hover)}
|
|
3644
3675
|
.dsh-powerup-linkbtn.danger:hover{color:var(--dsw-alias-state-error-primary,#d33)}
|
|
3645
|
-
.dsh-powerup-prompt-card-body{padding:11px 13px}
|
|
3646
|
-
.dsh-powerup-prompt-preview{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary);font-size:11.5px;line-height:1.55}
|
|
3647
3676
|
.dsh-powerup-prompt-form{display:flex;flex-direction:column;gap:10px;padding:11px 13px;border-top:1px solid var(--dsw-alias-border-l1)}
|
|
3648
3677
|
.dsh-powerup-prompt-field{display:flex;flex-direction:column;gap:5px;min-width:0}
|
|
3649
3678
|
.dsh-powerup-prompt-field-label{color:var(--dsw-alias-label-secondary);font-size:11.5px;line-height:1.5}
|
|
@@ -7627,6 +7656,8 @@ marker is only present while our button is mounted, and the host's
|
|
|
7627
7656
|
const [, forceLocale] = useState(0);
|
|
7628
7657
|
const [expanded, setExpanded] = useState(null);
|
|
7629
7658
|
const [draft, setDraft] = useState(null);
|
|
7659
|
+
// Groups start expanded; collapsing one only affects this view.
|
|
7660
|
+
const [collapsedGroups, setCollapsedGroups] = useState(() => new Set());
|
|
7630
7661
|
const t = (key, params) => translateCurrent(key, params);
|
|
7631
7662
|
useEffect(() => {
|
|
7632
7663
|
const locale = ctx.get('locale');
|
|
@@ -7733,39 +7764,95 @@ marker is only present while our button is mounted, and the host's
|
|
|
7733
7764
|
),
|
|
7734
7765
|
);
|
|
7735
7766
|
|
|
7736
|
-
const
|
|
7767
|
+
const workspaceTitleOf = (id) => {
|
|
7768
|
+
if (id === '') return t('prompts.anyWorkspace');
|
|
7769
|
+
const found = workspaces.find((ws) => ws.workspaceId === id);
|
|
7770
|
+
return found?.title || id;
|
|
7771
|
+
};
|
|
7772
|
+
|
|
7773
|
+
/**
|
|
7774
|
+
* Group prompts by workspace: "all workspaces" first, then every real
|
|
7775
|
+
* workspace in list order, then any orphaned scope not in the registry.
|
|
7776
|
+
*/
|
|
7777
|
+
const groups = [];
|
|
7778
|
+
const seenScope = new Set();
|
|
7779
|
+
const pushGroup = (id) => {
|
|
7780
|
+
if (seenScope.has(id)) return;
|
|
7781
|
+
const items = prompts.filter((p) => p.workspaceId === id);
|
|
7782
|
+
if (items.length === 0) return;
|
|
7783
|
+
seenScope.add(id);
|
|
7784
|
+
groups.push({ id, title: workspaceTitleOf(id), items });
|
|
7785
|
+
};
|
|
7786
|
+
pushGroup('');
|
|
7787
|
+
for (const ws of workspaces) pushGroup(ws.workspaceId);
|
|
7788
|
+
for (const prompt of prompts) pushGroup(prompt.workspaceId);
|
|
7789
|
+
|
|
7790
|
+
const toggleGroup = (id) => {
|
|
7791
|
+
setCollapsedGroups((current) => {
|
|
7792
|
+
const next = new Set(current);
|
|
7793
|
+
if (next.has(id)) next.delete(id);
|
|
7794
|
+
else next.add(id);
|
|
7795
|
+
return next;
|
|
7796
|
+
});
|
|
7797
|
+
};
|
|
7798
|
+
|
|
7799
|
+
/** One collapsed prompt card: only the title plus edit/delete actions. */
|
|
7800
|
+
const promptCard = (prompt) => {
|
|
7801
|
+
const isExpanded = expanded === prompt.id;
|
|
7802
|
+
return h('section', {
|
|
7803
|
+
key: prompt.id,
|
|
7804
|
+
className: 'dsh-powerup-prompt-card' + (isExpanded ? '' : ' folded'),
|
|
7805
|
+
},
|
|
7806
|
+
h('div', { className: 'dsh-powerup-prompt-card-head' },
|
|
7807
|
+
h('span', { className: 'dsh-powerup-prompt-name' }, promptLabel(prompt, t)),
|
|
7808
|
+
h('div', { className: 'dsh-powerup-prompt-card-actions' },
|
|
7809
|
+
h('button', {
|
|
7810
|
+
type: 'button',
|
|
7811
|
+
className: 'dsh-powerup-linkbtn',
|
|
7812
|
+
onClick: () => (isExpanded ? cancelEdit() : beginEdit(prompt)),
|
|
7813
|
+
}, isExpanded ? t('prompts.cancel') : t('prompts.edit')),
|
|
7814
|
+
h('button', {
|
|
7815
|
+
type: 'button',
|
|
7816
|
+
className: 'dsh-powerup-linkbtn danger',
|
|
7817
|
+
onClick: () => remove(prompt),
|
|
7818
|
+
}, t('prompts.delete')),
|
|
7819
|
+
),
|
|
7820
|
+
),
|
|
7821
|
+
isExpanded ? form : null,
|
|
7822
|
+
);
|
|
7823
|
+
};
|
|
7824
|
+
|
|
7825
|
+
const groupsView = groups.length === 0
|
|
7737
7826
|
? h('div', { className: 'dsh-powerup-prompt-empty' }, t('prompts.empty'))
|
|
7738
|
-
: h('div', { className: 'dsh-powerup-prompt-
|
|
7739
|
-
const
|
|
7740
|
-
const preview = [...(prompt.text || '').trim()].slice(0, 80).join('');
|
|
7827
|
+
: h('div', { className: 'dsh-powerup-prompt-groups' }, groups.map((group) => {
|
|
7828
|
+
const collapsed = collapsedGroups.has(group.id);
|
|
7741
7829
|
return h('section', {
|
|
7742
|
-
key:
|
|
7743
|
-
className: 'dsh-powerup-prompt-
|
|
7830
|
+
key: 'group:' + group.id,
|
|
7831
|
+
className: 'dsh-powerup-prompt-group' + (collapsed ? ' is-collapsed' : ''),
|
|
7744
7832
|
},
|
|
7745
|
-
h('
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7833
|
+
h('button', {
|
|
7834
|
+
type: 'button',
|
|
7835
|
+
className: 'dsh-powerup-prompt-group-head',
|
|
7836
|
+
'aria-expanded': collapsed ? 'false' : 'true',
|
|
7837
|
+
onClick: () => toggleGroup(group.id),
|
|
7838
|
+
},
|
|
7839
|
+
h('span', {
|
|
7840
|
+
className: 'dsh-powerup-prompt-group-chevron',
|
|
7841
|
+
'aria-hidden': 'true',
|
|
7842
|
+
}, h('svg', { width: 10, height: 10, viewBox: '0 0 16 16', fill: 'none' },
|
|
7843
|
+
h('path', {
|
|
7844
|
+
d: 'm4 6 4 4 4-4',
|
|
7845
|
+
stroke: 'currentColor',
|
|
7846
|
+
strokeWidth: 1.4,
|
|
7847
|
+
strokeLinecap: 'round',
|
|
7848
|
+
strokeLinejoin: 'round',
|
|
7849
|
+
}))),
|
|
7850
|
+
h('span', { className: 'dsh-powerup-prompt-group-title' }, group.title),
|
|
7851
|
+
h('span', { className: 'dsh-powerup-prompt-group-count' },
|
|
7852
|
+
t('prompts.itemsCount', { count: group.items.length })),
|
|
7764
7853
|
),
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
h('p', { className: 'dsh-powerup-prompt-preview' }, preview))
|
|
7768
|
-
: null),
|
|
7854
|
+
collapsed ? null : h('div', { className: 'dsh-powerup-prompt-group-body' },
|
|
7855
|
+
group.items.map(promptCard)),
|
|
7769
7856
|
);
|
|
7770
7857
|
}));
|
|
7771
7858
|
|
|
@@ -7784,7 +7871,7 @@ marker is only present while our button is mounted, and the host's
|
|
|
7784
7871
|
expanded === 'new'
|
|
7785
7872
|
? h('section', { className: 'dsh-powerup-prompt-card' }, form)
|
|
7786
7873
|
: null,
|
|
7787
|
-
|
|
7874
|
+
groupsView,
|
|
7788
7875
|
);
|
|
7789
7876
|
}
|
|
7790
7877
|
|
|
@@ -8072,6 +8159,7 @@ marker is only present while our button is mounted, and the host's
|
|
|
8072
8159
|
LOCATE_CSS,
|
|
8073
8160
|
PROMPTS_CSS,
|
|
8074
8161
|
PROMPTS_LAST_KEY,
|
|
8162
|
+
promptCreateDraft,
|
|
8075
8163
|
readPrompts,
|
|
8076
8164
|
writePrompts,
|
|
8077
8165
|
promptsForWorkspace,
|
package/package.json
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@restregular/dsh-powerup",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "Power-Up
|
|
5
|
-
"icon": "./icon.svg",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": "./index.js",
|
|
10
|
-
"./client": "./client.js",
|
|
11
|
-
"./locale/*.json": "./locale/*.json",
|
|
12
|
-
"./icon": "./icon.svg",
|
|
13
|
-
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
14
|
-
"./package.json": "./package.json"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"index.js",
|
|
18
|
-
"client.js",
|
|
19
|
-
"cordis.patch.yml",
|
|
20
|
-
"lib/restart.js",
|
|
21
|
-
"lib/restart-helper.cjs",
|
|
22
|
-
"lib/step-reference.js",
|
|
23
|
-
"lib/step-tool.js",
|
|
24
|
-
"locale/*.json",
|
|
25
|
-
"icon.svg",
|
|
26
|
-
"README.md",
|
|
27
|
-
"LICENSE"
|
|
28
|
-
],
|
|
29
|
-
"dsh": {
|
|
30
|
-
"bundle": {
|
|
31
|
-
"patch": "./cordis.patch.yml"
|
|
32
|
-
},
|
|
33
|
-
"client": {
|
|
34
|
-
"platform": "web",
|
|
35
|
-
"immediately": true,
|
|
36
|
-
"inject": [
|
|
37
|
-
"@deepseek-ai/dsh-client-locale",
|
|
38
|
-
"@deepseek-ai/dsh-client-ui-layout",
|
|
39
|
-
"@deepseek-ai/dsh-client-ui-conversation",
|
|
40
|
-
"@deepseek-ai/dsh-client-ui-session",
|
|
41
|
-
"@deepseek-ai/dsh-api-session-controller",
|
|
42
|
-
"@deepseek-ai/dsh-client-ui-workspace"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"@deepseek-ai/cordis": "*",
|
|
48
|
-
"@deepseek-ai/dsh-tools": "*"
|
|
49
|
-
},
|
|
50
|
-
"peerDependenciesMeta": {
|
|
51
|
-
"@deepseek-ai/cordis": {
|
|
52
|
-
"optional": true
|
|
53
|
-
},
|
|
54
|
-
"@deepseek-ai/dsh-tools": {
|
|
55
|
-
"optional": true
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"repository": {
|
|
59
|
-
"type": "git",
|
|
60
|
-
"url": "git+https://github.com/RestRegular/dsh-powerup.git"
|
|
61
|
-
},
|
|
62
|
-
"homepage": "https://github.com/RestRegular/dsh-powerup#readme",
|
|
63
|
-
"bugs": {
|
|
64
|
-
"url": "https://github.com/RestRegular/dsh-powerup/issues"
|
|
65
|
-
},
|
|
66
|
-
"keywords": [
|
|
67
|
-
"dsh-plugin",
|
|
68
|
-
"deepseek-harness",
|
|
69
|
-
"deepseek",
|
|
70
|
-
"trajectory",
|
|
71
|
-
"context-menu",
|
|
72
|
-
"step-reference",
|
|
73
|
-
"background-jobs",
|
|
74
|
-
"job-control",
|
|
75
|
-
"power-up",
|
|
76
|
-
"sidebar",
|
|
77
|
-
"launcher",
|
|
78
|
-
"drag-sort",
|
|
79
|
-
"folder",
|
|
80
|
-
"restart",
|
|
81
|
-
"close",
|
|
82
|
-
"session-switch",
|
|
83
|
-
"workspace",
|
|
84
|
-
"locate"
|
|
85
|
-
],
|
|
86
|
-
"publishConfig": {
|
|
87
|
-
"access": "public",
|
|
88
|
-
"registry": "https://registry.npmjs.org/"
|
|
89
|
-
},
|
|
90
|
-
"engines": {
|
|
91
|
-
"node": ">=22.13.0"
|
|
92
|
-
},
|
|
93
|
-
"scripts": {
|
|
94
|
-
"test": "node test/smoke.mjs && node test/host.mjs"
|
|
95
|
-
},
|
|
96
|
-
"license": "MIT",
|
|
97
|
-
"author": "RestRegular"
|
|
98
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@restregular/dsh-powerup",
|
|
3
|
+
"version": "0.8.18",
|
|
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
|
+
"icon": "./icon.svg",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./client": "./client.js",
|
|
11
|
+
"./locale/*.json": "./locale/*.json",
|
|
12
|
+
"./icon": "./icon.svg",
|
|
13
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"index.js",
|
|
18
|
+
"client.js",
|
|
19
|
+
"cordis.patch.yml",
|
|
20
|
+
"lib/restart.js",
|
|
21
|
+
"lib/restart-helper.cjs",
|
|
22
|
+
"lib/step-reference.js",
|
|
23
|
+
"lib/step-tool.js",
|
|
24
|
+
"locale/*.json",
|
|
25
|
+
"icon.svg",
|
|
26
|
+
"README.md",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"dsh": {
|
|
30
|
+
"bundle": {
|
|
31
|
+
"patch": "./cordis.patch.yml"
|
|
32
|
+
},
|
|
33
|
+
"client": {
|
|
34
|
+
"platform": "web",
|
|
35
|
+
"immediately": true,
|
|
36
|
+
"inject": [
|
|
37
|
+
"@deepseek-ai/dsh-client-locale",
|
|
38
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
39
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
40
|
+
"@deepseek-ai/dsh-client-ui-session",
|
|
41
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
42
|
+
"@deepseek-ai/dsh-client-ui-workspace"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@deepseek-ai/cordis": "*",
|
|
48
|
+
"@deepseek-ai/dsh-tools": "*"
|
|
49
|
+
},
|
|
50
|
+
"peerDependenciesMeta": {
|
|
51
|
+
"@deepseek-ai/cordis": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"@deepseek-ai/dsh-tools": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git+https://github.com/RestRegular/dsh-powerup.git"
|
|
61
|
+
},
|
|
62
|
+
"homepage": "https://github.com/RestRegular/dsh-powerup#readme",
|
|
63
|
+
"bugs": {
|
|
64
|
+
"url": "https://github.com/RestRegular/dsh-powerup/issues"
|
|
65
|
+
},
|
|
66
|
+
"keywords": [
|
|
67
|
+
"dsh-plugin",
|
|
68
|
+
"deepseek-harness",
|
|
69
|
+
"deepseek",
|
|
70
|
+
"trajectory",
|
|
71
|
+
"context-menu",
|
|
72
|
+
"step-reference",
|
|
73
|
+
"background-jobs",
|
|
74
|
+
"job-control",
|
|
75
|
+
"power-up",
|
|
76
|
+
"sidebar",
|
|
77
|
+
"launcher",
|
|
78
|
+
"drag-sort",
|
|
79
|
+
"folder",
|
|
80
|
+
"restart",
|
|
81
|
+
"close",
|
|
82
|
+
"session-switch",
|
|
83
|
+
"workspace",
|
|
84
|
+
"locate"
|
|
85
|
+
],
|
|
86
|
+
"publishConfig": {
|
|
87
|
+
"access": "public",
|
|
88
|
+
"registry": "https://registry.npmjs.org/"
|
|
89
|
+
},
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">=22.13.0"
|
|
92
|
+
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"test": "node test/smoke.mjs && node test/host.mjs"
|
|
95
|
+
},
|
|
96
|
+
"license": "MIT",
|
|
97
|
+
"author": "RestRegular"
|
|
98
|
+
}
|