dsh-notify-windows 0.7.3 → 0.7.4-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.
Files changed (2) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/package.json +8 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  本项目遵循 [Semantic Versioning](https://semver.org/)。
4
4
 
5
+ ## [Unreleased]
6
+
7
+ ### 兼容:DSH 0.1.2-alpha.4
8
+
9
+ - **peerDependencies**:`@deepseek-ai/cordis` `^4.0.1` → `^4.0.2`(alpha.4
10
+ 各包一致声明的版本)。
11
+ - **真实-Cordis 探针**:新增 `test/probe.test.mjs`(devDependency
12
+ `@deepseek-ai/cordis ^4.0.2`,`--legacy-peer-deps` 安装),在真实 Context 上
13
+ 挂载插件,按 harness-src @ 0.1.2-alpha.4 核实的会话事件字形合成 session
14
+ stub 并经 `session/event` 火线派发,断言 JSONL 日志(
15
+ `<tmpdir>/dsh-notify/notify.log`)的 notify / approval / ask-user 行与
16
+ 过滤行为:
17
+ - turn/end completed → notify(标题/轮次/截断摘要);原因不在 `reasons`
18
+ 内不通知;
19
+ - 子代理过滤:`delegationDepth ≥ 1` / `header.origin === 'subagent'`
20
+ 过滤,恢复主会话(深度 0)通知;`includeSubagents: true` 放行;
21
+ - approval/asked:`approval/policy` 为 `ask` 时通知、`never` 时抑制;
22
+ - goal 轮静默:`user/message` source.kind `goal` + round > 0 时仅终态
23
+ (`goal/change` operation `complete`)通知,非终态(`edit`)抑制;
24
+ - ask_user_question 直接调用与 run_code 内嵌调用均提取问题文本。
25
+ - **脚本**:`npm test` = `node --test "test/*.test.mjs"`(显式限定 `test/`
26
+ 目录,避免 `node --test` 默认 glob 误拾取面向 Windows 宿主手工运行的
27
+ `scripts/smoke-test.mjs`)。
28
+ - **事件字形核对结论**:`0.1.0-rc.8` → `0.1.2-alpha.4` 中插件消费的所有
29
+ 会话事件字段(turn/end reason kinds、user/message source、goal/change
30
+ operation、approval/asked、approval/policy、tool/call、session.header)
31
+ 无变化;`ctx.sessionTitle.get(session).title` 与 `ctx.webServer.port`
32
+ 亦保留——lib/index.js 无需改码,探针作为兼容契约锚点锁定。
33
+
5
34
  ## [0.7.3] - 2026-08-28
6
35
 
7
36
  ### 修复:重启后主会话被误判为子代理,通知全部失效
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-notify-windows",
3
- "version": "0.7.3",
3
+ "version": "0.7.4-beta.0",
4
4
  "description": "DeepSeek Harness (DSH) 插件:任务完成 / 等待审批 / 等待回答时发送 Windows 系统桌面通知",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,13 @@
25
25
  "node": ">=20"
26
26
  },
27
27
  "peerDependencies": {
28
- "@deepseek-ai/cordis": "^4.0.1"
28
+ "@deepseek-ai/cordis": "^4.0.2"
29
+ },
30
+ "devDependencies": {
31
+ "@deepseek-ai/cordis": "^4.0.2"
32
+ },
33
+ "scripts": {
34
+ "test": "node --test \"test/*.test.mjs\""
29
35
  },
30
36
  "dsh": {
31
37
  "bundle": {