@wenaixi/dsh-superpower 7.2.0 → 7.2.1

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
@@ -33,7 +33,7 @@ dsh --profile web # 进会话,技能自动可用
33
33
  本地开发或离线安装:
34
34
 
35
35
  ```bash
36
- git clone https://github.com/Wenaixi/dsh-superpower.git && cd dsh-superpower
36
+ git clone https://github.com/Wenaixi/dsh-superpower && cd dsh-superpower
37
37
  pnpm install && pnpm build && node scripts/verify.mjs # 15/15 PASS
38
38
  dsh plugin --profile web add ./ # 本地路径安装
39
39
  pnpm pack && dsh plugin --profile web add ./wenaixi-dsh-superpower-*.tgz
@@ -89,6 +89,7 @@ dsh plugin --profile web remove @wenaixi/dsh-superpower
89
89
  - 拨动后立即生效,模型的下一轮对话就能看到新目录;当前这一轮不受影响。
90
90
  - 状态写在 profile 的 `cordis.patch.yml` 里,跟着 profile 一起备份迁移,重装插件不丢。
91
91
  - 只影响本包这 15 个技能,不碰官方和第三方插件提供的技能。
92
+ - 语言边界:技能名与描述固定中文;面板 UI 文案跟随宿主界面语言(设置里切换语言即生效)。
92
93
 
93
94
  ## 使用
94
95
 
@@ -164,7 +165,7 @@ src/switches.ts # 技能开关:禁言表解包与 invocation 覆盖,内
164
165
  src/client.js # 浏览器半侧:插件卡片详情页的技能开关面板,手写 CJS factory
165
166
  skills/ # 15 个技能正文与资源
166
167
  lib/ # 已提交的构建产物,GitHub 直装免构建
167
- locale/ # 插件卡片的标题与描述(中英)
168
+ locale/ # 插件卡片的标题与描述(中英);面板 UI 经官方 locale 注册表双语切换
168
169
  icon.png # 插件卡片、README 顶部、GitHub 头像共用
169
170
  scripts/ # 门禁、同名裁决实测、开关实测、上游同步复核、浏览器验证
170
171
  scripts/build-client.mjs # 复制客户端产物前校验内联清单与 skills/ 目录一致
@@ -180,6 +181,8 @@ scripts/build-client.mjs # 复制客户端产物前校验内联清单与 sk
180
181
 
181
182
  `v7.2.0` 加入技能开关面板,插件升级为双面形态(宿主侧注册技能,浏览器侧渲染开关面板),并补上图标与插件卡片元数据。
182
183
 
184
+ `v7.2.1` 固化面板语言边界:技能内容(名称与描述)固定中文不做技能级翻译;面板 UI 文案(标题、按钮、提示、meta 标签)全部并入 `zh`/`en` 词典、经官方 locale 注册表随宿主界面语言切换。底部 `provider`/`rank`/`source` 三个标注不再硬编码英文。
185
+
183
186
  完整变更见 [CHANGELOG.md](./CHANGELOG.md)。
184
187
 
185
188
  ## 常见问题
package/lib/client.js CHANGED
@@ -75,6 +75,9 @@ window.__ModuleLoader__.load({
75
75
  empty: '没有匹配的技能',
76
76
  writeFailed: '保存失败',
77
77
  hostUnavailable: '当前宿主未提供本插件的配置通道,开关暂不可用',
78
+ provider: '提供方',
79
+ rank: '优先级',
80
+ source: '来源',
78
81
  };
79
82
 
80
83
  var en = {
@@ -93,6 +96,9 @@ window.__ModuleLoader__.load({
93
96
  empty: 'No matching skill',
94
97
  writeFailed: 'Save failed',
95
98
  hostUnavailable: 'The Host does not expose this bundle configuration channel; switches are unavailable',
99
+ provider: 'Provider',
100
+ rank: 'Priority',
101
+ source: 'Source',
96
102
  };
97
103
 
98
104
  /* 官方样式注入契约:style[data-plugin-css="<包名>/<文件名>"],宿主据此在
@@ -265,9 +271,9 @@ window.__ModuleLoader__.load({
265
271
  h('h4', { className: 'spSwTitle' }, t('title')),
266
272
  h('p', { className: 'spSwIntro' }, t('intro')),
267
273
  h('ul', { className: 'spSwMeta' },
268
- h('li', { className: 'spSwMetaItem' }, 'provider', h('code', null, PROVIDER_NAME)),
269
- h('li', { className: 'spSwMetaItem' }, 'rank', h('code', null, String(PROVIDER_RANK))),
270
- h('li', { className: 'spSwMetaItem' }, 'source', h('code', null, SKILL_SOURCE))),
274
+ h('li', { className: 'spSwMetaItem' }, t('provider'), h('code', null, PROVIDER_NAME)),
275
+ h('li', { className: 'spSwMetaItem' }, t('rank'), h('code', null, String(PROVIDER_RANK))),
276
+ h('li', { className: 'spSwMetaItem' }, t('source'), h('code', null, SKILL_SOURCE))),
271
277
  h('div', { className: 'spSwBar' },
272
278
  h(P.Button, {
273
279
  variant: 'outline',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenaixi/dsh-superpower",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "obra/superpowers 的 DSH 移植版:15 个工程纪律技能注入 ctx.skills,含技能开关面板",
5
5
  "type": "module",
6
6
  "main": "lib/superpowers.js",
@@ -14,6 +14,9 @@
14
14
  "README.md",
15
15
  "LICENSE"
16
16
  ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
17
20
  "scripts": {
18
21
  "build": "tsc -p tsconfig.build.json && node scripts/build-client.mjs",
19
22
  "typecheck": "tsc --noEmit",
@@ -60,7 +63,7 @@
60
63
  "license": "MIT",
61
64
  "repository": {
62
65
  "type": "git",
63
- "url": "https://github.com/Wenaixi/dsh-superpower"
66
+ "url": "git+https://github.com/Wenaixi/dsh-superpower.git"
64
67
  },
65
68
  "homepage": "https://github.com/Wenaixi/dsh-superpower",
66
69
  "bugs": {
@@ -77,9 +80,6 @@
77
80
  "engines": {
78
81
  "node": ">=20"
79
82
  },
80
- "publishConfig": {
81
- "access": "public"
82
- },
83
83
  "exports": {
84
84
  ".": {
85
85
  "types": "./lib/superpowers.d.ts",