DeepSHPlugins
dsh-plugin-uisfx 项目预览
GITHUB / COMMUNITY PROJECT

dsh-plugin-uisfx

工具与集成JavaScriptMIT

基于 uisfx 的语义化 UI 音效:任务开始/成功/失败、不同按钮情景 cue,设置页即时试听,12 种音色包,Host 持久化,并提供 `ctx.uisfx` 服务给其他插件。

6 StarsXanthanL 更新时间 2026-08-29
访问 GitHub 仓库
dsh-plugin-uisfx 项目预览

项目介绍

中文

基于 uisfx 的语义化 UI 音效:任务开始/成功/失败、不同按钮情景 cue,设置页即时试听,12 种音色包,Host 持久化,并提供 `ctx.uisfx` 服务给其他插件。

English

Semantic UI sound effects powered by uisfx: task start/success/failure and per-button cues, settings UI with instant preview, 12 sound packs, Host-persisted preferences, and `ctx.uisfx` service for other plugins.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
XanthanL
仓库
XanthanL/dsh-plugin-uisfx
GitHub Stars
6
Forks
2
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-29
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

80/ 100
维护活跃
92
文档与实用信息
100
生态关注度
36
安装便捷信号
100
项目声明信号
100

近 13 天仍在更新;README 含完整安装与使用说明;标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add dsh-plugin-uisfx

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

🔊 dsh-plugin-uisfx

🌐 English | 中文
A dsh plugin that brings uisfx semantic UI sound effects to DeepSeek Harness.
Task start / success / failure and button clicks can each be assigned a sound cue from the settings page, with instant preview.

License npm version npm downloads dsh-plugin dsh uisfx


What it solves

dsh has almost no audio feedback by default. Did the task finish? Did it fail? Did the button register? You can only tell by watching the screen.

dsh-plugin-uisfx adds a semantic sound system:

  • Task sounds — start, success, failure, pending attention
  • Button sounds — different sounds for different button kinds
  • Global sound packs — 12 uisfx packs, switch the whole personality in one click
  • Per-scenario cues — every scenario maps to an independent cue, with preview buttons
  • Persistent settings — stored in settings.yaml, survives restarts

Preview

dsh-plugin-uisfx settings page


Quick start

Published on npm: dsh-plugin-uisfx

dsh plugin --profile web add dsh-plugin-uisfx
# restart dsh web

Pin a version:

dsh plugin --profile web add [email protected]

Then open Settings → Sound Effects.

Requires dsh 0.1.0-rc.6. Verified alongside dsh-better-sidebar and @dsh-external/dsh-navbar.

Features

FeatureDescription
🎚 Global sound pack12 uisfx packs (zen / studio / scifi / soft ...)
🎯 Scenario mapping11 scenarios, each mapped to a cue with sensible defaults
▶ Instant previewPreview buttons next to every scenario in settings
🔔 Task feedbackStart / success / failure / pending for the current session
🖱 Button feedbackAuto-detects send / delete / toggle / link / primary / normal
💾 PersistenceHost settings.yaml namespace dsh-plugin-uisfx
🔌 Service APIctx.uisfx for third-party plugins

Default scenario mapping

ScenarioCueWhen
task.startstartagent starts running
task.successsuccesstask finishes successfully
task.failureerrortask fails
task.pendingnotificationpending interaction appears
click.normalpressnormal button
click.primaryselectprimary / accent button
click.toggletoggle-ontoggle / checkbox
click.sendsendsend / submit
click.closecloseclose / cancel
click.dangerdeletedelete / destructive action
click.linkopenlink

Default sound pack: zen — paper, wood and quiet chimes for long working sessions.


Sound packs

PackCharacterGood fit
minimalDry, preciseProductivity
softRounded, warmMobile, friendly SaaS
glassBright, crystallineMedia, finance
arcadeChunky pixelsGames
mechanicalSwitches, relaysDevtools
organicWood, waterEducation, kids
dreamyAiry, slowCreative tools
scifiHolographicAI tools
rubberElastic, playfulCasual apps
cinematicDeep impactsMedia, games
studioTactile, restrainedAI creative tools
zenPaper, wood, chimeFocus, reading (default)

Preview every pack: https://uisfx.com


Settings

SettingDefaultDescription
enabledtrueMaster switch
volume0.55Volume 0-1
packzenGlobal sound pack
taskSoundstrueTask sounds
clickSoundstrueButton sounds
attentionSoundstruePending attention sounds
mapping.*table abovePer-scenario cue

All settings are written to Host settings.yaml:

dsh-plugin-uisfx:
  enabled: true
  volume: 0.55
  pack: zen

Service API

Other dsh plugins can trigger sounds:

// play by scenario
ctx.uisfx.play('task.success')
ctx.uisfx.play('click.send')
ctx.uisfx.play('task.start')

// play a raw cue
ctx.uisfx.playCue('achievement')
ctx.uisfx.playCue('reward')

// preview from settings
ctx.uisfx.preview('success')

// read / update settings
ctx.uisfx.getPrefs()
ctx.uisfx.setPack('studio')
ctx.uisfx.setVolume(0.5)

There are 78 cues from uisfx: hover / press / select / toggle-on / send / success / error / complete / achievement / ...


Architecture

  • No audio files — embeds the uisfx 0.4.0 Web Audio synthesis runtime
  • Lazy player — created on the first user gesture, respecting autoplay policies
  • Task watcher — subscribes to ctx.sessions.binding(current).session (running / pending / lastAgentError)
  • Click classifier — global pointerdown classifier maps semantics to scenarios
  • Persistence — dedicated /uisfx/api/settings API backed by Host settings

FAQ

No sound?

  1. Settings → Sound Effects → enable sounds
  2. The browser may block autoplay: click anywhere on the page once
  3. Check the system volume and the dsh volume slider

No success / failure sound after a task?

  • Only the current session plays task sounds
  • Make sure taskSounds is enabled
  • Failure detection uses lastAgentError or turn-error nodes

Development

git clone https://github.com/<your-name>/dsh-plugin-uisfx.git
cd dsh-plugin-uisfx
pnpm install
pnpm build      # generates lib/client.js / lib/index.js
pnpm check      # syntax checks

Use a separate dev profile so restarts never interrupt your daily web:

dsh plugin --profile dev add ./dsh-plugin-uisfx
dsh --profile dev web --port 3090

Browser debug helpers:

window.__dshUISFX()          // uisfx player
window.__dshUISFXDebug()     // current prefs

Roadmap

  • [x] Task sounds + button sounds + settings UI + persistence
  • [x] All 12 packs and 78 cues selectable
  • [ ] Background-session completion notifications
  • [ ] Hover / drag / split sounds
  • [ ] Per-scenario sound pack
  • [ ] Custom audio uploads

License

Related projects


If you find this plugin useful, give it a ⭐ and add the dsh-plugin topic to the repo.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目