dsh-podwave 0.11.25 → 0.11.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 0.11.26 — 2026-11-16
2
+
3
+ 发布物清理个人隐私,并修掉 Windows CI 里 `windows-runtime` 那个跑红的 job。
4
+
5
+ - **截图全部重做**:删掉 10 张没人引用的截图(`screenshot.png`、`screenshot-setup.png`、`screenshot-player-detail.png`、`screenshot-dark.png`、`screenshot-light.png`、`screenshot-collapsed.png`、`screenshot-tasks.png`、`screenshot-xyz.png`、`screenshot-xyz-public.png`、`screenshot-0.2.png`),保留的 7 张裁掉 DSH 侧栏(`screenshot-live.png` 侧栏本来就收起了,无需裁)。之前的截图泄露了 DSH 侧栏里的会话标题、工作区名、账号昵称与头像,其中 `screenshot-setup.png` 和 `screenshot-player-detail.png` 还带着真实的 `/Users/<用户名>` 路径。**这些图此前已随公开仓库和 npm 包分发过**,本次只是止血:git 历史里的旧图仍在。
6
+ - 保留的截图统一重新导出为真 PNG:其中 `screenshot-detail.png`、`screenshot-notes.png` 之前后缀是 `.png`、内容其实是 JPEG(顺带解决了小字发糊)。
7
+ - `docs/ARCHITECTURE.md`、`docs/RELEASING.md` 里的本机绝对路径改成 `<本仓库路径>`、`<DSH profile>` 占位。
8
+ - 新增 `test/privacy.test.mjs`(5 个用例):源码与文档里不得出现具体本机家目录(`/Users/<名字>`、`/home/<名字>`、`C:\Users\<名字>`,`tom`/`someone` 等明显占位除外)、文档引用的图必须存在、`docs/` 不得留没人引用的截图、`screenshots.json` 条目必须存在、随包分发的截图必须是真 PNG(校验文件头)。
9
+ - 修 Windows CI 的 `windows-runtime` job:模型默认目录改到项目/工作区下的 `models/` 之后,workflow 仍写死 `$env:USERPROFILE\.podwave\models\...`,模型下到了新位置、sherpa 去老位置找,报 `Load model ... failed. File doesn't exist`。现在改为用 `node --input-type=module` 调 `modelsDir()` 现算路径。同两处写死已修:`test/ci/llama-check.mjs` 改用 `modelsDir()`,`src/transcribe.js` 的「模型未下载」提示不再点名 `~/.podwave/models`。
10
+ - 新增 `test/ci-model-path.test.mjs`(4 个用例)守住模型路径不再被写死。
11
+ - 顺带修掉 `api/health` 返回的版本号落后一版(一直是 `0.11.24`)。
12
+ - 测试总数 120(117 通过、3 个 Windows 专用跳过)。
13
+
1
14
  ## 0.11.25 — 2026-11-16
2
15
 
3
16
  发布包补齐 DSH 插件展示元数据:装上之后在插件列表里显示中文名和图标,详情页有自己的介绍和配图。
@@ -135,4 +135,4 @@ library.js(媒体库) state.js(播放进度/文件夹)
135
135
  1. `npm run build` 生成 `dist/client.js`。
136
136
  2. 更新 `package.json`、`CHANGELOG.md`、README。
137
137
  3. `npm pack` 产物校验后 `git commit` → `git tag vX.Y.Z` → `gh release create vX.Y.Z dsh-podwave-X.Y.Z.tgz`。
138
- 4. 桌面端:`plugin_manager` remove + install `file:/Users/tangwenxuan/Deepseek-Harness/dsh-podwave`(或刷新 DSH)。
138
+ 4. 桌面端:`plugin_manager` remove + install `file:<本仓库路径>`(或刷新 DSH)。
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-podwave",
3
- "version": "0.11.25",
3
+ "version": "0.11.26",
4
4
  "description": "DeepSeek Harness 插件:本地优先的播客播放器 + 转写 + 双语字幕 + 字幕翻译。",
5
5
  "type": "module",
6
6
  "main": "./src/host.js",
package/src/host.js CHANGED
@@ -509,7 +509,7 @@ async function route(ctx, req, res) {
509
509
  return json(res, 200, {
510
510
  ok: true,
511
511
  generatedAt: new Date().toISOString(),
512
- version: '0.11.25',
512
+ version: '0.11.26',
513
513
  platform,
514
514
  engine: recommendEngine(platform),
515
515
  paths: {
@@ -538,7 +538,7 @@ async function route(ctx, req, res) {
538
538
  }
539
539
  if ((method === 'GET' || method === 'HEAD') && routePath === 'api/health') {
540
540
  await mediaReady
541
- return json(res, 200, { ok: true, app: 'podwave', version: '0.11.24', mediaBase, transcribe: runtimeInfo(), diarize: diarizeInfo(), translate: publicConfig() })
541
+ return json(res, 200, { ok: true, app: 'podwave', version: '0.11.26', mediaBase, transcribe: runtimeInfo(), diarize: diarizeInfo(), translate: publicConfig() })
542
542
  }
543
543
  if (method === 'GET' && routePath === 'api/state') {
544
544
  const state = getState()
package/src/transcribe.js CHANGED
@@ -1047,7 +1047,7 @@ function buildSegments(raw, words) {
1047
1047
  export async function startTranscription(episode, { force = false, resume = false } = {}) {
1048
1048
  const info = runtimeInfo()
1049
1049
  if (!info.installed) throw Object.assign(new Error('转写运行环境未安装(~/.podwave/runtime)'), { status: 503 })
1050
- if (!info.modelReady) throw Object.assign(new Error('转写模型未下载(~/.podwave/models)'), { status: 503 })
1050
+ if (!info.modelReady) throw Object.assign(new Error('转写模型未下载,请在设置里安装或检查模型目录'), { status: 503 })
1051
1051
 
1052
1052
  const key = jobId(episode.id)
1053
1053
  const currentJob = getJob(key)