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用户,在后台运行长任务结束时接收弹窗提醒。

Package
dsh-session-notifier
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Oct 25, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LeeeWM/dsh-session-notifier

配置

config 全部可选;省略即使用默认值。整行替换:覆盖时把需要的键写全。

键默认说明
enabledtrue总开关;false 时插件不注册任何监听
notifyOn'completed-and-error''completed' / 'completed-and-error' / 'all'(含 aborted、blocked、max-tokens)
onlyWhenUnfocusedtrueDSH 在前台时不弹
soundtrue播放系统通知音(Toast 的 ``;balloon 用 SystemSounds)
language'zh'内置文案语言:'zh' / 'en'
debounceMs1200去抖窗口;期间收到 turn/start 则取消
minTurnDurationMs0短于该时长的轮次不通知
notifySubagentsfalse是否也通知子代理会话
dshProcessNames['DeepSeek Harness']判定“DSH 在前台”的进程名(不区分大小写,可写多个)
mode'auto''auto' / 'toast' / 'balloon'
aumid''已注册的 AppUserModelID;默认借用 Windows PowerShell 的 AUMID
logFile''notify.ps1 的诊断日志路径(UTF-8);排查“没弹”时打开
timeoutMs20000通知进程超时被杀
dryRunfalse只把 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 。