@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.
Files changed (3) hide show
  1. package/README.md +11 -7
  2. package/client.js +132 -44
  3. 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. Create a prompt with an optional title, an optional
182
- workspace scope, and the prompt body. Without a title the dropdown shows the
183
- first few characters of the body. A blank workspace scope makes the prompt
184
- available in every workspace; otherwise it appears only in that one.
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. The
192
- **Prompts** settings tab can also create and manage prompts freely across
193
- workspaces; both use the same dsh-memory-style segmented tabs and cards.
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.16';
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 live in this browser and are only visible to you. Picking one fills the composer so you can edit before sending.',
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 [title, setTitle] = useState('');
2746
- const [text, setText] = useState('');
2747
- const [scope, setScope] = useState(typeof workspaceId === 'string' && workspaceId !== '' ? 'current' : 'all');
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-list{display:flex;flex-direction:column;gap:9px;margin-top:12px}
3636
- .dsh-powerup-prompt-card{border:1px solid var(--dsw-alias-border-l1);border-radius:12px;background:var(--dsw-alias-bg-layer-1);overflow:hidden}
3637
- .dsh-powerup-prompt-card-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--dsw-alias-border-l1);background:linear-gradient(120deg,color-mix(in srgb,var(--dsw-alias-brand-primary) 5%,var(--dsw-alias-bg-layer-1)),var(--dsw-alias-bg-layer-1) 62%);flex-wrap:wrap}
3638
- .dsh-powerup-prompt-card.folded .dsh-powerup-prompt-card-head{border-bottom:0}
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 cards = prompts.length === 0
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-list' }, prompts.map((prompt) => {
7739
- const isExpanded = expanded === prompt.id;
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: prompt.id,
7743
- className: 'dsh-powerup-prompt-card' + (isExpanded ? '' : ' folded'),
7830
+ key: 'group:' + group.id,
7831
+ className: 'dsh-powerup-prompt-group' + (collapsed ? ' is-collapsed' : ''),
7744
7832
  },
7745
- h('div', { className: 'dsh-powerup-prompt-card-head' },
7746
- h('span', { className: 'dsh-powerup-prompt-name' }, promptLabel(prompt, t)),
7747
- h('span', { className: 'dsh-powerup-prompt-scope' },
7748
- prompt.workspaceId === ''
7749
- ? t('prompts.anyWorkspace')
7750
- : (workspaces.find((ws) => ws.workspaceId === prompt.workspaceId)?.title
7751
- || prompt.workspaceId)),
7752
- h('div', { className: 'dsh-powerup-prompt-card-actions' },
7753
- h('button', {
7754
- type: 'button',
7755
- className: 'dsh-powerup-linkbtn',
7756
- onClick: () => (isExpanded ? cancelEdit() : beginEdit(prompt)),
7757
- }, isExpanded ? t('prompts.cancel') : t('prompts.edit')),
7758
- h('button', {
7759
- type: 'button',
7760
- className: 'dsh-powerup-linkbtn danger',
7761
- onClick: () => remove(prompt),
7762
- }, t('prompts.delete')),
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
- isExpanded ? form : (preview !== ''
7766
- ? h('div', { className: 'dsh-powerup-prompt-card-body' },
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
- cards,
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.16",
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 设置页启用后,新会话行的 Agent 预设右侧出现下拉列表,可为当前工作区选择已保存的提示词——点击提示词填入输入框继续编辑,或点右侧「直接发送」立即发出;下拉里可一键创建新的提示词,并在 Power-Up 页新增「工作区提示词」标签页统一管理(标题可选,缺省显示正文开头摘要),UI 参考 dsh-memory 的分段标签与卡片样式。 · 会话内「创建新的提示词」走会话弹窗,固定归属当前工作区(仅可改为所有工作区);设置页同样可管理新建,工作区列表为自定义样式下拉。提示词保存在工作区目录 .dsh/dsh-powerup/prompts.json,不再存浏览器。会话标题弹窗的任务圆点区分运行/阻塞(等待询问工具回答),任务结束后保留到用户切换过去才消失。 · 所有功能均可在 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
+ }