nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:most-silence/dsh-record
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (dsh) plugin that puts a microphone button in the composer: click to record, click again to stop, and the recording is attached to your current prompt as a conversation file attachment. The output format — MP3 (default), WAV, or WebM — is chosen on the plugin's settings page.
conversation.input.right slot, before the submit action. No floating widgets; coexists with other composer controls.Config with a single format field (mp3 / wav / webm, default mp3). Pick it in Settings → Plugins → dsh-record; the browser half reads the saved choice over GET /dsh-record/config at startup (falling back to mp3 if the route is unreachable).zh/en dictionaries with the host locale service, so the tooltip, aria-label and status notices follow the interface language and update when you switch it.MediaRecorder, webm/opus preferred with capability-based fallback. An elapsed timer and a live file-name preview (rec-YYYYMMDD-HHMMSS-<n>s.mp3) show while recording.conversation.createDrafts + inputActions.addAttachments) and shows as a composer file card with upload progress, riding the normal upload queue with your prompt.OfflineAudioContext unavailable), the raw WebM is attached instead, so a recording is never lost.The plugin records, optionally transcodes, and attaches the file to your prompt. It also writes recordings to the configured directory when a save folder is set. It performs no speech recognition — pair it with a speech-to-text plugin such as dsh-stt.
Install it from the plugin marketplace. The listing points at the prebuilt tarball attached to the latest release, so nothing is compiled on your machine and no build toolchain is needed.
The
lib/build output is not committed to this repository (it is gitignored). A fresh clone therefore has nomainentry, anddsh plugin add file:<clone>fails with a missinglib/index.js. Build before installing:
git clone https://github.com/most-silence/dsh-record
cd dsh-record
npm install
npm run build # required: produces lib/index.js + lib/client.js
dsh plugin --profile <your-profile> add file:$PWD
Prefer to skip the build? Download dsh-record.tgz from the latest release and install that instead — it already contains lib/:
dsh plugin --profile <your-profile> add file:dsh-record.tgz
Restart the dsh host after installing, then refresh the web page.
Settings → Plugins → dsh-record (open the plugin's own detail page) exposes:
| Field | Values | Meaning |
|---|---|---|
format |
mp3 (default) · wav · webm |
Output container. MP3 and WAV are transcoded in the browser when you stop; WebM is attached as captured. Takes effect on the next page load. |
dirMode |
workspace (default) · custom |
Where recordings are written: the current workspace root, or a fixed folder. |
customDir |
absolute path | The folder used when dirMode is custom. Recordings are written here through a same-origin-guarded host route (file name sanitized, .. traversal rejected, 64 MB cap). |
Changing format or the directory takes effect on the next page load, since the browser half reads the configuration once at startup.
browser half (lib/client.js) host half (lib/index.js)
├─ mic button @ conversation.input.right ├─ Config schema (volatile)
├─ settings card @ plugins.bundle.config │ { format, dirMode, customDir }
├─ zh/en dictionaries → locale service ├─ GET /dsh-record/config → serves config
├─ MediaRecorder → webm/opus └─ POST /dsh-record/save → writes the file
├─ decode → lamejs (mp3) / PCM wrap (wav)
└─ attach via createDrafts + addAttachments
Three hardening rules keep the plugin from ever blocking profile startup — all learned from real crashes:
@breezystack/lamejs is bundled inline. The DSH module table is frozen and does not contain lamejs, so leaving it as a build-time external makes require("@breezystack/lamejs") miss the table and abort the whole web boot. tsdown forces it inline (noExternal).Config schema uses z.union([...]), never z.enum([...]), and schemastery stays external. The host's schemastery version has no enum method, and a schema built from a bundled private copy is incompatible with the host validator — either one throws during import and fails the dsh-record row as required, taking down the profile..volatile(). The host's settings projection only surfaces volatile fields; a plain schema renders no form at all, which is why an earlier configuration page appeared empty.npm install
npm run build # tsdown: lib/index.js (ESM) + lib/client.js (CJS, ModuleLoader-wrapped)
npm test # 21 node:test cases: factory (9) + encoders (5) + settings (7)
Tests run with Node 24 (native TypeScript type stripping); no browser needed.
conversation.input.right slot, createDrafts / addAttachments). Upstream changes may degrade to an inline error notice.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: prompt。