dsh-thinking-levels 3.4.4 → 4.0.1
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.ja.md +27 -0
- package/CHANGELOG.ko.md +27 -0
- package/CHANGELOG.md +27 -0
- package/INSTALL.ja.md +191 -164
- package/INSTALL.ko.md +191 -164
- package/INSTALL.md +23 -7
- package/INSTALL.zh.md +192 -176
- package/LICENSE +21 -21
- package/README.de.md +227 -0
- package/README.es.md +227 -0
- package/README.fr.md +227 -0
- package/README.it.md +226 -0
- package/README.ja.md +17 -2
- package/README.ko.md +17 -2
- package/README.md +20 -4
- package/README.ru.md +227 -0
- package/README.zh.md +17 -2
- package/cordis.patch.yml +3 -3
- package/dsh.plugin.json +2 -2
- package/lib/client.js +708 -691
- package/lib/client.js.map +1 -1
- package/package.json +18 -19
- package/locale/de.json +0 -6
- package/locale/en.json +0 -6
- package/locale/es.json +0 -6
- package/locale/fr.json +0 -6
- package/locale/it.json +0 -6
- package/locale/ja.json +0 -6
- package/locale/ko.json +0 -6
- package/locale/ru.json +0 -6
- package/locale/zh.json +0 -6
package/README.fr.md
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# dsh-thinking-levels
|
|
2
|
+
|
|
3
|
+
**Contrôle du niveau de réflexion (`reasoning_effort`) par tour pour [DeepSeek Harness (dsh)](https://github.com/deepseek-ai/deepseek-harness) : choisissez `Auto` (un masque) dans le sélecteur de modèle de session et le plugin planifie `low` / `high` / `max` à partir de l'historique récent des appels d'outils avant de soumettre l'effort à l'API — ou fixez manuellement un niveau wire (`off` / `on` / `minimal` / `low` / `medium` / `high` / `xhigh` / `max`). Les tours d'outils bon marché restent bon marché ; les tâches lourdes ne manquent jamais de raisonnement.**
|
|
4
|
+
|
|
5
|
+
- [README en français](./README.fr.md)
|
|
6
|
+
- [English README](./README.md)
|
|
7
|
+
- [中文 README](./README.zh.md)
|
|
8
|
+
- [日本語 README](./README.ja.md)
|
|
9
|
+
- [한국어 README](./README.ko.md)
|
|
10
|
+
- [Guide d'installation en français](./INSTALL.fr.md)
|
|
11
|
+
- [Installation guide](./INSTALL.md)
|
|
12
|
+
- [中文安装指南](./INSTALL.zh.md)
|
|
13
|
+
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
14
|
+
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
15
|
+
- [Changelog en français](./CHANGELOG.fr.md)
|
|
16
|
+
- [Changelog](./CHANGELOG.md)
|
|
17
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
18
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
19
|
+
|
|
20
|
+
> **v0.7.0-beta.1 (2026-09-06) : la voie court-circuit est retirée.** Cette version ne dépend plus de `dsh-llm-openai-completions` — les correctifs pour passerelles personnalisées empruntent la surface compat officielle `llm-pi-ai` (nécessite **dsh ≥ v0.1.2-alpha.1**) ; laissez le plugin adaptateur désinstallé. Voir le [CHANGELOG](./CHANGELOG.md).
|
|
21
|
+
|
|
22
|
+
> **▼ Prise en charge des versions de DSH**
|
|
23
|
+
>
|
|
24
|
+
> Cette version (4.0.0) prend en charge **DSH v0.2.0-rc.1 à < 0.2.1** uniquement.
|
|
25
|
+
>
|
|
26
|
+
> | Version de DSH | Statut | Notes |
|
|
27
|
+
> | --- | --- | --- |
|
|
28
|
+
> | ≥ 0.2.0-rc.1 | ✅ Pris en charge | Cette version (4.0.x) : même surface de réglages déclarative (champs de schéma `.volatile()` rendus par l'hôte ; lectures/écritures inter-plugins via le service `configForms`), avec la contrainte peer recalée sur le segment 0.2.0-rc |
|
|
29
|
+
> | ≥ 0.1.7-rc.1 à < 0.2.0 | ✅ Pris en charge | Utilisez la ligne 3.x (3.4.3, dist-tag npm `dsh-0.1.7`) : réglages déclaratifs — l'hôte rend le formulaire Plugins à partir des champs de schéma `.volatile()` du plugin ; les lectures/écritures inter-plugins passent par le service `configForms` |
|
|
30
|
+
> | < 0.1.7-rc.1 | ⚠️ Non pris en charge | DSH 0.1.7 a supprimé l'enregistrement impératif des réglages et l'emplacement de carte par plugin dont dépendaient les lignes antérieures (3.0.x et avant) — restez sur le plugin 3.0.2 pour les hôtes 0.1.2–0.1.6. |
|
|
31
|
+
>
|
|
32
|
+
> La frontière est `0.1.7-rc.1`, où DSH a supprimé l'enregistrement impératif des réglages (`settings.register` / `installSettingsSection`) et le service client `settingsScope`. Depuis cette frontière, les champs de configuration ajustables à l'exécution sont marqués `.volatile()` dans le schéma schemastery, l'hôte génère le formulaire de réglages à partir de ce seul schéma (aucun appel d'enregistrement, aucune carte de réglages côté client), et le plugin lit les valeurs à jour à chaque requête, piloté par `loader/volatile-update`. Les lignes 3.1.x–3.4.x ciblent la surface déclarative de 0.1.7 ; la ligne 4.0.x est la même surface recalée sur le segment 0.2.0-rc.
|
|
33
|
+
|
|
34
|
+
> **Politique de plages de versions :** chaque ligne de compatibilité cale étroitement son hôte sur son propre segment. Les lignes ciblant des hôtes 0.1.x suivent `>=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`) ; les lignes ciblant le segment 0.2.x suivent `>=0.2.0-rc.1 <0.2.1-0` (4.0.x : `>=0.2.0-rc.1 <0.2.1-0`). Aucune ligne ne déclare jamais de borne haute ouverte : un résolveur de compatibilité ne peut donc jamais apparier une ligne de plugin à un segment d'hôte plus récent pour lequel elle n'a pas été conçue. Les versions 0.4.0–0.6.0 ne portaient aucune déclaration peer dsh et sont de fait sans typage de compatibilité — ne les installez pas.
|
|
35
|
+
|
|
36
|
+
> **Note de compatibilité :** la version `0.6.0` inclut les dictionnaires et entrées de sélecteur japonais (`ja`) et coréen (`ko`), mais les versions officielles actuelles de DSH n'exposent que `zh` et `en` via `LocaleRuntime`. Sur un DSH d'origine, sélectionner `ja` ou `ko` échoue avec `locale "<id>" is not registered`. Ces langues fonctionneront une fois que le DSH officiel aura ajouté les identifiants de locale correspondants. Les utilisateurs avancés peuvent utiliser un fork de DSH qui met à jour `packages/client/locale/src/locale-settings.ts` (`LOCALE_IDS`) et `packages/client/locale/src/client/index.ts` (libellés `LOCALES`), ainsi que les dictionnaires et tests de base correspondants, puis recompiler et exécuter le DSH forké. Modifier ce plugin seul ne peut pas étendre la liste globale des locales de DSH.
|
|
37
|
+
|
|
38
|
+
Dans une chaîne d'outils multi-étapes, le modèle re-réfléchit avant **chaque** appel d'outil — et cette réflexion domine le temps réel (une tâche d'agent de 50 étapes peut passer des minutes à raisonner entre les outils). `dsh-thinking-levels` se branche sur la cascade `agent/request` que dsh réévalue à chaque étape (enregistrée avec `prepend` pour que l'assemblage de sélection de modèle de session ne puisse pas écraser sa décision) et injecte un niveau de réflexion dans la prochaine requête de modèle.
|
|
39
|
+
|
|
40
|
+
## Aperçu
|
|
41
|
+
|
|
42
|
+
Captures d'écran de l'interface en direct (dsh web) :
|
|
43
|
+
|
|
44
|
+
<figure>
|
|
45
|
+
<img width="460" alt="Menu déroulant Auto du sélecteur de modèle injecté par le plugin : niveaux Off / Low / High / Max / Auto, High actuellement sélectionné, Auto en surbrillance — Auto est un masque, le plugin planifie low/high/max à chaque étape à partir de l'historique d'outils." src="assets/官方模型的自动级别调整.png" />
|
|
46
|
+
<figcaption>Le sélecteur de modèle natif gagne <strong>Auto</strong> — choisissez-le et le plugin planifie low/high/max à chaque étape au lieu d'un niveau wire fixe.</figcaption>
|
|
47
|
+
</figure>
|
|
48
|
+
|
|
49
|
+
<figure>
|
|
50
|
+
<img style="max-width:100%" alt="Réglages du niveau de réflexion (carte 3.0.x affichée) : niveau par défaut (planification auto), commutateurs activer / autoriser-descente / autoriser-montée, table des capacités de modèles du fournisseur personnalisé llm-pi-ai avec l'éditeur progressif par modèle, et préréglages appliquer-à-tous (Off/High/Max style officiel DeepSeek, Off/Low/Medium/High générique)." src="assets/自动思考级别配置.png" />
|
|
51
|
+
<figcaption>Réglages du niveau de réflexion, carte 3.0.x (capture conservée pour référence). Depuis 3.1.0 / DSH 0.1.7, le niveau et les commutateurs du planificateur s'affichent sous forme de formulaire déclaratif généré par l'hôte ; la carte personnalisée et son éditeur de capacités llm-pi-ai ont été supprimés avec l'emplacement retiré.</figcaption>
|
|
52
|
+
</figure>
|
|
53
|
+
|
|
54
|
+
<figure>
|
|
55
|
+
<img style="max-width:100%" alt="Éditeur de capacités par modèle pour un modèle openai-completions personnalisé (local-35b / Qwen3.6-35B-A3B), tel que livré dans la carte de réglages 3.0.x : modèle de réflexion et vision activés, prise en charge de l'effort désactivée, format de réflexion qwen-chat-template (auto-rempli) ; pas de commutateur de takeover — le drapeau compat officiel se trouve sur la ligne du fournisseur ; préréglages de limite de fenêtre de contexte 64K/128K/256K/400K/512K/1M avec saisie personnalisée." src="assets/自定义模型的思考接管-短路-上下文窗口限制.png" />
|
|
56
|
+
<figcaption>Carte de capacités par modèle, 3.0.x (capture conservée pour référence). Depuis 3.1.0 / DSH 0.1.7, l'éditeur de capacités n'est plus livré ; modifiez les capacités des modèles `llm-pi-ai` via les réglages officiels des modèles.</figcaption>
|
|
57
|
+
</figure>
|
|
58
|
+
|
|
59
|
+
## Niveaux
|
|
60
|
+
|
|
61
|
+
| Niveau | Signification | Emplacement |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| `off` | réflexion désactivée (manuel uniquement — jamais choisi automatiquement) | sélecteur de modèle / niveau par défaut |
|
|
64
|
+
| `on` | réflexion activée (modèles à bascule uniquement) : envoie `enable_thinking`, jamais d'effort de réflexion | sélecteur de modèle / niveau par défaut |
|
|
65
|
+
| `minimal` | effort minimal (tâches très légères) | sélecteur de modèle / niveau par défaut |
|
|
66
|
+
| `low` | choix manuel pour les tâches de chat simples (les tours bon marché restent bon marché) | sélecteur de modèle / niveau par défaut |
|
|
67
|
+
| `medium` | effort moyen | sélecteur de modèle / niveau par défaut |
|
|
68
|
+
| `high` | l'effort officiel par défaut | sélecteur de modèle / niveau par défaut |
|
|
69
|
+
| `xhigh` | effort extra-haut | sélecteur de modèle / niveau par défaut |
|
|
70
|
+
| `max` | travail lourd | sélecteur de modèle / niveau par défaut |
|
|
71
|
+
| `auto` | **masque** : planifie à chaque étape à partir de l'historique récent des appels d'outils, résolu en un niveau wire avant soumission | sélecteur de modèle (injecté par le plugin) / niveau par défaut |
|
|
72
|
+
|
|
73
|
+
Faits sur les niveaux wire (vérifiés contre la documentation officielle DeepSeek et l'adaptateur `llm-deepseek` de dsh) : `low` correspond 1:1 sur deepseek-v4-flash / v4-pro, tandis que `medium` / `xhigh` se replient sur `high`. L'adaptateur n'accepte que `off | low | high | max` et rejette tout le reste avec `UNSUPPORTED_REASONING_EFFORT` — `auto` est la couche masque du plugin, jamais envoyée telle quelle à l'API, toujours résolue en un niveau wire concret avant injection. `on` n'est **pas** un niveau d'effort : seuls les modèles à bascule (style Qwen3.6) l'annoncent, et il se contente de passer `enable_thinking` à true — aucun `reasoning_effort` n'est envoyé ; un modèle capable d'effort n'annonce jamais `on`, donc une sélection manuelle de `on` sur un tel modèle est retirée.
|
|
74
|
+
|
|
75
|
+
## Mapping wire personnalisé
|
|
76
|
+
|
|
77
|
+
Pour les modèles `llm-pi-ai` déclarés à la main, mappez chaque niveau vers la valeur exacte qu'attend votre passerelle (emprunté à dsh-thinking-effort) : cochez un niveau et saisissez sa valeur wire, par ex. `high` → `ultra`. Le mapping est stocké dans la table `reasoningEfforts` du modèle dans la configuration `llm-pi-ai`, si bien que la sélection `High` du Composer envoie `ultra` à la passerelle. Laisser `off` vide signifie « ne pas envoyer ».
|
|
78
|
+
|
|
79
|
+
- Préréglage officiel : `Off / High / Max` (style officiel DeepSeek)
|
|
80
|
+
- Préréglage générique : `Off / Low / Medium / High`
|
|
81
|
+
|
|
82
|
+
> L'éditeur visuel de ce mapping figurait sur la carte de réglages du plugin, supprimée par la migration DSH 0.1.7 (l'emplacement n'existe plus). Modifiez plutôt la table `reasoningEfforts` via la surface officielle de réglages des modèles — de toute façon, la détection et l'injection côté hôte lisent cette configuration en direct.
|
|
83
|
+
|
|
84
|
+
## Préréglages de fenêtre de contexte
|
|
85
|
+
|
|
86
|
+
La commande rapide de la rangée d'outils du Composer (à côté du sélecteur de modèle/d'effort) édite une **limite de fenêtre de contexte** : paliers prédéfinis `64K / 128K / 256K / 400K / 512K / 1M`, une saisie d'entier personnalisé et un bouton d'effacement. La valeur est écrite dans l'entrée `contextWindow` du modèle `llm-pi-ai` (entier `2000`–`1000000`) — ou dans l'entrée `llm-deepseek` pour les modèles DeepSeek officiels.
|
|
87
|
+
|
|
88
|
+
En amont, le harnais la consomme via `resolveModelInfo(...).context.contextWindow` pour les seuils de compaction, la détection de débordement de contexte et les projections de pression de contexte. Comme `llm-pi-ai` relit la configuration à jour à chaque résolution et que la synchronisation compat ne bloque pas la découverte de modèles, une modification de réglages prend effet à la requête suivante sans redémarrage.
|
|
89
|
+
|
|
90
|
+
La configuration du plugin accepte aussi `models['provider/model'].contextWindow` comme déclaration validée (entier `2000`–`1000000`) sur la surface de composition/configuration.
|
|
91
|
+
|
|
92
|
+
## Garde-fou tenant compte du modèle (v0.5.0)
|
|
93
|
+
|
|
94
|
+
Le plugin n'envoie jamais de `reasoning_effort` à un modèle qui n'en annonce pas. Les routes
|
|
95
|
+
openai-completions personnalisées (par ex. un Qwen3.6 local sans `reasoningEfforts`) sont classées
|
|
96
|
+
non raisonneuses via `ctx.llm.resolveModelInfo`, et tout effort — hérité ou planifié — est
|
|
97
|
+
**retiré** au lieu d'être envoyé, si bien que le rejet par requête `UNSUPPORTED_REASONING_EFFORT` de
|
|
98
|
+
dsh ne peut pas se déclencher. Les champs non pris en charge ne sont jamais transmis à une API qui
|
|
99
|
+
ne peut pas les accepter.
|
|
100
|
+
|
|
101
|
+
Comportement par version :
|
|
102
|
+
|
|
103
|
+
| version de dsh | gestion de `low` |
|
|
104
|
+
|---|---|
|
|
105
|
+
| rc.6 (ancien) | non natif : le sélecteur ne l'affiche que si une surcharge `models` confirmée par le configurateur le nomme ; le niveau est alors annoncé (sélecteur + validation de requête) et transmis tel quel |
|
|
106
|
+
| rc.7+ (nouveau) | natif : le plugin ne le réécrit ni ne le réinjecte ; une sélection manuelle de `low` passe inchangée |
|
|
107
|
+
|
|
108
|
+
Le planificateur auto peut toujours choisir `low` pour les modèles qui le prennent en charge — c'est le garde-fou de capacités ci-dessus qui l'en éloigne pour les modèles inaptes.
|
|
109
|
+
|
|
110
|
+
## Auto du sélecteur de modèle
|
|
111
|
+
|
|
112
|
+
Le sélecteur de modèle de session (à côté du modèle) propose désormais **Auto** après les niveaux wire (injecté dans les métadonnées du répertoire de modèles par le plugin) :
|
|
113
|
+
|
|
114
|
+
| Choix du sélecteur de modèle | Comportement |
|
|
115
|
+
|---|---|
|
|
116
|
+
| **Auto** | le plugin planifie via l'historique d'outils + les commutateurs descente/montée, résout en `low` / `high` / `max` avant soumission |
|
|
117
|
+
| `off` / `on` / `minimal` / `low` / `medium` / `high` / `xhigh` / `max` | **le choix manuel l'emporte** — le plugin n'intervient pas (`on` reste `on` sur les modèles à bascule, jamais élevé en effort ; les modèles capables d'effort le retirent) |
|
|
118
|
+
| non défini | le niveau par défaut du plugin s'applique (ci-dessous) |
|
|
119
|
+
|
|
120
|
+
## Planificateur auto
|
|
121
|
+
|
|
122
|
+
Le pivot est `high` (l'officiel par défaut). `auto` planifie entre `low` / `high` / `max` ; il ne choisit jamais `off`.
|
|
123
|
+
|
|
124
|
+
| Appels d'outils récents | Niveau |
|
|
125
|
+
|---|---|
|
|
126
|
+
| aucun (prompt frais, pur chat) | `low` |
|
|
127
|
+
| ≥75 % d'outils simples, petits arguments, descentes autorisées | `low` |
|
|
128
|
+
| outils mixtes / lourds | `high` |
|
|
129
|
+
| charges très lourdes, montées autorisées | `max` |
|
|
130
|
+
|
|
131
|
+
La politique de planification partage la même source que [dsh-tool-turbo](https://github.com/drscrewdriver/dsh-tool-turbo) (même liste blanche d'outils simples / mêmes seuils de charge / même règle des 75 %).
|
|
132
|
+
|
|
133
|
+
## Installation
|
|
134
|
+
|
|
135
|
+
Voir [INSTALL.md](./INSTALL.fr.md) pour le guide complet de la CLI officielle (découverte du profil, mise à niveau, migration, vérification, dépannage). Démarrage rapide :
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# 1. install the plugin into a profile from npm (web shown; any profile works)
|
|
139
|
+
# (the web profile is a pnpm workspace root, so -w is required)
|
|
140
|
+
dsh plugin --profile web add dsh-thinking-levels -w
|
|
141
|
+
# GitHub alternative:
|
|
142
|
+
# dsh plugin --profile web add https://github.com/drscrewdriver/dsh-thinking-levels.git -w
|
|
143
|
+
# local-path alternative (no network needed):
|
|
144
|
+
# dsh plugin --profile web add /absolute/path/to/dsh-thinking-levels
|
|
145
|
+
|
|
146
|
+
# 2. restart dsh web (a running instance does not hot-load new bundle layers)
|
|
147
|
+
dsh web
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
> Remarque : l'environnement d'exécution dsh utilise pnpm 11, dont la politique de chaîne d'approvisionnement `minimumReleaseAge` peut bloquer une version fraîchement publiée avec `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` — ajoutez la version à `minimumReleaseAgeExclude` dans `~/.dsh/profiles/web/pnpm-workspace.yaml` pour lever la période de refroidissement.
|
|
151
|
+
|
|
152
|
+
Enregistrement manuel via `link:` (alternative à `dsh plugin add`) :
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# ~/.dsh/profiles/web/package.json dependencies:
|
|
156
|
+
# "dsh-thinking-levels": "link:<absolute path to dsh-thinking-levels>"
|
|
157
|
+
# ~/.dsh/profiles/web/cordis.patch.yml:
|
|
158
|
+
# - insert:
|
|
159
|
+
# - id: thinking-levels
|
|
160
|
+
# name: dsh-thinking-levels
|
|
161
|
+
cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Configuration
|
|
165
|
+
|
|
166
|
+
Deux surfaces partagent un même schéma :
|
|
167
|
+
|
|
168
|
+
- **Assemblage** — le `config:` de la ligne du plugin dans la composition du profil (par ex. `cordis.yml`) :
|
|
169
|
+
```yaml
|
|
170
|
+
config:
|
|
171
|
+
level: auto # off | on | minimal | low | medium | high | xhigh | max | auto — the default level when the session picks nothing
|
|
172
|
+
allowDowngrade: true # let the scheduler drop below `high`
|
|
173
|
+
allowUpgrade: false # forbid the scheduler lifting to `max`
|
|
174
|
+
```
|
|
175
|
+
- **Exécution** — les champs de configuration `.volatile()` du plugin (`enabled`, `level`, `allowDowngrade`, `allowUpgrade`) : DSH 0.1.7 génère le formulaire de réglages Plugins à partir du schéma déclaré, et les modifications validées parviennent au plugin sous forme de références de configuration à jour (`loader/volatile-update`) — elles s'appliquent à la requête de modèle suivante, sans redémarrage. (`models` reste un champ de niveau configurateur : modifiez-le dans la composition du profil.)
|
|
176
|
+
|
|
177
|
+
Les surcharges de capacités par modèle (`models`, clé `provider/model`) confirment ce que la détection auto trouve ; le configurateur a le dernier mot :
|
|
178
|
+
|
|
179
|
+
```yaml
|
|
180
|
+
config:
|
|
181
|
+
level: auto
|
|
182
|
+
models:
|
|
183
|
+
llm-pi-ai/Qwen3.6-35B-A3B: # non-reasoning thinking model (thinking toggle + budget)
|
|
184
|
+
vision: false
|
|
185
|
+
thinking: true
|
|
186
|
+
efforts: false # never send reasoning_effort (stripped at request time)
|
|
187
|
+
llm-pi-ai/Qwen3.8-27B: # effort-capable model (rc.6-era adapter without low)
|
|
188
|
+
efforts: [low, high] # confirm low → advertised in the selector + passed through
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
> Pour la bascule de réflexion + budget de Qwen, configurez plutôt la route **llm-pi-ai** :
|
|
192
|
+
> `compat.thinkingFormat: qwen` (→ `enable_thinking` + `thinking_budget` wire via
|
|
193
|
+
> `thinkingBudgets`), ou `qwen-chat-template` (→ `chat_template_kwargs.enable_thinking`) pour
|
|
194
|
+
> les modèles à effort comme Qwen3.8-27B.
|
|
195
|
+
|
|
196
|
+
Valeurs par défaut : `{ enabled: true, level: 'auto', allowDowngrade: true, allowUpgrade: false, models: {} }`.
|
|
197
|
+
|
|
198
|
+
> Sémantique : le choix du sélecteur de modèle prime sur le niveau par défaut du plugin. Choisissez `auto` (masque) → le plugin planifie ; choisissez un niveau wire → appliqué directement ; ne choisissez rien → le `level` par défaut du plugin est utilisé. `allowDowngrade` / `allowUpgrade` ne contraignent que la planification `auto`.
|
|
199
|
+
|
|
200
|
+
## Surface compat officielle : l'outil court-circuit est retiré (0.7.0-beta.1)
|
|
201
|
+
|
|
202
|
+
Dès que des passerelles personnalisées (vLLM / LM Studio / proxys OpenAI-compatibles auto-hébergés) déclarent la réflexion, ce plugin écrit les correctifs dans la **surface compat officielle `llm-pi-ai`** (introduite dans dsh ≥ **v0.1.0-rc.8**, commit `884f7b9c41`) — [dsh-llm-openai-completions](https://github.com/drscrewdriver/dsh-llm-openai-completions) n'est plus nécessaire et doit rester désinstallé :
|
|
203
|
+
|
|
204
|
+
- Scanne `llm-pi-ai.providers` à la recherche de routes qui sont des passerelles openai-completions personnalisées (`api: openai-completions` ou baseURL non officielle) **et** déclarent une table `reasoningEfforts` sur un modèle quelconque (y compris `modelOverrides`), puis écrit :
|
|
205
|
+
- au niveau de la route `compat.supportsDeveloperRole: false` — le prompt système part en tant que `system`, corrigeant l'erreur 400 `Unexpected message role` de vLLM / SGLang ;
|
|
206
|
+
- au niveau du modèle `compat.thinkingFormat: 'qwen-chat-template'` sur les lignes de réflexion à bascule (table de réflexion sans `supportsReasoningEffort` au niveau de la ligne) — pi-ai envoie alors `chat_template_kwargs.enable_thinking` (les serveurs vLLM nus ignorent le `enable_thinking` de premier niveau du format `qwen` simple) ;
|
|
207
|
+
- Les écritures passent par le canal officiel de réglages (lecture → transformation pure → `settings.update('llm-pi-ai', …)` de section entière), si bien que le schéma de dsh valide l'écriture **là où elle est écrite** : un dsh antérieur à rc.8 rejette les champs avec un avertissement dans les journaux — pas de mauvaise configuration silencieuse ; les valeurs explicites de toute couche ne sont jamais écrasées ;
|
|
208
|
+
- Déclenché au démarrage du plugin, sur `llm/adapters-updated` et sur les changements de configuration de `llm-pi-ai` — pas d'édition manuelle de configuration ;
|
|
209
|
+
- La découpe en ligne des `<think>` côté réponse reste une **affaire de passerelle** : un vLLM nu a besoin de `--reasoning-parser qwen3` (pi-ai n'analyse que `reasoning_content` / `reasoning` / `reasoning_text`).
|
|
210
|
+
|
|
211
|
+
# Note sur les dépendances
|
|
212
|
+
|
|
213
|
+
La moitié hôte ne dépend **pas** en valeur de `@deepseek-ai/dsh-settings` — depuis la ligne DSH 0.1.7, il n'y a plus aucun enregistrement de réglages : le formulaire de réglages est généré par l'hôte à partir du schéma schemastery déclaré par le plugin (champs `.volatile()`), et la moitié client dialogue avec le service `configForms` fourni par l'environnement d'exécution dsh. Inutile d'installer manuellement les paquets officiels dans le profil. `dependencies` ne contient que `@deepseek-ai/schemastery` (installé automatiquement avec le paquet).
|
|
214
|
+
|
|
215
|
+
## Développement
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
npm run lint # eslint (typescript-eslint flat config)
|
|
219
|
+
npm run typecheck # tsc --noEmit
|
|
220
|
+
npm test # vitest — 46 tests
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Couverture des tests : politique de niveaux (transmission manuelle y compris les niveaux étendus, écrêtage de `on`, planificateur auto, validation, frontière des outils simples), garde-fou de capacités de modèles (`reasoningEffortSupported`, retrait/transmission de `resolveEffortInjection`), analyse des événements de session (gardes, plafonnement de fenêtre, enregistrements malformés), schéma de configuration (synchronisation des valeurs par défaut, rejet hors bornes, surcharges `models`) et synchronisation compat officielle (identification, respect des valeurs explicites, idempotence identité, validation de schéma à l'écriture).
|
|
224
|
+
|
|
225
|
+
## Licence
|
|
226
|
+
|
|
227
|
+
MIT
|
package/README.it.md
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# dsh-thinking-levels
|
|
2
|
+
|
|
3
|
+
**Controllo del livello di pensiero (`reasoning_effort`) per turno per [DeepSeek Harness (dsh)](https://github.com/deepseek-ai/deepseek-harness): scegli `Auto` (una maschera) nel selettore di modello della sessione e il plugin pianifica `low` / `high` / `max` dalla recente cronologia delle chiamate agli strumenti prima di inviare l'effort all'API — oppure fissa manualmente un livello wire (`off` / `on` / `minimal` / `low` / `medium` / `high` / `xhigh` / `max`). I turni di strumenti economici restano economici; il lavoro pesante non resta mai senza ragionamento.**
|
|
4
|
+
|
|
5
|
+
- [README in italiano](./README.it.md)
|
|
6
|
+
- [English README](./README.md)
|
|
7
|
+
- [中文 README](./README.zh.md)
|
|
8
|
+
- [日本語 README](./README.ja.md)
|
|
9
|
+
- [한국어 README](./README.ko.md)
|
|
10
|
+
- [Guida all'installazione in italiano](./INSTALL.it.md)
|
|
11
|
+
- [Installation guide](./INSTALL.md)
|
|
12
|
+
- [中文安装指南](./INSTALL.zh.md)
|
|
13
|
+
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
14
|
+
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
15
|
+
- [Changelog in italiano](./CHANGELOG.it.md)
|
|
16
|
+
- [Changelog](./CHANGELOG.md)
|
|
17
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
18
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
19
|
+
|
|
20
|
+
> **v0.7.0-beta.1 (2026-09-06): il percorso short-circuit va in pensione.** Questa versione non dipende più da `dsh-llm-openai-completions` — le correzioni per gateway personalizzati viaggiano sulla superficie compat ufficiale `llm-pi-ai` (richiede **dsh ≥ v0.1.2-alpha.1**); il plugin adattatore deve restare disinstallato. Vedi il [CHANGELOG](./CHANGELOG.md).
|
|
21
|
+
|
|
22
|
+
> **▼ Versioni di DSH supportate**
|
|
23
|
+
>
|
|
24
|
+
> Questa versione (4.0.0) supporta solo **DSH v0.2.0-rc.1 fino a < 0.2.1**.
|
|
25
|
+
>
|
|
26
|
+
> | Versione DSH | Stato | Note |
|
|
27
|
+
> | --- | --- | --- |
|
|
28
|
+
> | ≥ 0.2.0-rc.1 | ✅ Supportata | Questa versione (4.0.x): stessa superficie di impostazioni dichiarativa (campi schema `.volatile()` renderizzati dall'host; letture/scritture tra plugin tramite il servizio `configForms`), con il gate peer riportato al segmento 0.2.0-rc |
|
|
29
|
+
> | ≥ 0.1.7-rc.1 fino a < 0.2.0 | ✅ Supportata | Usa la linea 3.x (3.4.3, dist-tag npm `dsh-0.1.7`): impostazioni dichiarative — l'host renderizza il form Plugins dai campi schema `.volatile()` del plugin; letture/scritture tra plugin passano dal servizio `configForms` |
|
|
30
|
+
> | < 0.1.7-rc.1 | ⚠️ Non supportata | DSH 0.1.7 ha rimosso la registrazione imperativa delle impostazioni e il posto a scheda per plugin su cui contavano le linee precedenti (3.0.x e anteriori) — resta su plugin 3.0.2 per host 0.1.2–0.1.6. |
|
|
31
|
+
>
|
|
32
|
+
> 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 i campi di configurazione modificabili a runtime sono marcati `.volatile()` nello schema schemastery, l'host genera il form delle impostazioni da quel solo schema (nessuna chiamata di registrazione, nessuna scheda impostazioni lato client) e il plugin legge i valori live a ogni richiesta, guidato da `loader/volatile-update`. Le linee 3.1.x–3.4.x puntano alla superficie dichiarativa di 0.1.7; la linea 4.0.x è la stessa superficie riportata al segmento 0.2.0-rc.
|
|
33
|
+
|
|
34
|
+
> **Politica degli intervalli di versione:** ogni linea di compatibilità aggancia il proprio host al proprio segmento in modo stretto. Le linee per host 0.1.x seguono `>=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`); le linee per il segmento 0.2.x seguono `>=0.2.0-rc.1 <0.2.1-0` (4.0.x: `>=0.2.0-rc.1 <0.2.1-0`). Nessuna linea dichiara mai un limite superiore aperto, così un resolver di compatibilità non può mai abbinare una linea di plugin a un segmento host più recente per cui non è stata costruita. Le versioni 0.4.0–0.6.0 non portavano alcuna dichiarazione peer dsh e sono di fatto senza tipizzazione di compatibilità — non installarle.
|
|
35
|
+
|
|
36
|
+
> **Nota di compatibilità:** la versione `0.6.0` include dizionari e voci del selettore in giapponese (`ja`) e coreano (`ko`), ma le release ufficiali attuali di DSH espongono solo `zh` e `en` tramite `LocaleRuntime`. Su un DSH originale, selezionare `ja` o `ko` fallisce con `locale "<id>" is not registered`. Queste lingue funzioneranno quando il DSH ufficiale aggiungerà gli ID locale corrispondenti. Gli utenti avanzati possono usare un fork di DSH che aggiorna `packages/client/locale/src/locale-settings.ts` (`LOCALE_IDS`) e `packages/client/locale/src/client/index.ts` (etichette `LOCALES`), insieme ai dizionari e ai test di base corrispondenti, per poi ricompilare ed eseguire il DSH forkato. Modificare solo questo plugin non può estendere l'elenco globale delle locale di DSH.
|
|
37
|
+
|
|
38
|
+
In una catena di strumenti a più passi, il modello ripensa prima di **ogni** chiamata a uno strumento — e quel pensiero domina il tempo di muro (un compito agent di 50 passi può spendere minuti a ragionare tra gli strumenti). `dsh-thinking-levels` si innesta nel waterfall `agent/request` che dsh risolve di nuovo a ogni passo (registrato con `prepend` così l'assemblaggio della selezione modello di sessione non può sovrascrivere la sua decisione) e inietta un livello di pensiero nella prossima richiesta al modello.
|
|
39
|
+
|
|
40
|
+
## Anteprima
|
|
41
|
+
|
|
42
|
+
Screenshot dell'interfaccia live (dsh web):
|
|
43
|
+
|
|
44
|
+
<figure>
|
|
45
|
+
<img width="460" alt="Menu a tendina Auto del selettore di modello iniettato dal plugin: livelli Off / Low / High / Max / Auto, High attualmente selezionato, Auto evidenziato — Auto è una maschera, il plugin pianifica low/high/max a ogni passo dalla cronologia degli strumenti." src="assets/官方模型的自动级别调整.png" />
|
|
46
|
+
<figcaption>Il selettore di modello nativo guadagna <strong>Auto</strong> — sceglicelo e il plugin pianifica low/high/max a ogni passo invece di un livello wire fisso.</figcaption>
|
|
47
|
+
</figure>
|
|
48
|
+
|
|
49
|
+
<figure>
|
|
50
|
+
<img style="max-width:100%" alt="Impostazioni del livello di pensiero (mostrata la scheda 3.0.x): livello predefinito (pianificazione auto), interruttori abilita / consenti-downgrade / consenti-upgrade, tabella delle capacità dei modelli del provider personalizzato llm-pi-ai con l'editor progressivo per modello e preset applica-a-tutti (Off/High/Max stile ufficiale DeepSeek, Off/Low/Medium/High generico)." src="assets/自动思考级别配置.png" />
|
|
51
|
+
<figcaption>Impostazioni del livello di pensiero, scheda 3.0.x (screenshot conservato come riferimento). Dal 3.1.0 / DSH 0.1.7 il livello e gli interruttori dello scheduler vengono renderizzati come form dichiarativo generato dall'host; la scheda personalizzata e il suo editor di capacità llm-pi-ai sono stati rimossi insieme al posto dismesso.</figcaption>
|
|
52
|
+
</figure>
|
|
53
|
+
|
|
54
|
+
<figure>
|
|
55
|
+
<img style="max-width:100%" alt="Editor di capacità per modello per un modello openai-completions personalizzato (local-35b / Qwen3.6-35B-A3B), come fornito nella scheda impostazioni 3.0.x: modello di pensiero e vision abilitati, supporto think effort disattivato, formato di pensiero qwen-chat-template (compilato automaticamente); nessun interruttore di takeover — il flag compat ufficiale sta sulla riga del provider; preset di limite della finestra di contesto 64K/128K/256K/400K/512K/1M con input personalizzato." src="assets/自定义模型的思考接管-短路-上下文窗口限制.png" />
|
|
56
|
+
<figcaption>Scheda di capacità per modello, 3.0.x (screenshot conservato come riferimento). Dal 3.1.0 / DSH 0.1.7 l'editor di capacità non è più fornito; modifica le capacità dei modelli `llm-pi-ai` tramite le impostazioni ufficiali dei modelli.</figcaption>
|
|
57
|
+
</figure>
|
|
58
|
+
|
|
59
|
+
## Livelli
|
|
60
|
+
|
|
61
|
+
| Livello | Significato | Dove |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| `off` | pensiero disattivato (solo manuale — mai scelto automaticamente) | selettore di modello / livello predefinito |
|
|
64
|
+
| `on` | pensiero attivato (solo modelli a toggle): invia `enable_thinking`, mai un think effort | selettore di modello / livello predefinito |
|
|
65
|
+
| `minimal` | sforzo minimo (compiti molto leggeri) | selettore di modello / livello predefinito |
|
|
66
|
+
| `low` | scelta manuale per compiti di chat semplici (i turni economici restano economici) | selettore di modello / livello predefinito |
|
|
67
|
+
| `medium` | sforzo medio | selettore di modello / livello predefinito |
|
|
68
|
+
| `high` | lo sforzo predefinito ufficiale | selettore di modello / livello predefinito |
|
|
69
|
+
| `xhigh` | sforzo extra alto | selettore di modello / livello predefinito |
|
|
70
|
+
| `max` | lavoro pesante | selettore di modello / livello predefinito |
|
|
71
|
+
| `auto` | **maschera**: pianifica a ogni passo dalla recente cronologia delle chiamate agli strumenti, risolto in un livello wire prima dell'invio | selettore di modello (iniettato dal plugin) / livello predefinito |
|
|
72
|
+
|
|
73
|
+
Fatti sui livelli wire (verificati contro la documentazione ufficiale DeepSeek e l'adattatore `llm-deepseek` di dsh): `low` corrisponde 1:1 su deepseek-v4-flash / v4-pro, mentre `medium` / `xhigh` collassano su `high`. L'adattatore accetta solo `off | low | high | max` e rifiuta tutto il resto con `UNSUPPORTED_REASONING_EFFORT` — `auto` è lo strato maschera del plugin, mai inviato tale e quale all'API, sempre risolto in un livello wire concreto prima dell'iniezione. `on` **non** è un livello di sforzo: viene pubblicizzato solo dai modelli a toggle (stile Qwen3.6) e si limita a portare `enable_thinking` a true — nessun `reasoning_effort` viene inviato; un modello capace di sforzo non pubblica mai `on`, quindi una scelta manuale di `on` su di esso viene rimossa.
|
|
74
|
+
|
|
75
|
+
## Mappatura wire personalizzata
|
|
76
|
+
|
|
77
|
+
Per i modelli `llm-pi-ai` dichiarati a mano, mappa ogni livello sul valore esatto che il tuo gateway si aspetta (preso in prestito da dsh-thinking-effort): spunta un livello e inserisci il suo valore wire, es. `high` → `ultra`. La mappatura è memorizzata nella tabella `reasoningEfforts` del modello nella configurazione `llm-pi-ai`, così la selezione `High` del Composer invia `ultra` al gateway. Lasciare `off` vuoto significa "non inviare".
|
|
78
|
+
|
|
79
|
+
- Preset ufficiale: `Off / High / Max` (stile ufficiale DeepSeek)
|
|
80
|
+
- Preset generico: `Off / Low / Medium / High`
|
|
81
|
+
|
|
82
|
+
> L'editor visivo di questa mappatura viaggiava sulla scheda impostazioni del plugin, rimossa dalla migrazione DSH 0.1.7 (il posto non esiste più). Modifica la tabella `reasoningEfforts` tramite la superficie ufficiale delle impostazioni dei modelli — del resto, rilevamento e iniezione lato host leggono quella configurazione live.
|
|
83
|
+
|
|
84
|
+
## Preset della finestra di contesto
|
|
85
|
+
|
|
86
|
+
Il controllo rapido della riga strumenti del Composer (accanto al selettore modello/sforzo) modifica un **limite della finestra di contesto**: tacche predefinite `64K / 128K / 256K / 400K / 512K / 1M`, un input per intero personalizzato e un pulsante di cancellazione. Il valore viene scritto nella voce `contextWindow` del modello `llm-pi-ai` (intero `2000`–`1000000`) — o nella voce `llm-deepseek` per i modelli DeepSeek ufficiali.
|
|
87
|
+
|
|
88
|
+
A monte, l'harness lo consuma tramite `resolveModelInfo(...).context.contextWindow` per le soglie di compaction, il rilevamento dell'overflow di contesto e le proiezioni della pressione di contesto. Poiché `llm-pi-ai` rilegge la configurazione live a ogni risoluzione e la sincronizzazione compat non blocca la scoperta dei modelli, una modifica delle impostazioni ha effetto alla richiesta successiva senza riavvio.
|
|
89
|
+
|
|
90
|
+
La configurazione del plugin accetta anche `models['provider/model'].contextWindow` come dichiarazione validata (intero `2000`–`1000000`) sulla superficie di composizione/configurazione.
|
|
91
|
+
|
|
92
|
+
## Guardia consapevole del modello (v0.5.0)
|
|
93
|
+
|
|
94
|
+
Il plugin non invia mai un `reasoning_effort` a un modello che non lo pubblica. Le route
|
|
95
|
+
openai-completions personalizzate (es. un Qwen3.6 locale senza `reasoningEfforts`) sono classificate
|
|
96
|
+
non-reasoning tramite `ctx.llm.resolveModelInfo`, e qualsiasi sforzo — ereditato o pianificato — viene
|
|
97
|
+
**rimosso** invece di essere inviato, così il rifiuto per richiesta `UNSUPPORTED_REASONING_EFFORT` di
|
|
98
|
+
dsh non può scattare. I campi non supportati non vengono mai passati a un'API che non può accoglierli.
|
|
99
|
+
|
|
100
|
+
Comportamento per versione:
|
|
101
|
+
|
|
102
|
+
| versione dsh | gestione di `low` |
|
|
103
|
+
|---|---|
|
|
104
|
+
| rc.6 (vecchia) | non nativo: il selettore lo mostra solo se un override `models` confermato dal configuratore lo nomina; il livello viene allora pubblicato (selettore + validazione della richiesta) e passato tale e quale |
|
|
105
|
+
| rc.7+ (nuova) | nativo: il plugin né lo riscrive né lo re-inietta; una scelta manuale di `low` passa invariata |
|
|
106
|
+
|
|
107
|
+
Lo scheduler auto può comunque scegliere `low` per i modelli che lo supportano — è la guardia delle capacità qui sopra a tenerlo lontano dai modelli che non possono accoglierlo.
|
|
108
|
+
|
|
109
|
+
## Auto del selettore di modello
|
|
110
|
+
|
|
111
|
+
Il selettore di modello della sessione (accanto al modello) ora offre **Auto** dopo i livelli wire (iniettato nei metadati della directory dei modelli dal plugin):
|
|
112
|
+
|
|
113
|
+
| Scelta nel selettore di modello | Comportamento |
|
|
114
|
+
|---|---|
|
|
115
|
+
| **Auto** | il plugin pianifica tramite cronologia strumenti + gli interruttori upgrade/downgrade e risolve in `low` / `high` / `max` prima dell'invio |
|
|
116
|
+
| `off` / `on` / `minimal` / `low` / `medium` / `high` / `xhigh` / `max` | **vince la scelta manuale** — il plugin non interviene (`on` resta `on` sui modelli a toggle, mai elevato a sforzo; i modelli capaci di sforzo lo rimuovono) |
|
|
117
|
+
| non impostato | si applica il livello predefinito del plugin (sotto) |
|
|
118
|
+
|
|
119
|
+
## Scheduler auto
|
|
120
|
+
|
|
121
|
+
Il perno è `high` (il predefinito ufficiale). `auto` pianifica tra `low` / `high` / `max`; non sceglie mai `off`.
|
|
122
|
+
|
|
123
|
+
| Chiamate agli strumenti recenti | Livello |
|
|
124
|
+
|---|---|
|
|
125
|
+
| nessuna (prompt fresco, pura chat) | `low` |
|
|
126
|
+
| ≥75% strumenti semplici, argomenti piccoli, downgrade consentiti | `low` |
|
|
127
|
+
| strumenti misti / pesanti | `high` |
|
|
128
|
+
| payload molto pesanti, upgrade consentiti | `max` |
|
|
129
|
+
|
|
130
|
+
La politica di pianificazione condivide la stessa origine di [dsh-tool-turbo](https://github.com/drscrewdriver/dsh-tool-turbo) (stessa whitelist di strumenti semplici / stesse soglie di payload / stessa regola del 75%).
|
|
131
|
+
|
|
132
|
+
## Installazione
|
|
133
|
+
|
|
134
|
+
Vedi [INSTALL.md](./INSTALL.it.md) per la guida completa alla CLI ufficiale (scoperta del profilo, aggiornamento, migrazione, verifica, risoluzione dei problemi). Avvio rapido:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# 1. install the plugin into a profile from npm (web shown; any profile works)
|
|
138
|
+
# (the web profile is a pnpm workspace root, so -w is required)
|
|
139
|
+
dsh plugin --profile web add dsh-thinking-levels -w
|
|
140
|
+
# GitHub alternative:
|
|
141
|
+
# dsh plugin --profile web add https://github.com/drscrewdriver/dsh-thinking-levels.git -w
|
|
142
|
+
# local-path alternative (no network needed):
|
|
143
|
+
# dsh plugin --profile web add /absolute/path/to/dsh-thinking-levels
|
|
144
|
+
|
|
145
|
+
# 2. restart dsh web (a running instance does not hot-load new bundle layers)
|
|
146
|
+
dsh web
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
> Nota: il runtime dsh usa pnpm 11, la cui politica supply-chain `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` per rimuovere il periodo di raffreddamento.
|
|
150
|
+
|
|
151
|
+
Registrazione manuale con `link:` (alternativa a `dsh plugin add`):
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# ~/.dsh/profiles/web/package.json dependencies:
|
|
155
|
+
# "dsh-thinking-levels": "link:<absolute path to dsh-thinking-levels>"
|
|
156
|
+
# ~/.dsh/profiles/web/cordis.patch.yml:
|
|
157
|
+
# - insert:
|
|
158
|
+
# - id: thinking-levels
|
|
159
|
+
# name: dsh-thinking-levels
|
|
160
|
+
cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Configurazione
|
|
164
|
+
|
|
165
|
+
Due superfici condividono uno stesso schema:
|
|
166
|
+
|
|
167
|
+
- **Assemblaggio** — il `config:` della riga del plugin nella composizione del profilo (es. `cordis.yml`):
|
|
168
|
+
```yaml
|
|
169
|
+
config:
|
|
170
|
+
level: auto # off | on | minimal | low | medium | high | xhigh | max | auto — the default level when the session picks nothing
|
|
171
|
+
allowDowngrade: true # let the scheduler drop below `high`
|
|
172
|
+
allowUpgrade: false # forbid the scheduler lifting to `max`
|
|
173
|
+
```
|
|
174
|
+
- **Runtime** — i campi di configurazione `.volatile()` del plugin (`enabled`, `level`, `allowDowngrade`, `allowUpgrade`): DSH 0.1.7 genera il form delle impostazioni Plugins dallo schema dichiarato, e le modifiche confermate arrivano al plugin come riferimenti di configurazione live (`loader/volatile-update`) — si applicano alla prossima richiesta al modello, senza riavvio. (`models` resta un campo di livello configuratore: modificalo nella composizione del profilo.)
|
|
175
|
+
|
|
176
|
+
Gli override di capacità per modello (`models`, chiave `provider/model`) confermano ciò che il rilevamento automatico trova; la parola finale è del configuratore:
|
|
177
|
+
|
|
178
|
+
```yaml
|
|
179
|
+
config:
|
|
180
|
+
level: auto
|
|
181
|
+
models:
|
|
182
|
+
llm-pi-ai/Qwen3.6-35B-A3B: # non-reasoning thinking model (thinking toggle + budget)
|
|
183
|
+
vision: false
|
|
184
|
+
thinking: true
|
|
185
|
+
efforts: false # never send reasoning_effort (stripped at request time)
|
|
186
|
+
llm-pi-ai/Qwen3.8-27B: # effort-capable model (rc.6-era adapter without low)
|
|
187
|
+
efforts: [low, high] # confirm low → advertised in the selector + passed through
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
> Per il toggle di pensiero + budget di Qwen, configura invece la route **llm-pi-ai**:
|
|
191
|
+
> `compat.thinkingFormat: qwen` (→ `enable_thinking` + `thinking_budget` wire tramite
|
|
192
|
+
> `thinkingBudgets`), oppure `qwen-chat-template` (→ `chat_template_kwargs.enable_thinking`) per
|
|
193
|
+
> modelli con sforzo come Qwen3.8-27B.
|
|
194
|
+
|
|
195
|
+
Valori predefiniti: `{ enabled: true, level: 'auto', allowDowngrade: true, allowUpgrade: false, models: {} }`.
|
|
196
|
+
|
|
197
|
+
> Semantica: la scelta del selettore di modello prevale sul livello predefinito del plugin. Scegli `auto` (maschera) → il plugin pianifica; scegli un livello wire → applicato direttamente; non scegliere nulla → viene usato il `level` predefinito del plugin. `allowDowngrade` / `allowUpgrade` vincolano solo la pianificazione `auto`.
|
|
198
|
+
|
|
199
|
+
## Superficie compat ufficiale: lo strumento short-circuit va in pensione (0.7.0-beta.1)
|
|
200
|
+
|
|
201
|
+
Quando gateway personalizzati (vLLM / LM Studio / proxy OpenAI-compatibili self-hosted) dichiarano il pensiero, questo plugin scrive le correzioni nella **superficie compat ufficiale `llm-pi-ai`** (introdotta in dsh ≥ **v0.1.0-rc.8**, commit `884f7b9c41`) — [dsh-llm-openai-completions](https://github.com/drscrewdriver/dsh-llm-openai-completions) non è più necessario e deve restare disinstallato:
|
|
202
|
+
|
|
203
|
+
- Scansiona `llm-pi-ai.providers` alla ricerca di route che sono gateway openai-completions personalizzati (`api: openai-completions` o baseURL non ufficiale) **e** dichiarano una tabella `reasoningEfforts` su un qualsiasi modello (inclusi `modelOverrides`), poi scrive:
|
|
204
|
+
- a livello di route `compat.supportsDeveloperRole: false` — il prompt di sistema parte come `system`, correggendo l'errore 400 `Unexpected message role` di vLLM / SGLang;
|
|
205
|
+
- a livello di modello `compat.thinkingFormat: 'qwen-chat-template'` sulle righe di pensiero a toggle (tabella di pensiero senza `supportsReasoningEffort` a livello di riga) — pi-ai invia allora `chat_template_kwargs.enable_thinking` (i server vLLM nudi ignorano il `enable_thinking` di primo livello del formato `qwen` semplice);
|
|
206
|
+
- Le scritture passano dal canale ufficiale delle impostazioni (lettura → trasformazione pura → `settings.update('llm-pi-ai', …)` dell'intera sezione), così lo schema di dsh valida la scrittura **dove viene scritta**: un dsh precedente a rc.8 rifiuta i campi con un avviso nel log — nessuna configurazione errata silenziosa; i valori espliciti su qualsiasi livello non vengono mai sovrascritti;
|
|
207
|
+
- Si attiva all'avvio del plugin, su `llm/adapters-updated` e sulle modifiche di configurazione di `llm-pi-ai` — nessuna modifica manuale della configurazione;
|
|
208
|
+
- Lo split inline dei `<think>` lato risposta resta una **questione di gateway**: un vLLM nudo richiede `--reasoning-parser qwen3` (pi-ai parsa solo `reasoning_content` / `reasoning` / `reasoning_text`).
|
|
209
|
+
|
|
210
|
+
# Nota sulle dipendenze
|
|
211
|
+
|
|
212
|
+
La metà host **non** dipende per valore da `@deepseek-ai/dsh-settings` — dalla linea DSH 0.1.7 non esiste più alcuna registrazione delle impostazioni: il form delle impostazioni è generato dall'host dallo schema schemastery dichiarato dal plugin (campi `.volatile()`), e la metà client dialoga con il servizio `configForms` fornito dal runtime dsh. Non serve installare manualmente i pacchetti ufficiali nel profilo. `dependencies` è solo `@deepseek-ai/schemastery` (installato automaticamente con il pacchetto).
|
|
213
|
+
|
|
214
|
+
## Sviluppo
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
npm run lint # eslint (typescript-eslint flat config)
|
|
218
|
+
npm run typecheck # tsc --noEmit
|
|
219
|
+
npm test # vitest — 46 tests
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Copertura dei test: politica dei livelli (pass-through manuale inclusi i livelli estesi, clamping di `on`, scheduler auto, validazione, confine degli strumenti semplici), la guardia delle capacità dei modelli (`reasoningEffortSupported`, rimozione/pass-through di `resolveEffortInjection`), il parsing degli eventi di sessione (guardie, tetto della finestra, record malformati), lo schema di configurazione (lockstep dei predefiniti, rifiuto fuori intervallo, override `models`) e la sincronizzazione compat ufficiale (identificazione, rispetto dei valori espliciti, idempotenza identità, validazione dello schema alla scrittura).
|
|
223
|
+
|
|
224
|
+
## Licenza
|
|
225
|
+
|
|
226
|
+
MIT
|
package/README.ja.md
CHANGED
|
@@ -8,19 +8,34 @@
|
|
|
8
8
|
- [中文 README](./README.zh.md)
|
|
9
9
|
- [日本語 README](./README.ja.md)
|
|
10
10
|
- [한국어 README](./README.ko.md)
|
|
11
|
+
- [README en français](./README.fr.md)
|
|
12
|
+
- [Deutsche README](./README.de.md)
|
|
13
|
+
- [README in italiano](./README.it.md)
|
|
14
|
+
- [README на русском](./README.ru.md)
|
|
15
|
+
- [README en español](./README.es.md)
|
|
11
16
|
- [インストールガイド](./INSTALL.ja.md)
|
|
12
17
|
- [English installation guide](./INSTALL.md)
|
|
13
18
|
- [中文安装指南](./INSTALL.zh.md)
|
|
14
19
|
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
20
|
+
- [Guide d'installation en français](./INSTALL.fr.md)
|
|
21
|
+
- [Installationsanleitung auf Deutsch](./INSTALL.de.md)
|
|
22
|
+
- [Guida all'installazione in italiano](./INSTALL.it.md)
|
|
23
|
+
- [Руководство по установке на русском](./INSTALL.ru.md)
|
|
24
|
+
- [Guía de instalación en español](./INSTALL.es.md)
|
|
15
25
|
- [Changelog](./CHANGELOG.md)
|
|
16
26
|
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
17
27
|
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
28
|
+
- [Changelog en français](./CHANGELOG.fr.md)
|
|
29
|
+
- [Changelog auf Deutsch](./CHANGELOG.de.md)
|
|
30
|
+
- [Changelog in italiano](./CHANGELOG.it.md)
|
|
31
|
+
- [Список изменений на русском](./CHANGELOG.ru.md)
|
|
32
|
+
- [Changelog en español](./CHANGELOG.es.md)
|
|
18
33
|
|
|
19
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 一覧を拡張できません。
|
|
20
35
|
|
|
21
|
-
> **バージョン互換:** 本リリース(
|
|
36
|
+
> **バージョン互換:** 本リリース(4.0.0)は **DSH ≥ 0.2.0-rc.1 かつ < 0.2.1** のみに対応。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 を使用してください。
|
|
22
37
|
|
|
23
|
-
> **バージョン範囲ポリシー:**
|
|
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 宣言を一切持たないためインストールしないでください。
|
|
24
39
|
|
|
25
40
|
マルチステップのツールチェーンでは、モデルは**ツール呼び出しのたびに**再思考します——その思考がウォールクロック時間の大半を占めます(50 ステップのエージェントタスクはツール間に数分の推論を費やし得ます)。`dsh-thinking-levels` は、dsh が毎ステップ再解決する `agent/request` waterfall(`prepend` で最外層に登録し、セッションのモデル選択アセンブリに上書きされないようにする)に接続し、次のモデルリクエストに思考レベルを注入します。
|
|
26
41
|
|
package/README.ko.md
CHANGED
|
@@ -8,19 +8,34 @@
|
|
|
8
8
|
- [中文 README](./README.zh.md)
|
|
9
9
|
- [日本語 README](./README.ja.md)
|
|
10
10
|
- [한국어 README](./README.ko.md)
|
|
11
|
+
- [README en français](./README.fr.md)
|
|
12
|
+
- [Deutsche README](./README.de.md)
|
|
13
|
+
- [README in italiano](./README.it.md)
|
|
14
|
+
- [README на русском](./README.ru.md)
|
|
15
|
+
- [README en español](./README.es.md)
|
|
11
16
|
- [설치 안내](./INSTALL.ko.md)
|
|
12
17
|
- [English installation guide](./INSTALL.md)
|
|
13
18
|
- [中文安装指南](./INSTALL.zh.md)
|
|
14
19
|
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
20
|
+
- [Guide d'installation en français](./INSTALL.fr.md)
|
|
21
|
+
- [Installationsanleitung auf Deutsch](./INSTALL.de.md)
|
|
22
|
+
- [Guida all'installazione in italiano](./INSTALL.it.md)
|
|
23
|
+
- [Руководство по установке на русском](./INSTALL.ru.md)
|
|
24
|
+
- [Guía de instalación en español](./INSTALL.es.md)
|
|
15
25
|
- [Changelog](./CHANGELOG.md)
|
|
16
26
|
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
17
27
|
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
28
|
+
- [Changelog en français](./CHANGELOG.fr.md)
|
|
29
|
+
- [Changelog auf Deutsch](./CHANGELOG.de.md)
|
|
30
|
+
- [Changelog in italiano](./CHANGELOG.it.md)
|
|
31
|
+
- [Список изменений на русском](./CHANGELOG.ru.md)
|
|
32
|
+
- [Changelog en español](./CHANGELOG.es.md)
|
|
18
33
|
|
|
19
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 목록을 확장할 수 없습니다.
|
|
20
35
|
|
|
21
|
-
> **버전 호환:** 본 릴리스(
|
|
36
|
+
> **버전 호환:** 본 릴리스(4.0.0)는 **DSH ≥ 0.2.0-rc.1이며 < 0.2.1**만 지원. 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을 사용하세요.
|
|
22
37
|
|
|
23
|
-
> **버전 범위 정책:** 각 호환 라인은 호스트를 자기 라인의 세그먼트에 엄격히
|
|
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 선언이 전혀 없으므로 설치하지 마세요.
|
|
24
39
|
|
|
25
40
|
멀티스텝 도구 체인에서 모델은 **모든 도구 호출 전에** 다시 생각합니다——그 사고가 벽시계 시간의 대부분을 차지합니다(50스텝 에이전트 작업은 도구 사이에 수 분의 추론을 쓸 수 있습니다). `dsh-thinking-levels`는 dsh가 매 스텝 다시 해석하는 `agent/request` waterfall(`prepend`로 최외곽에 등록하여 세션 모델 선택 어셈블리가 덮어쓰지 못하게 함)에 연결되어 다음 모델 요청에 사고 수준을 주입합니다.
|
|
26
41
|
|
package/README.md
CHANGED
|
@@ -8,26 +8,42 @@
|
|
|
8
8
|
- [中文 README](./README.zh.md)
|
|
9
9
|
- [日本語 README](./README.ja.md)
|
|
10
10
|
- [한국어 README](./README.ko.md)
|
|
11
|
+
- [README en français](./README.fr.md)
|
|
12
|
+
- [Deutsche README](./README.de.md)
|
|
13
|
+
- [README in italiano](./README.it.md)
|
|
14
|
+
- [README на русском](./README.ru.md)
|
|
15
|
+
- [README en español](./README.es.md)
|
|
11
16
|
- [Installation guide](./INSTALL.md)
|
|
12
17
|
- [中文安装指南](./INSTALL.zh.md)
|
|
13
18
|
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
14
19
|
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
20
|
+
- [Guide d'installation en français](./INSTALL.fr.md)
|
|
21
|
+
- [Installationsanleitung auf Deutsch](./INSTALL.de.md)
|
|
22
|
+
- [Guida all'installazione in italiano](./INSTALL.it.md)
|
|
23
|
+
- [Руководство по установке на русском](./INSTALL.ru.md)
|
|
24
|
+
- [Guía de instalación en español](./INSTALL.es.md)
|
|
15
25
|
- [Changelog](./CHANGELOG.md)
|
|
16
26
|
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
17
27
|
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
28
|
+
- [Changelog en français](./CHANGELOG.fr.md)
|
|
29
|
+
- [Changelog auf Deutsch](./CHANGELOG.de.md)
|
|
30
|
+
- [Changelog in italiano](./CHANGELOG.it.md)
|
|
31
|
+
- [Список изменений на русском](./CHANGELOG.ru.md)
|
|
32
|
+
- [Changelog en español](./CHANGELOG.es.md)
|
|
18
33
|
|
|
19
34
|
> **▼ DSH version support**
|
|
20
35
|
>
|
|
21
|
-
> This release (
|
|
36
|
+
> This release (4.0.0) supports **DSH v0.2.0-rc.1 to < 0.2.1** only.
|
|
22
37
|
>
|
|
23
38
|
> | DSH version | Status | Notes |
|
|
24
39
|
> | --- | --- | --- |
|
|
25
|
-
> | ≥ 0.
|
|
40
|
+
> | ≥ 0.2.0-rc.1 | ✅ Supported | This release (4.0.x): same declarative settings surface (`.volatile()` schema fields rendered by the host; cross-plugin reads/writes through the `configForms` service), with the peer gate retargeted to the 0.2.0-rc segment |
|
|
41
|
+
> | ≥ 0.1.7-rc.1 to < 0.2.0 | ✅ Supported | Use the 3.x line (3.4.3, npm dist-tag `dsh-0.1.7`): declarative settings — the host renders the Plugins form from the plugin's `.volatile()` schema fields; cross-plugin reads/writes go through the `configForms` service |
|
|
26
42
|
> | < 0.1.7-rc.1 | ⚠️ Not supported | DSH 0.1.7 removed the imperative settings registration and the per-plugin card seat the earlier lines (3.0.x and below) relied on — stay on plugin 3.0.2 for 0.1.2–0.1.6 hosts. |
|
|
27
43
|
>
|
|
28
|
-
> The boundary is `0.1.7-rc.1`, where DSH removed the imperative settings registration (`settings.register` / `installSettingsSection`) and the client `settingsScope` service.
|
|
44
|
+
> The boundary is `0.1.7-rc.1`, where DSH removed the imperative settings registration (`settings.register` / `installSettingsSection`) and the client `settingsScope` service. Since that boundary the runtime-adjustable config fields are marked `.volatile()` in the schemastery schema, the host generates the settings form from that schema alone (no registration call, no client settings card), and the plugin reads the live values per request, driven by `loader/volatile-update`. The 3.1.x–3.4.x lines target the 0.1.7 declarative surface; the 4.0.x line is the same surface retargeted to the 0.2.0-rc segment.
|
|
29
45
|
|
|
30
|
-
> **Version-range policy:** every compatibility line pins its host segment tightly
|
|
46
|
+
> **Version-range policy:** every compatibility line pins its host segment tightly. Lines targeting 0.1.x hosts follow `>=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`); lines targeting the 0.2.x segment follow `>=0.2.0-rc.1 <0.2.1-0` (4.0.x: `>=0.2.0-rc.1 <0.2.1-0`). No line ever declares an open upper bound, so a compatibility resolver can never match a plugin line against a newer host segment it was not built for. 0.4.0–0.6.0 carried no dsh peer declarations at all and are effectively compatibility-untyped — do not install them.
|
|
31
47
|
|
|
32
48
|
> **Compatibility note:** Version `0.6.0` includes Japanese (`ja`) and Korean (`ko`) dictionaries and selector entries, but the current official DSH releases expose only `zh` and `en` through `LocaleRuntime`. On stock DSH, selecting `ja` or `ko` fails with `locale "<id>" is not registered`. These languages will work after official DSH adds the locale IDs. Advanced users can use a DSH fork that updates `packages/client/locale/src/locale-settings.ts` (`LOCALE_IDS`) and `packages/client/locale/src/client/index.ts` (`LOCALES` labels), together with the corresponding core dictionaries and tests, then rebuild and run the forked DSH. Changing this plugin alone cannot extend DSH's global locale list.
|
|
33
49
|
|