rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Aliboder/dsh-music-panel
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A local + online music player, natively embedded in DeepSeek Harness.
在 DeepSeek Harness 里,把本地曲库、在线音乐平台和自建音乐服务器装进同一台播放器。
Local library · NetEase Cloud Music · QQ Music · KuGou · Bodian · Qishui · Navidrome / Subsonic · Lyrics · Cache · EBU R128 · 10-band EQ`n本地曲库 · 网易云音乐 · QQ 音乐 · 酷狗 · 波点音乐 · 汽水音乐 · Navidrome / Subsonic · 歌词 · 缓存 · 音量均衡 · 均衡器
| Now playing · 播放页 | Queue · 播放队列 |
|---|---|
![]() |
![]() |
| Folia stage · 歌词舞台 | Folia lyrics · 逐行歌词 |
|---|---|
![]() |
![]() |
| Local library · 本地曲库 | Statistics · 播放统计 |
|---|---|
![]() |
![]() |
| Instrumental · 纯音乐播放页 | Orbit stage · 轨道歌词 |
|---|---|
![]() |
![]() |
大多数音乐插件只做“能播”。dsh-music-panel 想做的是一台真正属于 DSH 的播放器:本地曲库、在线平台、歌词、缓存、元数据和播放统计共享同一套界面与队列,不需要在应用之间来回切换。
| 能力 | |
|---|---|
| 本地 + 在线 | 硬盘里的歌直接播;网易云 / QQ 音乐 / 酷狗 / 波点 / 汽水的云端歌单与喜欢也能直接浏览和播放;Navidrome / Subsonic 自建库可接入。 |
| 像播放器,而不是列表 | 专辑网格、黑胶播放页、逐行歌词与翻译、可拖拽队列、播放统计、快速定位。 |
| 把在线歌单当本地歌单 | 歌单缓存 + 预取 + 后台校准,切走再切回不重新加载;支持按平台顺序 / 名称 / 歌曲数排序。 |
| 曲库维护留在窗口里 | 在线补全标签、替换封面、校准歌词、检测重复、回收站恢复,不用打开第三方工具。 |
| 为 DSH 原生设计 | 左侧栏入口、输入框上方歌词条、会话内播放控制,跟随宿主深浅色主题与组件规范。 |
| 只在你的机器上运行 | Cookie、缓存、播放记录全部保存在本机;客户端不直连外部域名。 |
Ctrl / ⌘ + ← / → 切歌,/ 聚焦搜索。provider + playlistId 缓存 60 秒,导航项 hover / focus 预取;切回时先显示缓存,过期后后台校准。trans、QQ 加密翻译流、酷狗 KRC 内嵌译文;Navidrome / Subsonic 使用 OpenSubsonic 结构化歌词(如服务器支持)。.lrc,播放页逐行高亮、翻译、字号 / 粗细 / 模糊 / 对齐可调、±0.5s 偏移。要求:DSH Web / Desktop。 插件需要浏览器载体播放音频,并使用宿主已配置的网络与存储。
在 DSH 的 插件市场 搜索 dsh-music-panel,或让 Agent 执行:
plugin_manager install_bundle dsh-music-panel
安装后完整重启 DSH,左侧栏出现音乐图标。
在 DSH profile 目录下:
pnpm add dsh-music-panel
然后重启 DSH。npm 包:https://www.npmjs.com/package/dsh-music-panel
先确认版本是 0.27.3 或更高。0.27.2 及更早版本缺少 package.json 的 ./package.json 导出,DSH 会静默把插件判定为非客户端包:服务端工具可用,但浏览器端不会加载。
升级到 0.27.3+ 后:
完整退出并重启 DSH,不是只刷新页面。
如果仍然没有图标,在插件市场把音乐插件关闭再开启一次。
仍无效时,检查 profile 的 cordis.patch.yml 是否残留了禁用覆盖:
- id: music
disabled: true
删除这一段后重启。不要删除上面的 - insert: 音乐插件配置。
插件管理器显示“已启用”但市场显示“已停用”,通常就是这条覆盖造成的;两层状态不一致时以 profile 最终应用的配置为准。
本地音乐
在线音乐
Navidrome 的「全部歌曲」默认是随机采样。需要按页浏览完整曲库时,在连接表单中勾选「保存密码,启用完整曲库」;该选项会把密码额外写入本机 sessions.json,详见下方隐私说明。
~/.dsh/music/sessions.json(权限 0600)。~/.dsh/music/,可随时清理。/api/song 接口,可能随版本变化;失效时会退回随机采样,不影响搜索、播放和收藏。127.0.0.1 服务,由插件自分配端口);酷狗保留插件自有的签名实现;波点走 bodian-music-api;汽水走 qishui-music-api(二维码需用抖音 App 扫码授权);飞牛(fnOS)需要用户自建服务器才能验证,尚未启用。sessions.json 结构(0600),旧的 providers.json 不再读取,升级后需重新登录一次。npm test # 80 test files
npm run check # syntax + manifest checks
npm run pack:check # package self-check
index.js + src/host/**,提供 /music/* HTTP API。client.js 由 src/client/** 分片(src/client/manifest.json 定序)构建,单文件、零运行时依赖,只依赖宿主注入的 react。node scripts/build-client.mjs # rebuild client.js
node scripts/build-client.mjs --check # verify src/client and client.js agree
node scripts/build-vendor.mjs # rebuild the bundled framer-motion fragment
更多规范见 主题与组件开发规范 与 UI review;发版步骤见 发布手册。
本项目大量参考并移植了 Folia(folia-major-main 0.7.28,AGPL-3.0-only),Folia 仓库地址:https://github.com/chthollyphile/folia-major。
src/folia/** 的歌词舞台与背景是 Folia 渲染器的逐文件移植;src/client/utils/lyrics/** 是 Folia 歌词流水线的逐字副本(LRC / 增强 LRC / TTML / VTT / QRC / YRC / KRC 解析、staff 署名、副歌、行过滤、icu-folia 分词)。本项目自 0.36.0 起以 AGPL-3.0-only 发布,© Aliboder。0.35.0 及更早版本为 MIT,已发布的旧版本不受影响;因为本版本包含 AGPL-3.0-only 的 Folia 移植代码,整体必须保持同一许可。
Most music plugins stop at “it plays”. dsh-music-panel is built as a real music player for DSH: local files, online providers, lyrics, caching, metadata, and listening stats share one interface and one queue — no app switching.
| What you get | |
|---|---|
| Local + online | Play files from disk, browse cloud playlists from NetEase Cloud Music, QQ Music, KuGou, Bodian, and Qishui, or connect your own Navidrome / Subsonic server. |
| A player, not just a list | Album grid, vinyl now-playing view, synced lyrics with translations, draggable queue, listening stats, and “jump to current track”. |
| Online playlists that feel local | Per-playlist cache, hover prefetch, stale-while-revalidate refresh, and sorting by platform order / name / track count. |
| Library maintenance in place | Match metadata, replace covers, edit tags, calibrate lyrics, deduplicate tracks, and restore from trash. |
| Native to DSH | Sidebar entry, lyric line above the composer, in-conversation playback, host theme tokens, and light/dark support. |
| Local by design | Cookies, cache, and history stay on your machine; the browser side never calls external domains directly. |
Space play/pause, Ctrl / ⌘ + ← / → previous/next, / focus search..lrc; line highlighting, translation, typography controls, alignment, and ±0.5s offset.Requires DSH Web / Desktop. A browser runtime is needed for playback.
Plugin marketplace (recommended)
Search for dsh-music-panel in DSH, or run:
plugin_manager install_bundle dsh-music-panel
Then restart DSH completely. A music icon appears in the sidebar.
npm
From the DSH profile directory:
pnpm add dsh-music-panel
Then restart DSH. Package: https://www.npmjs.com/package/dsh-music-panel
First check the version: 0.27.3 or newer. Versions up to 0.27.2 lacked the ./package.json export, so DSH silently treated the package as a non-client package: the Host tool worked, but the browser bundle never loaded.
For 0.27.3+:
Quit and restart DSH completely — a page refresh is not enough.
If the icon is still missing, disable and re-enable the music plugin from the plugin marketplace.
If that does not help, check the profile's cordis.patch.yml for a stale disable override:
- id: music
disabled: true
Remove that block and restart. Do not remove the - insert: music entry above it.
“Enabled” in the plugin manager and “Disabled” in the marketplace usually means this override is present; the final profile composition wins.
Navidrome’s “All songs” view is a random sample by default. To page the complete library, enable “Save password, enable complete library” in the connection form; that stores the password in the local sessions.json (see Privacy).
~/.dsh/music/sessions.json (mode 0600).~/.dsh/music/ and can be cleared at any time./api/song endpoint, which may change between versions; if it fails, the panel falls back to random sampling without affecting search, playback, or favorites.127.0.0.1 services on ports the plugin allocates itself. KuGou keeps the plugin's own signing implementation. Bodian uses bodian-music-api; Qishui uses qishui-music-api and its QR must be authorized in the Douyin app. fnOS needs a user-hosted server and is not enabled yet.sessions.json (0600). The old providers.json is no longer read, so upgrading asks for one fresh sign-in.npm test
npm run check
npm run pack:check
index.js + src/host/**, exposing /music/* HTTP routes.client.js is built from src/client/** as a single CJS module with no runtime dependencies beyond the host-provided react.node scripts/build-client.mjs
node scripts/build-client.mjs --check
See theme guidelines and UI review for conventions, and the release guide for how a version is shipped.
folia-major-main 0.7.28): the lyric stages and backgrounds in src/folia/** are a file-by-file port of Folia's renderers, and src/client/utils/lyrics/** is a verbatim copy of its lyric pipeline (LRC / enhanced LRC / TTML / VTT / QRC / YRC / KRC parsing, staff credits, chorus, line rules, icu-folia segmentation). The online layer (provider capabilities, registry, unified facade, failure classes, local service lifecycle) follows Folia's architecture, and so do the word-level lyric upgrade, instant line-rule re-filtering, manual word segmentation and native chorus ranges. Only the boundaries are adapted (React props, playback clock, theme, audio bands, storage / service / worker shims); rendering and parsing stay as upstream. Repo: https://github.com/chthollyphile/folia-major. Per-item notices: THIRD_PARTY_NOTICES.md; porting rules: docs/folia-porting.md.AGPL-3.0-only © Aliboder — since 0.36.0. Versions up to 0.35.0 were MIT and stay as published. This release ships AGPL-3.0-only code ported from Folia, so the whole work keeps the same license.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。