dsh-plugin-completion-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 +14 -4
- package/cordis.patch.yml +6 -0
- package/lib/index.js +1 -2
- package/package.json +14 -10
package/README.md
CHANGED
|
@@ -32,9 +32,21 @@ pnpm run build
|
|
|
32
32
|
|
|
33
33
|
产物:`lib/index.js`(host 半,注册 `ui-completion-notify` settings 命名空间)、`lib/client.js`(浏览器半)。
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## 安装
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
插件是 `dsh.bundle` 形态(声明配置层),一条命令即可安装进 profile:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
dsh plugin --profile web add dsh-plugin-completion-notify
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`dsh plugin add` 自动把包加入 `dsh.profile.bundles` 配置层并安装依赖。完成后重启 profile 生效:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
dsh web # 或 dsh --profile <name>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
手动挂载(不通过 `dsh plugin add`)时在 profile 的 `cordis.patch.yml` 加:
|
|
38
50
|
|
|
39
51
|
```yaml
|
|
40
52
|
- insert:
|
|
@@ -42,8 +54,6 @@ pnpm run build
|
|
|
42
54
|
name: dsh-plugin-completion-notify
|
|
43
55
|
```
|
|
44
56
|
|
|
45
|
-
并确保插件包可被 profile 解析(workspace 链接或 npm 安装)。
|
|
46
|
-
|
|
47
57
|
## 发布
|
|
48
58
|
|
|
49
59
|
```sh
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# dsh-plugin-completion-notify bundle layer: inserts the completion-notify
|
|
2
|
+
# client plugin row. Applied automatically when a profile lists this bundle
|
|
3
|
+
# (dsh plugin add dsh-plugin-completion-notify).
|
|
4
|
+
- insert:
|
|
5
|
+
- id: completion-notify
|
|
6
|
+
name: dsh-plugin-completion-notify
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { settingsNamespace } from "@deepseek-ai/dsh-settings";
|
|
2
1
|
import z from "@deepseek-ai/schemastery";
|
|
3
2
|
//#region lib/types/completion-notify-settings.js
|
|
4
3
|
/** Completion-notify preferences stored in the Host user-settings document. */
|
|
@@ -13,7 +12,7 @@ const CompletionNotifySettingsSchema = z.object({ [COMPLETION_NOTIFY_ENABLED_FIE
|
|
|
13
12
|
//#endregion
|
|
14
13
|
//#region lib/types/index.js
|
|
15
14
|
/** Host registration for the completion-notify preference. */
|
|
16
|
-
const NAMESPACE =
|
|
15
|
+
const NAMESPACE = COMPLETION_NOTIFY_SETTINGS_NAMESPACE;
|
|
17
16
|
/**
|
|
18
17
|
* Register the durable completion-notify section when the optional settings
|
|
19
18
|
* service is composed. The browser half reads and writes the enabled flag
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-completion-notify",
|
|
3
3
|
"description": "Desktop completion notifications for dsh web: a system notification when a session finishes while you are not looking at it",
|
|
4
|
-
"version": "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",
|
|
@@ -32,21 +35,21 @@
|
|
|
32
35
|
},
|
|
33
36
|
"peerDependencies": {
|
|
34
37
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
35
|
-
"@deepseek-ai/dsh-client-locale": "0.1.
|
|
38
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
|
|
36
39
|
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
37
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.
|
|
38
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.
|
|
39
|
-
"@deepseek-ai/dsh-settings": "0.1.
|
|
40
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.2-alpha.5",
|
|
41
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-alpha.5",
|
|
42
|
+
"@deepseek-ai/dsh-settings": "0.1.2-alpha.5",
|
|
40
43
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
41
44
|
"react": "^18.2.0"
|
|
42
45
|
},
|
|
43
46
|
"devDependencies": {
|
|
44
47
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
45
|
-
"@deepseek-ai/dsh-client-locale": "0.1.
|
|
48
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
|
|
46
49
|
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
47
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.
|
|
48
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.
|
|
49
|
-
"@deepseek-ai/dsh-settings": "0.1.
|
|
50
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.2-alpha.5",
|
|
51
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-alpha.5",
|
|
52
|
+
"@deepseek-ai/dsh-settings": "0.1.2-alpha.5",
|
|
50
53
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
51
54
|
"@types/node": "^22.20.1",
|
|
52
55
|
"@types/react": "~18.3.1",
|
|
@@ -56,7 +59,8 @@
|
|
|
56
59
|
"files": [
|
|
57
60
|
"lib/index.js",
|
|
58
61
|
"lib/client.js",
|
|
59
|
-
"lib/types/**/*.d.ts"
|
|
62
|
+
"lib/types/**/*.d.ts",
|
|
63
|
+
"cordis.patch.yml"
|
|
60
64
|
],
|
|
61
65
|
"keywords": [
|
|
62
66
|
"dsh-plugin",
|