@goodandready/dsh-voice 0.8.16 → 0.8.17

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.
Files changed (2) hide show
  1. package/lib/client.js +8 -27
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -2066,37 +2066,18 @@ window.__ModuleLoader__.load({
2066
2066
  }
2067
2067
 
2068
2068
  function registerSettings(ctx) {
2069
- // Слот объявлен пакетом настроек ядра; вкладка перебирает пространства
2070
- // настроек, поэтому ключ регистрации обязан равняться NS, не id пакета:
2071
- // не равен карточка не появится вовсе, молча.
2072
- const tryPluginItem = () => {
2073
- try {
2074
- ctx.slots.inject('settings.plugin.item', () => ctx.slots.register(
2075
- {
2076
- name: 'settings.plugin.item',
2077
- key: NS,
2078
- // locale в записи слота — то, из-за чего компонент получает props.t.
2079
- locale: NS,
2080
- inject: () => ({ ctx: ctx }),
2081
- },
2082
- PluginCard,
2083
- ))
2084
- return true
2085
- } catch (e) { return false }
2086
- }
2087
- if (tryPluginItem()) return
2088
- // Запасной путь: в этой сборке слота нет — остаёмся боковым
2089
- // разделом, чтобы настройки не пропали.
2090
- ctx.slots.inject('settings.section', () => ctx.slots.register(
2069
+ // Карточка настроек во вкладке «Настройки Плагины → Настройки плагинов» (#18).
2070
+ // Ключ регистрации обязан равняться NS (пространству настроек), иначе
2071
+ // вкладка молча пропустит слот.
2072
+ ctx.slots.inject('settings.plugin.item', () => ctx.slots.register(
2091
2073
  {
2092
- name: 'settings.section',
2093
- id: '@goodandready/dsh-voice',
2094
- order: 30,
2074
+ name: 'settings.plugin.item',
2075
+ key: NS,
2076
+ // locale в записи слота — то, из-за чего компонент получает props.t.
2095
2077
  locale: NS,
2096
- label: () => t('title'),
2097
2078
  inject: () => ({ ctx: ctx }),
2098
2079
  },
2099
- VoiceSection,
2080
+ PluginCard,
2100
2081
  ))
2101
2082
  }
2102
2083
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-voice",
3
- "version": "0.8.16",
3
+ "version": "0.8.17",
4
4
  "description": "Voice input for DeepSeek Harness: dictation chunked by pauses and voice messages, each with its own provider fallback chain (Deepgram, Groq, HuggingFace, local whisper.cpp, plus any OpenAI-compatible API of your own).",
5
5
  "license": "MIT",
6
6
  "type": "module",