@dsh-workbench/module-hello 1.4.0-rc.4 → 1.4.0-rc.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.
Files changed (3) hide show
  1. package/README.md +11 -11
  2. package/client.js +1 -1
  3. 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
- 在市场「已安装」里找到「示例模块」直接装;也可以在终端装进工作台的 profile:
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\u5F20\u5361\u7247\u6765\u81EA\u4E00\u4E2A\u72EC\u7ACB\u7684\u5DE5\u4F5C\u53F0\u6A21\u5757\u3002"
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.4",
3
+ "version": "1.4.0-rc.6",
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/core": "1.4.0-rc.4",
68
- "@dsh-workbench/module-tools": "1.4.0-rc.4"
67
+ "@dsh-workbench/core": "1.4.0-rc.6",
68
+ "@dsh-workbench/module-tools": "1.4.0-rc.6"
69
69
  },
70
70
  "publishConfig": {
71
71
  "access": "public"