dsh-notify 0.1.2 → 0.1.3
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
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# dsh-notify
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
**唯一带系统托盘的 Windows 原生通知插件**:agent 不再运行时(完成 / 停止 / 出错 / 等你选择 / 会话关闭)自动弹原生 Toast,正文标注「工作区 · 会话」,任务栏托盘常驻鲸鱼图标——跑长任务时切走窗口,瞄一眼托盘就知道跑完了没。
|
|
8
|
+
|
|
9
|
+
零运行时依赖、零构建,`dsh plugin add` 一条命令装完即用。
|
|
6
10
|
|
|
7
11
|
## 安装
|
|
8
12
|
|
|
@@ -38,3 +42,12 @@ node scripts/test-harness.mjs # 弹三条真实 Toast 自测
|
|
|
38
42
|
## 排障
|
|
39
43
|
|
|
40
44
|
Toast 不出现:检查 Windows「通知与操作」是否允许 PowerShell 显示通知。
|
|
45
|
+
|
|
46
|
+
## AI 生成声明
|
|
47
|
+
|
|
48
|
+
代码与文档由 AI 辅助生成(DeepSeek Harness),均经人工审查与实机验证
|
|
49
|
+
(`scripts/test-harness.mjs` 弹真实 Toast 自测)。
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
[MIT](./LICENSE)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-notify",
|
|
3
3
|
"description": "DeepSeek Harness (dsh) Windows notification plugin: a native toast when the agent stops running (finished / aborted / error / waiting for your choice / session closed), plus a system-tray icon. Pure host-side, zero dependencies, zero build.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
package/scripts/test-harness.mjs
CHANGED
|
@@ -24,7 +24,7 @@ const ctx = {
|
|
|
24
24
|
list: () => [
|
|
25
25
|
{
|
|
26
26
|
id: 'ws-1',
|
|
27
|
-
path: '
|
|
27
|
+
path: 'D:\\dsh\\plugins\\dsh-plugin-notify',
|
|
28
28
|
title: 'dsh-plugin-notify',
|
|
29
29
|
sessionIds: ['test-session'],
|
|
30
30
|
},
|
|
@@ -55,7 +55,7 @@ const emit = (name, ...args) => {
|
|
|
55
55
|
|
|
56
56
|
const session = {
|
|
57
57
|
id: 'test-session',
|
|
58
|
-
header: { cwd: '
|
|
58
|
+
header: { cwd: 'D:\\dsh\\plugins\\dsh-plugin-notify' }, // 无 delegationDepth = 根会话
|
|
59
59
|
// 会话日志(与真实 dsh Session.events 同形):含 session/title 事件。
|
|
60
60
|
events: [{ type: 'session/title', data: { title: '画一只赛博朋克猫' } }],
|
|
61
61
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
## 3. 架构
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
|
|
28
|
+
D:\dsh\plugins\dsh-plugin-notify\
|
|
29
29
|
├── package.json # dsh-notify;main: lib/index.js;dsh.bundle.patch: ./cordis.patch.yml
|
|
30
30
|
├── cordis.patch.yml # bundle 补丁:- insert 注册 dsh-plugin-notify 行
|
|
31
31
|
├── lib/index.js # host 半区:事件订阅 + 状态机 + Toast 派发 + 托盘图标
|
|
@@ -94,8 +94,8 @@ patch 条目 `config`(全部有默认值,见 `README.md` 表格)。核心
|
|
|
94
94
|
|
|
95
95
|
1. **npm**(推荐):`dsh plugin --profile web add dsh-notify`。
|
|
96
96
|
2. **GitHub**:`dsh plugin --profile web add github:Pasumao/dsh-plugin-notify`(零构建,一般无需 allowBuilds)。
|
|
97
|
-
3. **本地路径**:`dsh plugin --profile web add
|
|
98
|
-
4. **手动 link**(旧版流程):dependencies 加 `"dsh-notify": "link:
|
|
97
|
+
3. **本地路径**:`dsh plugin --profile web add D:/dsh/plugins/dsh-plugin-notify`。
|
|
98
|
+
4. **手动 link**(旧版流程):dependencies 加 `"dsh-notify": "link:D:/dsh/plugins/dsh-plugin-notify"` 后 `pnpm install`。
|
|
99
99
|
|
|
100
100
|
装完重启 `dsh web`(托盘图标出现即加载成功)。调整行为时在用户层 `cordis.patch.yml` 按 id 覆盖 config。
|
|
101
101
|
|