dsh-niu-lai
其他 活跃维护

dsh-niu-lai

jxwb125646/dsh-niu-lai

为Web端交互工具配套的轻量meme音效扩展,消息发送时自动播放《妈妈》影视片段音效,任务完成时自动播放牛来音效,安装即用无需额外配置。

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

dsh-niu-lai 🐂🔊

A DeepSeek Harness (dsh) Web plugin that brings the viral 《牛来》 movie meme to your agent sessions:

  • You send a message → the computer plays “妈妈”
  • A task completes → the computer plays “牛来”

All in-browser (Web Audio). No API keys, no external services, the clips ship embedded in the bundle.

中文说明

Install

# GitHub source (works today)
dsh plugin --profile web add github:jxwb125646/dsh-niu-lai

# npm (once published)
dsh plugin --profile web add dsh-niu-lai

Then restart dsh web and refresh the page.

Configure

Open Settings → Plugins → 牛来音效 (Niu Lai sounds):

  • master on/off switch and volume slider
  • per-clip preview, replace (pick any local audio file — stored in your browser, survives restarts), and reset to default

How it works

The browser half watches every session's conversation snapshot:

  • a new user/steering message node → plays the Mama clip
  • a turn ends (finalized assistant message or terminal turn error) → plays the Niu Lai clip

Anti-spam guards: session open/history pagination/reconnect never trigger; each turn sounds once; nothing plays while a session is still loading. One clip at a time — a new sound interrupts the one still playing, so a fast reply's “牛来” cuts off a lingering “妈妈”.

Two notes: browsers require one click/keypress before audio unlocks (sending a message counts); every open page tab plays its own copy.

Uninstall

dsh plugin --profile web remove dsh-niu-lai

Building from source

The committed lib/ is prebuilt against dsh 0.1.x. To rebuild:

npm install
npm run embed-audio   # assets/*.mp3 → src/client/assets.ts (base64 data URLs)
npm run build         # tsdown → lib/host.js + lib/client.js

The tsdown preset is vendored in scripts/vendor/ (from packages/client/tsdown.client.ts in the dsh repo) so the build needs no dsh checkout.

Audio attribution

The two default clips are the viral “妈妈” cow sound and “牛来” phrase from the movie 《牛来》. This is an unofficial fan project for personal entertainment — the movie audio is not covered by this repository's MIT license (see NOTICE.md), and you should not use it commercially. Replace the clips in Settings if you prefer your own recordings.

License

Code: MIT · Audio: see NOTICE.md