@goodandready/dsh-tts 0.3.8 → 0.3.10
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/lib/client.js +22 -9
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -4,6 +4,17 @@ window.__ModuleLoader__.load({
|
|
|
4
4
|
var module = { exports: {} }
|
|
5
5
|
var exports = module.exports
|
|
6
6
|
const React = require('react')
|
|
7
|
+
|
|
8
|
+
// Значок раскрытия — ядровый; свой SVG только как фолбэк для сборок
|
|
9
|
+
// без набора примитивов. Иконка всегда смотрит вниз, раскрытие
|
|
10
|
+
// поворачивает её классом.
|
|
11
|
+
let ChevronIcon = null
|
|
12
|
+
try {
|
|
13
|
+
const primitives = require('@deepseek-ai/dsh-client-ui-primitives')
|
|
14
|
+
ChevronIcon = primitives && primitives.IconChevronDownOutline14
|
|
15
|
+
} catch (noPrimitives) {
|
|
16
|
+
ChevronIcon = null
|
|
17
|
+
}
|
|
7
18
|
const NS = 'dsh-tts'
|
|
8
19
|
const PROVIDERS = [
|
|
9
20
|
'openai', 'elevenlabs', 'google', 'azure', 'groq', 'deepgram', 'openrouter',
|
|
@@ -770,15 +781,17 @@ window.__ModuleLoader__.load({
|
|
|
770
781
|
React.createElement('div', { className: 'dts-title' }, t('title')),
|
|
771
782
|
React.createElement('div', { className: 'dts-sub' }, t('cardHint')),
|
|
772
783
|
),
|
|
773
|
-
|
|
774
|
-
className: 'dts-chev' + (open ? ' dts-chevOpen' : '')
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
784
|
+
ChevronIcon
|
|
785
|
+
? React.createElement(ChevronIcon, { className: 'dts-chev' + (open ? ' dts-chevOpen' : '') })
|
|
786
|
+
: React.createElement('svg', {
|
|
787
|
+
className: 'dts-chev' + (open ? ' dts-chevOpen' : ''),
|
|
788
|
+
width: 14, height: 14, viewBox: '0 0 16 16', fill: 'none',
|
|
789
|
+
},
|
|
790
|
+
React.createElement('path', {
|
|
791
|
+
d: 'M4 6l4 4 4-4', stroke: 'currentColor', 'stroke-width': 1.5,
|
|
792
|
+
'stroke-linecap': 'round', 'stroke-linejoin': 'round',
|
|
793
|
+
}),
|
|
794
|
+
),
|
|
782
795
|
),
|
|
783
796
|
open ? React.createElement('div', { className: 'dts-body' },
|
|
784
797
|
React.createElement(TtsSection, Object.assign({}, props, { compact: true })),
|
package/lib/index.js
CHANGED
|
@@ -55,7 +55,7 @@ export const Config = z.object({
|
|
|
55
55
|
lang: z.string().default(''),
|
|
56
56
|
})).default([])
|
|
57
57
|
.description('Say this instead of that. Applied top-down; /regex/ form allowed in from.'),
|
|
58
|
-
longReply: z.
|
|
58
|
+
longReply: z.string().default('truncate')
|
|
59
59
|
.description('What to do when a reply exceeds the length limit.'),
|
|
60
60
|
summaryModel: z.string().default('')
|
|
61
61
|
.description('provider/model for the spoken retelling; empty uses the conversation default.'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-tts",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"description": "Text-to-speech for DeepSeek Harness: speak agent replies in the Web UI with a provider fallback chain (OpenAI, ElevenLabs, Google, Azure, Groq, Deepgram, OpenRouter, Edge, Piper, eSpeak).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|