@restregular/dsh-powerup 0.6.0 → 0.6.1

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 +4 -3
  2. package/client.js +7 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -63,9 +63,10 @@ install dialog:
63
63
 
64
64
  1. The dialog reads the package's published versions from the Host's configured
65
65
  registries — the same list the **Add plugin** dialog offers, including the
66
- npmmirror fallback. Star any registry to make it Power-Up's default for
67
- later installs; otherwise the list starts from the Add dialog's remembered
68
- choice.
66
+ npmmirror fallback. It stays on its loading state until that list has settled
67
+ (loaded or failed) and only then shows the chooser. Star any registry to make
68
+ it Power-Up's default for later installs; otherwise the list starts from the
69
+ Add dialog's remembered choice.
69
70
  2. Type a version or pick one from the floating version list. The version in the
70
71
  input is authoritative: both install actions install exactly that version, so
71
72
  reinstalling or downgrading works. The installed version is tagged
package/client.js CHANGED
@@ -69,7 +69,7 @@
69
69
 
70
70
  const NS = 'dsh-powerup';
71
71
  const SETTINGS_KEY = 'dsh-powerup:settings:v1';
72
- const VERSION = '0.6.0';
72
+ const VERSION = '0.6.1';
73
73
  const MENU_GAP = 8;
74
74
  const MENU_WIDTH = 248;
75
75
  /** How long a one-click update's completion panel stays open when nothing restarts. */
@@ -165,7 +165,7 @@
165
165
  'update.versionLabel': '版本号',
166
166
  'update.versionPlaceholder': '输入版本号,或从列表选择',
167
167
  'update.loadingVersions': '正在从安装源读取版本…',
168
- 'update.loading': '正在读取插件信息…',
168
+ 'update.loading': '正在读取插件和版本列表…',
169
169
  'update.chooseVersion': '选择版本',
170
170
  'update.hideVersions': '收起列表',
171
171
  'update.versionsCount': '共 {count} 个版本',
@@ -337,7 +337,7 @@
337
337
  'update.versionLabel': 'Version',
338
338
  'update.versionPlaceholder': 'Type a version or pick one from the list',
339
339
  'update.loadingVersions': 'Reading versions from the registry…',
340
- 'update.loading': 'Reading the plugin…',
340
+ 'update.loading': 'Reading the plugin and its versions…',
341
341
  'update.chooseVersion': 'Choose',
342
342
  'update.hideVersions': 'Hide list',
343
343
  'update.versionsCount': '{count} versions',
@@ -2656,13 +2656,16 @@
2656
2656
  currentVersion: pkg.version ?? null,
2657
2657
  installed: pkg.installed === true,
2658
2658
  enabled: pkg.enabled !== false,
2659
- phase: 'choose',
2660
2659
  choices,
2661
2660
  registryKey: choice.key,
2662
2661
  defaultRegistryKey: starred === undefined ? null : starred.key,
2663
2662
  versionsState: 'loading',
2664
2663
  });
2664
+ // Keep the loading spinner until the mirror's version list has
2665
+ // settled, so the chooser never flashes with an empty list.
2665
2666
  await loadVersions(token, name, choice, choices, false);
2667
+ if (tokenRef.current !== token) return;
2668
+ patch(token, { phase: 'choose' });
2666
2669
  } catch (error) {
2667
2670
  patch(token, { phase: 'error', error: errorText(error) || t('update.unknown') });
2668
2671
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restregular/dsh-powerup",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
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. · 为 DeepSeek Harness 提供小型增强:在轨迹页面右键记录即可复制、引用、查看详情或从该记录 Fork;在会话顶部的后台任务面板手动停止任务时可填写停止原因,原因会附加到任务结束后的会话提示;并在插件页为第三方已安装插件提供安装按钮,从安装源读取版本,按输入框中的版本沿用「添加插件」流程安装(先卸载旧版),支持待重启标记、Power-Up 自身后台安装与可选重启;安装面板提供「一键安装」,按输入框版本安装并跳过启用/重启询问,默认自动启用并重启,可在 Power-Up 页面调整默认行为。",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",