dsh-maestro-notifier
消息通讯 活跃维护

dsh-maestro-notifier

ddtcorex/dsh-maestro-notifier

可插拔的通知服务组件,默认优先适配Telegram消息推送,同时开放通知渠道注册能力,可灵活接入更多消息平台,集成后能高效触达各类业务及运维通知。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
32 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ddtcorex/dsh-maestro-notifier
git clone https://github.com/ddtcorex/dsh-maestro-notifier.git
git clone git@github.com:ddtcorex/dsh-maestro-notifier.git
README.md master

@ddtcorex/dsh-maestro-notifier

Pluggable notifier service for the DeepSeek Harness:
a tiny in-memory provider registry with Telegram as the first transport. Delivery is
never-throw — callers can notify without error handling; unknown providers and missing
targets resolve to { sent: false, reason }.

Part of the Maestro Harness suite (dsh-maestro-*). Cordis patch row id: dsh-maestro-notifier
(short alias maestro-notifier in the meta bundle).

What it provides

  • maestroNotifier service: register(provider), ids(),
    send(providerId, target?, message) dispatching to the registered provider.
  • Telegram provider (one-way bot messages; protect_content, no link preview, 10 s
    timeout; credentials never logged).
  • Transport only — message copy belongs to the consuming plugin; this package never
    authors domain text. Consumers depend on it structurally (augment.d.ts), never at
    compile time.
  • Default-target resolution: when a caller omits the target, an optional resolveTarget
    hook reads notify.telegram from the shared settings store
    (~/.dsh/maestro/settings.json, via @ddtcorex/dsh-maestro-config-lib). Explicit targets
    win; any resolver failure degrades to { sent: false, reason: 'not-configured' }.
const notifier = ctx.get('maestroNotifier')
await notifier.send('telegram', undefined, { text: 'review finished' }) // target resolved from the store

Install

dsh plugin --profile web add @ddtcorex/dsh-maestro-notifier
# or everything at once:
dsh plugin --profile web add @ddtcorex/dsh-maestro-meta

Development

pnpm install
pnpm verify   # tsc --noEmit
pnpm test     # vitest run
pnpm build    # tsc -> lib/

License

MIT