dsh-plugin-completion-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 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
- dsh profile 的 `cordis.patch.yml` 加行:
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/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 = settingsNamespace(COMPLETION_NOTIFY_SETTINGS_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.2.0",
4
+ "version": "0.3.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "exports": {
@@ -35,21 +35,21 @@
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/cordis": "^4.0.1",
38
- "@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
38
+ "@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
39
39
  "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
40
- "@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
41
- "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
42
- "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
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",
43
43
  "@deepseek-ai/schemastery": "^3.18.1",
44
44
  "react": "^18.2.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@deepseek-ai/cordis": "^4.0.1",
48
- "@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
48
+ "@deepseek-ai/dsh-client-locale": "0.1.2-alpha.5",
49
49
  "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
50
- "@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
51
- "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
52
- "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
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",
53
53
  "@deepseek-ai/schemastery": "^3.18.1",
54
54
  "@types/node": "^22.20.1",
55
55
  "@types/react": "~18.3.1",