dsh-thinking-levels 4.4.2 → 4.4.4
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.de.md +465 -0
- package/CHANGELOG.es.md +477 -0
- package/CHANGELOG.fr.md +474 -0
- package/CHANGELOG.it.md +462 -0
- package/CHANGELOG.ja.md +53 -36
- package/CHANGELOG.ko.md +53 -36
- package/CHANGELOG.md +53 -26
- package/CHANGELOG.ru.md +456 -0
- package/INSTALL.de.md +175 -0
- package/INSTALL.es.md +175 -0
- package/INSTALL.fr.md +175 -0
- package/INSTALL.it.md +175 -0
- package/INSTALL.ru.md +175 -0
- package/dsh.plugin.json +1 -1
- package/lib/client.js +246 -42
- package/lib/client.js.map +1 -1
- package/lib/takeover-sync.d.ts +11 -3
- package/lib/takeover-sync.js +13 -5
- package/package.json +17 -2
package/INSTALL.it.md
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Guida all'installazione (CLI DSH ufficiale)
|
|
2
|
+
|
|
3
|
+
Questa guida usa solo il comando ufficiale `dsh plugin`. Il comando installa la dipendenza in un profilo e sincronizza `dsh.profile.bundles`. Non sostituirlo con un semplice `npm install`, un `pnpm add` diretto nel profilo o modifiche manuali al manifest del profilo.
|
|
4
|
+
|
|
5
|
+
- [Guida all'installazione in italiano](./INSTALL.it.md)
|
|
6
|
+
- [English installation guide](./INSTALL.md)
|
|
7
|
+
- [中文安装指南](./INSTALL.zh.md)
|
|
8
|
+
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
9
|
+
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
10
|
+
- [English README](./README.md)
|
|
11
|
+
- [中文 README](./README.zh.md)
|
|
12
|
+
- [日本語 README](./README.ja.md)
|
|
13
|
+
- [한국어 README](./README.ko.md)
|
|
14
|
+
- [Changelog](./CHANGELOG.md)
|
|
15
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
16
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
17
|
+
|
|
18
|
+
I segnaposto in questa guida sono:
|
|
19
|
+
|
|
20
|
+
- `<profile>`: il profilo DSH da modificare, di solito `web`;
|
|
21
|
+
- `dsh-thinking-levels`: il pacchetto npm e l'ID del plugin a runtime;
|
|
22
|
+
- `thinking-levels`: l'ID della composizione Cordis e dello slot delle impostazioni.
|
|
23
|
+
|
|
24
|
+
> **Requisito di versione — DSH v0.2.0-rc.1 o più recente.**
|
|
25
|
+
>
|
|
26
|
+
> Verifica prima la versione in esecuzione (`dsh --version`).
|
|
27
|
+
>
|
|
28
|
+
> | Versione DSH | Azione |
|
|
29
|
+
> | --- | --- |
|
|
30
|
+
> | ≥ 0.2.0-rc.1 | Installa questa versione (4.0.x). |
|
|
31
|
+
> | ≥ 0.1.7-rc.1 fino a < 0.2.0 | Installa la linea 3.x: `dsh plugin --profile <profile> add dsh-thinking-levels@dsh-0.1.7 -w` (3.4.3). |
|
|
32
|
+
> | < 0.1.7-rc.1 | Resta sulla linea plugin precedente (3.0.2). Non eseguire una build plugin più vecchia contro DSH 0.1.7+ — aggiorna invece il plugin. |
|
|
33
|
+
>
|
|
34
|
+
> Il confine è `0.1.7-rc.1`, dove DSH ha rimosso la registrazione imperativa delle impostazioni (`settings.register` / `installSettingsSection`) e il servizio client `settingsScope`. Da quel confine sia la linea 3.x (host 0.1.7) sia questa versione (host 0.2.0-rc) puntano alla stessa superficie dichiarativa delle impostazioni (campi schema `.volatile()` + `configForms`).
|
|
35
|
+
|
|
36
|
+
> Le linee DSH più vecchie si installano da npm tramite il loro dist-tag: `dsh plugin add dsh-thinking-levels@dsh-0.1.7` (DSH 0.1.7–0.1.x, plugin 3.4.3), `...@dsh-0.1.5` (DSH 0.1.5), `...@dsh-0.1.2` (DSH 0.1.2), `...@compat` (DSH 0.1.0–0.1.1). Non installare mai le versioni `0.x` nude dell'era `latest` (≤ 0.6.0) — non portano dichiarazioni peer dsh.
|
|
37
|
+
|
|
38
|
+
## 0. Prerequisiti e scoperta del profilo
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
|
|
42
|
+
dsh --version
|
|
43
|
+
ls "${DSH_HOME:-$HOME/.dsh}/profiles"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Usa il profilo indicato dal tuo processo DSH in esecuzione. `web` è comune, ma l'argomento `--profile` attivo fa fede.
|
|
47
|
+
|
|
48
|
+
## 1. Installazione ufficiale
|
|
49
|
+
|
|
50
|
+
Installa l'ultima versione:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
(Il flag `-w` è richiesto quando il profilo è una root di workspace pnpm, com'è il caso di `web`.)
|
|
57
|
+
|
|
58
|
+
Installa esplicitamente la versione corrente:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@4.0.0 -w
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
La CLI ufficiale aggiorna automaticamente la dipendenza del profilo, il lockfile e `dsh.profile.bundles`. Non aggiungere una riga YAML manuale.
|
|
65
|
+
|
|
66
|
+
### Periodo di raffreddamento della supply chain
|
|
67
|
+
|
|
68
|
+
Il runtime dsh usa pnpm 11, la cui politica `minimumReleaseAge` può bloccare una versione appena pubblicata con `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`. Aggiungi la versione a `minimumReleaseAgeExclude` in `~/.dsh/profiles/web/pnpm-workspace.yaml`:
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
minimumReleaseAgeExclude:
|
|
72
|
+
- dsh-thinking-levels@4.0.0
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 2. Aggiornamento
|
|
76
|
+
|
|
77
|
+
Aggiorna all'ultima versione del registry:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
dsh plugin --profile <profile> update dsh-thinking-levels -w
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Riavvia DSH per le modifiche lato host e ricarica la pagina web per le modifiche lato client.
|
|
84
|
+
|
|
85
|
+
## 3. Registrazione locale via percorso / link: (alternativa)
|
|
86
|
+
|
|
87
|
+
Per sviluppo o installazioni offline, registra il plugin da un checkout locale:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# ~/.dsh/profiles/web/package.json dependencies:
|
|
91
|
+
# "dsh-thinking-levels": "link:<absolute path to dsh-thinking-levels>"
|
|
92
|
+
# ~/.dsh/profiles/web/cordis.patch.yml:
|
|
93
|
+
# - insert:
|
|
94
|
+
# - id: thinking-levels
|
|
95
|
+
# name: dsh-thinking-levels
|
|
96
|
+
cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Oppure usa la CLI ufficiale con un percorso locale (senza rete):
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
dsh plugin --profile <profile> add /absolute/path/to/dsh-thinking-levels -w
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## 4. Verificare l'installazione
|
|
106
|
+
|
|
107
|
+
Controlla la dipendenza e la versione installata:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
grep -n "dsh-thinking-levels" \
|
|
111
|
+
"${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
|
|
112
|
+
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
La versione deve essere `4.0.0` per questa release.
|
|
116
|
+
|
|
117
|
+
Controlla la composizione ufficiale:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
dsh --profile <profile> --dump-default-config
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Deve contenere:
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
- id: thinking-levels
|
|
127
|
+
name: dsh-thinking-levels
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## 5. Verificare il form delle impostazioni
|
|
131
|
+
|
|
132
|
+
Riavvia DSH, poi ricarica la pagina web. Apri **Impostazioni → Plugins** e cerca la voce **dsh-thinking-levels** — da DSH 0.1.7 il form è generato dall'host dai campi schema `.volatile()` dichiarati dal plugin (non esiste più una scheda client personalizzata).
|
|
133
|
+
|
|
134
|
+
1. Il form mostra l'interruttore di abilitazione, il selettore del livello (otto livelli standard più `auto`) e gli interruttori dello scheduler (`allowDowngrade` / `allowUpgrade`).
|
|
135
|
+
2. Le modifiche confermate si applicano alla prossima richiesta al modello senza riavvio (configurazione volatile live).
|
|
136
|
+
3. L'editor di capacità per modello (valori wire del gateway, llm-pi-ai) viaggiava con la scheda dismessa e non fa più parte di questo plugin — modifica le capacità dei modelli `llm-pi-ai` tramite le impostazioni ufficiali dei modelli.
|
|
137
|
+
|
|
138
|
+
## Stato del supporto per giapponese e coreano
|
|
139
|
+
|
|
140
|
+
Il plugin include dizionari `ja` e `ko`, ma la release ufficiale attuale di DSH espone solo `zh` e `en` tramite `LocaleRuntime`. Su un DSH originale, selezionare giapponese o coreano fallisce con `locale "<id>" is not registered`.
|
|
141
|
+
|
|
142
|
+
Per usarli prima che arrivi il supporto ufficiale, mantieni un fork di DSH e aggiorna:
|
|
143
|
+
|
|
144
|
+
- `packages/client/locale/src/locale-settings.ts`: aggiungi `ja` e `ko` a `LOCALE_IDS` (lo schema delle preferenze dell'Host deriva da questo elenco).
|
|
145
|
+
- `packages/client/locale/src/client/index.ts`: aggiungi `{ id: 'ja', label: '日本語' }` e `{ id: 'ko', label: '한국어' }` a `LOCALES`.
|
|
146
|
+
- Aggiungi i dizionari e i test di base corrispondenti, poi ricompila ed esegui il DSH forkato.
|
|
147
|
+
|
|
148
|
+
Una modifica limitata al plugin non può estendere l'elenco globale delle locale di DSH. Usa la build documentata del fork e i comandi ufficiali del profilo; non modificare manualmente un manifest del profilo.
|
|
149
|
+
|
|
150
|
+
## 6. Risoluzione dei problemi
|
|
151
|
+
|
|
152
|
+
| Sintomo | Azione |
|
|
153
|
+
| --- | --- |
|
|
154
|
+
| `dsh` non trovato | Installa o abilita la CLI DSH ufficiale. Non simulare l'installazione del profilo con semplici comandi npm o pnpm. |
|
|
155
|
+
| `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | Aggiungi la versione a `minimumReleaseAgeExclude` nella `pnpm-workspace.yaml` del profilo. |
|
|
156
|
+
| Il plugin appare come "disabilitato/unmounted" senza errori | Controlla la composizione del profilo; l'host non deve dipendere per valore da `@deepseek-ai/dsh-settings` (e non lo fa). |
|
|
157
|
+
| Voce client assente da `__DSH_BOOT__` | Conferma che `exports["./client"]` esista e che la fiber dell'host sia stata stabilita. |
|
|
158
|
+
| Il selettore di modello non ha `Auto` | Conferma che il wrapper `resolveModel` dell'adattatore sia girato (si riesegue su `llm/adapters-updated`). |
|
|
159
|
+
| La scrittura del form delle impostazioni fallisce | Il valore è stato rifiutato dallo schema del plugin; allinealo ai tipi dei campi `.volatile()` dichiarati. |
|
|
160
|
+
| Un subagent restituisce `UNSUPPORTED_REASONING_EFFORT` | Il modello di destinazione non pubblica quel livello; scegline uno supportato o ripristina il predefinito del provider. |
|
|
161
|
+
| Bundle client obsoleto | Hard-refresh del browser (Ctrl+Shift+R) dopo un aggiornamento. |
|
|
162
|
+
|
|
163
|
+
## 7. Rimozione
|
|
164
|
+
|
|
165
|
+
Usa il comando ufficiale:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
dsh plugin --profile <profile> remove dsh-thinking-levels -w
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Verifica che il profilo composto non contenga più il bundle:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
dsh --profile <profile> --dump-default-config
|
|
175
|
+
```
|
package/INSTALL.ru.md
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Руководство по установке (официальный CLI DSH)
|
|
2
|
+
|
|
3
|
+
Это руководство использует только официальную команду `dsh plugin`. Она устанавливает зависимость в профиль и синхронизирует `dsh.profile.bundles`. Не заменяйте её обычным `npm install`, прямым `pnpm add` в профиле или ручными правками манифеста профиля.
|
|
4
|
+
|
|
5
|
+
- [Руководство по установке на русском](./INSTALL.ru.md)
|
|
6
|
+
- [English installation guide](./INSTALL.md)
|
|
7
|
+
- [中文安装指南](./INSTALL.zh.md)
|
|
8
|
+
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
9
|
+
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
10
|
+
- [English README](./README.md)
|
|
11
|
+
- [中文 README](./README.zh.md)
|
|
12
|
+
- [日本語 README](./README.ja.md)
|
|
13
|
+
- [한국어 README](./README.ko.md)
|
|
14
|
+
- [Changelog](./CHANGELOG.md)
|
|
15
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
16
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
17
|
+
|
|
18
|
+
Плейсхолдеры в этом руководстве:
|
|
19
|
+
|
|
20
|
+
- `<profile>`: профиль DSH, который нужно изменить, обычно `web`;
|
|
21
|
+
- `dsh-thinking-levels`: npm-пакет и ID плагина в рантайме;
|
|
22
|
+
- `thinking-levels`: ID композиции Cordis и слота настроек.
|
|
23
|
+
|
|
24
|
+
> **Требование к версии — DSH v0.2.0-rc.1 или новее.**
|
|
25
|
+
>
|
|
26
|
+
> Сначала проверьте запущенную версию (`dsh --version`).
|
|
27
|
+
>
|
|
28
|
+
> | Версия DSH | Действие |
|
|
29
|
+
> | --- | --- |
|
|
30
|
+
> | ≥ 0.2.0-rc.1 | Установите этот релиз (4.0.x). |
|
|
31
|
+
> | ≥ 0.1.7-rc.1 до < 0.2.0 | Установите линию 3.x: `dsh plugin --profile <profile> add dsh-thinking-levels@dsh-0.1.7 -w` (3.4.3). |
|
|
32
|
+
> | < 0.1.7-rc.1 | Оставайтесь на прежней линии плагина (3.0.2). Не запускайте более старую сборку плагина против DSH 0.1.7+ — вместо этого обновите плагин. |
|
|
33
|
+
>
|
|
34
|
+
> Граница — `0.1.7-rc.1`, где DSH удалил императивную регистрацию настроек (`settings.register` / `installSettingsSection`) и клиентский сервис `settingsScope`. С той границы и линия 3.x (хосты 0.1.7), и этот релиз (хосты 0.2.0-rc) целятся в одну и ту же декларативную поверхность настроек (`.volatile()`-поля схемы + `configForms`).
|
|
35
|
+
|
|
36
|
+
> Более старые линии DSH устанавливаются из npm через их dist-tag: `dsh plugin add dsh-thinking-levels@dsh-0.1.7` (DSH 0.1.7–0.1.x, плагин 3.4.3), `...@dsh-0.1.5` (DSH 0.1.5), `...@dsh-0.1.2` (DSH 0.1.2), `...@compat` (DSH 0.1.0–0.1.1). Никогда не устанавливайте голые версии `0.x` эпохи `latest` (≤ 0.6.0) — они не несут peer-деклараций dsh.
|
|
37
|
+
|
|
38
|
+
## 0. Предпосылки и обнаружение профиля
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
|
|
42
|
+
dsh --version
|
|
43
|
+
ls "${DSH_HOME:-$HOME/.dsh}/profiles"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Используйте профиль, который называет ваш запущенный процесс DSH. Обычно это `web`, но авторитетный аргумент — активный `--profile`.
|
|
47
|
+
|
|
48
|
+
## 1. Официальная установка
|
|
49
|
+
|
|
50
|
+
Установите последнюю версию:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
(Флаг `-w` обязателен, когда профиль — корень pnpm-workspace, каков `web`.)
|
|
57
|
+
|
|
58
|
+
Явно установите текущий релиз:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@4.0.0 -w
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Официальный CLI автоматически обновляет зависимость профиля, lockfile и `dsh.profile.bundles`. Не добавляйте ручную YAML-строку.
|
|
65
|
+
|
|
66
|
+
### Период охлаждения supply chain
|
|
67
|
+
|
|
68
|
+
Среда выполнения dsh использует pnpm 11, чья политика `minimumReleaseAge` может заблокировать свежеопубликованную версию с `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`. Добавьте версию в `minimumReleaseAgeExclude` в `~/.dsh/profiles/web/pnpm-workspace.yaml`:
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
minimumReleaseAgeExclude:
|
|
72
|
+
- dsh-thinking-levels@4.0.0
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 2. Обновление
|
|
76
|
+
|
|
77
|
+
Обновитесь до последней версии из реестра:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
dsh plugin --profile <profile> update dsh-thinking-levels -w
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Перезапустите DSH ради хостовых изменений и обновите веб-страницу ради клиентских.
|
|
84
|
+
|
|
85
|
+
## 3. Регистрация по локальному пути / link: (альтернатива)
|
|
86
|
+
|
|
87
|
+
Для разработки или офлайн-установок зарегистрируйте плагин из локального чекаута:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# ~/.dsh/profiles/web/package.json dependencies:
|
|
91
|
+
# "dsh-thinking-levels": "link:<absolute path to dsh-thinking-levels>"
|
|
92
|
+
# ~/.dsh/profiles/web/cordis.patch.yml:
|
|
93
|
+
# - insert:
|
|
94
|
+
# - id: thinking-levels
|
|
95
|
+
# name: dsh-thinking-levels
|
|
96
|
+
cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Либо используйте официальный CLI с локальным путём (без сети):
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
dsh plugin --profile <profile> add /absolute/path/to/dsh-thinking-levels -w
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## 4. Проверка установки
|
|
106
|
+
|
|
107
|
+
Проверьте зависимость и установленную версию:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
grep -n "dsh-thinking-levels" \
|
|
111
|
+
"${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
|
|
112
|
+
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Для этого релиза версия должна быть `4.0.0`.
|
|
116
|
+
|
|
117
|
+
Проверьте официальную композицию:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
dsh --profile <profile> --dump-default-config
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Она должна содержать:
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
- id: thinking-levels
|
|
127
|
+
name: dsh-thinking-levels
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## 5. Проверка формы настроек
|
|
131
|
+
|
|
132
|
+
Перезапустите DSH, затем обновите веб-страницу. Откройте **Настройки → Plugins** и найдите запись **dsh-thinking-levels** — с DSH 0.1.7 форма генерируется хостом из объявленных плагином `.volatile()`-полей схемы (пользовательской клиентской карточки больше нет).
|
|
133
|
+
|
|
134
|
+
1. Форма показывает переключатель включения, селектор уровня (восемь стандартных уровней плюс `auto`) и переключатели планировщика (`allowDowngrade` / `allowUpgrade`).
|
|
135
|
+
2. Подтверждённые изменения применяются к следующему запросу к модели без перезапуска (живая volatile-конфигурация).
|
|
136
|
+
3. Редактор возможностей по моделям (wire-значения шлюза, llm-pi-ai) поставлялся с упразднённой карточкой и больше не часть этого плагина — правьте возможности моделей `llm-pi-ai` через официальные настройки моделей.
|
|
137
|
+
|
|
138
|
+
## Статус поддержки японского и корейского
|
|
139
|
+
|
|
140
|
+
Плагин поставляет словари `ja` и `ko`, но текущий официальный релиз DSH через `LocaleRuntime` предоставляет только `zh` и `en`. На стоковом DSH выбор японского или корейского падает с `locale "<id>" is not registered`.
|
|
141
|
+
|
|
142
|
+
Чтобы пользоваться ими до появления официальной поддержки, поддерживайте форк DSH и обновите:
|
|
143
|
+
|
|
144
|
+
- `packages/client/locale/src/locale-settings.ts`: добавьте `ja` и `ko` в `LOCALE_IDS` (схема предпочтений Хоста выводится из этого списка).
|
|
145
|
+
- `packages/client/locale/src/client/index.ts`: добавьте `{ id: 'ja', label: '日本語' }` и `{ id: 'ko', label: '한국어' }` в `LOCALES`.
|
|
146
|
+
- Добавьте соответствующие базовые словари и тесты, затем пересоберите и запустите форк.
|
|
147
|
+
|
|
148
|
+
Изменение только плагина не может расширить глобальный список локалей DSH. Используйте документированную сборку форка и официальные профильные команды; не правьте манифест профиля вручную.
|
|
149
|
+
|
|
150
|
+
## 6. Устранение неполадок
|
|
151
|
+
|
|
152
|
+
| Симптом | Действие |
|
|
153
|
+
| --- | --- |
|
|
154
|
+
| `dsh` не найден | Установите или включите официальный CLI DSH. Не имитируйте установку профиля обычными командами npm или pnpm. |
|
|
155
|
+
| `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | Добавьте версию в `minimumReleaseAgeExclude` в `pnpm-workspace.yaml` профиля. |
|
|
156
|
+
| Плагин отображается как «отключён/размонтирован» без ошибок | Проверьте композицию профиля; хост не должен иметь value-зависимости от `@deepseek-ai/dsh-settings` (и не имеет). |
|
|
157
|
+
| Клиентская запись отсутствует в `__DSH_BOOT__` | Убедитесь, что `exports["./client"]` существует и fiber хоста установлен. |
|
|
158
|
+
| В селекторе модели нет `Auto` | Убедитесь, что обёртка `resolveModel` адаптера отработала (она перезапускается на `llm/adapters-updated`). |
|
|
159
|
+
| Запись формы настроек падает | Значение отклонено схемой плагина; приведите его к типам объявленных `.volatile()`-полей. |
|
|
160
|
+
| Субагент возвращает `UNSUPPORTED_REASONING_EFFORT` | Целевая модель не анонсирует этот уровень; выберите поддерживаемый или восстановите значение провайдера по умолчанию. |
|
|
161
|
+
| Устаревший клиентский бандл | Жёстко обновите страницу в браузере (Ctrl+Shift+R) после апгрейда. |
|
|
162
|
+
|
|
163
|
+
## 7. Удаление
|
|
164
|
+
|
|
165
|
+
Используйте официальную команду:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
dsh plugin --profile <profile> remove dsh-thinking-levels -w
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Убедитесь, что в собранной композиции профиля бандла больше нет:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
dsh --profile <profile> --dump-default-config
|
|
175
|
+
```
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "thinking-level (reasoning_effort) control — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
6
6
|
"engines": {
|