dsh-tinyasr 1.4.0 → 1.5.0

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
@@ -3,6 +3,13 @@
3
3
  All notable changes to this plugin. Entries up to 1.11.0 are local pre-release iterations of the
4
4
  1.0 line; the public package starts at 1.2.0.
5
5
 
6
+ ## 1.5.0 — 6 December 2026
7
+
8
+ - The cleanup model picker is back in the settings card: it shows the session default and lets you
9
+ set any provider/model pair connected to Harness, with **Apply** and **Reset**. The picker was
10
+ dropped during the card redesign, so only the DeepSeek switch remained visible.
11
+ - The card smoke test now fails if the picker disappears again.
12
+
6
13
  ## 1.4.0 — 6 December 2026
7
14
 
8
15
  - The additional language of the model is selectable in the card again, next to `auto`, `ru` and
package/README.md CHANGED
@@ -48,7 +48,7 @@ ls models/*.tzf.gz models/silero_vad.onnx.gz
48
48
 
49
49
  ### 2. Установите плагин
50
50
 
51
- Плагин уже опубликован на GitHub; выберите удобный способ:
51
+ Плагин опубликован на GitHub и в npm; выберите удобный способ:
52
52
 
53
53
  ```sh
54
54
  # из репозитория (фиксируется текущая ветка)
@@ -57,7 +57,7 @@ dsh plugin --profile <profile> add git+https://github.com/DrMaks22/dsh-tinyasr.g
57
57
  # из приложенного к релизу архива
58
58
  dsh plugin --profile <profile> add https://github.com/DrMaks22/dsh-tinyasr/releases/latest/download/dsh-tinyasr.tgz
59
59
 
60
- # после публикации в npm
60
+ # из npm (опубликован)
61
61
  dsh plugin --profile <profile> add dsh-tinyasr
62
62
  ```
63
63
 
package/client.js CHANGED
@@ -429,12 +429,50 @@ window.__ModuleLoader__.load({
429
429
  }, ...languages.map(([value, label]) => h('option', { key: value, value }, label))),
430
430
  }
431
431
 
432
+ const polishProvider = settings.polishProvider ?? 'auto'
433
+ const polishModel = settings.polishModel ?? 'auto'
432
434
  const polishControl = {
433
435
  head: h('button', {
434
436
  type: 'button', role: 'switch', 'aria-checked': polishOn, 'aria-label': t('polish'),
435
437
  className: 'tasr-switch',
436
438
  onClick: () => { void send('/api/tinyasr/settings', { polish: !polishOn }) },
437
439
  }, h('span', { className: 'tasr-knob' })),
440
+ body: h('div', { className: 'tasr-model' },
441
+ h('button', {
442
+ type: 'button', className: 'tasr-link', disabled: !polishOn,
443
+ onClick: () => {
444
+ const next = !modelOpen
445
+ setModelOpen(next)
446
+ if (next) {
447
+ setProviderText(polishProvider === 'auto' ? '' : polishProvider)
448
+ setModelText(polishModel === 'auto' ? '' : polishModel)
449
+ }
450
+ },
451
+ }, polishProvider === 'auto' ? t('modelAuto') : `${polishProvider} / ${polishModel}`),
452
+ modelOpen && h('div', { className: 'tasr-field' },
453
+ h('input', {
454
+ className: 'tasr-input', placeholder: t('modelProvider'), value: providerText,
455
+ disabled: !polishOn, onChange: event => setProviderText(event.target.value),
456
+ }),
457
+ h('input', {
458
+ className: 'tasr-input', placeholder: t('modelName'), value: modelText,
459
+ disabled: !polishOn, onChange: event => setModelText(event.target.value),
460
+ }),
461
+ h('div', { style: { display: 'flex', gap: '8px' } },
462
+ h('button', {
463
+ type: 'button', className: 'tasr-btn tasr-btn-primary', disabled: !polishOn,
464
+ onClick: () => {
465
+ void send('/api/tinyasr/settings', {
466
+ polishProvider: providerText.trim() === '' ? 'auto' : providerText.trim(),
467
+ polishModel: modelText.trim() === '' ? 'auto' : modelText.trim(),
468
+ })
469
+ },
470
+ }, t('modelApply')),
471
+ h('button', {
472
+ type: 'button', className: 'tasr-btn', disabled: !polishOn,
473
+ onClick: () => { void send('/api/tinyasr/settings', { polishProvider: 'auto', polishModel: 'auto' }) },
474
+ }, t('modelReset'))),
475
+ h('p', { className: 'tasr-note' }, t('modelHint'))))
438
476
  }
439
477
 
440
478
  const glossaryControl = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tinyasr",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "description": "Offline Russian and English dictation for the DeepSeek Harness Web GUI through the local tinyasr recognizer, with an optional model cleanup pass.",