dsh-thinking-levels 4.0.0 → 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/lib/client.js CHANGED
@@ -7,7 +7,7 @@ window.__ModuleLoader__.load({
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  //#region src/client/locales.ts
10
- /** `thinking-levels` client dictionaries (zh / en / ja / ko). */
10
+ /** `thinking-levels` client dictionaries (zh / en / ja / ko / fr / de / it / ru / es). */
11
11
  /** Dictionary namespace owned by this plugin. */
12
12
  const NS = "thinking-levels";
13
13
  /** Simplified Chinese dictionary (the key-set source of truth). */
@@ -318,6 +318,391 @@ window.__ModuleLoader__.load({
318
318
  "input.effort.default": "공급자 기본값",
319
319
  "card.capabilities.failed": "저장 실패: 값이 거부되었거나 충돌합니다. 확인하세요."
320
320
  };
321
+ /** French dictionary (keys mirror zh). */
322
+ const fr = {
323
+ "card.title": "Niveaux de réflexion",
324
+ "family.title": "Paramètres des plugins Qizi",
325
+ "card.description": "Choisissez Auto dans le sélecteur de modèle : le plugin planifie low / high / max à chaque tour d'outils avant de soumettre l'effort à l'API. Configurez ici le niveau par défaut, les bornes du planificateur et les capacités par modèle (mapping niveau → valeur wire envoyée à la passerelle).",
326
+ "card.level": "Niveau par défaut",
327
+ "card.level.off": "off — désactive la réflexion (manuel uniquement, jamais choisi automatiquement)",
328
+ "card.level.on": "on — active la réflexion (modèles à bascule uniquement ; envoie enable_thinking, jamais un effort)",
329
+ "card.level.minimal": "minimal — minimal (tâches très légères)",
330
+ "card.level.low": "low — bas (les tours bon marché restent bon marché)",
331
+ "card.level.medium": "medium — moyen",
332
+ "card.level.high": "high — haut (défaut officiel)",
333
+ "card.level.xhigh": "xhigh — très haut",
334
+ "card.level.max": "max — maximal (tâches lourdes)",
335
+ "card.level.auto": "auto — planifie selon l'historique d'outils (défaut)",
336
+ "card.enabled": "Activé",
337
+ "card.allowDowngrade": "Autoriser la rétrogradation (auto peut descendre à low)",
338
+ "card.allowUpgrade": "Autoriser la promotion (auto peut monter à max)",
339
+ "card.unavailable": "Espace de noms des réglages indisponible : vérifiez que dsh-thinking-levels est assemblé dans ce profil.",
340
+ "card.readonly": "Lecture seule",
341
+ "card.capabilities": "Capacités des modèles (fournisseurs personnalisés llm-pi-ai)",
342
+ "card.capabilities.hint": "Lit et écrit directement la configuration llm-pi-ai : cochez un niveau et saisissez la valeur exacte envoyée à la passerelle (ex. high → ultra) ; laisser off vide signifie « ne pas envoyer ». La vision autorise l'entrée d'images ; l'interrupteur de réflexion pilote enable_thinking ; thinkingFormat choisit le format de sérialisation wire.",
343
+ "card.capabilities.empty": "Aucun fournisseur personnalisé n'a de modèles configurés dans llm-pi-ai. Ajoutez d'abord un fournisseur et des modèles dans Réglages → Modèles.",
344
+ "card.capabilities.unavailable": "L'espace de noms des réglages llm-pi-ai est indisponible.",
345
+ "card.capabilities.none": "(aucun modèle)",
346
+ "card.capabilities.search": "Rechercher des modèles par nom ou ID…",
347
+ "card.capabilities.noMatches": "Aucun modèle correspondant",
348
+ "card.capabilities.quickSettings": "Réglages rapides",
349
+ "card.capabilities.presetOfficial": "Appliquer à tous : Off / High / Max (style officiel DeepSeek)",
350
+ "card.capabilities.presetGeneric": "Appliquer à tous : Off / Low / Medium / High (générique)",
351
+ "card.capabilities.vendor": "Fournisseur",
352
+ "card.capabilities.developerRole": "La passerelle rejette le rôle developer",
353
+ "card.capabilities.developerRoleHint": "Commutateur de compatibilité officiel (dsh ≥ v0.1.0-rc.8) : écrit compat.supportsDeveloperRole: false au niveau de la route pour envoyer le prompt système avec le rôle system — corrige l'erreur Unexpected message role 400 des passerelles vLLM / SGLang. Décocher supprime le champ et restaure l'héritage.",
354
+ "card.capabilities.expandProvider": "Déplier le fournisseur",
355
+ "card.capabilities.collapseProvider": "Replier le fournisseur",
356
+ "card.capabilities.openModelSettings": "Ouvrir les réglages du modèle",
357
+ "card.capabilities.closeModelSettings": "Replier les réglages du modèle",
358
+ "card.capabilities.vision": "Modèle vision",
359
+ "card.capabilities.thinking": "Modèle de réflexion",
360
+ "card.capabilities.supportsEffort": "Prend en charge l'effort de réflexion",
361
+ "card.capabilities.efforts": "Niveaux d'effort de réflexion (cochez, puis saisissez la valeur wire)",
362
+ "card.capabilities.wirePlaceholder": "Valeur wire, ex. ultra",
363
+ "card.capabilities.offPlaceholder": "Vide = ne pas envoyer",
364
+ "card.capabilities.atLeastThinking": "Sélectionnez au moins un niveau de réflexion (autre que off)",
365
+ "card.capabilities.applyLevel": "Appliquer les niveaux",
366
+ "card.capabilities.restoreDefault": "Restaurer les défauts",
367
+ "card.capabilities.unsaved": "Non enregistré",
368
+ "card.capabilities.saveChanges": "Enregistrer les modifications",
369
+ "card.capabilities.saved": "Enregistré",
370
+ "card.capabilities.thinkingFormat": "Format de réflexion",
371
+ "card.capabilities.thinkingFormat.inherit": "Hériter",
372
+ "card.capabilities.contextWindow": "Limite de fenêtre de contexte",
373
+ "card.capabilities.contextCustomPlaceholder": "Entier personnalisé, ex. 256000",
374
+ "card.capabilities.contextClear": "Effacer",
375
+ "card.capabilities.contextInteger": "La longueur du contexte doit être un entier (2000-1000000)",
376
+ "card.capabilities.contextRange": "La longueur du contexte doit être comprise entre 2000 et 1000000",
377
+ "card.capabilities.contextHint": "Choisissez un préréglage ou saisissez un entier (2000–1000000) ; écrit dans llm-pi-ai pour la pression/compaction du contexte et appliqué à la requête suivante sans redémarrage.",
378
+ "input.context.title": "Fenêtre de contexte",
379
+ "input.context.globalHint": "S'applique globalement à toutes les sessions utilisant ce modèle (Effacer restaure le défaut)",
380
+ "input.context.unset": "Non défini",
381
+ "input.context.custom": "Personnalisé",
382
+ "input.context.noModel": "Aucun modèle de session pour l'instant",
383
+ "input.context.customPlaceholder": "Entier personnalisé, ex. 256000",
384
+ "input.context.apply": "Appliquer",
385
+ "input.context.clear": "Effacer",
386
+ "input.context.integer": "La longueur du contexte doit être un entier (2000-1000000)",
387
+ "input.context.range": "La longueur du contexte doit être comprise entre 2000 et 1000000",
388
+ "model.panel.choose": "Choisir un modèle",
389
+ "model.panel.loading": "Chargement du répertoire de modèles…",
390
+ "model.panel.empty": "Aucun modèle disponible",
391
+ "model.panel.window": "Fenêtre",
392
+ "model.panel.noTarget": "Aucune entrée de configuration inscriptible pour ce modèle",
393
+ "model.panel.unavailable": "Le répertoire de modèles est indisponible pour cette session",
394
+ "input.effort.title": "Effort de réflexion",
395
+ "input.effort.default": "Défaut du fournisseur",
396
+ "card.capabilities.failed": "Échec de l'enregistrement : la valeur a été rejetée ou est en conflit. Vérifiez-la."
397
+ };
398
+ /** German dictionary (keys mirror zh). */
399
+ const de = {
400
+ "card.title": "Denkstufen",
401
+ "family.title": "Qizi-Plugin-Einstellungen",
402
+ "card.description": "Wählen Sie in der Modellauswahl Auto: Das Plugin plant vor der API-Übermittlung in jedem Tool-Schritt zwischen low / high / max. Hier konfigurieren Sie die Standardstufe, die Planungsgrenzen und die Modellfähigkeiten (Zuordnung Stufe → Wire-Wert an das Gateway).",
403
+ "card.level": "Standardstufe",
404
+ "card.level.off": "off — Denken aus (nur manuell, nie automatisch gewählt)",
405
+ "card.level.on": "on — Denken ein (nur Toggle-Modelle; sendet enable_thinking, nie einen Effort)",
406
+ "card.level.minimal": "minimal — geringste (sehr leichte Aufgaben)",
407
+ "card.level.low": "low — niedrig (billige Runden bleiben billig)",
408
+ "card.level.medium": "medium — mittel",
409
+ "card.level.high": "high — hoch (offizieller Standard)",
410
+ "card.level.xhigh": "xhigh — besonders hoch",
411
+ "card.level.max": "max — maximal (schwere Aufgaben)",
412
+ "card.level.auto": "auto — plant aus dem Tool-Verlauf (Standard)",
413
+ "card.enabled": "Aktiviert",
414
+ "card.allowDowngrade": "Herabstufung erlauben (auto darf auf low sinken)",
415
+ "card.allowUpgrade": "Heraufstufung erlauben (auto darf auf max steigen)",
416
+ "card.unavailable": "Einstellungs-Namespace nicht verfügbar: Stellen Sie sicher, dass dsh-thinking-levels in dieses Profil eingebaut ist.",
417
+ "card.readonly": "Schreibgeschützt",
418
+ "card.capabilities": "Modellfähigkeiten (benutzerdefinierte llm-pi-ai-Provider)",
419
+ "card.capabilities.hint": "Liest und schreibt die llm-pi-ai-Konfiguration direkt: Markieren Sie eine Stufe und tragen Sie den exakten Wert ein, der ans Gateway gesendet wird (z. B. high → ultra); ein leeres off heißt „nicht senden“. Vision steuert die Bildeingabe; der Denk-Schalter setzt enable_thinking; thinkingFormat wählt die Wire-Serialisierung.",
420
+ "card.capabilities.empty": "Kein benutzerdefinierter Provider hat Modelle in llm-pi-ai konfiguriert. Fügen Sie zuerst unter Einstellungen → Modelle einen Provider mit Modellen hinzu.",
421
+ "card.capabilities.unavailable": "Der llm-pi-ai-Einstellungs-Namespace ist nicht verfügbar.",
422
+ "card.capabilities.none": "(keine Modelle)",
423
+ "card.capabilities.search": "Modelle nach Name oder ID suchen…",
424
+ "card.capabilities.noMatches": "Keine passenden Modelle",
425
+ "card.capabilities.quickSettings": "Schnelleinstellungen",
426
+ "card.capabilities.presetOfficial": "Auf alle anwenden: Off / High / Max (offizieller DeepSeek-Stil)",
427
+ "card.capabilities.presetGeneric": "Auf alle anwenden: Off / Low / Medium / High (generisch)",
428
+ "card.capabilities.vendor": "Provider",
429
+ "card.capabilities.developerRole": "Gateway lehnt die developer-Rolle ab",
430
+ "card.capabilities.developerRoleHint": "Offizieller Kompatibilitätsschalter (dsh ≥ v0.1.0-rc.8): schreibt compat.supportsDeveloperRole: false auf Routenebene, damit der Systemprompt als Rolle system gesendet wird — behebt den Unexpected-message-role-400 von vLLM-/SGLang-Gateways. Abwählen löscht das Feld und stellt die Vererbung wieder her.",
431
+ "card.capabilities.expandProvider": "Provider ausklappen",
432
+ "card.capabilities.collapseProvider": "Provider einklappen",
433
+ "card.capabilities.openModelSettings": "Modelleinstellungen öffnen",
434
+ "card.capabilities.closeModelSettings": "Modelleinstellungen einklappen",
435
+ "card.capabilities.vision": "Vision-Modell",
436
+ "card.capabilities.thinking": "Denkmodell",
437
+ "card.capabilities.supportsEffort": "Unterstützt Reasoning-Effort",
438
+ "card.capabilities.efforts": "Denkstufen (anmarkieren, dann Wire-Wert eintragen)",
439
+ "card.capabilities.wirePlaceholder": "Wire-Wert, z. B. ultra",
440
+ "card.capabilities.offPlaceholder": "Leer = nicht senden",
441
+ "card.capabilities.atLeastThinking": "Mindestens eine Denkstufe wählen (außer off)",
442
+ "card.capabilities.applyLevel": "Stufen anwenden",
443
+ "card.capabilities.restoreDefault": "Standardwerte wiederherstellen",
444
+ "card.capabilities.unsaved": "Nicht gespeichert",
445
+ "card.capabilities.saveChanges": "Änderungen speichern",
446
+ "card.capabilities.saved": "Gespeichert",
447
+ "card.capabilities.thinkingFormat": "Denkformat",
448
+ "card.capabilities.thinkingFormat.inherit": "Vererben",
449
+ "card.capabilities.contextWindow": "Kontextfenster-Limit",
450
+ "card.capabilities.contextCustomPlaceholder": "Eigene Ganzzahl, z. B. 256000",
451
+ "card.capabilities.contextClear": "Löschen",
452
+ "card.capabilities.contextInteger": "Die Kontextlänge muss eine Ganzzahl sein (2000-1000000)",
453
+ "card.capabilities.contextRange": "Die Kontextlänge muss zwischen 2000 und 1000000 liegen",
454
+ "card.capabilities.contextHint": "Voreinstellung wählen oder Ganzzahl eingeben (2000–1000000); wird in llm-pi-ai für Kontextdruck/Kompaktierung geschrieben und gilt ohne Neustart ab der nächsten Anfrage.",
455
+ "input.context.title": "Kontextfenster",
456
+ "input.context.globalHint": "Gilt global für alle Sessions mit diesem Modell (Löschen stellt den Standard wieder her)",
457
+ "input.context.unset": "Nicht gesetzt",
458
+ "input.context.custom": "Benutzerdefiniert",
459
+ "input.context.noModel": "Noch kein Session-Modell",
460
+ "input.context.customPlaceholder": "Eigene Ganzzahl, z. B. 256000",
461
+ "input.context.apply": "Anwenden",
462
+ "input.context.clear": "Löschen",
463
+ "input.context.integer": "Die Kontextlänge muss eine Ganzzahl sein (2000-1000000)",
464
+ "input.context.range": "Die Kontextlänge muss zwischen 2000 und 1000000 liegen",
465
+ "model.panel.choose": "Modell wählen",
466
+ "model.panel.loading": "Modellverzeichnis wird geladen…",
467
+ "model.panel.empty": "Keine Modelle verfügbar",
468
+ "model.panel.window": "Fenster",
469
+ "model.panel.noTarget": "Kein schreibbarer Konfigurationseintrag für dieses Modell",
470
+ "model.panel.unavailable": "Das Modellverzeichnis ist für diese Session nicht verfügbar",
471
+ "input.effort.title": "Reasoning-Effort",
472
+ "input.effort.default": "Provider-Standard",
473
+ "card.capabilities.failed": "Speichern fehlgeschlagen: Der Wert wurde abgelehnt oder kollidiert. Bitte prüfen."
474
+ };
475
+ /** Italian dictionary (keys mirror zh). */
476
+ const it = {
477
+ "card.title": "Livelli di pensiero",
478
+ "family.title": "Impostazioni dei plugin Qizi",
479
+ "card.description": "Scegli Auto nel selettore del modello: il plugin pianifica low / high / max a ogni turno di strumenti prima di inviare l'effort all'API. Qui configuri il livello predefinito, i limiti dello scheduler e le capacità per modello (mapping livello → valore wire inviato al gateway).",
480
+ "card.level": "Livello predefinito",
481
+ "card.level.off": "off — disattiva il pensiero (solo manuale, mai scelto in automatico)",
482
+ "card.level.on": "on — attiva il pensiero (solo modelli a toggle; invia enable_thinking, mai un effort)",
483
+ "card.level.minimal": "minimal — minimo (attività molto leggere)",
484
+ "card.level.low": "low — basso (i turni economici restano economici)",
485
+ "card.level.medium": "medium — medio",
486
+ "card.level.high": "high — alto (predefinito ufficiale)",
487
+ "card.level.xhigh": "xhigh — molto alto",
488
+ "card.level.max": "max — massimo (attività pesanti)",
489
+ "card.level.auto": "auto — pianifica dalla cronologia degli strumenti (predefinito)",
490
+ "card.enabled": "Attivato",
491
+ "card.allowDowngrade": "Consenti il downgrade (auto può scendere a low)",
492
+ "card.allowUpgrade": "Consenti l'upgrade (auto può salire a max)",
493
+ "card.unavailable": "Namespace delle impostazioni non disponibile: verifica che dsh-thinking-levels sia assemblato in questo profilo.",
494
+ "card.readonly": "Sola lettura",
495
+ "card.capabilities": "Capacità del modello (provider personalizzati llm-pi-ai)",
496
+ "card.capabilities.hint": "Legge e scrive direttamente la configurazione llm-pi-ai: spunta un livello e inserisci il valore esatto inviato al gateway (es. high → ultra); lasciare off vuoto significa «non inviare». La visione abilita l'input di immagini; l'interruttore di pensiero comanda enable_thinking; thinkingFormat sceglie la serializzazione wire.",
497
+ "card.capabilities.empty": "Nessun provider personalizzato ha modelli configurati in llm-pi-ai. Aggiungi prima un provider e i modelli in Impostazioni → Modelli.",
498
+ "card.capabilities.unavailable": "Il namespace delle impostazioni llm-pi-ai non è disponibile.",
499
+ "card.capabilities.none": "(nessun modello)",
500
+ "card.capabilities.search": "Cerca modelli per nome o ID…",
501
+ "card.capabilities.noMatches": "Nessun modello corrispondente",
502
+ "card.capabilities.quickSettings": "Impostazioni rapide",
503
+ "card.capabilities.presetOfficial": "Applica a tutti: Off / High / Max (stile ufficiale DeepSeek)",
504
+ "card.capabilities.presetGeneric": "Applica a tutti: Off / Low / Medium / High (generico)",
505
+ "card.capabilities.vendor": "Provider",
506
+ "card.capabilities.developerRole": "Il gateway non accetta il ruolo developer",
507
+ "card.capabilities.developerRoleHint": "Interruttore di compatibilità ufficiale (dsh ≥ v0.1.0-rc.8): scrive compat.supportsDeveloperRole: false a livello di route così il prompt di sistema viene inviato con ruolo system — corregge l'errore Unexpected message role 400 dei gateway vLLM / SGLang. Deselezionare elimina il campo e ripristina l'ereditarietà.",
508
+ "card.capabilities.expandProvider": "Espandi provider",
509
+ "card.capabilities.collapseProvider": "Comprimi provider",
510
+ "card.capabilities.openModelSettings": "Apri impostazioni modello",
511
+ "card.capabilities.closeModelSettings": "Comprimi impostazioni modello",
512
+ "card.capabilities.vision": "Modello vision",
513
+ "card.capabilities.thinking": "Modello di pensiero",
514
+ "card.capabilities.supportsEffort": "Supporta l'effort di pensiero",
515
+ "card.capabilities.efforts": "Livelli di effort (spunta, poi inserisci il valore wire)",
516
+ "card.capabilities.wirePlaceholder": "Valore wire, es. ultra",
517
+ "card.capabilities.offPlaceholder": "Vuoto = non inviare",
518
+ "card.capabilities.atLeastThinking": "Seleziona almeno un livello di pensiero (escluso off)",
519
+ "card.capabilities.applyLevel": "Applica livelli",
520
+ "card.capabilities.restoreDefault": "Ripristina predefiniti",
521
+ "card.capabilities.unsaved": "Non salvato",
522
+ "card.capabilities.saveChanges": "Salva modifiche",
523
+ "card.capabilities.saved": "Salvato",
524
+ "card.capabilities.thinkingFormat": "Formato di pensiero",
525
+ "card.capabilities.thinkingFormat.inherit": "Eredita",
526
+ "card.capabilities.contextWindow": "Limite finestra di contesto",
527
+ "card.capabilities.contextCustomPlaceholder": "Intero personalizzato, es. 256000",
528
+ "card.capabilities.contextClear": "Cancella",
529
+ "card.capabilities.contextInteger": "La lunghezza del contesto deve essere un intero (2000-1000000)",
530
+ "card.capabilities.contextRange": "La lunghezza del contesto deve essere tra 2000 e 1000000",
531
+ "card.capabilities.contextHint": "Scegli un preset o inserisci un intero (2000–1000000); viene scritto in llm-pi-ai per pressione/compattazione del contesto e vale dalla richiesta successiva senza riavvio.",
532
+ "input.context.title": "Finestra di contesto",
533
+ "input.context.globalHint": "Vale globalmente per tutte le sessioni che usano questo modello (Cancella ripristina il predefinito)",
534
+ "input.context.unset": "Non impostato",
535
+ "input.context.custom": "Personalizzato",
536
+ "input.context.noModel": "Ancora nessun modello di sessione",
537
+ "input.context.customPlaceholder": "Intero personalizzato, es. 256000",
538
+ "input.context.apply": "Applica",
539
+ "input.context.clear": "Cancella",
540
+ "input.context.integer": "La lunghezza del contesto deve essere un intero (2000-1000000)",
541
+ "input.context.range": "La lunghezza del contesto deve essere tra 2000 e 1000000",
542
+ "model.panel.choose": "Scegli modello",
543
+ "model.panel.loading": "Caricamento del catalogo modelli…",
544
+ "model.panel.empty": "Nessun modello disponibile",
545
+ "model.panel.window": "Finestra",
546
+ "model.panel.noTarget": "Nessuna voce di configurazione scrivibile per questo modello",
547
+ "model.panel.unavailable": "Il catalogo modelli non è disponibile per questa sessione",
548
+ "input.effort.title": "Sforzo di ragionamento",
549
+ "input.effort.default": "Predefinito del provider",
550
+ "card.capabilities.failed": "Salvataggio non riuscito: il valore è stato rifiutato o è in conflitto. Controllalo."
551
+ };
552
+ /** Russian dictionary (keys mirror zh). */
553
+ const ru = {
554
+ "card.title": "Уровни мышления",
555
+ "family.title": "Настройки плагинов Qizi",
556
+ "card.description": "Выберите Auto в селекторе модели: перед отправкой effort в API плагин в каждом раунде планирует low / high / max по истории вызовов инструментов. Здесь настраиваются уровень по умолчанию, границы планировщика и возможности моделей (отображение уровень → wire-значение для шлюза).",
557
+ "card.level": "Уровень по умолчанию",
558
+ "card.level.off": "off — мышление выключено (только вручную, автоматически не выбирается)",
559
+ "card.level.on": "on — мышление включено (только toggle-модели; отправляет enable_thinking, без effort)",
560
+ "card.level.minimal": "minimal — минимум (очень лёгкие задачи)",
561
+ "card.level.low": "low — низкий (дешёвые ходы остаются дешёвыми)",
562
+ "card.level.medium": "medium — средний",
563
+ "card.level.high": "high — высокий (официальное значение по умолчанию)",
564
+ "card.level.xhigh": "xhigh — очень высокий",
565
+ "card.level.max": "max — максимум (тяжёлые задачи)",
566
+ "card.level.auto": "auto — планирование по истории инструментов (по умолчанию)",
567
+ "card.enabled": "Включено",
568
+ "card.allowDowngrade": "Разрешить понижение (auto может опуститься до low)",
569
+ "card.allowUpgrade": "Разрешить повышение (auto может подняться до max)",
570
+ "card.unavailable": "Пространство имён настроек недоступно: убедитесь, что dsh-thinking-levels собран в этот профиль.",
571
+ "card.readonly": "Только чтение",
572
+ "card.capabilities": "Возможности моделей (свои провайдеры llm-pi-ai)",
573
+ "card.capabilities.hint": "Читает и пишет конфигурацию llm-pi-ai напрямую: отметьте уровень и введите точное значение, отправляемое шлюзу (например, high → ultra); пустой off означает «не отправлять». Vision разрешает ввод изображений; переключатель мышления управляет enable_thinking; thinkingFormat выбирает формат wire-сериализации.",
574
+ "card.capabilities.empty": "Ни у одного своего провайдера в llm-pi-ai нет настроенных моделей. Сначала добавьте провайдера и модели в «Настройки → Модели».",
575
+ "card.capabilities.unavailable": "Пространство имён настроек llm-pi-ai недоступно.",
576
+ "card.capabilities.none": "(нет моделей)",
577
+ "card.capabilities.search": "Поиск моделей по имени или ID…",
578
+ "card.capabilities.noMatches": "Нет подходящих моделей",
579
+ "card.capabilities.quickSettings": "Быстрые настройки",
580
+ "card.capabilities.presetOfficial": "Применить ко всем: Off / High / Max (официальный стиль DeepSeek)",
581
+ "card.capabilities.presetGeneric": "Применить ко всем: Off / Low / Medium / High (универсальный)",
582
+ "card.capabilities.vendor": "Провайдер",
583
+ "card.capabilities.developerRole": "Шлюз не поддерживает роль developer",
584
+ "card.capabilities.developerRoleHint": "Официальный переключатель совместимости (dsh ≥ v0.1.0-rc.8): записывает compat.supportsDeveloperRole: false на уровне маршрута, чтобы системный промпт уходил с ролью system, — исправляет ошибку Unexpected message role 400 у шлюзов vLLM / SGLang. Снятие флажка удаляет поле и возвращает наследование.",
585
+ "card.capabilities.expandProvider": "Развернуть провайдера",
586
+ "card.capabilities.collapseProvider": "Свернуть провайдера",
587
+ "card.capabilities.openModelSettings": "Открыть настройки модели",
588
+ "card.capabilities.closeModelSettings": "Свернуть настройки модели",
589
+ "card.capabilities.vision": "Vision-модель",
590
+ "card.capabilities.thinking": "Модель мышления",
591
+ "card.capabilities.supportsEffort": "Поддерживает reasoning-effort",
592
+ "card.capabilities.efforts": "Уровни reasoning-effort (отметьте и введите wire-значение)",
593
+ "card.capabilities.wirePlaceholder": "Wire-значение, например ultra",
594
+ "card.capabilities.offPlaceholder": "Пусто = не отправлять",
595
+ "card.capabilities.atLeastThinking": "Выберите хотя бы один уровень мышления (кроме off)",
596
+ "card.capabilities.applyLevel": "Применить уровни",
597
+ "card.capabilities.restoreDefault": "Вернуть значения по умолчанию",
598
+ "card.capabilities.unsaved": "Не сохранено",
599
+ "card.capabilities.saveChanges": "Сохранить изменения",
600
+ "card.capabilities.saved": "Сохранено",
601
+ "card.capabilities.thinkingFormat": "Формат мышления",
602
+ "card.capabilities.thinkingFormat.inherit": "Наследовать",
603
+ "card.capabilities.contextWindow": "Лимит контекстного окна",
604
+ "card.capabilities.contextCustomPlaceholder": "Своё целое число, например 256000",
605
+ "card.capabilities.contextClear": "Очистить",
606
+ "card.capabilities.contextInteger": "Длина контекста должна быть целым числом (2000-1000000)",
607
+ "card.capabilities.contextRange": "Длина контекста должна быть от 2000 до 1000000",
608
+ "card.capabilities.contextHint": "Выберите предустановку или введите целое число (2000–1000000); оно записывается в llm-pi-ai для контроля нехватки контекста/сжатия и применяется к следующему запросу без перезапуска.",
609
+ "input.context.title": "Контекстное окно",
610
+ "input.context.globalHint": "Действует глобально для всех сессий с этой моделью (очистка вернёт значение по умолчанию)",
611
+ "input.context.unset": "Не задано",
612
+ "input.context.custom": "Своё значение",
613
+ "input.context.noModel": "Модель сессии пока не выбрана",
614
+ "input.context.customPlaceholder": "Своё целое число, например 256000",
615
+ "input.context.apply": "Применить",
616
+ "input.context.clear": "Очистить",
617
+ "input.context.integer": "Длина контекста должна быть целым числом (2000-1000000)",
618
+ "input.context.range": "Длина контекста должна быть от 2000 до 1000000",
619
+ "model.panel.choose": "Выбрать модель",
620
+ "model.panel.loading": "Загрузка каталога моделей…",
621
+ "model.panel.empty": "Нет доступных моделей",
622
+ "model.panel.window": "Окно",
623
+ "model.panel.noTarget": "Для этой модели нет записываемых настроек",
624
+ "model.panel.unavailable": "Каталог моделей недоступен для этой сессии",
625
+ "input.effort.title": "Интенсивность рассуждений",
626
+ "input.effort.default": "Значение провайдера по умолчанию",
627
+ "card.capabilities.failed": "Не удалось сохранить: значение отклонено или конфликтует. Проверьте его."
628
+ };
629
+ /** Spanish dictionary (keys mirror zh). */
630
+ const es = {
631
+ "card.title": "Niveles de pensamiento",
632
+ "family.title": "Ajustes de los plugins Qizi",
633
+ "card.description": "Elige Auto en el selector de modelo: el plugin programa low / high / max en cada ronda de herramientas antes de enviar el effort a la API. Aquí configuras el nivel por defecto, los límites del planificador y las capacidades por modelo (mapeo nivel → valor wire enviado a la gateway).",
634
+ "card.level": "Nivel por defecto",
635
+ "card.level.off": "off — desactiva el pensamiento (solo manual, nunca se elige automáticamente)",
636
+ "card.level.on": "on — activa el pensamiento (solo modelos de toggle; envía enable_thinking, nunca un effort)",
637
+ "card.level.minimal": "minimal — mínimo (tareas muy ligeras)",
638
+ "card.level.low": "low — bajo (las rondas baratas siguen siendo baratas)",
639
+ "card.level.medium": "medium — medio",
640
+ "card.level.high": "high — alto (valor oficial por defecto)",
641
+ "card.level.xhigh": "xhigh — muy alto",
642
+ "card.level.max": "max — máximo (tareas pesadas)",
643
+ "card.level.auto": "auto — programa según el historial de herramientas (por defecto)",
644
+ "card.enabled": "Activado",
645
+ "card.allowDowngrade": "Permitir bajar de nivel (auto puede bajar a low)",
646
+ "card.allowUpgrade": "Permitir subir de nivel (auto puede subir a max)",
647
+ "card.unavailable": "Espacio de nombres de ajustes no disponible: comprueba que dsh-thinking-levels esté montado en este perfil.",
648
+ "card.readonly": "Solo lectura",
649
+ "card.capabilities": "Capacidades del modelo (proveedores personalizados de llm-pi-ai)",
650
+ "card.capabilities.hint": "Lee y escribe directamente la configuración de llm-pi-ai: marca un nivel e introduce el valor exacto que se envía a la gateway (p. ej., high → ultra); dejar off vacío significa «no enviar». La visión habilita la entrada de imágenes; el interruptor de pensamiento controla enable_thinking; thinkingFormat elige la serialización wire.",
651
+ "card.capabilities.empty": "Ningún proveedor personalizado tiene modelos configurados en llm-pi-ai. Añade antes un proveedor y modelos en Ajustes → Modelos.",
652
+ "card.capabilities.unavailable": "El espacio de nombres de ajustes de llm-pi-ai no está disponible.",
653
+ "card.capabilities.none": "(sin modelos)",
654
+ "card.capabilities.search": "Buscar modelos por nombre o ID…",
655
+ "card.capabilities.noMatches": "No hay modelos coincidentes",
656
+ "card.capabilities.quickSettings": "Ajustes rápidos",
657
+ "card.capabilities.presetOfficial": "Aplicar a todos: Off / High / Max (estilo oficial DeepSeek)",
658
+ "card.capabilities.presetGeneric": "Aplicar a todos: Off / Low / Medium / High (genérico)",
659
+ "card.capabilities.vendor": "Proveedor",
660
+ "card.capabilities.developerRole": "La gateway rechaza el rol developer",
661
+ "card.capabilities.developerRoleHint": "Interruptor de compatibilidad oficial (dsh ≥ v0.1.0-rc.8): escribe compat.supportsDeveloperRole: false a nivel de ruta para que el prompt del sistema se envíe con rol system; corrige el error Unexpected message role 400 de las gateway vLLM / SGLang. Desmarcar elimina el campo y restaura la herencia.",
662
+ "card.capabilities.expandProvider": "Desplegar proveedor",
663
+ "card.capabilities.collapseProvider": "Plegar proveedor",
664
+ "card.capabilities.openModelSettings": "Abrir ajustes del modelo",
665
+ "card.capabilities.closeModelSettings": "Plegar ajustes del modelo",
666
+ "card.capabilities.vision": "Modelo con visión",
667
+ "card.capabilities.thinking": "Modelo de pensamiento",
668
+ "card.capabilities.supportsEffort": "Admite esfuerzo de razonamiento",
669
+ "card.capabilities.efforts": "Niveles de esfuerzo (márcalos e introduce el valor wire)",
670
+ "card.capabilities.wirePlaceholder": "Valor wire, p. ej., ultra",
671
+ "card.capabilities.offPlaceholder": "Vacío = no enviar",
672
+ "card.capabilities.atLeastThinking": "Selecciona al menos un nivel de pensamiento (distinto de off)",
673
+ "card.capabilities.applyLevel": "Aplicar niveles",
674
+ "card.capabilities.restoreDefault": "Restaurar valores por defecto",
675
+ "card.capabilities.unsaved": "Sin guardar",
676
+ "card.capabilities.saveChanges": "Guardar cambios",
677
+ "card.capabilities.saved": "Guardado",
678
+ "card.capabilities.thinkingFormat": "Formato de pensamiento",
679
+ "card.capabilities.thinkingFormat.inherit": "Heredar",
680
+ "card.capabilities.contextWindow": "Límite de ventana de contexto",
681
+ "card.capabilities.contextCustomPlaceholder": "Entero personalizado, p. ej., 256000",
682
+ "card.capabilities.contextClear": "Borrar",
683
+ "card.capabilities.contextInteger": "La longitud del contexto debe ser un entero (2000-1000000)",
684
+ "card.capabilities.contextRange": "La longitud del contexto debe estar entre 2000 y 1000000",
685
+ "card.capabilities.contextHint": "Elige un preajuste o introduce un entero (2000–1000000); se escribe en llm-pi-ai para la presión/compactación del contexto y se aplica a la siguiente petición sin reiniciar.",
686
+ "input.context.title": "Ventana de contexto",
687
+ "input.context.globalHint": "Se aplica globalmente a todas las sesiones que usan este modelo (Borrar restaura el valor por defecto)",
688
+ "input.context.unset": "Sin fijar",
689
+ "input.context.custom": "Personalizado",
690
+ "input.context.noModel": "Aún no hay modelo de sesión",
691
+ "input.context.customPlaceholder": "Entero personalizado, p. ej., 256000",
692
+ "input.context.apply": "Aplicar",
693
+ "input.context.clear": "Borrar",
694
+ "input.context.integer": "La longitud del contexto debe ser un entero (2000-1000000)",
695
+ "input.context.range": "La longitud del contexto debe estar entre 2000 y 1000000",
696
+ "model.panel.choose": "Elegir modelo",
697
+ "model.panel.loading": "Cargando el catálogo de modelos…",
698
+ "model.panel.empty": "No hay modelos disponibles",
699
+ "model.panel.window": "Ventana",
700
+ "model.panel.noTarget": "No hay ajustes editables para este modelo",
701
+ "model.panel.unavailable": "El catálogo de modelos no está disponible para esta sesión",
702
+ "input.effort.title": "Esfuerzo de razonamiento",
703
+ "input.effort.default": "Por defecto del proveedor",
704
+ "card.capabilities.failed": "Error al guardar: el valor fue rechazado o entra en conflicto. Revísalo."
705
+ };
321
706
  /** The multi-level context-window presets, in ascending order. */
322
707
  const CONTEXT_WINDOW_PRESETS = [
323
708
  {
@@ -2369,7 +2754,7 @@ window.__ModuleLoader__.load({
2369
2754
  t,
2370
2755
  scope,
2371
2756
  piAiScope
2372
- }) : renderSlot("dsh-family.tab", {}, {
2757
+ }) : renderSlot?.("dsh-family.tab", {}, {
2373
2758
  only: active,
2374
2759
  fallback: null
2375
2760
  })
@@ -2398,7 +2783,12 @@ window.__ModuleLoader__.load({
2398
2783
  en
2399
2784
  }),
2400
2785
  ctx.locale.register(NS, "ja", ja),
2401
- ctx.locale.register(NS, "ko", ko)
2786
+ ctx.locale.register(NS, "ko", ko),
2787
+ ctx.locale.register(NS, "fr", fr),
2788
+ ctx.locale.register(NS, "de", de),
2789
+ ctx.locale.register(NS, "it", it),
2790
+ ctx.locale.register(NS, "ru", ru),
2791
+ ctx.locale.register(NS, "es", es)
2402
2792
  ];
2403
2793
  return () => {
2404
2794
  for (const dispose of disposers) dispose();
@@ -2490,6 +2880,12 @@ window.__ModuleLoader__.load({
2490
2880
  } }
2491
2881
  }, FamilySettingsSection);
2492
2882
  });
2883
+ ctx.slots.inject("plugins.bundle.config", () => ctx.slots.register({
2884
+ name: "plugins.bundle.config",
2885
+ key: "dsh-thinking-levels",
2886
+ locale: NS,
2887
+ inject: sectionInjected
2888
+ }, FamilySettingsSection));
2493
2889
  }
2494
2890
  //#endregion
2495
2891
  exports.apply = apply;