dsh-gsv-tts 2.3.0 → 2.3.2

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/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # dsh-gsv-tts
2
2
 
3
+ ![CI](https://img.shields.io/github/actions/workflow/status/TaoruiLiu19/dsh-gsv/ci.yml?branch=master&label=CI&logo=github)
4
+ ![npm](https://img.shields.io/npm/v/dsh-gsv-tts)
5
+ ![Downloads](https://img.shields.io/npm/dt/dsh-gsv-tts)
6
+ ![License](https://img.shields.io/npm/l/dsh-gsv-tts)
7
+
3
8
  DSH(DeepSeek Harness)插件,接入 [GSV-TTS-Lite](https://github.com/chinokikiss/GSV-TTS-Lite) 本地 TTS 服务:音色克隆、流式合成、自动朗读、一键朗读、引擎一键启停。
4
9
 
5
10
  English README: [README_EN.md](README_EN.md)
@@ -143,6 +148,8 @@ pnpm publish # 发布到 npm(files: lib, scripts, cordis.patch.yml)
143
148
 
144
149
  ## 变更记录
145
150
 
151
+ - **2.3.1**:补全 npm 发布元数据(`keywords`、`license`、`repository` 等)以支持插件市场收录;新增 GitHub Actions CI 与发布前 manifest 校验;新增 `docs/PUBLISHING.md` 发布指南
152
+ - **2.3.0**:真流式客户端改进与引擎兼容补丁;补充引擎安装与语音下载指南;新增界面截图;README 双语重写,明确 npm / GitHub 双通道安装
146
153
  - **2.2.0**:声音设置面板(保存即热生效);引擎一键启停开关;🔊 朗读按钮(排除思考,引擎未启动给出原因);设置内帮助文档;音频同源短链接
147
154
  - **2.1.0**:音频改由 DSH Web 服务同源提供(不再用巨型 data URL);WAV 头/时长计算修复;`prompt_text` 留空 ASR 兜底;`execFileSync` 消除命令注入;`py -3` 支持;健康检查路径探测
148
155
 
package/README_EN.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # dsh-gsv-tts
2
2
 
3
+ ![CI](https://img.shields.io/github/actions/workflow/status/TaoruiLiu19/dsh-gsv/ci.yml?branch=master&label=CI&logo=github)
4
+ ![npm](https://img.shields.io/npm/v/dsh-gsv-tts)
5
+ ![Downloads](https://img.shields.io/npm/dt/dsh-gsv-tts)
6
+ ![License](https://img.shields.io/npm/l/dsh-gsv-tts)
7
+
3
8
  A DSH (DeepSeek Harness) plugin that integrates the [GSV-TTS-Lite](https://github.com/chinokikiss/GSV-TTS-Lite) local TTS engine: voice cloning, streaming synthesis, auto-read, one-click read-aloud, and one-click engine control.
4
9
 
5
10
  中文 README: [README.md](README.md)
@@ -143,6 +148,8 @@ Installing from GitHub runs the `prepare` script automatically; `lib/client.js`
143
148
 
144
149
  ## Changelog
145
150
 
151
+ - **2.3.1**: Completed npm publish metadata (`keywords`, `license`, `repository`, ...) for plugin-marketplace discovery; added GitHub Actions CI and a pre-publish manifest check; added `docs/PUBLISHING.md`
152
+ - **2.3.0**: True-streaming client improvements and engine compatibility patch; added engine-install and voice-download guide; added UI screenshots; bilingual README rewrite with clear npm/GitHub install paths
146
153
  - **2.2.0**: Voice Settings panel (hot-applied); one-click engine switch; 🔊 read-aloud button (excludes reasoning; clear error when the engine is off); in-settings help; same-origin audio short links
147
154
  - **2.1.0**: same-origin audio via the DSH web server (no more giant data URLs); WAV header/duration fixes; `prompt_text` ASR fallback; `execFileSync` (no shell injection); `py -3` support; health-check path probing
148
155
 
@@ -0,0 +1,21 @@
1
+ # 发布指南
2
+
3
+ 本插件通过 npm 分发。发布前 `npm run verify` 会自动校验必须的元数据;CI 也会在每次 push 时跑类型检查与构建。
4
+
5
+ ## 被插件市场发现所需的元数据
6
+
7
+ `package.json` 必须同时满足:
8
+
9
+ - `dsh.bundle.patch` 存在——这是 `dsh plugin add` 能否安装的判断依据(只声明 `dsh.client` 不能安装)。
10
+ - `keywords` 包含 `"dsh-plugin"`——基于 npm 的市场(dshbase 等)通过 `npm search dsh-plugin` 发现插件。
11
+ - `repository` / `license` / `homepage` / `bugs` 完整——部分爬虫用 `repository` 关联 npm 包与源码仓库。
12
+
13
+ ## 版本发布步骤
14
+
15
+ ```sh
16
+ npm version minor # 升版本号(会自动触发 verify)
17
+ git push origin master --tags
18
+ npm publish
19
+ ```
20
+
21
+ 发布后 npm 会把 `latest` 标签切到新版本,搜索索引在几分钟到几小时内刷新。
package/package.json CHANGED
@@ -1,7 +1,25 @@
1
1
  {
2
2
  "name": "dsh-gsv-tts",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "DSH plugin for GSV-TTS-Lite: voice presets, auto-read, engine setup assistant, read-aloud button, and settings panel",
5
+ "keywords": [
6
+ "dsh-plugin",
7
+ "tts",
8
+ "voice",
9
+ "voice-cloning",
10
+ "text-to-speech",
11
+ "speech-synthesis",
12
+ "deepseek-harness"
13
+ ],
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/TaoruiLiu19/dsh-gsv.git"
18
+ },
19
+ "homepage": "https://github.com/TaoruiLiu19/dsh-gsv#readme",
20
+ "bugs": {
21
+ "url": "https://github.com/TaoruiLiu19/dsh-gsv/issues"
22
+ },
5
23
  "type": "module",
6
24
  "main": "lib/index.js",
7
25
  "types": "lib/index.d.ts",
@@ -43,10 +61,12 @@
43
61
  "scripts": {
44
62
  "build": "tsc",
45
63
  "prepare": "tsc",
64
+ "verify": "node scripts/verify-manifest.mjs",
65
+ "prepublishOnly": "npm run verify",
46
66
  "clean": "node -e \"require('fs').rmSync('lib',{recursive:true,force:true})\""
47
67
  },
48
68
  "peerDependencies": {
49
- "@deepseek-ai/dsh-tools": ">=0.1.0-rc.6"
69
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.6"
50
70
  },
51
71
  "devDependencies": {
52
72
  "@types/node": "^22.0.0",
@@ -0,0 +1,19 @@
1
+ import { readFileSync } from 'node:fs'
2
+ import { resolve } from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+
5
+ const root = resolve(fileURLToPath(new URL('.', import.meta.url)), '..')
6
+ const pkg = JSON.parse(readFileSync(resolve(root, 'package.json'), 'utf8'))
7
+
8
+ const failures = []
9
+ if (!pkg.dsh?.bundle?.patch) failures.push('dsh.bundle.patch is missing — plugin is not installable via dsh plugin add')
10
+ if (!Array.isArray(pkg.keywords) || !pkg.keywords.includes('dsh-plugin')) failures.push('keywords must include "dsh-plugin" for marketplace discovery')
11
+ if (!pkg.repository?.url) failures.push('repository.url is missing')
12
+ if (!pkg.license) failures.push('license is missing')
13
+
14
+ if (failures.length) {
15
+ console.error(`[verify-manifest] ${failures.length} issue(s):`)
16
+ for (const f of failures) console.error(` - ${f}`)
17
+ process.exit(1)
18
+ }
19
+ console.log(`[verify-manifest] OK: ${pkg.name}@${pkg.version} is publish-ready`)