@idoall/dsh-notify 0.4.10 → 0.4.12
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/CHANGELOG.md +34 -0
- package/README.md +15 -11
- package/README.zh.md +15 -11
- package/dist/client.js +10 -3
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); this project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). GitHub Releases use the same bilingual layout as [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.1.6-alpha.1).
|
|
4
4
|
|
|
5
|
+
## [0.4.12] - 2026-11-03
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Make the Client plugin entry non-constructible and return an idempotent disposer instead of a plain runtime object. Cordis treats ordinary functions as constructors and can ignore their cleanup return; passing the old object through its effect path instead throws `Invalid effect`. The prior pack check called `apply` directly and missed these lifecycle errors. Settings and overlay registrations now clean up through the accepted effect contract.
|
|
10
|
+
- Synchronize the lockfile's DSH peer ranges with the manifest (`>=0.1.7-rc.1 <0.3.0`); its root still carried the obsolete `<0.2.0` ceiling. Update locked transitive Zod `4.6.5` → `4.6.7` to resolve the high-severity audit advisory without modifying the host installation.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Declare the running DSH `0.2.2-alpha.3` compatible. Consumed renderer, session UI, connection, webserver, jobs, session, agent, agent-loop and workflow builds are unchanged from alpha.2; additive settings/layout changes and module-loader reconciliation changes preserve the consumed contracts.
|
|
15
|
+
- Add regression checks for bilingual README versions, DSH badges, compatibility rows, release commands, changelog and Release headings, and root lockfile metadata. Refresh both READMEs and clearly separate historical screenshots from this check.
|
|
16
|
+
|
|
17
|
+
### Verified
|
|
18
|
+
|
|
19
|
+
- Static checks, **118 automated tests**, build and package checks, including real Cordis client load/unload and release-metadata regressions.
|
|
20
|
+
- Host API inspection and live Client inspection (`dsh-notify-toast` active in `shell.overlay`) on DSH `0.2.2-alpha.3`. The existing profile was not upgraded or changed.
|
|
21
|
+
- Browser automation returned HTTP 401: no new authenticated visual, mobile, audio or end-to-end notification verification is claimed. DSH npm `latest` is `0.2.1-rc.5`; that unbooted RC is not added to the explicitly verified list.
|
|
22
|
+
- Post-publication acceptance compares the npm tarball's documents, manifest, patch and every build file with the release checkout and requires npm `latest`, GitHub Release and tag to match.
|
|
23
|
+
|
|
24
|
+
## [0.4.11] - 2026-10-28
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Declare DeepSeek Harness `0.2.2-alpha.2` compatible. The `>=0.1.7-rc.1 <0.3.0` requirement already admitted it, so no range had to widen; no notification source change is needed.
|
|
29
|
+
- **Of every package this plugin binds, the ones that own its interfaces are byte-identical across `0.2.1-rc.4` → `0.2.2-alpha.2`; the six that changed did so additively, off this plugin's call path.** `dsh-client-ui-renderer` — which owns the whole `slots` service, `shell.overlay` and `settings.section` — is byte-identical, as are `dsh-client-ui-settings`, `dsh-jobs`, `dsh-client-ui-slots`, `dsh-tool-workflow` and `dsh-client-connection`'s `lib/index.js`, so the seats, the jobs `settled` contract and `requestRejection` cannot have moved. `dsh-host-webserver` adds a second `resource` route style while `register(route)` stays byte-identical and the plugin's `{kind:'exact',path,handler}` route still lands on `responder.handler(req, res)`; `dsh-client-ui-session` adds one `whenAccess()` method; `dsh-client-ui-layout` adds six locale dictionaries; `dsh-client-modules` adds `require.asset` and a `/plugins/<pkg>/assets` route without touching the `dsh.client` validator or the `__ModuleLoader__.load({id, factory})` shape; `dsh-client-ui-settings-general` restyles the host settings panel into a CSS grid (the seat's `{close}` props and `{id,order,label}` row derivation are unchanged); `dsh-client-connection`'s only other change is an optional browser-transport type. The host's `cordis` and `schemastery` moved to `4.0.6-alpha.1` / `3.18.6-alpha.1` — the former changes only the fiber config lifecycle, the latter's code is byte-identical — and the plugin passed DSH's own gate on both releases with no exemption needed or granted.
|
|
30
|
+
- Recheck both READMEs for matching current plugin and DSH versions, badges, compatibility rows, version examples and release commands, and synchronize the lockfile's root version with the release.
|
|
31
|
+
|
|
32
|
+
### Verified
|
|
33
|
+
|
|
34
|
+
- The running `0.2.2-alpha.2` host already delivered this plugin's `0.4.10` build: `/plugins/dsh-notify/health` answered `guiAvailable: true` with `services.jobs: "reflected"` and `eventErrors: 0`, and `/config`, `/sounds` and `/update` all answered 200, the update check reading the real npm registry. The profile holds no exact-version exemption for this plugin.
|
|
35
|
+
- Client half on `0.2.2-alpha.2`, inspected in a real browser against the running page: the boot graph lists `@idoall/dsh-notify/client.js` and its served entry answered 200; Settings → Notifications rendered the 通知显示 / 提示音 / 任务提醒 / 预览与自测 sections, the preview sent a real card into `.dsh-notify-frame`, and the console stayed clean. At a 390px viewport the section fits with no horizontal overflow and the toast is full-width.
|
|
36
|
+
- Full verification: static checks, **112 automated tests**, build, and package checks.
|
|
37
|
+
- Release acceptance downloads the published npm tarball, compares its documents and manifest with the release tag, and checks every distributed build file against a fresh build; npm `latest` and the GitHub Release must agree.
|
|
38
|
+
|
|
5
39
|
## [0.4.10] - 2026-10-27
|
|
6
40
|
|
|
7
41
|
### Changed
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://github.com/idoall/dsh-notify/actions/workflows/ci.yml"><img src="https://github.com/idoall/dsh-notify/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/@idoall/dsh-notify"><img src="https://img.shields.io/npm/v/@idoall/dsh-notify?label=npm&color=CB3837" alt="npm version"></a>
|
|
8
8
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-0F172A" alt="MIT"></a>
|
|
9
|
-
<img src="https://img.shields.io/badge/DSH-0.2.
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.2--alpha.3-4B6BFB" alt="DSH 0.2.2-alpha.3">
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">English | <a href="README.zh.md">中文</a></p>
|
|
@@ -46,7 +46,7 @@ Requirements:
|
|
|
46
46
|
|
|
47
47
|
- DeepSeek Harness with a Web profile
|
|
48
48
|
- Node.js 20 or newer
|
|
49
|
-
- Verified DeepSeek Harness version: `0.2.
|
|
49
|
+
- Verified DeepSeek Harness version: `0.2.2-alpha.3`
|
|
50
50
|
|
|
51
51
|
Install from npm into your Web profile:
|
|
52
52
|
|
|
@@ -92,7 +92,7 @@ Reload the profile or restart DSH only when its plugin host has not hot-reloaded
|
|
|
92
92
|
|
|
93
93
|
Custom sounds are stored in `<dataDir>/sounds/` in the profile data directory, not the plugin installation. Uploads are limited to 1 MB and `mp3 / m4a / aac / wav / ogg / flac`; names must be a single path segment.
|
|
94
94
|
|
|
95
|
-
Above the cards, the page shows the running version against the newest one on npm: `v0.4.
|
|
95
|
+
Above the cards, the page shows the running version against the newest one on npm: `v0.4.12 ✓ 最新`, `v0.4.11 ➔ v0.4.12`, or `v0.4.12 · 检查失败`. **检查更新** forces a fresh lookup (`GET /plugins/dsh-notify/update?force=1`, authenticated); a page load reuses the host's six-hour cache. When a newer version exists the row reveals `dsh plugin --profile web add @idoall/dsh-notify@<version>` with a copy button — installing it, and restarting DSH afterwards, stays your decision.
|
|
96
96
|
|
|
97
97
|
<p align="center">
|
|
98
98
|
<img src="./assets/version-check.png" width="60%" alt="DSH notification settings with the version row: v0.4.0 newest, Check for updates, GitHub, Changelog and Issues links">
|
|
@@ -100,12 +100,14 @@ Above the cards, the page shows the running version against the newest one on np
|
|
|
100
100
|
|
|
101
101
|
## Compatibility
|
|
102
102
|
|
|
103
|
-
Current release: plugin **`0.4.
|
|
103
|
+
Current release: plugin **`0.4.12`** is verified against DeepSeek Harness **`0.2.2-alpha.3`**.
|
|
104
104
|
|
|
105
105
|
| Plugin | Verified DeepSeek Harness | What that version is |
|
|
106
106
|
| --- | --- | --- |
|
|
107
|
-
| **`0.4.
|
|
108
|
-
|
|
|
107
|
+
| **`0.4.12`** | `0.2.2-alpha.3` | Fixes Client entry lifecycle handling (constructor detection and cleanup return), declares the current DSH alpha compatible, synchronizes lockfile DSH peer ranges, updates locked Zod, and adds bilingual release checks. Notification logic is unchanged; see the release notes for verification limits. |
|
|
108
|
+
| `0.4.11` | `0.2.2-alpha.2` | Declares DSH `0.2.2-alpha.2` compatible — one `dshReleases` line, since `>=0.1.7-rc.1 <0.3.0` already admitted it. No source change: `dsh-client-ui-renderer`, which owns the whole `slots` service, is byte-identical, as are `dsh-client-ui-settings`, `dsh-jobs`, `dsh-client-ui-slots`, `dsh-tool-workflow` and `dsh-client-connection`'s host half. The six packages that did change are all additive and off the notification call path — a second `resource` route style in `dsh-host-webserver` (its `register(route)` body and the `{kind,path,handler}` dispatch are unchanged), one new `whenAccess()` in `dsh-client-ui-session`, six locale dictionaries in `dsh-client-ui-layout`, `require.asset` plus the `/plugins/<pkg>/assets` route in `dsh-client-modules`, a settings-panel grid restyle in `dsh-client-ui-settings-general` (the seat's `{close}` props are unchanged), and one browser-transport type in `dsh-client-connection` |
|
|
109
|
+
| `0.4.10` | `0.2.1-rc.4` | Declares DSH `0.2.1-rc.4` compatible — one `dshReleases` line, since `>=0.1.7-rc.1 <0.3.0` already admitted it. No source change: of the packages it binds, every one is byte-identical across `0.2.1-rc.3` → `0.2.1-rc.4` except `dsh-client-ui-settings-general`, whose client only substitutes the host version string it displays |
|
|
110
|
+
| `0.4.9` | `0.2.1-rc.3` | Adds one-click **clear-all** above the notification pile — page-local, it never answers a waiting interaction; host requirement and DSH declarations are unchanged |
|
|
109
111
|
| `0.4.8` | `0.2.1-rc.3` | Declares DSH `0.2.1-rc.3` compatible; notification behavior and the existing host requirement are unchanged |
|
|
110
112
|
| `0.4.7` | `0.2.1-rc.2` | Declares DeepSeek Harness `0.2.1-rc.2` compatible — one `dshReleases` line, since `>=0.1.7-rc.1 <0.3.0` already admitted it. No source change: of the packages it binds, only `dsh-client-ui-settings-general` differs across `0.2.1-alpha.5` → `0.2.1-rc.2`, and only in the host version string it displays. The host's `cordis` and `schemastery` also promoted to stable `4.0.5` / `3.18.5`, which are byte-identical to the alphas this plugin already ran against |
|
|
111
113
|
| `0.4.6` | `0.2.1-alpha.5` | Declares DeepSeek Harness `0.2.1-alpha.5` compatible — one `dshReleases` line, since `>=0.1.7-rc.1 <0.3.0` already admitted it. No source change: every package it binds is byte-identical across `0.2.1-alpha.4` → `0.2.1-alpha.5` except two that changed off this plugin's paths — `dsh-tools` (the `run_code` tool description) and `dsh-client-ui-settings-general` (the displayed host version string). Also fixes the Chinese README's DSH badge, which had been left two releases behind |
|
|
@@ -129,14 +131,16 @@ Current release: plugin **`0.4.10`** is verified against DeepSeek Harness **`0.2
|
|
|
129
131
|
- Two declarations decide whether the plugin loads at all: `dsh.engines.dsh` and every `@deepseek-ai/dsh-*` peer state the same requirement, `>=0.1.7-rc.1 <0.3.0` as of `0.4.1`. DSH refuses an incompatible bundle at profile load, so a range that excluded the running release would silently drop the plugin — which is exactly what the old `<0.2.0` ceiling would have done on the `0.2.0` release.
|
|
130
132
|
- **An interactive gate only withholds a completion while it is unanswered.** DSH resolves an execution approval and a plan review *inside* the turn that asked them (`approval.request()` awaits its outcome under an open turn; `exit_plan_mode` returns its verdict to the same turn), so the turn that resumes is the turn that asked, and its end is the user's task finishing. `0.4.2` makes that the rule; `0.3.2`–`0.4.1` suppressed the whole turn, which silently dropped the completion of every approval-gated task.
|
|
131
133
|
- `@deepseek-ai/schemastery` is a **peer**, not a plain dependency: DSH resolves only a linked plugin's peer dependencies from the running installation, so a `link:` install of this directory would otherwise fail to import the Host half.
|
|
132
|
-
- **Verified releases are listed, not just matched.** `dsh.compatibility.dshReleases` names every release this plugin was actually booted on (`0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-alpha.1`, `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4` as of `0.4.
|
|
134
|
+
- **Verified releases are listed, not just matched.** `dsh.compatibility.dshReleases` names every release this plugin was actually booted on (`0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-alpha.1`, `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`, `0.2.2-alpha.2`, `0.2.2-alpha.3` as of `0.4.12`) and `npm run pack:check` fails when one of them falls outside the declared range. Each entry means a real boot, not a semver guess.
|
|
133
135
|
|
|
134
|
-
The layout
|
|
136
|
+
The screenshots below come from earlier browser verification, not a new alpha.3 visual test (the automated browser returned HTTP 401). The layout was checked at a 390px mobile viewport: the settings controls reflow and the toast becomes full-width without falling behind the mobile sidebar.
|
|
135
137
|
|
|
136
138
|
<p align="center">
|
|
137
139
|
<img src="./assets/mobile.png" width="34%" alt="390 pixel mobile viewport showing a full-width enhanced notification stack with equal coloured edges beneath the newest card">
|
|
138
140
|
</p>
|
|
139
141
|
|
|
142
|
+
The npm DSH `latest` channel currently points to `0.2.1-rc.5`; this check targets the running `alpha` channel, `0.2.2-alpha.3`. The RC is within the declared range but is not added to the explicitly boot-verified list.
|
|
143
|
+
|
|
140
144
|
## Uninstall
|
|
141
145
|
|
|
142
146
|
```sh
|
|
@@ -157,11 +161,11 @@ npm run pack:check # publish preconditions + client registration check
|
|
|
157
161
|
|
|
158
162
|
## Releasing
|
|
159
163
|
|
|
160
|
-
Releases are tag-driven. Bump `package.json
|
|
164
|
+
Releases are tag-driven. Bump `package.json` and the lockfile root versions, synchronize both READMEs and the DSH declarations, move the matching CHANGELOG section out of `Unreleased`, write `release-notes/v<version>.md`, then push the release commit and tag:
|
|
161
165
|
|
|
162
166
|
```sh
|
|
163
|
-
git tag v0.4.
|
|
164
|
-
git push origin v0.4.
|
|
167
|
+
git tag v0.4.12
|
|
168
|
+
git push origin v0.4.12
|
|
165
169
|
```
|
|
166
170
|
|
|
167
171
|
The release workflow runs `npm run verify`, packs the plugin, publishes through npm trusted publishing (OIDC), and creates a GitHub Release with the package tarball and sha256.
|
package/README.zh.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://github.com/idoall/dsh-notify/actions/workflows/ci.yml"><img src="https://github.com/idoall/dsh-notify/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/@idoall/dsh-notify"><img src="https://img.shields.io/npm/v/@idoall/dsh-notify?label=npm&color=CB3837" alt="npm 版本"></a>
|
|
8
8
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-0F172A" alt="MIT"></a>
|
|
9
|
-
<img src="https://img.shields.io/badge/DSH-0.2.
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.2--alpha.3-4B6BFB" alt="DSH 0.2.2-alpha.3">
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center"><a href="README.md">English</a> | 中文</p>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
- 带 Web profile 的 DeepSeek Harness
|
|
48
48
|
- Node.js 20 或更新
|
|
49
|
-
- 已验证的 DeepSeek Harness:`0.2.
|
|
49
|
+
- 已验证的 DeepSeek Harness:`0.2.2-alpha.3`
|
|
50
50
|
|
|
51
51
|
从 npm 安装:
|
|
52
52
|
|
|
@@ -92,7 +92,7 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
92
92
|
|
|
93
93
|
自定义提示音保存在 profile 数据目录的 `<dataDir>/sounds/`,而非插件安装目录。上传限制 1 MB,支持 `mp3 / m4a / aac / wav / ogg / flac`,文件名必须是单段路径。
|
|
94
94
|
|
|
95
|
-
卡片上方是版本检测行:显示当前版本与 npm 上最新版本的关系——`v0.4.
|
|
95
|
+
卡片上方是版本检测行:显示当前版本与 npm 上最新版本的关系——`v0.4.12 ✓ 最新`、`v0.4.11 ➔ v0.4.12` 或 `v0.4.12 · 检查失败`。**检查更新**会强制重新查询(`GET /plugins/dsh-notify/update?force=1`,需通过鉴权);页面加载则复用宿主 6 小时缓存。检测到新版本时,行下方会展开 `dsh plugin --profile web add @idoall/dsh-notify@<版本>` 与复制按钮——是否安装、以及随后是否重启 DSH,都由你决定。
|
|
96
96
|
|
|
97
97
|
<p align="center">
|
|
98
98
|
<img src="./assets/version-check.png" width="60%" alt="DSH 通知设置中的版本检测行:v0.4.0 已是最新、检查更新、GitHub、更新日志与反馈 Issue 入口">
|
|
@@ -100,12 +100,14 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
100
100
|
|
|
101
101
|
## 兼容性
|
|
102
102
|
|
|
103
|
-
当前发布:插件 **`0.4.
|
|
103
|
+
当前发布:插件 **`0.4.12`** 已在 DeepSeek Harness **`0.2.2-alpha.3`** 上验证。
|
|
104
104
|
|
|
105
105
|
| 插件 | 已验证的 DeepSeek Harness | 这一版是什么 |
|
|
106
106
|
| --- | --- | --- |
|
|
107
|
-
| **`0.4.
|
|
108
|
-
|
|
|
107
|
+
| **`0.4.12`** | `0.2.2-alpha.3` | 修复客户端入口的 Cordis 生命周期处理(构造器识别与清理返回值),声明兼容当前 DSH alpha,同步锁文件的 DSH peer 范围、更新锁定的 Zod,并新增中英文发布检查。通知逻辑不变;验证边界见发布说明。 |
|
|
108
|
+
| `0.4.11` | `0.2.2-alpha.2` | 声明兼容 DSH `0.2.2-alpha.2`——只加一行 `dshReleases`,因为 `>=0.1.7-rc.1 <0.3.0` 本来就接纳它。无源码改动:承载整个 `slots` 服务的 `dsh-client-ui-renderer` 逐字节相同,`dsh-client-ui-settings`、`dsh-jobs`、`dsh-client-ui-slots`、`dsh-tool-workflow` 以及 `dsh-client-connection` 的宿主半边也相同。有改动的六处都是叠加式、不经过通知调用路径——`dsh-host-webserver` 新增一种 `resource` 路由(`register(route)` 与 `{kind,path,handler}` 派发都未变)、`dsh-client-ui-session` 新增一个 `whenAccess()`、`dsh-client-ui-layout` 新增六份语言包、`dsh-client-modules` 新增 `require.asset` 与 `/plugins/<pkg>/assets` 路由、`dsh-client-ui-settings-general` 重排设置面板网格(挂载点的 `{close}` 参数未变)、`dsh-client-connection` 只新增一个浏览器传输类型 |
|
|
109
|
+
| `0.4.10` | `0.2.1-rc.4` | 声明兼容 DSH `0.2.1-rc.4`——只加一行 `dshReleases`,因为 `>=0.1.7-rc.1 <0.3.0` 本来就接纳它。无源码改动:它绑定的每个包在 `0.2.1-rc.3` → `0.2.1-rc.4` 之间都逐字节相同,只有 `dsh-client-ui-settings-general` 变了,而那里只替换了界面显示的宿主版本号 |
|
|
110
|
+
| `0.4.9` | `0.2.1-rc.3` | 通知堆叠上方新增**全部清除**——只清本页、不替你回答待处理交互;宿主要求与 DSH 兼容声明保持不变 |
|
|
109
111
|
| `0.4.8` | `0.2.1-rc.3` | 声明兼容 DSH `0.2.1-rc.3`;通知行为与现有宿主版本范围保持不变 |
|
|
110
112
|
| `0.4.7` | `0.2.1-rc.2` | 声明兼容 DeepSeek Harness `0.2.1-rc.2`——只加一行 `dshReleases`,因为 `>=0.1.7-rc.1 <0.3.0` 本来就接纳它。无源码改动:它绑定的包里只有 `dsh-client-ui-settings-general` 在 `0.2.1-alpha.5` → `0.2.1-rc.2` 之间有差异,且只差界面显示的宿主版本号。宿主侧 `cordis`、`schemastery` 同时转正为 `4.0.5` / `3.18.5`,与本插件此前运行的 alpha 版本逐字节相同 |
|
|
111
113
|
| `0.4.6` | `0.2.1-alpha.5` | 声明兼容 DeepSeek Harness `0.2.1-alpha.5`——只加一行 `dshReleases`,因为 `>=0.1.7-rc.1 <0.3.0` 本来就接纳它。无源码改动:它绑定的每个包在 `0.2.1-alpha.4` → `0.2.1-alpha.5` 之间都逐字节相同,只有两个包的改动不在本插件路径上——`dsh-tools`(`run_code` 的工具描述)与 `dsh-client-ui-settings-general`(界面显示的宿主版本号)。另修正了中文 README 的 DSH 徽章,它此前落后了两个版本 |
|
|
@@ -129,14 +131,16 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
129
131
|
- 两处声明决定插件能否加载:`dsh.engines.dsh` 与每一个 `@deepseek-ai/dsh-*` peer 都写同一条要求,自 `0.4.1` 起为 `>=0.1.7-rc.1 <0.3.0`。DSH 会在 profile 加载时拒绝不兼容的 bundle,范围写错就会静默丢掉插件——旧的 `<0.2.0` 上限在 `0.2.0` 正式版上正是如此。
|
|
130
132
|
- **交互门禁只在「还没等到人回答」时压住完成通知。** DSH 的执行审批与计划审批都是在**提问的那个回合内**解决的(`approval.request()` 必须处于打开的回合中并原地等待结果;`exit_plan_mode` 把结论交回同一回合),所以接着干活的回合就是提问的那个回合,它的结束就是用户任务的完成。`0.4.2` 以此为规则;`0.3.2`–`0.4.1` 压掉了整个回合,于是每个带审批的任务都静默丢失完成通知。
|
|
131
133
|
- `@deepseek-ai/schemastery` 是 **peer**,不是普通依赖:DSH 只会把 **link 形态**插件的 peer 解析到当前安装;若仍写成普通依赖,`link:` 安装的 Host 半会导入失败。
|
|
132
|
-
- **声明的是「实测验证过的版本」,不是语义化猜测。** `dsh.compatibility.dshReleases` 列出真正启动验证过的每个版本(截至 `0.4.
|
|
134
|
+
- **声明的是「实测验证过的版本」,不是语义化猜测。** `dsh.compatibility.dshReleases` 列出真正启动验证过的每个版本(截至 `0.4.12`:`0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-alpha.1`、`0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5`、`0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.4`、`0.2.2-alpha.2`、`0.2.2-alpha.3`),一旦其中某个落在声明范围之外,`npm run pack:check` 会直接失败。
|
|
133
135
|
|
|
134
|
-
|
|
136
|
+
以下截图来自此前的浏览器验证,并非 alpha.3 的新视觉测试(自动化浏览器返回 HTTP 401)。此前在 390px 手机视口检查:设置控件会重排,Toast 会满宽显示且不会被移动端侧栏遮挡。
|
|
135
137
|
|
|
136
138
|
<p align="center">
|
|
137
139
|
<img src="./assets/mobile.png" width="34%" alt="390px 手机视口:增强版通知栈满宽显示,最新通知下方有等距状态色边缘">
|
|
138
140
|
</p>
|
|
139
141
|
|
|
142
|
+
当前 npm DSH 的 `latest` 通道指向 `0.2.1-rc.5`;本次检查面向正在运行的 `alpha` 通道 `0.2.2-alpha.3`。该 RC 位于声明范围内,但未加入明确启动验证的列表。
|
|
143
|
+
|
|
140
144
|
## 卸载
|
|
141
145
|
|
|
142
146
|
```sh
|
|
@@ -157,11 +161,11 @@ npm run pack:check # 发布前置条件 + 客户端注册校验
|
|
|
157
161
|
|
|
158
162
|
## 发版
|
|
159
163
|
|
|
160
|
-
发版由 tag 驱动。更新 `package.json
|
|
164
|
+
发版由 tag 驱动。更新 `package.json` 与锁文件根版本、同步中英文 README 和 DSH 声明、将对应 CHANGELOG 段落移出 `Unreleased`、编写 `release-notes/v<版本>.md` 后,推送发版提交与 tag:
|
|
161
165
|
|
|
162
166
|
```sh
|
|
163
|
-
git tag v0.4.
|
|
164
|
-
git push origin v0.4.
|
|
167
|
+
git tag v0.4.12
|
|
168
|
+
git push origin v0.4.12
|
|
165
169
|
```
|
|
166
170
|
|
|
167
171
|
发版工作流会运行 `npm run verify`、打包插件、通过 npm trusted publishing(OIDC)发布,并创建附带 tarball 与 sha256 的 GitHub Release。
|
package/dist/client.js
CHANGED
|
@@ -1391,9 +1391,16 @@ window.__ModuleLoader__.load({
|
|
|
1391
1391
|
for (const dispose of disposers.reverse()) dispose?.();
|
|
1392
1392
|
} };
|
|
1393
1393
|
}
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1394
|
+
var apply = (ctx) => {
|
|
1395
|
+
const mounted = mountNotifyClient({ slots: ctx?.slots, getSessions: () => ctx?.get?.("sessions"), getUiSession: () => ctx?.get?.("uiSession"), getUiWorkspace: () => ctx?.get?.("uiWorkspace") });
|
|
1396
|
+
let disposed = false;
|
|
1397
|
+
const dispose = () => {
|
|
1398
|
+
if (disposed) return;
|
|
1399
|
+
disposed = true;
|
|
1400
|
+
mounted.destroy();
|
|
1401
|
+
};
|
|
1402
|
+
return Object.assign(dispose, { status: mounted.status, destroy: dispose });
|
|
1403
|
+
};
|
|
1397
1404
|
|
|
1398
1405
|
return module.exports;
|
|
1399
1406
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idoall/dsh-notify",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DSH web plugin: in-page task notifications for DeepSeek Harness — enhanced or soft status toasts, a collapsible top-right stack, answer buttons, background-tab attention, and a WebAudio cue that also plays while the page is hidden. Live delivery only: no history, no service worker, no web push, no OS notification matrix.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
"0.2.1-alpha.5": "compatible",
|
|
47
47
|
"0.2.1-rc.2": "compatible",
|
|
48
48
|
"0.2.1-rc.3": "compatible",
|
|
49
|
-
"0.2.1-rc.4": "compatible"
|
|
49
|
+
"0.2.1-rc.4": "compatible",
|
|
50
|
+
"0.2.2-alpha.2": "compatible",
|
|
51
|
+
"0.2.2-alpha.3": "compatible"
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
},
|