@huanlin/dsh-plugin-mcp-manager 0.1.1 → 0.2.0

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/lib/index.js +15 -2
  3. package/package.json +25 -12
package/README.md CHANGED
@@ -129,7 +129,7 @@ README 明确警示:勿放长期密钥;部署隔离。P1 可接 `@deepseek-a
129
129
  - [x] **B2**:自带 `cordis.patch.yml`(insert 行 id/name 齐全)
130
130
  - [x] **B3**:patch 行 `name` 用包名 `@huanlin/dsh-plugin-mcp-manager`
131
131
  - [x] **F1**:`files` 含 `lib/` + `cordis.patch.yml`
132
- - [x] **F2**:`peerDependencies` 含 cordis + `@deepseek-ai/*`(dsh-tools / dsh-app-boot / dsh-client-runtime / dsh-client-ui-primitives)
132
+ - [x] **F2**:`peerDependencies` 含 `@deepseek-ai/cordis` + `@deepseek-ai/*`(dsh-tools / dsh-llm / dsh-app-boot / dsh-client-ui-primitives / dsh-client-ui-slots / dsh-client-ui-renderer / dsh-client-locale / dsh-client-ui-settings,对齐 v0.1.2-alpha.1 的 client-runtime 拆分)
133
133
  - [x] **F3**:typecheck / test / build 三 script 齐全(预构建策略:无 prepare,lib/ 入库)
134
134
  - [x] **A4**:Config 校验用 `validateServerConfig`(fail loud,携带字段名)
135
135
  - [x] **A6**:不导出 default
package/lib/index.js CHANGED
@@ -1559,8 +1559,21 @@ window.__ModuleLoader__.load({
1559
1559
  locale: NS,
1560
1560
  inject: () => ({})
1561
1561
  }, McpPanel));
1562
- const betterLocale = ctx.get("betterLocale");
1563
- if (betterLocale !== void 0) ctx.effect(() => betterLocale.register(NS, dicts), "dsh-plugin-mcp-manager: better-locale override dicts");
1562
+ ctx.effect(() => {
1563
+ let dispose;
1564
+ const sync = () => {
1565
+ dispose?.();
1566
+ dispose = void 0;
1567
+ const store = ctx.get("betterLocale");
1568
+ if (store !== void 0) dispose = store.register(NS, dicts);
1569
+ };
1570
+ sync();
1571
+ const unsubscribe = ctx.locale.subscribe(sync);
1572
+ return () => {
1573
+ unsubscribe();
1574
+ dispose?.();
1575
+ };
1576
+ }, "dsh-plugin-mcp-manager: better-locale override dicts");
1564
1577
  }
1565
1578
  //#endregion
1566
1579
  exports.apply = apply;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huanlin/dsh-plugin-mcp-manager",
3
3
  "description": "MCP 服务器管理面板:GUI 增删改 MCP 服务器配置(写入 profile cordis.patch.yml 的 mcp-client insert 行,配置 HMR 实时挂载)+ 工具浏览 + agent 面 mcp_* 管理工具。连接生命周期委托官方 @deepseek-ai/dsh-mcp-client。",
4
- "version": "0.1.1",
4
+ "version": "0.2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,24 +29,40 @@
29
29
  },
30
30
  "client": {
31
31
  "inject": [
32
- "@deepseek-ai/dsh-client-runtime",
33
32
  "@deepseek-ai/dsh-client-ui-primitives",
34
- "@deepseek-ai/dsh-client-ui-slots"
33
+ "@deepseek-ai/dsh-client-ui-slots",
34
+ "@deepseek-ai/dsh-client-locale"
35
35
  ],
36
36
  "platform": "web"
37
37
  }
38
38
  },
39
39
  "peerDependencies": {
40
- "cordis": "^4.0.0-rc.7",
40
+ "@deepseek-ai/cordis": "^4.0.1",
41
41
  "react": "^18.2.0",
42
- "@deepseek-ai/dsh-tools": "^0.1.0-rc.5",
43
- "@deepseek-ai/dsh-app-boot": "^0.1.0-rc.5",
44
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.5",
45
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.5"
42
+ "@deepseek-ai/dsh-tools": "^0.1.2-rc.1",
43
+ "@deepseek-ai/dsh-llm": "^0.1.2-rc.1",
44
+ "@deepseek-ai/dsh-app-boot": "^0.1.2-rc.1",
45
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-rc.1",
46
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-rc.1",
47
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-rc.1",
48
+ "@deepseek-ai/dsh-client-locale": "^0.1.2-rc.1",
49
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-rc.1"
46
50
  },
47
51
  "peerDependenciesMeta": {
48
52
  "@deepseek-ai/dsh-app-boot": {
49
53
  "optional": true
54
+ },
55
+ "@deepseek-ai/dsh-client-ui-slots": {
56
+ "optional": true
57
+ },
58
+ "@deepseek-ai/dsh-client-ui-renderer": {
59
+ "optional": true
60
+ },
61
+ "@deepseek-ai/dsh-client-locale": {
62
+ "optional": true
63
+ },
64
+ "@deepseek-ai/dsh-client-ui-settings": {
65
+ "optional": true
50
66
  }
51
67
  },
52
68
  "devDependencies": {
@@ -56,10 +72,7 @@
56
72
  "tsdown": "^0.22.2",
57
73
  "typescript": "^5.6.0",
58
74
  "vitest": "^2.1.0",
59
- "yaml": "^2.4.0",
60
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.5",
61
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.5",
62
- "@deepseek-ai/dsh-llm": "^0.1.0-rc.5"
75
+ "yaml": "^2.4.0"
63
76
  },
64
77
  "dependencies": {
65
78
  "yaml": "^2.4.0"