{ "name": "ds-tts", "version": "0.1.1", "private": true, "description": "DSH 里用 DeepSeek 官方朗读音色朗读对话、导出音频,并提供「文本进、音频出」的接口与工具。宿主半走 DS 官方 TTS(ticket + wss),文本投递由真实浏览器经 CDP 完成(不逆向 PoW、不伪装 TLS 指纹)。", "type": "module", "main": "./lib/index.js", "types": "./lib/types/index.d.ts", "exports": { ".": { "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "./client": { "types": "./lib/types/client/index.d.ts", "default": "./lib/client.js" }, "./package.json": "./package.json" }, "dsh": { "manifestVersion": 1, "bundle": { "patch": "./cordis.patch.yml" }, "client": { "inject": [ "@deepseek-ai/dsh-client-ui-chat", "@deepseek-ai/dsh-client-ui-conversation" ], "platform": "web" }, "_note": "运行期提供的 @deepseek-ai/* SDK 见 README「依赖」一节;它们**刻意不在依赖字段里**(只声明为 peer,本地用 `npm run link-sdk` 或整目录链接给类型),原因见 .npmrc。dsh.client.inject 只列**非基线的真实包名边**:ui-chat / ui-conversation 声明了本插件注册的座位(conversation.chat.assistant-actions / conversation.input.left);ui-slots 与 ui-primitives 属 client 基线模块表,不重复声明。本插件的产物只 require react / react/jsx-runtime / ui-primitives,三者都在基线里,所以**不需要** dsh.client.external。" }, "scripts": { "build": "node scripts/build-host.mjs && node scripts/build-client.mjs && tsc -p tsconfig.build.json", "build:host": "node scripts/build-host.mjs", "build:client": "node scripts/build-client.mjs", "typecheck": "tsc --noEmit", "check:dsh": "node scripts/check-dsh-compat.mjs", "test": "npm run build && node --test", "link-sdk": "node scripts/link-sdk.mjs", "probe": "node scripts/probe.mjs" }, "dependencies": { "ws": "^8.18.0" }, "peerDependencies": { "@deepseek-ai/cordis": "^4.0.2", "@deepseek-ai/dsh-client-ui-chat": ">=0.1.7-rc.1 <0.3", "@deepseek-ai/dsh-client-ui-conversation": ">=0.1.7-rc.1 <0.3", "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-rc.1 <0.3", "@deepseek-ai/dsh-client-ui-renderer": ">=0.1.7-rc.1 <0.3", "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-rc.1 <0.3", "@deepseek-ai/dsh-host-webserver": ">=0.1.7-rc.1 <0.3", "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.3", "@deepseek-ai/schemastery": "^3.18.4" }, "engines": { "dsh": ">=0.1.7-rc.1 <0.3" }, "devDependencies": { "@types/node": "^22.20.0", "@types/react": "~18.3.1", "@types/ws": "^8.5.12", "esbuild": "^0.25.0", "react": "^18.3.1", "typescript": "~5.7.2", "ws": "^8.18.0" }, "pnpm": { "onlyBuiltDependencies": [ "esbuild" ] }, "files": [ "lib/**/*.js", "lib/**/*.js.map", "lib/**/*.d.ts", "src", "scripts", "docs", "cordis.patch.yml", "README.md" ], "repository": { "type": "git", "url": "git+https://github.com/liceses/dsh-ds-tts.git" }, "homepage": "https://github.com/liceses/dsh-ds-tts#readme", "bugs": { "url": "https://github.com/liceses/dsh-ds-tts/issues" }, "license": "BSD-3-Clause" }