dsh-one-click-polish 1.2.3 → 1.2.4

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 (2) hide show
  1. package/client.js +6 -6
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -2519,18 +2519,18 @@ window.__ModuleLoader__.load({
2519
2519
  h('div', { className: 'dsh-op-head' },
2520
2520
  h('h2', { className: 'dsh-op-h2' }, t('settings.title')),
2521
2521
  h('p', { className: 'dsh-op-sub' }, t('settings.sub')),
2522
- // dsh's own plugin page can only offer 更新 for bundles in its official
2523
- // catalogue, so a third-party plugin gets no update affordance there.
2524
- // The version line puts that question here instead.
2522
+ // `version` is null until the lookup resolves, so every read of it has to
2523
+ // go through a fallback. Reading `.current` straight off null threw during
2524
+ // render and took the whole settings page down with it.
2525
2525
  h('div', { className: 'dsh-op-version' },
2526
2526
  h('span', { className: 'dsh-op-versionNow' },
2527
- `${t('version.current')} ${version.current === '' ? '?' : version.current}`),
2527
+ `${t('version.current')} ${typeof version?.current === 'string' && version.current !== '' ? version.current : '?'}`),
2528
2528
  version === null
2529
2529
  ? h('span', { className: 'dsh-op-hint dsh-op-hint--inline' }, t('version.checking'))
2530
- : version.error !== null && version.error !== ''
2530
+ : version.error !== null && version.error !== undefined && version.error !== ''
2531
2531
  ? h('span', { className: 'dsh-op-versionBad' },
2532
2532
  `${t('version.unknown')} · ${version.error}`)
2533
- : version.latest === null
2533
+ : version.latest === null || version.latest === undefined
2534
2534
  ? h('span', { className: 'dsh-op-hint dsh-op-hint--inline' }, t('version.unknown'))
2535
2535
  : version.latest !== version.current
2536
2536
  ? h('div', { className: 'dsh-op-versionNew' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-one-click-polish",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "One-click polish, expand and autopilot for the DeepSeek Harness composer: rewrite the draft with the model the session is switched to, expand a one-line wish into a task brief, or let an AI drive a goal round after round.",
5
5
  "keywords": [
6
6
  "dsh",