dsh-my-config 1.7.1 → 1.7.2
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/client.js +6 -6
- package/index.js +3 -3
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +7 -3
package/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* 我的配置 —— Web 客户端半区。
|
|
3
|
+
* 注册侧边栏面板「我的配置」与 main 面板,包含技能 / 连接器 / 智能体三个管理页。
|
|
4
4
|
* Host 操作走同源 POST /manager-center/api;插件管理走 ctx.get('remote.pluginManager')。
|
|
5
5
|
*/
|
|
6
6
|
window.__ModuleLoader__.load({
|
|
@@ -16,8 +16,8 @@ window.__ModuleLoader__.load({
|
|
|
16
16
|
/* ───────────────────────── 文案 ───────────────────────── */
|
|
17
17
|
|
|
18
18
|
const zh = {
|
|
19
|
-
panel: '
|
|
20
|
-
title: '
|
|
19
|
+
panel: '我的配置',
|
|
20
|
+
title: '我的配置',
|
|
21
21
|
intro: '集中管理技能、连接器、智能体与插件',
|
|
22
22
|
tabSkills: '技能',
|
|
23
23
|
tabConnectors: '连接器',
|
|
@@ -157,8 +157,8 @@ window.__ModuleLoader__.load({
|
|
|
157
157
|
};
|
|
158
158
|
|
|
159
159
|
const en = {
|
|
160
|
-
panel: '
|
|
161
|
-
title: '
|
|
160
|
+
panel: 'My Config',
|
|
161
|
+
title: 'My Config',
|
|
162
162
|
intro: 'Manage skills, connectors, agents and plugins in one place',
|
|
163
163
|
tabSkills: 'Skills',
|
|
164
164
|
tabConnectors: 'Connectors',
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 我的配置 —— Host 半区。
|
|
3
3
|
*
|
|
4
4
|
* 职责:
|
|
5
5
|
* - 技能管理:读写 `$DSH_HOME/skills`(user-dsh 根)下的技能包,列出全部来源的技能。
|
|
@@ -1091,7 +1091,7 @@ function createApi(ctx, diagnostics) {
|
|
|
1091
1091
|
async updateExpert(p) {
|
|
1092
1092
|
const id = String(p?.id ?? '');
|
|
1093
1093
|
const index = store.experts.findIndex((e) => e.id === id);
|
|
1094
|
-
if (index < 0) throw new Error('
|
|
1094
|
+
if (index < 0) throw new Error('只能编辑由「我的配置」创建的专家');
|
|
1095
1095
|
const skills = normalizeExpertSkills(p?.skills);
|
|
1096
1096
|
const connectors = normalizeExpertConnectors(p?.connectors);
|
|
1097
1097
|
const expert = {
|
|
@@ -1113,7 +1113,7 @@ function createApi(ctx, diagnostics) {
|
|
|
1113
1113
|
async deleteExpert(p) {
|
|
1114
1114
|
const id = String(p?.id ?? '');
|
|
1115
1115
|
const index = store.experts.findIndex((e) => e.id === id);
|
|
1116
|
-
if (index < 0) throw new Error('
|
|
1116
|
+
if (index < 0) throw new Error('只能删除由「我的配置」创建的专家');
|
|
1117
1117
|
await unregisterExpert(id);
|
|
1118
1118
|
store.experts.splice(index, 1);
|
|
1119
1119
|
clearGroup('experts', id);
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"title": "
|
|
4
|
-
"description": "Manage skills (
|
|
3
|
+
"title": "My Config",
|
|
4
|
+
"description": "Manage skills (with external skill markets and ZIP package import), MCP connectors and agent experts in one place."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-my-config",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "My Config (我的配置): manage skills (with external skill markets and zip import), MCP connectors and agent experts from dedicated Web sidebar panels.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -38,11 +38,15 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dsh": {
|
|
41
|
-
"bundle": {
|
|
41
|
+
"bundle": {
|
|
42
|
+
"patch": "./cordis.patch.yml"
|
|
43
|
+
},
|
|
42
44
|
"client": {
|
|
43
45
|
"platform": "web",
|
|
44
46
|
"immediately": true,
|
|
45
|
-
"inject": [
|
|
47
|
+
"inject": [
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-layout"
|
|
49
|
+
]
|
|
46
50
|
}
|
|
47
51
|
},
|
|
48
52
|
"license": "MIT"
|