@dsh-workbench/module-hello 1.4.0-rc.4 → 1.4.0-rc.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 +11 -11
- package/client.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
# @dsh-workbench/module-hello
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
工作台里最小的可安装模块:安装后右侧多一张「示例模块」卡片,卸载后消失。
|
|
4
4
|
|
|
5
5
|
## 你会看到什么
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
右侧面板多一张「示例模块」卡片,标题下面两行说明文字。卡头有刷新按钮,但这个模块没有数据源,刷新只会重绘卡片。
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## 安装
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
在模块市场的「已安装」里找到「示例模块」并安装;也可以在终端安装到工作台的 profile:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
dsh plugin --profile workbench add @dsh-workbench/module-hello
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
安装完成后,在当前项目的面板里勾选它,卡片才会出现。
|
|
18
18
|
|
|
19
19
|
## agent 能做什么
|
|
20
20
|
|
|
21
|
-
这个模块没有给 agent
|
|
21
|
+
这个模块没有给 agent 开放工具,也没有写入通道;它只演示一张卡片如何接入外壳。
|
|
22
22
|
|
|
23
23
|
## 数据从哪来
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
没有数据源:卡片上的文字由模块自带,不读接口、不需要登录。
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## 卸载
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
在模块市场卸载,或:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
dsh plugin --profile workbench remove @dsh-workbench/module-hello
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
卸载后卡片消失,不影响其他模块。
|
|
36
36
|
|
|
37
37
|
## 出问题先看
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
卡片没有出现时,先确认当前项目的面板里已勾选「示例模块」;仍未出现就重新安装一次。
|
package/client.js
CHANGED
|
@@ -38,7 +38,7 @@ window.__ModuleLoader__.load({
|
|
|
38
38
|
zh: {
|
|
39
39
|
"hello.cardTitle": "\u793A\u4F8B\u6A21\u5757",
|
|
40
40
|
"hello.heading": "hello, workbench",
|
|
41
|
-
"hello.body": "\u8FD9\
|
|
41
|
+
"hello.body": "\u8FD9\u4E2A\u6A21\u5757\u7531\u4E00\u4EFD\u72EC\u7ACB\u5B89\u88C5\u7684\u5DE5\u4F5C\u53F0\u6A21\u5757\u63D0\u4F9B\u3002"
|
|
42
42
|
},
|
|
43
43
|
en: {
|
|
44
44
|
"hello.cardTitle": "Sample module",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/module-hello",
|
|
3
|
-
"version": "1.4.0-rc.
|
|
3
|
+
"version": "1.4.0-rc.5",
|
|
4
4
|
"description": "最小示例模块:装上后面板里多一张卡片,用来试装试卸。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"react": "^19.3.0",
|
|
65
65
|
"typescript": "5.9",
|
|
66
66
|
"vitest": "^5.0.2",
|
|
67
|
-
"@dsh-workbench/
|
|
68
|
-
"@dsh-workbench/
|
|
67
|
+
"@dsh-workbench/module-tools": "1.4.0-rc.5",
|
|
68
|
+
"@dsh-workbench/core": "1.4.0-rc.5"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|