dsh-notify-windows 0.7.6 → 0.7.7-beta.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/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  本项目遵循 [Semantic Versioning](https://semver.org/)。
4
4
 
5
+ ## [0.7.7-beta.0] - 2026-09-24
6
+
7
+ ### Beta(DSH 0.1.7-rc.1 适配,测试版)
8
+
9
+ - 本分支(`dev-0.1.7.rc1`,尚未合并 `main`)相对 `main` 的适配改动:
10
+ `package.json` 的 `dsh.compatibility.dshReleases` 新增 `"0.1.7-rc.1": "compatible"`
11
+ (`peerDependencies` 仍为 `@deepseek-ai/cordis ^4.0.2`);README 徽章与兼容性声明同步;
12
+ `lib/index.js` 的 `VERSION` 常量升至 `0.7.7`,并补充 `snapshotEvents()` 弃用延期迁移的
13
+ 头注。源码逻辑无变更。
14
+ - 发布为 npm 测试版(`--tag beta`);`latest` 保持不变。正式版 `0.7.7` 待 `main` 合并后发布。
15
+
16
+ ## [0.7.7] - 2026-09-24
17
+
18
+ ### 兼容性
19
+
20
+ - **适配 DSH 0.1.7-rc.1**:在本机 **0.1.7-rc.1** 上真实装载运行通过(插件正常加载、
21
+ 零错误;`dsh-notify` 入口激活)。`dsh.compatibility.dshReleases` 新增
22
+ `"0.1.7-rc.1": "compatible"`;README 徽章与兼容性声明同步。
23
+ - **`snapshotEvents()` 弃用(延期迁移)**:DSH 0.1.6-alpha.1 起将
24
+ `Session.snapshotEvents()` / `eventAt()` / `ownEvents()` 标记为 `@deprecated`,
25
+ 0.1.7-rc.1 Release Notes 重申;官方 Agent Note 明确"新调用被禁止,但现有未迁移
26
+ 逻辑可暂时保留"。本插件的历史读取(通知摘要 / `/goal` 轮次检查)属既有逻辑,
27
+ 继续使用该访问器,并在 `lib/index.js` 的 `sessionEvents()` 头注记录延期理由与
28
+ 迁移触发条件(待 DSH 提供异步分页读取替代后再迁移)。无源码逻辑变更。
29
+
30
+ ### 其它
31
+
32
+ - `lib/index.js` 的 `VERSION` 常量同步提升为 `0.7.7`,与 `package.json` 一致。
33
+
5
34
  ## [0.7.6] - 2026-09-22
6
35
 
7
36
  ### 兼容性
package/README.en.md CHANGED
@@ -7,11 +7,12 @@
7
7
  <img src="https://img.shields.io/github/license/SeverusZh/dsh-notify-windows" alt="license">
8
8
  <img src="https://img.shields.io/badge/platform-Windows%2010%2F11-blue" alt="platform">
9
9
  <img src="https://img.shields.io/github/stars/SeverusZh/dsh-notify-windows?style=social" alt="stars">
10
+ <img src="https://img.shields.io/badge/DSH%200.1.5--rc.1%20%2F%20rc.2%20%2F%200.1.6--alpha.2-blue" alt="dsh">
10
11
  </p>
11
12
 
12
13
  **Task finished** ✅ | **Approval pending** 🔐 | **Question pending** ❓ — never miss anything that needs you, even away from the screen.
13
14
 
14
- > **Compatibility**: v0.7.5 supports DSH **0.1.2-alpha.4+** and was verified against the `snapshotEvents()` contract on **0.1.5-rc.1** with the real-Cordis probe suite (15/15; peer `@deepseek-ai/cordis ^4.0.2`). Session history is read through both the legacy `session.events` (DSH <= 0.1.2-alpha.3) and `snapshotEvents()` (DSH 0.1.2-alpha.4+, where that property no longer exists), so excerpts, `/goal` round detection and approval-policy suppression work again after upgrading to 0.7.5. If you saw "all notifications went silent after a restart", upgrade to **0.7.3+**.
15
+ > **Compatibility**: v0.7.5 supports DSH **0.1.2-alpha.4+** and was verified against the `snapshotEvents()` contract on **0.1.5-rc.1 / 0.1.5-rc.2 / 0.1.6-alpha.2** with the real-Cordis probe suite (15/15; peer `@deepseek-ai/cordis ^4.0.2`). Session history is read through both the legacy `session.events` (DSH <= 0.1.2-alpha.3) and `snapshotEvents()` (DSH 0.1.2-alpha.4+, where that property no longer exists), so excerpts, `/goal` round detection and approval-policy suppression work again after upgrading to 0.7.5. If you saw "all notifications went silent after a restart", upgrade to **0.7.3+**.
15
16
 
16
17
  ## ✨ Features
17
18
 
package/README.md CHANGED
@@ -7,12 +7,14 @@
7
7
  <img src="https://img.shields.io/github/license/SeverusZh/dsh-notify-windows" alt="license">
8
8
  <img src="https://img.shields.io/badge/platform-Windows%2010%2F11-blue" alt="platform">
9
9
  <img src="https://img.shields.io/github/stars/SeverusZh/dsh-notify-windows?style=social" alt="stars">
10
- <img src="https://img.shields.io/badge/DeepSeek%20Harness-0.1.5--rc.1-blue" alt="dsh">
10
+ <img src="https://img.shields.io/badge/DSH%200.1.5--rc.1%20%2F%20rc.2%20%2F%200.1.6--alpha.2%20%2F%200.1.7--rc.1-blue" alt="dsh">
11
11
  </p>
12
12
 
13
13
  **任务完成** ✅ | **等待审批** 🔐 | **等待回答** ❓ —— 离开屏幕也不错过任何需要你处理的事。
14
14
 
15
- > **兼容性**:v0.7.5 支持 DSH **0.1.2-alpha.4+**,已在 **0.1.5-rc.1** 上核对 `snapshotEvents()` 契约并通过真实-Cordis 探针(15/15;peer `@deepseek-ai/cordis ^4.0.2`)。历史读取同时兼容旧版 `session.events`(DSH ≤ 0.1.2-alpha.3)与新版 `snapshotEvents()`(DSH 0.1.2-alpha.4 起该属性已不存在),升级到 0.7.5 后摘要 / `/goal` 轮次 / 审批策略恢复正常。收到过「重启后所有通知静默」问题的请升级到 **0.7.3+**(见 FAQ)。
15
+ > **兼容性**:v0.7.7 支持 DSH **0.1.2-alpha.4+**,已在 **0.1.5-rc.1 / 0.1.5-rc.2 / 0.1.6-alpha.2 / 0.1.7-rc.1** 上核对 `snapshotEvents()` 契约并通过真实-Cordis 探针(15/15;peer `@deepseek-ai/cordis ^4.0.2`)。历史读取同时兼容旧版 `session.events`(DSH ≤ 0.1.2-alpha.3)与新版 `snapshotEvents()`(DSH 0.1.2-alpha.4 起该属性已不存在),升级到 0.7.5 后摘要 / `/goal` 轮次 / 审批策略恢复正常。收到过「重启后所有通知静默」问题的请升级到 **0.7.3+**(见 FAQ)。
16
+ >
17
+ > **0.1.7-rc.1 说明**:该版本起 `snapshotEvents()` 被标记为 `@deprecated`("新调用被禁止,现有未迁移逻辑可暂时保留")。本插件的历史读取属既有逻辑,按官方 Agent Note 的延期口径暂不迁移——DSH 仍在内存保留完整事件序列,通知摘要与 `/goal` 轮次检查照常工作;待 DSH 提供异步分页读取替代后再迁移。
16
18
 
17
19
  ## ✨ 功能
18
20
 
package/lib/index.js CHANGED
@@ -25,7 +25,7 @@ import { join } from "node:path";
25
25
  import { fileURLToPath } from "node:url";
26
26
 
27
27
  const NOTIFY_SCRIPT = fileURLToPath(new URL("./notify.ps1", import.meta.url));
28
- const VERSION = "0.7.6";
28
+ const VERSION = "0.7.7";
29
29
 
30
30
  // Convert a script path so powershell.exe can read it.
31
31
  // - On WSL: powershell.exe is a Windows process and can't read Linux paths
@@ -124,6 +124,17 @@ function textOfMessage(message) {
124
124
  * losing the excerpt or the goal-round check is acceptable, but breaking the
125
125
  * notification path is not. The degradation is reported through
126
126
  * `onUnavailable` so it never disappears without a trace again.
127
+ *
128
+ * DSH 0.1.6+ deprecation deferral: `Session.snapshotEvents()` (with `eventAt()`
129
+ * and `ownEvents()`) is marked `@deprecated` from 0.1.6-alpha.1 and restated in
130
+ * the 0.1.7-rc.1 release notes — "new production calls are prohibited", while
131
+ * "existing logic may remain unmigrated for now". This reader is existing
132
+ * logic and keeps the deprecated accessor deliberately: the notification
133
+ * excerpt / `/goal` round check only need the current turn's tail, and DSH
134
+ * still retains the complete event sequence in memory, so no rewrite is
135
+ * required to keep working on 0.1.7-rc.1. Revisit only when DSH ships the
136
+ * async paged-read replacement. See the official Agent Note
137
+ * `.agents/notes/implemented/architecture/2026-09-09-deprecate-synchronous-session-event-reads.md`.
127
138
  */
128
139
  export function sessionEvents(session, onUnavailable) {
129
140
  // Reporting must never break the notification path either: a throwing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-notify-windows",
3
- "version": "0.7.6",
3
+ "version": "0.7.7-beta.0",
4
4
  "description": "DeepSeek Harness (DSH) 插件:任务完成 / 等待审批 / 等待回答时发送 Windows 系统桌面通知",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,8 @@
41
41
  "dshReleases": {
42
42
  "0.1.5-rc.1": "compatible",
43
43
  "0.1.5-rc.2": "compatible",
44
- "0.1.6-alpha.2": "compatible"
44
+ "0.1.6-alpha.2": "compatible",
45
+ "0.1.7-rc.1": "compatible"
45
46
  },
46
47
  "node": ">=20"
47
48
  }