@wenaixi/dsh-superpower 7.5.2 → 7.5.3
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 +3 -1
- package/README.zh.md +2 -0
- package/lib/client.js +2 -2
- package/package.json +1 -1
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.
|
|
31
|
+
Pin a version by appending `@<version>` (`@wenaixi/dsh-superpower@7.5.3`) or `#v7.5.3`.
|
|
32
32
|
|
|
33
33
|
The old unscoped package name `dsh-superpower` is deprecated (`npm deprecate`); use the scoped one.
|
|
34
34
|
|
|
@@ -190,6 +190,8 @@ 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.3` fixed the language button label: it now shows the target language based on the effective language (falling back to the Host language when the preference is unset), so an untouched panel correctly offers `English` and clicking it actually switches.
|
|
194
|
+
|
|
193
195
|
`v7.5.2` moved the language switch to a single button at the top of the panel: it now controls all 15 skills at once, and while the `language` preference is unset the descriptions follow the Host UI language (settings language); once set, they stay fixed.
|
|
194
196
|
|
|
195
197
|
`v7.5.1` makes skill bodies the official English originals (single `SKILL.md` per skill, DSH-adapted), keeps Chinese as the panel language via `description_zh`, so the language switch changes only the description the model sees. The `中文 / English` switch, the `Superpower Skill: ` prefixes, and the bilingual README remain.
|
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.3` 修复语言按钮显示:按钮按生效语言(未调过时取宿主语言)显示目标语言,未调过时正确显示 English、点击真正切换。
|
|
194
|
+
|
|
193
195
|
`v7.5.2` 语言切换按钮上移到面板顶部、全局一个;未调过时描述跟随宿主界面语言,调过后固定。
|
|
194
196
|
|
|
195
197
|
`v7.5.1` 技能正文统一为上游英文原版(单份 `SKILL.md`,DSH 专属化),中文描述移入 frontmatter `description_zh`,面板语言切换只改变模型看到的描述、正文恒英文。`中文 / English` 切换、`Superpower Skill:` 前缀与双语 README 保持不变。
|
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.
|
|
37
|
+
var PACKAGE_VERSION = '7.5.3';
|
|
38
38
|
var NS = 'dsh-superpower';
|
|
39
39
|
var DISABLED_FIELD = 'disabled';
|
|
40
40
|
/* v7.3.0 及之前的双侧禁言表。面板写入成功后会把它们 unset,
|
|
@@ -307,7 +307,7 @@ window.__ModuleLoader__.load({
|
|
|
307
307
|
submit(form, t, ['language'], 'enable', setPending, setFailures,
|
|
308
308
|
[{ op: 'set', path: [LANGUAGE_FIELD], value: effective === 'zh' ? 'en' : 'zh' }]);
|
|
309
309
|
},
|
|
310
|
-
}, language === 'zh' ? SP_LANG_EN : SP_LANG_ZH)),
|
|
310
|
+
}, (language === undefined ? hostActive : language) === 'zh' ? SP_LANG_EN : SP_LANG_ZH)),
|
|
311
311
|
h('ul', { className: 'spSwMeta' },
|
|
312
312
|
h('li', { className: 'spSwMetaItem' }, t('provider'), h('code', null, PROVIDER_NAME)),
|
|
313
313
|
h('li', { className: 'spSwMetaItem' }, t('rank'), h('code', null, String(PROVIDER_RANK))),
|