@dsh-workbench/module-hello 1.4.3-rc.0 → 1.4.3-rc.1

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/DEVELOPING.md CHANGED
@@ -27,7 +27,7 @@ dsh plugin --profile workbench add @dsh-workbench/module-hello
27
27
  | 宿主面 | `src/host.ts` | 把 `{ unit: 'hello', mount }` 注册进外壳的 `workbenchUnits`;`routes` 空、`registerTools` 空 |
28
28
  | 浏览器面 | `src/client.tsx` | 把 `{ unit, messages, card }` 注册进外壳;卡片用 kit 的 `Card` |
29
29
  | 文案 | `src/messages.ts` | zh / en 两份字典,键名以前缀分域 |
30
- | 接线 | `cordis.patch.yml` | 把自己插进 profile 的组合图 |
30
+ | 接线 | profile 的 `cordis.patch.yml` 里的一行 | 市场安装时写 `wb-hello` 行;包里不再带组合补丁 |
31
31
  | 测试 | `src/__tests__/plugin.test.ts` | 断言插件名、注入面、两个面各注册一次 |
32
32
 
33
33
  两个面都只 `inject: ['workbenchUnits']` —— 外壳交出来的那个服务。宿主侧拿不到服务时打一条
@@ -42,7 +42,6 @@ src/
42
42
  messages.ts 文案(zh / en)
43
43
  __tests__/plugin.test.ts 两个面的注册测试
44
44
  scripts/smoke.mjs 构建后冒烟:产物能 require、导出齐全
45
- cordis.patch.yml 把自己插进 profile 组合图
46
45
  arch.config.mjs 一行:moduleArch()
47
46
  eslint.config.mjs 两行:moduleLint()
48
47
  client.js 构建产物(随仓提交,npm 包要带;dist/ 不进 git)
package/README.md CHANGED
@@ -8,13 +8,11 @@
8
8
 
9
9
  ## 安装
10
10
 
11
- 在模块市场的「已安装」里找到「示例模块」并安装;也可以在终端安装到工作台的 profile:
11
+ 在工作台的「模块市场」里添加 `@dsh-workbench/module-hello`。工作台把它装成 profile 的
12
+ 普通依赖,再在 profile 的 `cordis.patch.yml` 里写一行(`wb-hello`)把它挂上;它**不会**出现在
13
+ dsh 的插件页。安装后即启用,没有单独的开关。
12
14
 
13
- ```bash
14
- dsh plugin --profile workbench add @dsh-workbench/module-hello
15
- ```
16
-
17
- 安装完成后,在当前项目的面板里勾选它,卡片才会出现。
15
+ 安装完成后在右侧面板的「面板模块」里勾选「示例模块」,卡片才会出现。
18
16
 
19
17
  ## agent 能做什么
20
18
 
@@ -26,12 +24,7 @@ dsh plugin --profile workbench add @dsh-workbench/module-hello
26
24
 
27
25
  ## 卸载
28
26
 
29
- 在模块市场卸载,或:
30
-
31
- ```bash
32
- dsh plugin --profile workbench remove @dsh-workbench/module-hello
33
- ```
34
-
27
+ 在模块市场卸载:工作台跑 `pnpm remove` 把包从 profile 拿掉,并删掉 `wb-hello` 那一行。
35
28
  卸载后卡片消失,不影响其他模块。
36
29
 
37
30
  ## 出问题先看
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-workbench/module-hello",
3
- "version": "1.4.3-rc.0",
3
+ "version": "1.4.3-rc.1",
4
4
  "description": "最小示例模块:装上后面板里多一张卡片,用来试装试卸。",
5
5
  "type": "module",
6
6
  "exports": {
@@ -10,14 +10,10 @@
10
10
  "files": [
11
11
  "dist",
12
12
  "client.js",
13
- "cordis.patch.yml",
14
13
  "DEVELOPING.md",
15
14
  "CHANGELOG.md"
16
15
  ],
17
16
  "dsh": {
18
- "bundle": {
19
- "patch": "./cordis.patch.yml"
20
- },
21
17
  "client": {
22
18
  "platform": "web",
23
19
  "inject": [
@@ -61,11 +57,11 @@
61
57
  "@types/node": "^24.19.0",
62
58
  "@types/react": "^19.3.0",
63
59
  "esbuild": "^0.28.2",
64
- "react": "^19.3.0",
60
+ "react": "^19.3.1",
65
61
  "typescript": "5.9",
66
62
  "vitest": "^5.0.2",
67
- "@dsh-workbench/core": "1.4.3-rc.0",
68
- "@dsh-workbench/module-tools": "1.4.3-rc.0"
63
+ "@dsh-workbench/core": "1.4.3-rc.1",
64
+ "@dsh-workbench/module-tools": "1.4.3-rc.1"
69
65
  },
70
66
  "publishConfig": {
71
67
  "access": "public"
package/cordis.patch.yml DELETED
@@ -1,7 +0,0 @@
1
- # 模块自己的 bundle 层:把自己插进 profile。
2
- #
3
- # 与外壳那份 cordis.patch.yml 同形 —— 一个模块包就是一个 dsh bundle,
4
- # 装 = 把这个包装进 profile(`dsh plugin add`),插行由这一层负责。
5
- - insert:
6
- - id: workbench-module-hello
7
- name: '@dsh-workbench/module-hello'