dsh-plugin-restart-notify 0.1.0 → 0.3.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.
package/README.md CHANGED
@@ -34,20 +34,36 @@ pnpm run build
34
34
 
35
35
  产物:`lib/index.js`(host 半)、`lib/client.js`(浏览器半)。
36
36
 
37
- ## 挂载
37
+ ## 安装
38
38
 
39
- dsh profile 的 `cordis.patch.yml` 加行:
39
+ 插件是 `dsh.bundle` 形态(声明配置层),一条命令即可安装进 profile:
40
+
41
+ ```sh
42
+ dsh plugin --profile web add dsh-plugin-restart-notify
43
+ ```
44
+
45
+ `dsh plugin add` 自动把包加入 `dsh.profile.bundles` 配置层并安装依赖。完成后重启 profile 生效:
46
+
47
+ ```sh
48
+ dsh web # 或 dsh --profile <name>
49
+ ```
50
+
51
+ `root` 配置(指向含 `.dsh-build/client-build-environment.json` 的仓库根)默认取 `process.env.DSH_REPO_ROOT`,回退到 `D:\deepseek-harness`。仓库在其他位置时,在 profile 的 `cordis.patch.yml` 覆盖:
52
+
53
+ ```yaml
54
+ - id: restart-notify
55
+ config:
56
+ root: !!js process.env.DSH_REPO_ROOT ?? '/path/to/repo'
57
+ ```
58
+
59
+ 无 checkout 场景没有构建记录,检测自然跳过。手动挂载(不通过 `dsh plugin add`)时在 profile 的 `cordis.patch.yml` 加:
40
60
 
41
61
  ```yaml
42
62
  - insert:
43
63
  - id: restart-notify
44
64
  name: dsh-plugin-restart-notify
45
- config:
46
- root: !!js process.env.DSH_REPO_ROOT # 指向仓库根(含 .dsh-build/client-build-environment.json)
47
65
  ```
48
66
 
49
- `root` 配置必须指向仓库根目录(构建记录所在处)。安装包/无 checkout 场景没有构建记录,检测自然跳过。
50
-
51
67
  ## 发布
52
68
 
53
69
  ```sh
@@ -0,0 +1,10 @@
1
+ # dsh-plugin-restart-notify bundle layer: inserts the restart-notify host
2
+ # plugin row (the client half registers through dsh.client). Applied
3
+ # automatically when a profile lists this bundle
4
+ # (dsh plugin add dsh-plugin-restart-notify). Override `root` in the profile
5
+ # layer when the repository lives elsewhere.
6
+ - insert:
7
+ - id: restart-notify
8
+ name: dsh-plugin-restart-notify
9
+ config:
10
+ root: !!js process.env.DSH_REPO_ROOT ?? 'D:\deepseek-harness'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-plugin-restart-notify",
3
3
  "description": "Desktop notification for dsh web telling the user to restart after a rebuild the running server has not loaded",
4
- "version": "0.1.0",
4
+ "version": "0.3.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "exports": {
@@ -16,6 +16,9 @@
16
16
  "./package.json": "./package.json"
17
17
  },
18
18
  "dsh": {
19
+ "bundle": {
20
+ "patch": "./cordis.patch.yml"
21
+ },
19
22
  "client": {
20
23
  "inject": [
21
24
  "@deepseek-ai/dsh-client-locale"
@@ -30,10 +33,10 @@
30
33
  },
31
34
  "peerDependencies": {
32
35
  "@deepseek-ai/cordis": "^4.0.1",
33
- "@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
36
+ "@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
34
37
  "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
35
- "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
36
- "@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
38
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.2-alpha.5",
39
+ "@deepseek-ai/dsh-host-webserver": "0.1.2-alpha.5",
37
40
  "@deepseek-ai/schemastery": "^3.18.1"
38
41
  },
39
42
  "dependencies": {
@@ -41,10 +44,10 @@
41
44
  },
42
45
  "devDependencies": {
43
46
  "@deepseek-ai/cordis": "^4.0.1",
44
- "@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
47
+ "@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
45
48
  "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
46
- "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
47
- "@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
49
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.2-alpha.5",
50
+ "@deepseek-ai/dsh-host-webserver": "0.1.2-alpha.5",
48
51
  "@types/node": "^22.0.0",
49
52
  "typescript": "^6.0.3",
50
53
  "tsdown": "^0.22.2"
@@ -52,7 +55,8 @@
52
55
  "files": [
53
56
  "lib/index.js",
54
57
  "lib/client.js",
55
- "lib/types/**/*.d.ts"
58
+ "lib/types/**/*.d.ts",
59
+ "cordis.patch.yml"
56
60
  ],
57
61
  "keywords": ["dsh-plugin", "deepseek-harness", "restart", "notification"]
58
62
  }