rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:fishcg/dsh-music
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) plugin that embeds the online acgay.cn music site in a right-side drawer, with an optional import path for missing tracks.
status = 1).Esc also closes it.ffmpeg and ffprobe on PATH for imports. Search and playback do not need ffmpeg.Add the package to the DSH profile and patch the profile:
// ~/.dsh/profiles/desktop/package.json
{
"dependencies": {
"dsh-music": "link:/absolute/path/to/dsh-music"
},
"dsh": {
"profile": {
"bundles": ["dsh-music"]
}
}
}
# ~/.dsh/profiles/desktop/cordis.patch.yml
- insert:
- id: dsh-music
name: 'dsh-music'
Reload DSH after adding the package. If the client half does not appear on an already-running app, restart DSH once.
Import is disabled when no credential is configured. Search, playback, login, and the mini player still work.
The host resolves the token in this order:
ACGAY_IMPORT_TOKEN environment variable.config.importToken / config.token in the plugin row.ACGAY_IMPORT_TOKEN_FILE environment variable (path to a file).~/.acgay-import-token.~/.dsh/profiles/desktop/acgay-import-token (legacy location).The file contains the raw token, one line. Import is enabled when a non-empty token is found.
When no token is set:
/dsh-music/state returns imports: false./dsh-music/import returns HTTP 503.Do not commit the token. It is a shared write credential for the acgay import endpoint.
| Variable | Default | Purpose |
|---|---|---|
ACGAY_BASE_URL |
https://www.acgay.cn |
Upstream site used by the proxy and the importer. |
ACGAY_IMPORT_TOKEN |
unset | Enables import. |
ACGAY_IMPORT_TOKEN_FILE |
unset | Read the token from a custom path. |
ACGAY_FFMPEG |
ffmpeg |
ffmpeg executable. |
ACGAY_FFPROBE |
ffprobe |
ffprobe executable. |
DSH_ACGAY_NODE_BIN |
process.execPath |
Node executable used for the import worker. |
POST /dsh-music/import with { query }; a catalog item id may be sent instead.scripts/import-one.mjs as a short-lived child process.scripts/import-direct.mjs selects one candidate, downloads it, converts it to 192 kbps mp3 with ffmpeg, and POSTs a multipart request to acgay’s /api/plugin/import with the token.lab_music row and an lab_import_log row, and returns the production id. The drawer navigates to /sound/{id}.Nothing is written to a local MySQL database or local OSS client.
~/.dsh/dsh-music-cookies.json (mode 0600) by the loopback proxy, so a DSH restart does not force a new acgay login. It contains a session cookie, not a password. Delete the file to drop the saved session locally; the acgay session expiry still applies server-side.index.js: DSH host half; proxy, state, import route.client.js: DSH web client half; vinyl button, drawer, search panel, mini player.assets/bridge.js: injected into proxied pages; forwards window.__ACGAY_PLAYER__ state and commands.scripts/import-direct.ts: source for the importer.scripts/import-direct.mjs: runtime bundle (generated from the TS source).scripts/lib/*.ts / *.mjs: vendored catalog client used by the importer.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。