LeeeWM/dsh-session-notifier ↗★ 0
dsh-session-notifier
Windows 11 toast notifications when a DeepSeek Harness session turn finishes, with focus-aware suppression and a no-dependency PowerShell notifier. 适合Windows 11用户,在后台运行长任务结束时接收弹窗提醒。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LeeeWM/dsh-session-notifier配置
config 全部可选;省略即使用默认值。整行替换:覆盖时把需要的键写全。
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关;false 时插件不注册任何监听 |
notifyOn | 'completed-and-error' | 'completed' / 'completed-and-error' / 'all'(含 aborted、blocked、max-tokens) |
onlyWhenUnfocused | true | DSH 在前台时不弹 |
sound | true | 播放系统通知音(Toast 的 ``;balloon 用 SystemSounds) |
language | 'zh' | 内置文案语言:'zh' / 'en' |
debounceMs | 1200 | 去抖窗口;期间收到 turn/start 则取消 |
minTurnDurationMs | 0 | 短于该时长的轮次不通知 |
notifySubagents | false | 是否也通知子代理会话 |
dshProcessNames | ['DeepSeek Harness'] | 判定“DSH 在前台”的进程名(不区分大小写,可写多个) |
mode | 'auto' | 'auto' / 'toast' / 'balloon' |
aumid | '' | 已注册的 AppUserModelID;默认借用 Windows PowerShell 的 AUMID |
logFile | '' | notify.ps1 的诊断日志路径(UTF-8);排查“没弹”时打开 |
timeoutMs | 20000 | 通知进程超时被杀 |
dryRun | false | 只把 payload 打到控制台,不弹通知(测试用) |
appName | 'DeepSeek Harness' | 通知里的归属名称 |
自定义配置
插件行的默认配置由 bundle 层提供。要改配置,在 机器级用户层 $DSH_HOME/cordis.patch.yml(本机 C:\Users\Lenovo\.dsh\cordis.patch.yml)追加一行整行覆盖,例如:
- id: dsh-session-notifier
name: dsh-session-notifier
config:
enabled: true
notifyOn: completed-and-error
onlyWhenUnfocused: false
sound: true
language: zh
debounceMs: 800
notifySubagents: false
mode: auto
logFile: 'C:\Users\Lenovo\.dsh\logs\dsh-session-notifier.log'
不要在
~/.dsh/profiles/desktop/里手改package.json/cordis.patch.yml(桌面 profile 由 Electron 独占管理)。临时调试可用dsh --profile --patch。
自定义配置
插件行的默认配置由 bundle 层提供。要改配置,在 机器级用户层 $DSH_HOME/cordis.patch.yml(本机 C:\Users\Lenovo\.dsh\cordis.patch.yml)追加一行整行覆盖,例如:
- id: dsh-session-notifier
name: dsh-session-notifier
config:
enabled: true
notifyOn: completed-and-error
onlyWhenUnfocused: false
sound: true
language: zh
debounceMs: 800
notifySubagents: false
mode: auto
logFile: 'C:\Users\Lenovo\.dsh\logs\dsh-session-notifier.log'
不要在
~/.dsh/profiles/desktop/里手改package.json/cordis.patch.yml(桌面 profile 由 Electron 独占管理)。临时调试可用dsh --profile --patch。