dsh-plugin-restart-notify 0.2.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 +22 -6
- package/package.json +7 -7
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
|
-
|
|
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
|
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.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
36
|
-
"@deepseek-ai/dsh-client-locale": "0.1.
|
|
36
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
|
|
37
37
|
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
38
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.
|
|
39
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.
|
|
38
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-alpha.5",
|
|
39
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.2-alpha.5",
|
|
40
40
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
47
|
-
"@deepseek-ai/dsh-client-locale": "0.1.
|
|
47
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
|
|
48
48
|
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
49
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.
|
|
50
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.
|
|
49
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-alpha.5",
|
|
50
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.2-alpha.5",
|
|
51
51
|
"@types/node": "^22.0.0",
|
|
52
52
|
"typescript": "^6.0.3",
|
|
53
53
|
"tsdown": "^0.22.2"
|