@wenaixi/dsh-superpower 7.5.6 → 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 +4 -2
- package/README.zh.md +4 -0
- package/lib/client.js +8 -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.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.
|
|
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,6 +190,10 @@ 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.8` 彻底消除语言栏静默失败(增加 `spSwLangFailure` 红色报错显式渲染,底层写入失败不再吞掉报错),强化热更新防御。
|
|
194
|
+
|
|
195
|
+
`v7.5.7` 修复面板版本号显示并为语言按钮增加可见作用域说明。
|
|
196
|
+
|
|
193
197
|
`v7.5.6` 语言按钮只控制技能描述(`Superpower Skill:` 后面的文本)与按钮自身文案;面板其余 UI 恢复跟随宿主界面语言,技能正文恒为英文原版。,不再跟随宿主界面语言。
|
|
194
198
|
|
|
195
199
|
`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.
|
|
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,
|
|
@@ -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,8 @@ 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)}',
|
|
144
|
+
'.spSwLangFailure{margin:0;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-error)}',
|
|
141
145
|
'.spSwSwitchLabel{white-space:nowrap;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary)}',
|
|
142
146
|
'.spSwEmpty{margin:0;padding:24px 0;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);text-align:center}',
|
|
143
147
|
/* 窄屏:开关区落到文字下方 */
|
|
@@ -307,7 +311,9 @@ window.__ModuleLoader__.load({
|
|
|
307
311
|
submit(form, t, ['language'], 'enable', setPending, setFailures,
|
|
308
312
|
[{ op: 'set', path: [LANGUAGE_FIELD], value: effective === 'zh' ? 'en' : 'zh' }]);
|
|
309
313
|
},
|
|
310
|
-
}, (language === undefined ? hostActive : language) === 'zh' ? SP_LANG_EN : SP_LANG_ZH)
|
|
314
|
+
}, (language === undefined ? hostActive : language) === 'zh' ? SP_LANG_EN : SP_LANG_ZH),
|
|
315
|
+
h('span', { className: 'spSwLangNote' }, t('langNote')),
|
|
316
|
+
failures['language'] ? h('span', { className: 'spSwLangFailure', role: 'alert' }, failures['language']) : null),
|
|
311
317
|
h('ul', { className: 'spSwMeta' },
|
|
312
318
|
h('li', { className: 'spSwMetaItem' }, t('provider'), h('code', null, PROVIDER_NAME)),
|
|
313
319
|
h('li', { className: 'spSwMetaItem' }, t('rank'), h('code', null, String(PROVIDER_RANK))),
|