@wenaixi/dsh-superpower 7.5.6 → 7.5.7

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.6`) or `#v7.5.6`.
31
+ Pin a version by appending `@<version>` (`@wenaixi/dsh-superpower@7.5.7`) or `#v7.5.7`.
32
32
 
33
33
  The old unscoped package name `dsh-superpower` is deprecated (`npm deprecate`); use the scoped one.
34
34
 
@@ -190,7 +190,7 @@ 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.6` keeps the language button scoped to descriptions only: 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.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.
194
194
 
195
195
  `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
196
 
package/README.zh.md CHANGED
@@ -190,6 +190,8 @@ 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)并为语言按钮增加可见作用域说明(仅切换描述、正文保持英文)。
194
+
193
195
  `v7.5.6` 语言按钮只控制技能描述(`Superpower Skill:` 后面的文本)与按钮自身文案;面板其余 UI 恢复跟随宿主界面语言,技能正文恒为英文原版。,不再跟随宿主界面语言。
194
196
 
195
197
  `v7.5.4` 改版重发(7.5.3 发布遇 npm staged-publish 冲突,代码内容与 7.5.3 相同)。
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.4';
37
+ var PACKAGE_VERSION = '7.5.7';
38
38
  var NS = 'dsh-superpower';
39
39
  var DISABLED_FIELD = 'disabled';
40
40
  /* v7.3.0 及之前的双侧禁言表。面板写入成功后会把它们 unset,
@@ -84,6 +84,7 @@ window.__ModuleLoader__.load({
84
84
  source: '来源',
85
85
  build: '面板版本',
86
86
  langTitle: '切换技能描述语言(中文 / English)。只影响用户与模型看到的技能描述,技能正文始终为英文原版。',
87
+ langNote: '仅切换技能描述(用户与模型可见),技能正文保持英文原版。',
87
88
  };
88
89
 
89
90
  var en = {
@@ -105,6 +106,7 @@ window.__ModuleLoader__.load({
105
106
  build: 'Panel build',
106
107
  source: 'Source',
107
108
  langTitle: 'Switch the skill description language (Chinese / English). Affects only the descriptions users and the model see; skill bodies stay the English originals.',
109
+ langNote: 'Switches only the skill descriptions (what users and the model see); skill bodies stay the English originals.',
108
110
  };
109
111
 
110
112
  /* 官方样式注入契约:style[data-plugin-css="<包名>/<文件名>"],宿主据此在
@@ -138,6 +140,7 @@ window.__ModuleLoader__.load({
138
140
  '.spSwLangBtn{margin:0;padding:2px 10px;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-xs);background:transparent;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);cursor:pointer}',
139
141
  '.spSwLangBtn:hover{border-color:var(--dsw-alias-border-l1);color:var(--dsw-alias-label-primary)}',
140
142
  '.spSwLangBtn:disabled{opacity:.5;cursor:default}',
143
+ '.spSwLangNote{margin:0;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}',
141
144
  '.spSwSwitchLabel{white-space:nowrap;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary)}',
142
145
  '.spSwEmpty{margin:0;padding:24px 0;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);text-align:center}',
143
146
  /* 窄屏:开关区落到文字下方 */
@@ -307,7 +310,8 @@ window.__ModuleLoader__.load({
307
310
  submit(form, t, ['language'], 'enable', setPending, setFailures,
308
311
  [{ op: 'set', path: [LANGUAGE_FIELD], value: effective === 'zh' ? 'en' : 'zh' }]);
309
312
  },
310
- }, (language === undefined ? hostActive : language) === 'zh' ? SP_LANG_EN : SP_LANG_ZH)),
313
+ }, (language === undefined ? hostActive : language) === 'zh' ? SP_LANG_EN : SP_LANG_ZH),
314
+ h('span', { className: 'spSwLangNote' }, t('langNote'))),
311
315
  h('ul', { className: 'spSwMeta' },
312
316
  h('li', { className: 'spSwMetaItem' }, t('provider'), h('code', null, PROVIDER_NAME)),
313
317
  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.6",
3
+ "version": "7.5.7",
4
4
  "description": "obra/superpowers 的 DSH 移植版:15 个工程纪律技能(中英双语正文)注入 ctx.skills,含技能开关与语言切换面板",
5
5
  "type": "module",
6
6
  "main": "lib/superpowers.js",