dsh-thinking-levels 4.4.3 → 4.4.5
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 +9 -0
- package/CHANGELOG.ko.md +9 -0
- package/CHANGELOG.md +26 -0
- 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/README.de.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.it.md +1 -1
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +31 -5
- package/README.ru.md +1 -1
- package/README.zh.md +24 -3
- package/dsh.plugin.json +2 -2
- package/lib/client.js +176 -26
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +25 -0
- package/lib/index.js +28 -14
- package/package.json +25 -10
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/README.de.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Unterstützte DSH-Versionen**
|
|
23
23
|
>
|
|
24
|
-
> Diese Version (4.3.x) legt die DSH-Hosts per exakter 12-Glieder-Aufzählung fest: `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2` — jeder rc einzeln aufgelistet, keine Bereiche oder Carets; die stabile 0.2.1 ist erst mit ihrem Erscheinen deklariert.
|
|
24
|
+
> Diese Version (4.3.x) legt die DSH-Hosts per exakter 12-Glieder-Aufzählung fest: `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3` — jeder rc einzeln aufgelistet, keine Bereiche oder Carets; die stabile 0.2.1 ist erst mit ihrem Erscheinen deklariert.
|
|
25
25
|
>
|
|
26
26
|
> | DSH-Version | Status | Hinweise |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.es.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Versiones de DSH admitidas**
|
|
23
23
|
>
|
|
24
|
-
> Esta versión (4.3.x) fija los hosts de DSH mediante una enumeración exacta de 12 términos `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2` — cada rc listado individualmente, sin rangos ni carets; la 0.2.1 estable no se declara hasta su publicación.
|
|
24
|
+
> Esta versión (4.3.x) fija los hosts de DSH mediante una enumeración exacta de 12 términos `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3` — cada rc listado individualmente, sin rangos ni carets; la 0.2.1 estable no se declara hasta su publicación.
|
|
25
25
|
>
|
|
26
26
|
> | Versión de DSH | Estado | Notas |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.fr.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Prise en charge des versions de DSH**
|
|
23
23
|
>
|
|
24
|
-
> Cette version (4.3.x) fixe les hôtes DSH par une énumération exacte de 13-termes `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2` — chaque rc listé individuellement, sans plages ni carets ; la 0.2.1 stable n'est pas déclarée avant sa sortie.
|
|
24
|
+
> Cette version (4.3.x) fixe les hôtes DSH par une énumération exacte de 13-termes `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3` — chaque rc listé individuellement, sans plages ni carets ; la 0.2.1 stable n'est pas déclarée avant sa sortie.
|
|
25
25
|
>
|
|
26
26
|
> | Version de DSH | Statut | Notes |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.it.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Versioni di DSH supportate**
|
|
23
23
|
>
|
|
24
|
-
> Questa versione (4.3.x) fissa gli host DSH con un enumerazione esatta di 13-termini `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2` — ogni rc elencato singolarmente, senza range o caret; la 0.2.1 stabile non è dichiarata finché non esce.
|
|
24
|
+
> Questa versione (4.3.x) fissa gli host DSH con un enumerazione esatta di 13-termini `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3` — ogni rc elencato singolarmente, senza range o caret; la 0.2.1 stabile non è dichiarata finché non esce.
|
|
25
25
|
>
|
|
26
26
|
> | Versione DSH | Stato | Note |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.ja.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
> **互換性について:** `0.6.0` には日本語(`ja`)と韓国語(`ko`)の辞書と選択項目が含まれていますが、現在の公式 DSH は `LocaleRuntime` 経由で `zh` と `en` のみを提供しています。純正 DSH で `ja` または `ko` を選択すると `locale "<id>" is not registered` で失敗します。公式 DSH が対応 locale ID を追加するまで利用できません。上級ユーザーは DSH フォークを保守し、`packages/client/locale/src/locale-settings.ts` の `LOCALE_IDS` と `packages/client/locale/src/client/index.ts` の `LOCALES` ラベルを更新し、コア辞書とテストを追加して再ビルド・実行してください。このプラグインだけでは DSH のグローバル locale 一覧を拡張できません。
|
|
35
35
|
|
|
36
|
-
> **バージョン互換:** 本リリース(4.3.x)は **DSH ホストを厳密な 12 項列挙**で固定:`0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2`——rc ごとに単列、区間/caret 不使用。0.1.7-rc.1 の境界以降、DSH は命令的な設定登録(`settings.register` / `installSettingsSection`)とクライアントの `settingsScope` サービスおよびプラグイン別カードスロットを削除し、実行時に変更できる設定フィールドは schemastery スキーマで `.volatile()` 付きとし、設定フォームはホストがスキーマから自動生成(登録呼び出しもクライアント設定カードも不要)、プラグインは `loader/volatile-update` に従ってリクエストごとに最新値を読みます——4.0.x は 0.2.0-rc セグメントの同一宣言的表面を対象とします。0.1.7-rc.1〜<0.2.0 のホストでは 3.x ライン(3.4.3、npm dist-tag `dsh-0.1.7`)を、0.1.2–0.1.6 ホストではプラグイン 3.0.2 を使用してください。
|
|
36
|
+
> **バージョン互換:** 本リリース(4.3.x)は **DSH ホストを厳密な 12 項列挙**で固定:`0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3`——rc ごとに単列、区間/caret 不使用。0.1.7-rc.1 の境界以降、DSH は命令的な設定登録(`settings.register` / `installSettingsSection`)とクライアントの `settingsScope` サービスおよびプラグイン別カードスロットを削除し、実行時に変更できる設定フィールドは schemastery スキーマで `.volatile()` 付きとし、設定フォームはホストがスキーマから自動生成(登録呼び出しもクライアント設定カードも不要)、プラグインは `loader/volatile-update` に従ってリクエストごとに最新値を読みます——4.0.x は 0.2.0-rc セグメントの同一宣言的表面を対象とします。0.1.7-rc.1〜<0.2.0 のホストでは 3.x ライン(3.4.3、npm dist-tag `dsh-0.1.7`)を、0.1.2–0.1.6 ホストではプラグイン 3.0.2 を使用してください。
|
|
37
37
|
|
|
38
38
|
> **バージョン範囲ポリシー:** 各互換ラインはホストを自ラインのセグメントに厳密に固定します。0.1.x ホスト向けのラインは `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`)、0.2.x セグメント向けのラインは `>=0.2.0-rc.1 <0.2.1-0`(4.0.x:`>=0.2.0-rc.1 <0.2.1-0`)に従います。どのラインも開放的な上限を宣言しません。互換性レゾルバが未対応の新ホストセグメントにプラグインラインを誤マッチすることはありません。0.4.0–0.6.0 は dsh peer 宣言を一切持たないためインストールしないでください。
|
|
39
39
|
|
package/README.ko.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
> **호환성 참고:** `0.6.0`에는 일본어(`ja`)와 한국어(`ko`) 사전 및 선택 항목이 포함되어 있지만, 현재 공식 DSH는 `LocaleRuntime`을 통해 `zh`와 `en`만 제공합니다. 순정 DSH에서 `ja` 또는 `ko`를 선택하면 `locale "<id>" is not registered` 오류가 발생합니다. 공식 DSH가 해당 locale ID를 추가할 때까지 사용할 수 없습니다. 고급 사용자는 DSH 포크를 유지하면서 `packages/client/locale/src/locale-settings.ts`의 `LOCALE_IDS`와 `packages/client/locale/src/client/index.ts`의 `LOCALES` 라벨을 업데이트하고 핵심 사전과 테스트를 추가한 뒤 다시 빌드하여 실행할 수 있습니다. 이 플러그인만으로는 DSH의 전역 locale 목록을 확장할 수 없습니다.
|
|
35
35
|
|
|
36
|
-
> **버전 호환:** 본 릴리스(4.3.x)는 **DSH 호스트를 12항 정확 열거**로 고정: `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2` — rc별 단독 열거, 구간/caret 미사용. 0.1.7-rc.1 경계 이후 DSH는 명령형 설정 등록(`settings.register` / `installSettingsSection`)과 클라이언트 `settingsScope` 서비스 및 플러그인별 카드 슬롯을 제거했고, 런타임 조정 가능한 설정 필드는 schemastery 스키마에 `.volatile()`로 표시되며, 설정 폼은 호스트가 스키마에서 자동 생성(등록 호출도 클라이언트 설정 카드도 없음)하고, 플러그인은 `loader/volatile-update`에 따라 요청마다 최신 값을 읽습니다——4.0.x은 0.2.0-rc 세그먼트의 동일한 선언적 표면을 대상으로 합니다. 0.1.7-rc.1~<0.2.0 호스트에서는 3.x 라인(3.4.3, npm dist-tag `dsh-0.1.7`)을, 0.1.2–0.1.6 호스트에서는 플러그인 3.0.2을 사용하세요.
|
|
36
|
+
> **버전 호환:** 본 릴리스(4.3.x)는 **DSH 호스트를 12항 정확 열거**로 고정: `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3` — rc별 단독 열거, 구간/caret 미사용. 0.1.7-rc.1 경계 이후 DSH는 명령형 설정 등록(`settings.register` / `installSettingsSection`)과 클라이언트 `settingsScope` 서비스 및 플러그인별 카드 슬롯을 제거했고, 런타임 조정 가능한 설정 필드는 schemastery 스키마에 `.volatile()`로 표시되며, 설정 폼은 호스트가 스키마에서 자동 생성(등록 호출도 클라이언트 설정 카드도 없음)하고, 플러그인은 `loader/volatile-update`에 따라 요청마다 최신 값을 읽습니다——4.0.x은 0.2.0-rc 세그먼트의 동일한 선언적 표면을 대상으로 합니다. 0.1.7-rc.1~<0.2.0 호스트에서는 3.x 라인(3.4.3, npm dist-tag `dsh-0.1.7`)을, 0.1.2–0.1.6 호스트에서는 플러그인 3.0.2을 사용하세요.
|
|
37
37
|
|
|
38
38
|
> **버전 범위 정책:** 각 호환 라인은 호스트를 자기 라인의 세그먼트에 엄격히 고정합니다. 0.1.x 호스트 대상 라인은 `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`)을, 0.2.x 세그먼트 대상 라인은 `>=0.2.0-rc.1 <0.2.1-0`(4.0.x: `>=0.2.0-rc.1 <0.2.1-0`)을 따릅니다. 어떤 라인도 열린 상한을 선언하지 않으므로, 호환성 리졸버가 플러그인 라인을 지원하지 않는 더 새 호스트 세그먼트에 잘못 매칭할 일이 없습니다. 0.4.0–0.6.0은 dsh peer 선언이 전혀 없으므로 설치하지 마세요.
|
|
39
39
|
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
> **▼ DSH version support**
|
|
35
35
|
>
|
|
36
|
-
> This release (4.3.x) pins DSH hosts by the exact
|
|
36
|
+
> This release (4.3.x) pins DSH hosts by the exact 14-term enumeration `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3` — each rc listed individually, no ranges or carets; 0.2.1 stable is not declared until it ships.
|
|
37
37
|
>
|
|
38
38
|
> | DSH version | Status | Notes |
|
|
39
39
|
> | --- | --- | --- |
|
|
@@ -228,17 +228,43 @@ Defaults: `{ enabled: true, level: 'auto', allowDowngrade: true, allowUpgrade: f
|
|
|
228
228
|
|
|
229
229
|
> Semantics: the model-selector pick outranks the plugin's default level. Pick `auto` (mask) → plugin schedules; pick a wire level → applied directly; pick nothing → the plugin's `level` default is used. `allowDowngrade` / `allowUpgrade` constrain `auto` scheduling only.
|
|
230
230
|
|
|
231
|
+
## Third-party transport takeover (three protocols)
|
|
232
|
+
|
|
233
|
+
The settings card's **Third-party takeover** switch (「第三方接管」) adds a route to the
|
|
234
|
+
`dsh-llm-openai-completions` transport's `providers` list. **The transport's name is
|
|
235
|
+
legacy** — since the 4.4.x line it fronts three wire protocols, not just
|
|
236
|
+
`openai-completions`: `openai-completions`, `openai-responses` and `anthropic`. When a
|
|
237
|
+
route is taken over, its model requests are short-circuited through that transport
|
|
238
|
+
(multimodal true-send, modality gate, prompt injection) and `llm-pi-ai` steps out.
|
|
239
|
+
|
|
240
|
+
The per-level wire editor (`reasoningEfforts`) is **protocol-neutral** since 4.4.4: the
|
|
241
|
+
host turns the table into pi-ai's `thinkingLevelMap`, which every protocol reads
|
|
242
|
+
(Anthropic thinking budget, Responses reasoning effort, completions `reasoning_effort`
|
|
243
|
+
string). The two completions-only compat switches (`支持 think effort` / `思考格式`)
|
|
244
|
+
render *only* on `openai-completions` routes — elsewhere the host rejects them at write
|
|
245
|
+
time, so they are absent from the DOM.
|
|
246
|
+
|
|
247
|
+
> **Toggle-folding caveat (fixed in 4.4.5).** The Off/On collapse of a thinking model's selector is an
|
|
248
|
+
> `openai-completions`-only behavior: it fires when a route is taken over **and** the
|
|
249
|
+
> model carries a `reasoningEfforts` table **without** `compat.supportsReasoningEffort: true`.
|
|
250
|
+
> That fold exists because pi-ai rejects a `reasoning_effort` string outside its fixed seven
|
|
251
|
+
> levels — a completions-wire concern. On a Responses/Anthropic route the levels map natively
|
|
252
|
+
> (thinking budget / reasoning-effort enum) and `supportsReasoningEffort` cannot be written at
|
|
253
|
+
> all, so through 4.4.4 taking such a route over wrongly folded a multi-level table to Off/On.
|
|
254
|
+
> Since 4.4.5 the fold additionally requires the route's `api` to be `openai-completions` (or
|
|
255
|
+
> absent), so a taken-over Responses/Anthropic route keeps its full level set end to end.
|
|
256
|
+
|
|
231
257
|
## Official compat surface: the short-circuit tool is retired (0.7.0-beta.1)
|
|
232
258
|
|
|
233
259
|
Once custom gateways (vLLM / LM Studio / self-hosted OpenAI-compatible proxies) declare
|
|
234
260
|
thinking, this plugin writes the fixes into the **official `llm-pi-ai` compat surface**
|
|
235
261
|
(introduced in dsh ≥ **v0.1.0-rc.8**, commit `884f7b9c41`) —
|
|
236
262
|
[dsh-llm-openai-completions](https://github.com/drscrewdriver/dsh-llm-openai-completions)
|
|
237
|
-
is no longer needed and should stay uninstalled
|
|
263
|
+
is no longer needed for the developer-role fix and should stay uninstalled unless you
|
|
264
|
+
explicitly want its three-protocol takeover (see above):
|
|
238
265
|
|
|
239
|
-
- Scans `llm-pi-ai.providers` for routes that are custom
|
|
240
|
-
|
|
241
|
-
table on any model (including `modelOverrides`), then writes:
|
|
266
|
+
- Scans `llm-pi-ai.providers` for routes that are custom gateways **and** declare a
|
|
267
|
+
`reasoningEfforts` table on any model (including `modelOverrides`), then writes:
|
|
242
268
|
- route-level `compat.supportsDeveloperRole: false` — the system prompt goes out as
|
|
243
269
|
`system`, fixing the vLLM / SGLang `Unexpected message role` 400;
|
|
244
270
|
- model-level `compat.thinkingFormat: 'qwen-chat-template'` on toggle-style thinking rows
|
package/README.ru.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> **▼ Поддерживаемые версии DSH**
|
|
23
23
|
>
|
|
24
|
-
> Этот релиз (4.3.x) фиксирует хосты DSH точным 12-значным перечислением `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2` — каждый rc перечислен отдельно, без диапазонов и carets; стабильная 0.2.1 не объявляется до её выхода.
|
|
24
|
+
> Этот релиз (4.3.x) фиксирует хосты DSH точным 12-значным перечислением `0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3` — каждый rc перечислен отдельно, без диапазонов и carets; стабильная 0.2.1 не объявляется до её выхода.
|
|
25
25
|
>
|
|
26
26
|
> | Версия DSH | Статус | Примечания |
|
|
27
27
|
> | --- | --- | --- |
|
package/README.zh.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
> **兼容性说明:** `0.6.0` 已包含日本語(`ja`)和한국어(`ko`)字典及选择项,但当前官方 DSH 只通过 `LocaleRuntime` 提供 `zh` 和 `en`。在原版 DSH 中选择 `ja` 或 `ko` 会失败,并提示 `locale "<id>" is not registered`。需要等待官方 DSH 增加对应 locale ID 后才能正常使用。高级用户可以维护 DSH fork,在 `packages/client/locale/src/locale-settings.ts` 更新 `LOCALE_IDS`,在 `packages/client/locale/src/client/index.ts` 更新 `LOCALES` 标签,并补齐核心字典和测试,然后重新构建并运行 fork 版本。仅修改本插件无法扩展 DSH 的全局 locale 列表。
|
|
35
35
|
|
|
36
|
-
> **版本兼容:** 本版本(4.3.x)按 **DSH 宿主精确
|
|
36
|
+
> **版本兼容:** 本版本(4.3.x)按 **DSH 宿主精确 14 档枚举**钉定:`0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3`——逐 rc 单列,不用区间/caret;0.2.1 稳定线发布前不声明。自 0.1.7-rc.1 边界起,DSH 移除了命令式设置注册(`settings.register` / `installSettingsSection`)与客户端 `settingsScope` 服务及每插件卡片槽位,运行时调整的配置字段在 schemastery schema 中标 `.volatile()`,设置表单由宿主按 schema 自动生成(无注册调用、无客户端设置卡片),插件按请求读取实时值(由 `loader/volatile-update` 驱动)——4.0.x 面向 0.2.0-rc 区段的同一声明式表面;0.1.7-rc.1 至 <0.2.0 的宿主请使用 3.x 线(3.4.3,npm dist-tag `dsh-0.1.7`),0.1.2–0.1.6 宿主请继续使用插件 3.0.2。
|
|
37
37
|
|
|
38
38
|
> **版本范围约定:** 每条兼容线都把宿主钉在本线自己的区段内。面向 0.1.x 宿主的线遵循 `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`);面向 0.2.x 区段的线遵循 `>=0.2.0-rc.1 <0.2.1-0`(4.0.x:`>=0.2.0-rc.1 <0.2.1-0`)。任何线都不声明开放的上限,兼容性解析器因此绝不会把插件线匹配到它并未适配的更新宿主区段。0.4.0–0.6.0 完全没有声明 dsh peer 依赖,属于无兼容性标注版本——不要安装。自 4.2.x 多线时代起,4.x 线改用上述逐 rc 精确枚举钉定宿主,区间公式仅描述历史上的分区段线。
|
|
39
39
|
|
|
@@ -185,11 +185,32 @@ config:
|
|
|
185
185
|
|
|
186
186
|
> 语义说明:模型选择器选择优先于插件默认档位。选 `auto`(mask)→ 插件调度;选线缆档位 → 直接生效;未选择 → 使用插件的 `level` 默认档位。`allowDowngrade` / `allowUpgrade` 只约束 `auto` 调度。
|
|
187
187
|
|
|
188
|
+
## 第三方传输层接管(三协议)
|
|
189
|
+
|
|
190
|
+
设置卡的「第三方接管」开关把一条路由加进 `dsh-llm-openai-completions` 传输层的
|
|
191
|
+
`providers` 名单。**传输层的名字是历史遗留**——自 4.4.x 线起它已接管三种线缆协议:
|
|
192
|
+
`openai-completions`、`openai-responses` 与 `anthropic`。路由被接管后,其模型请求短路
|
|
193
|
+
走该传输层(多模态真发 + 模态门禁 + 提示词注入),pi-ai 不再参与。
|
|
194
|
+
|
|
195
|
+
逐档线上值编辑器(`reasoningEfforts`)自 4.4.4 起**协议中立**:宿主把该表折成 pi-ai 的
|
|
196
|
+
`thinkingLevelMap`,三种协议都读(Anthropic thinking budget、Responses reasoning effort、
|
|
197
|
+
completions `reasoning_effort` 字符串)。两个 completions 专属 compat 开关(`支持 think
|
|
198
|
+
effort` / `思考格式`)**只在 `openai-completions` 路由上渲染**——其他协议下写入会被宿主
|
|
199
|
+
整体拒收,故 DOM 中不出现。
|
|
200
|
+
|
|
201
|
+
> **toggle 折叠陷阱(4.4.5 已修复)。** 思考模型选择器被折成 Off/On 是 `openai-completions`
|
|
202
|
+
> 专属行为:当一条路由被接管**且**模型带 `reasoningEfforts` 表**但**没有
|
|
203
|
+
> `compat.supportsReasoningEffort: true` 时触发。该折叠的存在理由是 pi-ai 拒收七固定档之外的
|
|
204
|
+
> `reasoning_effort` 字符串——一个 completions 线缆层面的问题。Responses/Anthropic 路由的档位
|
|
205
|
+
> 走原生映射(thinking budget / reasoning-effort 枚举),且 `supportsReasoningEffort` 根本无法写入,
|
|
206
|
+
> 故 4.4.4 及之前把这类路由接管后会误将多档表折成 Off/On。自 4.4.5 起折叠额外要求路由 `api` 为
|
|
207
|
+
> `openai-completions`(或缺省),被接管的 Responses/Anthropic 路由端到端保留完整档位集。
|
|
208
|
+
|
|
188
209
|
## 官方 compat 面:短路工具退役(0.7.0-beta.1)
|
|
189
210
|
|
|
190
|
-
自定义网关(vLLM / LM Studio / 自建 OpenAI 兼容代理)**声明思考功能后**,本插件自动把修复写入 **dsh 官方 `llm-pi-ai` compat 面**(dsh ≥ **v0.1.0-rc.8** 引入,commit `884f7b9c41
|
|
211
|
+
自定义网关(vLLM / LM Studio / 自建 OpenAI 兼容代理)**声明思考功能后**,本插件自动把修复写入 **dsh 官方 `llm-pi-ai` compat 面**(dsh ≥ **v0.1.0-rc.8** 引入,commit `884f7b9c41`)——若仅为 developer 角色 400 修复,[dsh-llm-openai-completions](https://github.com/drscrewdriver/dsh-llm-openai-completions) 已不再需要、应保持卸载;只有当你明确要用它的三协议接管(见上节)时才安装:
|
|
191
212
|
|
|
192
|
-
- 扫描 `llm-pi-ai.providers
|
|
213
|
+
- 扫描 `llm-pi-ai.providers`,识别「自定义网关 **且** 任一模型(含 `modelOverrides`)声明 `reasoningEfforts` 表」的路由,自动写入:
|
|
193
214
|
- 路由级 `compat.supportsDeveloperRole: false`——系统提示词按 `system` 角色发送,修复 vLLM / SGLang 的 `Unexpected message role` 400;
|
|
194
215
|
- toggle 型思考模型(思考表存在、行级无 `supportsReasoningEffort`)自动补模型级 `compat.thinkingFormat: 'qwen-chat-template'`——pi-ai 发 `chat_template_kwargs.enable_thinking`(裸 vLLM 忽略顶层 `enable_thinking`);
|
|
195
216
|
- 写入走官方设置通道(读 → 纯变换 → 整段 `settings.update('llm-pi-ai', …)`),dsh 的 schema 在**写入处**校验:低于 rc.8 的 dsh 会拒绝并日志告警,绝不静默错配;任何层级的显式值(true/false、已声明格式)永不覆盖;
|
package/dsh.plugin.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.5",
|
|
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": {
|
|
7
|
-
"dsh": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2"
|
|
7
|
+
"dsh": "0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3"
|
|
8
8
|
},
|
|
9
9
|
"contributes": {
|
|
10
10
|
"tools": [],
|