@weibaohui/skills-management 0.1.3 → 0.1.5

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
@@ -5,6 +5,8 @@
5
5
 
6
6
  **技能市场插件**:一个页面管理本机所有 coding agent 的技能,还能浏览安装 6600+ 的 ntd 技能市场。
7
7
 
8
+ ![技能市场:从本机技能浏览到 ntd 市场安装](docs/demo.gif)
9
+
8
10
  ## 核心功能
9
11
 
10
12
  - **全来源扫描**:自动扫描本机各 coding agent 的技能目录(Claude、ZCode、Codex 等十余个执行器),统一在一个页面查看、查看详情、单文件预览
package/docs/demo.gif ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weibaohui/skills-management",
3
- "version": "0.1.3",
4
- "description": "DeepSeek Harness plugin: ntd skill marketplace reads the ntd bundled skill collection, registers every skill on the dsh SkillRegistry (callable through the skill tool), and serves install/delete/detail APIs plus a management page (market browse + installed library).",
3
+ "version": "0.1.5",
4
+ "description": "dsh 插件 · 技能市场:一个页面管理本机所有 coding agent 的技能(Claude、ZCode、Codex 等十余个执行器),一键收编进 DSH 用户库供 skill 工具调用;内置 6600+ ntd 技能市场可浏览搜索安装,支持模型可见性治理与市场每日自动同步。",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "dsh",
@@ -30,6 +30,7 @@
30
30
  "files": [
31
31
  "src",
32
32
  "client",
33
+ "docs",
33
34
  "cordis.patch.yml"
34
35
  ],
35
36
  "scripts": {
package/src/index.js CHANGED
@@ -36,7 +36,6 @@ function loadSchemastery() {
36
36
  }
37
37
  const Schema = loadSchemastery()
38
38
 
39
- const DEFAULT_MARKET_DIRS = [join(homedir(), '.ntd', 'bundled', 'skills')]
40
39
  const MARKET_SCAN_SKIP = new Set(['.git', 'node_modules'])
41
40
  const RANK_INSTALLED = 100
42
41
  const RANK_MARKET = 500
@@ -312,6 +311,11 @@ function expandTilde(p) {
312
311
  return p === '~' || p.startsWith('~/') || p.startsWith('~\\') ? join(homedir(), p.slice(2)) : p
313
312
  }
314
313
 
314
+ /** dsh 数据根(与宿主一致:$DSH_HOME,缺省 ~/.dsh)。 */
315
+ function dshHome() {
316
+ return process.env.DSH_HOME ? resolve(process.env.DSH_HOME) : join(homedir(), '.dsh')
317
+ }
318
+
315
319
  /**
316
320
  * 切换 dsh 原生治理键 `disable-model-invocation`(docs/subsystems/skills.md)。
317
321
  * modelInvocable=true 时移除该键;false 时写入 true。其余 frontmatter 键与正文原样保留。
@@ -547,7 +551,7 @@ module.exports = {
547
551
  return resolve(expandTilde(
548
552
  typeof eff.repoDir === 'string' && eff.repoDir !== '' ? eff.repoDir
549
553
  : config.marketRepoDir !== undefined ? config.marketRepoDir
550
- : join(homedir(), '.ntd', 'bundled')))
554
+ : join(dshHome(), 'skills-management', 'market')))
551
555
  }
552
556
  const marketRoots = () => configMarketDirs !== undefined ? configMarketDirs : [join(effectiveRepoDir(), 'skills')]
553
557
  const marketDirs = marketRoots // scan/install/locate call sites read through this