dsh-skill-mcp 0.4.4 → 0.4.6

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
@@ -11,7 +11,7 @@ DSH 技能与MCP插件(v0.4),两大功能:
11
11
 
12
12
  **前置**:已装好 DSH(`dsh web` 能正常运行),Node.js ≥ 20、pnpm ≥ 10。
13
13
 
14
- **支持的 DSH 版本**:peer 依赖 `@deepseek-ai/dsh-client-* ^0.1.1-rc.2`(基于 DSH 0.1.1-rc.2 的客户端运行时适配)。
14
+ **支持的 DSH 版本**:DSH ≥ 0.2.1(peer 依赖 `@deepseek-ai/dsh-client-* >=0.2.1-rc.2`,开区间不封顶;基于 0.1.5+ 的 `/api` 传输模型与客户端槽位体系,未来版本同模型直接可用)。
15
15
 
16
16
  ### 方式一:npm 安装
17
17
 
package/lib/client.js CHANGED
@@ -20,7 +20,9 @@ window.__ModuleLoader__.load({
20
20
  // 不可靠(jsx 为 undefined → "jsx is not a function"),createElement 最稳。
21
21
  const jsx = (type, props) => React.createElement(type, props);
22
22
 
23
- const INJECT = ["slots", "locale", "workspaces", "connection"];
23
+ // dsh 0.1.5:原生目录选择器在 uiWorkspace 服务上(ctx.workspaces 是纯
24
+ // Workspace Controller,没有 pickDirectory)。
25
+ const INJECT = ["slots", "locale", "uiWorkspace", "connection"];
24
26
 
25
27
  /** dsh v0.1.5:浏览器侧统一走 /api 通道,endpoint 带插件前缀。 */
26
28
  const RPC_PREFIX = "skill-mcp";
@@ -1214,7 +1216,7 @@ window.__ModuleLoader__.load({
1214
1216
  ...props,
1215
1217
  fillHeight: true,
1216
1218
  // 注意要包一层箭头函数:方法内部依赖 this,摘下来传会丢绑定。
1217
- pickDirectory: ctx.workspaces ? () => ctx.workspaces.pickDirectory() : undefined,
1219
+ pickDirectory: ctx.uiWorkspace ? () => ctx.uiWorkspace.pickDirectory() : undefined,
1218
1220
  })));
1219
1221
  };
1220
1222
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-skill-mcp",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Management center: link skill directories into the user skills root (enable/disable/unlink/delete) and manage MCP servers — add/edit/delete, import from other agents (Claude Code/Codex/Cursor/Gemini CLI), auto-load each project's own MCP servers via the loader",
5
5
  "license": "BSD-3-Clause",
6
6
  "homepage": "https://github.com/LvanLa/deepseek-harness-ex/tree/master/plugins/dsh-skill-mcp",
@@ -40,18 +40,19 @@
40
40
  "client": {
41
41
  "platform": "web",
42
42
  "inject": [
43
- "@deepseek-ai/dsh-client-runtime",
44
43
  "@deepseek-ai/dsh-client-connection",
45
44
  "@deepseek-ai/dsh-client-locale",
46
- "@deepseek-ai/dsh-client-ui-slots"
45
+ "@deepseek-ai/dsh-client-ui-slots",
46
+ "@deepseek-ai/dsh-client-ui-renderer",
47
+ "@deepseek-ai/dsh-client-ui-workspace"
47
48
  ]
48
49
  }
49
50
  },
50
51
  "peerDependencies": {
51
- "@deepseek-ai/cordis": "^4.0.1",
52
- "@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
53
- "@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2",
54
- "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
55
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2"
52
+ "@deepseek-ai/cordis": ">=4.0.1",
53
+ "@deepseek-ai/dsh-client-connection": ">=0.2.1-rc.2",
54
+ "@deepseek-ai/dsh-client-locale": ">=0.2.1-rc.2",
55
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.1-rc.2",
56
+ "@deepseek-ai/dsh-client-ui-workspace": ">=0.2.1-rc.2"
56
57
  }
57
58
  }