{"_id":"@anco-dsh/dsh-task-notifier","_rev":"4-1b4898c63cc7f808884e06a7a8568422","name":"@anco-dsh/dsh-task-notifier","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.1":{"name":"@anco-dsh/dsh-task-notifier","version":"0.1.1","_id":"@anco-dsh/dsh-task-notifier@0.1.1","maintainers":[{"name":"anco","email":"1197252996@qq.com"}],"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"721cacdd4114fb225abec7d0c02fa22d9281c81a","tarball":"https://registry.npmjs.org/@anco-dsh/dsh-task-notifier/-/dsh-task-notifier-0.1.1.tgz","fileCount":4,"integrity":"sha512-Oinikuq4IN1bbTRd03ImIxr/o7qeBUw2vIDZRFg/lpNPQz6mwVp8KhyfTvOzTpQ/NHS+z7dWoAQQhGwUIZsPuQ==","signatures":[{"sig":"MEUCIQCLTwnEP9x88kke3oC32CPjZCbYWbFNUzxY6/qIabUeogIgJkaqXNZoSFth7IVOt4j4MDpPSw2yJC20RXKlOJxHgXk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5782},"main":"index.js","type":"module","_npmUser":{"name":"anco","email":"1197252996@qq.com"},"_npmVersion":"12.0.1","description":"DSH 任务完成通知器：Agent 每轮完成、子代理结束、Workflow 跑完、目标完成、Agent 提问时发送系统通知（macOS osascript）。","directories":{},"_nodeVersion":"22.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dsh-task-notifier_0.1.1_1786805527647_0.32332515120722105","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@anco-dsh/dsh-task-notifier","version":"0.1.2","_id":"@anco-dsh/dsh-task-notifier@0.1.2","maintainers":[{"name":"anco","email":"1197252996@qq.com"}],"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"8cb41a535345d029402469bcfde749ef84196761","tarball":"https://registry.npmjs.org/@anco-dsh/dsh-task-notifier/-/dsh-task-notifier-0.1.2.tgz","fileCount":4,"integrity":"sha512-4/ke3QNx8AZYFZmQ5thlu6EqWQn7s0Hbx4c4RBoH0GjnB5HXbYDLe5RMJ35/N3k7SQSIE3n1AiTk6Wl4rPK5SA==","signatures":[{"sig":"MEYCIQDfH8sMN1L5IeLGoRVYiuZpVi/QmOe+HbNsknDKJaC0lwIhAJzlVoE74OAZoJY/++HUwN+W3w5OZ8hmZji2YNoPn3gw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7292},"main":"index.js","type":"module","_npmUser":{"name":"anco","email":"1197252996@qq.com"},"_npmVersion":"12.0.1","description":"DSH 任务完成通知器：Agent 每轮完成、子代理结束、Workflow 跑完、目标完成、Agent 提问时发送系统通知（macOS osascript）。","directories":{},"_nodeVersion":"22.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dsh-task-notifier_0.1.2_1786806300066_0.5471540465073983","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@anco-dsh/dsh-task-notifier","version":"0.1.3","_id":"@anco-dsh/dsh-task-notifier@0.1.3","maintainers":[{"name":"anco","email":"1197252996@qq.com"}],"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"a116e14ca01b63f08cb3b1495017fe95bcd1bfb5","tarball":"https://registry.npmjs.org/@anco-dsh/dsh-task-notifier/-/dsh-task-notifier-0.1.3.tgz","fileCount":4,"integrity":"sha512-CUBJ7cG3Bn7C3GaHTrobZgbX3a1o62LdscqJTlxisJgslvKQV01XcOcLluQLMnmMNcPWko21sUpyfq2l4Gjtiw==","signatures":[{"sig":"MEUCIAISVxQJDm4z0mwq5Kh7VilDz2J28XWWu1dKMPCJDBRUAiEA9ve/WJPILHEHaioazPpW/rnSilJYhsXeVRUMUDmF4yE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7707},"main":"index.js","type":"module","gitHead":"73b49bb6094a3501a4ad1877e3220d8226a02720","_npmUser":{"name":"anco","email":"1197252996@qq.com"},"_npmVersion":"12.0.1","description":"DSH 任务完成通知器：Agent 每轮完成、子代理结束、Workflow 跑完、目标完成、Agent 提问时发送系统通知（macOS osascript）。","directories":{},"_nodeVersion":"22.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/dsh-task-notifier_0.1.3_1786808318595_0.6489492833146648","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@anco-dsh/dsh-task-notifier","version":"0.1.4","description":"DSH 任务完成通知器：Agent 每轮完成、子代理结束、Workflow 跑完、目标完成、Agent 提问时发送系统通知（macOS osascript）。","type":"module","main":"index.js","publishConfig":{"access":"public"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"gitHead":"5e0721e9563bbcf5f622cf6428094e5e88bdac89","_id":"@anco-dsh/dsh-task-notifier@0.1.4","_nodeVersion":"22.22.3","_npmVersion":"12.0.1","dist":{"integrity":"sha512-IgSxzyrRzbCJenRR7jQ25HW9xTsjMuvlu5naA+wDmIvynM4fdQYtf1EhABSxXwXXpwfzFSZNqBfH4R0GX6LBLQ==","shasum":"926e584e4be8c0e5fe72f356e00c61b3d27295f6","tarball":"https://registry.npmjs.org/@anco-dsh/dsh-task-notifier/-/dsh-task-notifier-0.1.4.tgz","fileCount":4,"unpackedSize":7662,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF40avYsyH8YWtHbS3AAwtxAWrUH9FjmhAPNqmZG0B2GAiEAjgH8wb8Zm+ltrXAjDB28encusU1OOZcH8mHoEWAXGSo="}]},"_npmUser":{"name":"anco","email":"1197252996@qq.com"},"directories":{},"maintainers":[{"name":"anco","email":"1197252996@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-task-notifier_0.1.4_1786809205477_0.5557282069825373"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-15T14:52:07.519Z","modified":"2026-08-15T15:53:25.762Z","0.1.1":"2026-08-15T14:52:07.790Z","0.1.2":"2026-08-15T15:05:00.195Z","0.1.3":"2026-08-15T15:38:38.795Z","0.1.4":"2026-08-15T15:53:25.622Z"},"description":"DSH 任务完成通知器：Agent 每轮完成、子代理结束、Workflow 跑完、目标完成、Agent 提问时发送系统通知（macOS osascript）。","maintainers":[{"name":"anco","email":"1197252996@qq.com"}],"readme":"# dsh-task-notifier\n\nDSH 任务完成通知器：任务结束时发送**系统通知**（当前实现为 macOS `osascript` 横幅），触发链来自浏览器/会话事件；通知通道按平台分发（macOS osascript / Linux notify-send / Windows toast），不依赖浏览器权限。\n\n## 功能\n\n| 场景 | 事件 | 默认 |\n|---|---|---|\n| 每轮对话完成（仅根 agent） | `agent/status` | 开 |\n| 子代理结束 | `subagent/end` | 开 |\n| Workflow 跑完 | `workflow/end` | 开 |\n| 目标（goal）完成 | `goal/changed` (complete) | 开 |\n| Agent 提问 | `tools/execute` (ask_user_question) | 开 |\n\n通知通道：Host 端通过 `ctx.shell` 执行平台系统通知命令（macOS `osascript` / Linux `notify-send` / Windows PowerShell toast），无需 Client 端、无需审批。\n\n## 安装\n\n在 DSH profile（Web GUI 默认 profile 为 `web`）中安装：\n\n```sh\ndsh plugin --profile web add @anco-dsh/dsh-task-notifier\n```\n\n或从本仓库直接安装（本地开发）：\n\n```sh\ndsh plugin --profile web add .\n```\n\n> 提示：如果你使用非 `web` 的 profile，把上面的 `web` 换成你的 profile 名即可（`dsh --profile <name>` 或 GUI 设置里的当前 profile）。\n\n## 配置\n\n所有场景默认开启，可通过 profile 的 `cordis.patch.yml` 按 id 覆盖整行 config：\n\n```yaml\n- id: task-notifier\n  config:\n    notifyOnTurnEnd: true\n    notifyOnSubagentEnd: false\n    notifyOnWorkflowEnd: true\n    notifyOnGoalComplete: false\n    notifyOnQuestion: true\n```\n\n## 发布\n\n```sh\n# 1. 构建产物\npnpm pack\n\n# 2. 发布到 npm（需要 npm 账号）\nnpm publish\n\n# 或交付 tarball\ndsh plugin --profile web add ./anco-dsh-dsh-task-notifier-0.1.4.tgz\n```\n\n## 依赖\n\n- 运行时：零依赖（Config 为手写 Standard Schema）\n- 环境：跨平台（macOS `osascript` / Linux `notify-send` / Windows PowerShell toast）\n","readmeFilename":"README.md"}