dsh-skill-hub 0.3.20 → 0.3.21

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/CONTRIBUTING.md CHANGED
@@ -39,7 +39,7 @@ src/client/locales/ dictionaries by view (common/skills/market/sources/detai
39
39
  ```bash
40
40
  npm install
41
41
  npm run typecheck # tsc --noEmit
42
- npm test # vitest (266 tests across 14 suites)
42
+ npm test # vitest (285 tests across 14 suites)
43
43
  npm run build # tsc declarations + tsdown bundles (lib/index.js + lib/client.js)
44
44
  ```
45
45
 
package/README.md CHANGED
@@ -108,7 +108,7 @@ Host uses only `ctx.skills.snapshot/get`, `ctx.webServer.register`, `ctx.systemP
108
108
 
109
109
  ```bash
110
110
  npm run typecheck # tsc --noEmit
111
- npm test # 266 tests, 14 suites
111
+ npm test # 285 tests, 14 suites
112
112
  npm run build # tsc + tsdown → lib/index.js + lib/client.js
113
113
  ```
114
114
 
@@ -117,8 +117,9 @@ npm run build # tsc + tsdown → lib/index.js + lib/client.js
117
117
  ## Troubleshooting
118
118
 
119
119
  - `duplicate loader entry id: skill-hub` — remove the duplicate install (keep one `dsh plugin add` method).
120
- - Skill missing — check the diagnostics section (frontmatter / name mismatch / short description).
121
- - Empty source group — its skills were deleted, or their disabled records were lost (sidecar restored/hand-edited). Startup reconciles `.disabled` files on disk; source groups with no visible member are no longer rendered.
120
+ - Skill missing — check the diagnostics section (frontmatter / name mismatch / short description / two discovery forms claiming the same name: a `<name>/SKILL.md` bundle and a `<name>.md` file can coexist on disk, and the registry keeps only one of them).
121
+ - Empty source group — its skills were deleted, or their disabled records were lost (sidecar restored/hand-edited). Startup reconciles `.disabled` files on disk **and prunes records whose file is gone** (a record left behind by a hand-deleted directory used to be un-actionable: enable, create and delete all failed). Source groups with no visible member are no longer rendered.
122
+ - A skill cannot be created / stays "disabled" — the disabled record pointed at a file that no longer exists. At startup (and on the next enable attempt) the record is repointed at the surviving `.disabled` file, or dropped so the name is free again.
122
123
  - Dots missing in `/` menu — dsh internals changed; catalog still works.
123
124
  - Settings card missing — open the plugin in the Plugins manager (sidebar → 插件 → dsh-skill-hub) and expand the 「技能中枢」 card at the top of the page (collapsed by default). On dsh older than `0.1.7-alpha.1` this plugin does not load at all (the settings API it targets does not exist there).
124
125
 
package/README.zh.md CHANGED
@@ -108,7 +108,7 @@ GitHub 仓库 ──扫描/导入──▶ ~/.dsh/skills
108
108
 
109
109
  ```bash
110
110
  npm run typecheck # tsc --noEmit
111
- npm test # 266 tests, 14 suites
111
+ npm test # 285 tests, 14 suites
112
112
  npm run build # tsc + tsdown → lib/index.js + lib/client.js
113
113
  ```
114
114
 
@@ -117,8 +117,9 @@ npm run build # tsc + tsdown → lib/index.js + lib/client.js
117
117
  ## 故障排查
118
118
 
119
119
  - `duplicate loader entry id: skill-hub` — 删掉重复安装(只留一种 `dsh plugin add`)。
120
- - 技能不出现 — 看诊断区(缺 frontmatter / 名称不一致 / 描述过短)。
121
- - 来源组空壳 — 组内技能已被删除、或禁用记录丢失(状态文件被恢复/手改)。启动时自动对账磁盘上的 `.disabled` 文件补记录;无可见成员的来源组不再渲染。
120
+ - 技能不出现 — 看诊断区(缺 frontmatter / 名称不一致 / 描述过短 / 两种发现形态抢同一个名字:`<name>/SKILL.md` 目录包与 `<name>.md` 扁平文件可以并存,注册表只会留一个)。
121
+ - 来源组空壳 — 组内技能已被删除、或禁用记录丢失(状态文件被恢复/手改)。启动时自动对账磁盘上的 `.disabled` 文件补记录,**并清掉文件已不存在的死记录**(手工删掉目录后留下的记录以前谁也动不了:启用、新建、删除三条路全失败);无可见成员的来源组不再渲染。
122
+ - 技能建不出来 / 一直显示「已禁用」— 禁用记录指向的文件已经不在了。启动时(以及下一次点「启用」时)会把记录改指到现存的 `.disabled` 文件,找不到就直接删掉记录、把名字释放出来。
122
123
  - `/` 菜单圆点消失 — dsh 内部触发源变更,目录功能不受影响。
123
124
  - 找不到配置卡片 — 在插件管理页打开本插件(侧边栏「插件」→ dsh-skill-hub),展开页面顶部的「技能中枢」卡片(默认折叠)。dsh 低于 `0.1.7-alpha.1` 时本插件无法加载(它所用的 settings API 在旧版不存在)。
124
125