@wenaixi/dsh-superpower 7.5.7 → 7.5.8

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 CHANGED
@@ -28,7 +28,7 @@ dsh --profile web --dump-config | grep -A2 "@wenaixi/dsh-superpower"
28
28
  dsh --profile web # skills are available immediately
29
29
  ```
30
30
 
31
- Pin a version by appending `@<version>` (`@wenaixi/dsh-superpower@7.5.7`) or `#v7.5.7`.
31
+ Pin a version by appending `@<version>` (`@wenaixi/dsh-superpower@7.5.8`) or `#v7.5.8`.
32
32
 
33
33
  The old unscoped package name `dsh-superpower` is deprecated (`npm deprecate`); use the scoped one.
34
34
 
@@ -190,7 +190,9 @@ Since `v7.0.0` skill names follow upstream naming (no `superpower-` prefix) and
190
190
 
191
191
  `v7.5.0` shipped every skill with an English body (`SKILL.en.md`, upstream original adapted for DSH) beside the Chinese one, added a per-skill `中文 / English` switch, made English descriptions always start with `Superpower Skill: `, routed the same language preference to the model-side catalog and body, and made README.md English by default with a Chinese twin.
192
192
 
193
- `v7.5.7` fixed the panel version label (7.5.6 showed 7.5.4 after the revert) and added a visible note next to the language button: it switches only the skill descriptions, the bodies stay English.: it switches the `Superpower Skill:` text users and the model see, the button label, and nothing else — the rest of the panel stays in the Host UI language, and skill bodies remain the English originals.: the panel's own copy (title, bulk buttons, search box, hints, meta labels) switches with the skill descriptions instead of following the Host UI language.
193
+ `v7.5.8` eliminated silent failure in the language bar (renders `spSwLangFailure` alerts on mutation issues instead of failing silently) and solidified hot-reload resilience.
194
+
195
+ `v7.5.7` fixed the panel version label and added a visible scope note.: it switches the `Superpower Skill:` text users and the model see, the button label, and nothing else — the rest of the panel stays in the Host UI language, and skill bodies remain the English originals.: the panel's own copy (title, bulk buttons, search box, hints, meta labels) switches with the skill descriptions instead of following the Host UI language.
194
196
 
195
197
  `v7.5.4` republished under a fresh version: the 7.5.3 release hit an npm staged-publish conflict; the code is identical to 7.5.3.
196
198
 
package/README.zh.md CHANGED
@@ -190,7 +190,9 @@ scripts/build-client.mjs # 复制客户端产物后校验内联清单与 sk
190
190
 
191
191
  `v7.5.0` 每个技能新增英文正文(`SKILL.en.md`,取自上游原版并做 DSH 专属化),与中文 `SKILL.md` 并存;面板每行新增「中文 / English」切换,英文描述一律以 `Superpower Skill: ` 开头;同一语言偏好同时决定模型侧目录描述与加载正文;README.md 改为默认英文并新增中文版 README.zh.md。
192
192
 
193
- `v7.5.7` 修复面板版本号显示(7.5.6 误显示 7.5.4)并为语言按钮增加可见作用域说明(仅切换描述、正文保持英文)。
193
+ `v7.5.8` 彻底消除语言栏静默失败(增加 `spSwLangFailure` 红色报错显式渲染,底层写入失败不再吞掉报错),强化热更新防御。
194
+
195
+ `v7.5.7` 修复面板版本号显示并为语言按钮增加可见作用域说明。
194
196
 
195
197
  `v7.5.6` 语言按钮只控制技能描述(`Superpower Skill:` 后面的文本)与按钮自身文案;面板其余 UI 恢复跟随宿主界面语言,技能正文恒为英文原版。,不再跟随宿主界面语言。
196
198
 
package/lib/client.js CHANGED
@@ -34,7 +34,7 @@ window.__ModuleLoader__.load({
34
34
  var SKILL_SOURCE = 'bundled';
35
35
  /* 面板所在的包版本。写死而非从宿主取:浏览器侧读不到 package.json,
36
36
  而版本号正是排查「装的是哪一版、界面是不是这一版」时唯一能直接看到的东西。 */
37
- var PACKAGE_VERSION = '7.5.7';
37
+ var PACKAGE_VERSION = '7.5.8';
38
38
  var NS = 'dsh-superpower';
39
39
  var DISABLED_FIELD = 'disabled';
40
40
  /* v7.3.0 及之前的双侧禁言表。面板写入成功后会把它们 unset,
@@ -141,6 +141,7 @@ window.__ModuleLoader__.load({
141
141
  '.spSwLangBtn:hover{border-color:var(--dsw-alias-border-l1);color:var(--dsw-alias-label-primary)}',
142
142
  '.spSwLangBtn:disabled{opacity:.5;cursor:default}',
143
143
  '.spSwLangNote{margin:0;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}',
144
+ '.spSwLangFailure{margin:0;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-error)}',
144
145
  '.spSwSwitchLabel{white-space:nowrap;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary)}',
145
146
  '.spSwEmpty{margin:0;padding:24px 0;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);text-align:center}',
146
147
  /* 窄屏:开关区落到文字下方 */
@@ -311,7 +312,8 @@ window.__ModuleLoader__.load({
311
312
  [{ op: 'set', path: [LANGUAGE_FIELD], value: effective === 'zh' ? 'en' : 'zh' }]);
312
313
  },
313
314
  }, (language === undefined ? hostActive : language) === 'zh' ? SP_LANG_EN : SP_LANG_ZH),
314
- h('span', { className: 'spSwLangNote' }, t('langNote'))),
315
+ h('span', { className: 'spSwLangNote' }, t('langNote')),
316
+ failures['language'] ? h('span', { className: 'spSwLangFailure', role: 'alert' }, failures['language']) : null),
315
317
  h('ul', { className: 'spSwMeta' },
316
318
  h('li', { className: 'spSwMetaItem' }, t('provider'), h('code', null, PROVIDER_NAME)),
317
319
  h('li', { className: 'spSwMetaItem' }, t('rank'), h('code', null, String(PROVIDER_RANK))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenaixi/dsh-superpower",
3
- "version": "7.5.7",
3
+ "version": "7.5.8",
4
4
  "description": "obra/superpowers 的 DSH 移植版:15 个工程纪律技能(中英双语正文)注入 ctx.skills,含技能开关与语言切换面板",
5
5
  "type": "module",
6
6
  "main": "lib/superpowers.js",