dsh-thinking-levels 4.4.1 → 4.4.3
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 +44 -31
- package/CHANGELOG.ko.md +44 -31
- package/CHANGELOG.md +37 -21
- package/dsh.plugin.json +1 -1
- package/lib/client.js +111 -54
- package/lib/client.js.map +1 -1
- package/lib/takeover-sync.d.ts +11 -3
- package/lib/takeover-sync.js +13 -5
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -102,7 +102,8 @@ window.__ModuleLoader__.load({
|
|
|
102
102
|
"panel.search.placeholder": "搜索模型…",
|
|
103
103
|
"card.takeoverUi": "模型界面接管",
|
|
104
104
|
"card.takeoverUiHint": "开启后由本插件重绘输入框的模型选择面板(含每行上下文/档位编辑与搜索);关闭(默认)保留官方模型弹窗——auto 档位照常出现,搜索与加载由官方界面负责。切换即时生效,无需重载。",
|
|
105
|
-
"card.capabilities.apiUnsupported": "该提供方使用非 openai-completions
|
|
105
|
+
"card.capabilities.apiUnsupported": "该提供方使用非 openai-completions 协议:thinkingFormat / supportsReasoningEffort 是 openai-completions 专属的思考兼容字段,写入会被宿主整体拒绝,故此处禁用。思考开关不受影响——它写入 protocol 中立的 reasoningEfforts,由宿主 pi-ai 按协议原生映射。",
|
|
106
|
+
"card.capabilities.thinkingNative": "思考开关在所有协议下都可勾选:写入 protocol 中立的 reasoningEfforts,由宿主 pi-ai 按各协议原生映射(Anthropic 思考预算 / Responses reasoning effort);仅 thinkingFormat / supportsReasoningEffort 为 openai-completions 专属。",
|
|
106
107
|
"card.dsContextTitle": "官方 DeepSeek 模型上下文上限",
|
|
107
108
|
"input.effort.default": "提供方默认",
|
|
108
109
|
"input.effort.reset": "恢复提供方默认",
|
|
@@ -200,7 +201,8 @@ window.__ModuleLoader__.load({
|
|
|
200
201
|
"panel.search.placeholder": "Search models…",
|
|
201
202
|
"card.takeoverUi": "Model UI takeover",
|
|
202
203
|
"card.takeoverUiHint": "On: this plugin replaces the composer model picker with its own panel (per-line context/effort editors + search). Off (default): the official popup stays — the auto level still appears, and search and loading remain the shipped selector’s. Changes apply immediately — no reload needed.",
|
|
203
|
-
"card.capabilities.apiUnsupported": "This provider uses a non-openai-completions protocol:
|
|
204
|
+
"card.capabilities.apiUnsupported": "This provider uses a non-openai-completions protocol: thinkingFormat / supportsReasoningEffort are openai-completions-only thinking-compat fields, and a write carrying them is rejected wholesale by the host — hence disabled here. The thinking switch is unaffected: it writes the protocol-neutral reasoningEfforts, which pi-ai maps natively per protocol.",
|
|
205
|
+
"card.capabilities.thinkingNative": "The thinking switch is available on every protocol: it writes the protocol-neutral reasoningEfforts, which pi-ai maps natively (Anthropic thinking budget / Responses reasoning effort). Only thinkingFormat / supportsReasoningEffort are openai-completions-only.",
|
|
204
206
|
"card.dsContextTitle": "Official DeepSeek context windows",
|
|
205
207
|
"input.effort.default": "Provider default",
|
|
206
208
|
"input.effort.reset": "Restore provider default",
|
|
@@ -298,7 +300,8 @@ window.__ModuleLoader__.load({
|
|
|
298
300
|
"panel.search.placeholder": "モデルを検索…",
|
|
299
301
|
"card.takeoverUi": "モデルUI引き継ぎ",
|
|
300
302
|
"card.takeoverUiHint": "ON にするとこのプラグインが入力欄のモデル選択を独自パネル(行別のコンテキスト/レベル編集+検索)に置き換えます。OFF(既定)では公式ポップアップが維持され、auto レベルは引き続き表示され、検索と読み込みは標準セレクタの役割です。変更は即時反映されます(再読み込み不要)。",
|
|
301
|
-
"card.capabilities.apiUnsupported": "このプロバイダーは openai-completions
|
|
303
|
+
"card.capabilities.apiUnsupported": "このプロバイダーは openai-completions 以外のプロトコルを使用しています:thinkingFormat / supportsReasoningEffort は openai-completions 専用の思考互換フィールドで、書き込むとホストが providers 全体を拒否するためここでは無効化しています。思考スイッチは影響を受けません — protocol 非依存の reasoningEfforts を書き込み、pi-ai がプロトコルごとにネイティブ変換します。",
|
|
304
|
+
"card.capabilities.thinkingNative": "思考スイッチはすべてのプロトコルでチェックできます:protocol 非依存の reasoningEfforts を書き込み、pi-ai が各プロトコルでネイティブ変換します(Anthropic の思考予算 / Responses の reasoning effort)。openai-completions 専用なのは thinkingFormat / supportsReasoningEffort のみです。",
|
|
302
305
|
"card.dsContextTitle": "公式 DeepSeek モデルのコンテキスト上限",
|
|
303
306
|
"input.effort.default": "プロバイダーの既定",
|
|
304
307
|
"input.effort.reset": "プロバイダーの既定に戻す",
|
|
@@ -396,7 +399,8 @@ window.__ModuleLoader__.load({
|
|
|
396
399
|
"panel.search.placeholder": "모델 검색…",
|
|
397
400
|
"card.takeoverUi": "모델 UI 인수",
|
|
398
401
|
"card.takeoverUiHint": "켜면 이 플러그인이 입력창의 모델 선택을 자체 패널(행별 컨텍스트/레벨 편집 + 검색)로 대체합니다. 끄면(기본) 공식 팝업이 유지되며 auto 레벨은 계속 표시되고 검색과 로딩은 표준 셀렉터가 담당합니다. 변경이 즉시 반영됩니다(새로고침 불필요).",
|
|
399
|
-
"card.capabilities.apiUnsupported": "이 제공자는 openai-completions 이외 프로토콜을 사용합니다: 사고 호환
|
|
402
|
+
"card.capabilities.apiUnsupported": "이 제공자는 openai-completions 이외 프로토콜을 사용합니다: thinkingFormat / supportsReasoningEffort 는 openai-completions 전용 사고 호환 필드이며, 기록하면 호스트가 providers 전체를 거부하므로 여기서 비활성화됩니다. 사고 스위치는 영향받지 않습니다 — protocol 중립적인 reasoningEfforts 를 기록하면 pi-ai 가 프로토콜별로 네이티브 변환합니다.",
|
|
403
|
+
"card.capabilities.thinkingNative": "사고 스위치는 모든 프로토콜에서 체크할 수 있습니다: protocol 중립적인 reasoningEfforts 를 기록하고 pi-ai 가 각 프로토콜에서 네이티브 변환합니다(Anthropic 사고 예산 / Responses reasoning effort). openai-completions 전용은 thinkingFormat / supportsReasoningEffort 뿐입니다.",
|
|
400
404
|
"card.dsContextTitle": "공식 DeepSeek 모델 컨텍스트 상한",
|
|
401
405
|
"input.effort.default": "공급자 기본값",
|
|
402
406
|
"input.effort.reset": "공급자 기본값으로 복원",
|
|
@@ -494,7 +498,8 @@ window.__ModuleLoader__.load({
|
|
|
494
498
|
"panel.search.placeholder": "Rechercher des modèles…",
|
|
495
499
|
"card.takeoverUi": "Reprise de l'UI modèle",
|
|
496
500
|
"card.takeoverUiHint": "Activé, ce plugin remplace le sélecteur de modèle du composeur par son propre panneau (éditeurs contexte/niveau par ligne + recherche). Désactivé (défaut), la popup officielle reste en place — le niveau auto apparaît toujours, recherche et chargement appartiennent au sélecteur d'origine. Le changement s’applique immédiatement, sans rechargement.",
|
|
497
|
-
"card.capabilities.apiUnsupported": "Ce fournisseur utilise un protocole autre qu'openai-completions :
|
|
501
|
+
"card.capabilities.apiUnsupported": "Ce fournisseur utilise un protocole autre qu'openai-completions : thinkingFormat / supportsReasoningEffort sont des champs de compat de réflexion propres à openai-completions et une écriture qui les porte est rejetée en bloc par l'hôte — donc désactivés ici. L'interrupteur de réflexion n'est pas affecté : il écrit reasoningEfforts, neutre au protocole, que pi-ai traduit nativement par protocole.",
|
|
502
|
+
"card.capabilities.thinkingNative": "L'interrupteur de réflexion est disponible sur tous les protocoles : il écrit reasoningEfforts, neutre au protocole, que pi-ai traduit nativement (budget de réflexion Anthropic / reasoning effort Responses). Seuls thinkingFormat / supportsReasoningEffort sont propres à openai-completions.",
|
|
498
503
|
"card.dsContextTitle": "Fenêtres de contexte DeepSeek officielles",
|
|
499
504
|
"input.effort.default": "Valeur par défaut du fournisseur",
|
|
500
505
|
"input.effort.reset": "Restaurer la valeur par défaut du fournisseur",
|
|
@@ -592,7 +597,8 @@ window.__ModuleLoader__.load({
|
|
|
592
597
|
"panel.search.placeholder": "Modelle suchen…",
|
|
593
598
|
"card.takeoverUi": "Modell-UI-Übernahme",
|
|
594
599
|
"card.takeoverUiHint": "Ein: dieses Plugin ersetzt die Modellauswahl des Composers durch ein eigenes Panel (Kontext-/Stufen-Editoren je Zeile + Suche). Aus (Standard): die offizielle Popup bleibt — die auto-Stufe erscheint weiterhin; Suche und Laden übernimmt der mitgelieferte Wähler. Änderungen wirken sofort — neu laden ist nicht nötig.",
|
|
595
|
-
"card.capabilities.apiUnsupported": "Dieser Provider nutzt ein anderes Protokoll als openai-completions:
|
|
600
|
+
"card.capabilities.apiUnsupported": "Dieser Provider nutzt ein anderes Protokoll als openai-completions: thinkingFormat / supportsReasoningEffort sind openai-completions-exklusive Thinking-Kompatibilitätsfelder, und eine Schreiboperation damit wird vom Host als Ganzes abgelehnt — daher hier deaktiviert. Der Thinking-Schalter ist nicht betroffen: er schreibt protokollneutral reasoningEfforts, die pi-ai protokollweit nativ übersetzt.",
|
|
601
|
+
"card.capabilities.thinkingNative": "Der Thinking-Schalter ist auf jedem Protokoll verfügbar: er schreibt protokollneutral reasoningEfforts, die pi-ai nativ übersetzt (Anthropic-Thinking-Budget / Responses reasoning effort). Nur thinkingFormat / supportsReasoningEffort sind openai-completions-exklusiv.",
|
|
596
602
|
"card.dsContextTitle": "Kontextfenster der offiziellen DeepSeek-Modelle",
|
|
597
603
|
"input.effort.default": "Anbieterstandard",
|
|
598
604
|
"input.effort.reset": "Auf Anbieterstandard zurücksetzen",
|
|
@@ -690,7 +696,8 @@ window.__ModuleLoader__.load({
|
|
|
690
696
|
"panel.search.placeholder": "Cerca modelli…",
|
|
691
697
|
"card.takeoverUi": "Sostituzione UI modello",
|
|
692
698
|
"card.takeoverUiHint": "Se attivo, questo plugin sostituisce il selettore modelli del compositore con un pannello proprio (editor contesto/livello per riga + ricerca). Se spento (predefinito) resta il popup ufficiale: il livello auto è comunque visibile, ricerca e caricamento sono a carico del selettore originale. La modifica ha effetto immediato, senza ricaricare.",
|
|
693
|
-
"card.capabilities.apiUnsupported": "Questo provider usa un protocollo diverso da openai-completions:
|
|
699
|
+
"card.capabilities.apiUnsupported": "Questo provider usa un protocollo diverso da openai-completions: thinkingFormat / supportsReasoningEffort sono campi di compatibilità thinking esclusivi di openai-completions e una scrittura che li contiene viene rifiutata in blocco dall host — quindi qui sono disabilitati. L interruttore thinking non è interessato: scrive reasoningEfforts, neutro rispetto al protocollo, che pi-ai traduce nativamente per protocollo.",
|
|
700
|
+
"card.capabilities.thinkingNative": "L interruttore thinking è disponibile su ogni protocollo: scrive reasoningEfforts, neutro rispetto al protocollo, che pi-ai traduce nativamente (budget thinking Anthropic / reasoning effort Responses). Solo thinkingFormat / supportsReasoningEffort sono esclusivi di openai-completions.",
|
|
694
701
|
"card.dsContextTitle": "Finestra di contesto dei modelli DeepSeek ufficiali",
|
|
695
702
|
"input.effort.default": "Predefinito del provider",
|
|
696
703
|
"input.effort.reset": "Ripristina il predefinito del provider",
|
|
@@ -788,7 +795,8 @@ window.__ModuleLoader__.load({
|
|
|
788
795
|
"panel.search.placeholder": "Поиск моделей…",
|
|
789
796
|
"card.takeoverUi": "Перехват UI модели",
|
|
790
797
|
"card.takeoverUiHint": "Включено: этот плагин заменяет выбор модели в композиторе собственной панелью (редакторы контекста/уровня в строках + поиск). Выключено (по умолчанию) остаётся официальное popup-окно — уровень auto по-прежнему виден, поиск и загрузка обеспечиваются штатным селектором. Изменения применяются сразу, без перезагрузки.",
|
|
791
|
-
"card.capabilities.apiUnsupported": "Этот провайдер использует протокол, отличный от openai-completions: поля совместимости thinking
|
|
798
|
+
"card.capabilities.apiUnsupported": "Этот провайдер использует протокол, отличный от openai-completions: thinkingFormat / supportsReasoningEffort — поля совместимости thinking, доступные только openai-completions, и запись с ними отклоняется хостом целиком, поэтому здесь они отключены. Переключатель thinking не затронут: он пишет протоколонезависимый reasoningEfforts, который pi-ai транслирует нативно для каждого протокола.",
|
|
799
|
+
"card.capabilities.thinkingNative": "Переключатель thinking доступен на всех протоколах: он пишет протоколонезависимый reasoningEfforts, который pi-ai транслирует нативно (бюджет thinking Anthropic / reasoning effort Responses). Только thinkingFormat / supportsReasoningEffort относятся исключительно к openai-completions.",
|
|
792
800
|
"card.dsContextTitle": "Лимиты контекста официальных моделей DeepSeek",
|
|
793
801
|
"input.effort.default": "Значение провайдера по умолчанию",
|
|
794
802
|
"input.effort.reset": "Вернуть значение провайдера по умолчанию",
|
|
@@ -886,7 +894,8 @@ window.__ModuleLoader__.load({
|
|
|
886
894
|
"panel.search.placeholder": "Buscar modelos…",
|
|
887
895
|
"card.takeoverUi": "Relevo de la UI de modelo",
|
|
888
896
|
"card.takeoverUiHint": "Si está activo, este plugin sustituye el selector de modelos del compositor por un panel propio (editores de contexto/nivel por línea + búsqueda). Si está desactivado (predeterminado) se mantiene el popup oficial: el nivel auto sigue apareciendo y la búsqueda y la carga corresponden al selector nativo. El cambio se aplica de inmediato, sin recargar.",
|
|
889
|
-
"card.capabilities.apiUnsupported": "Este proveedor usa un protocolo distinto de openai-completions:
|
|
897
|
+
"card.capabilities.apiUnsupported": "Este proveedor usa un protocolo distinto de openai-completions: thinkingFormat / supportsReasoningEffort son campos de compatibilidad de thinking exclusivos de openai-completions y una escritura que los lleve es rechazada en bloque por el host, por eso aquí están desactivados. El interruptor de thinking no se ve afectado: escribe reasoningEfforts, neutral respecto al protocolo, que pi-ai traduce de forma nativa por protocolo.",
|
|
898
|
+
"card.capabilities.thinkingNative": "El interruptor de thinking está disponible en todos los protocolos: escribe reasoningEfforts, neutral respecto al protocolo, que pi-ai traduce de forma nativa (presupuesto de thinking de Anthropic / reasoning effort de Responses). Solo thinkingFormat / supportsReasoningEffort son exclusivos de openai-completions.",
|
|
890
899
|
"card.dsContextTitle": "Ventana de contexto de los modelos DeepSeek oficiales",
|
|
891
900
|
"input.effort.default": "Predeterminado del proveedor",
|
|
892
901
|
"input.effort.reset": "Restaurar el valor predeterminado del proveedor",
|
|
@@ -3478,17 +3487,68 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
3478
3487
|
} : base;
|
|
3479
3488
|
}
|
|
3480
3489
|
/**
|
|
3481
|
-
* Whether the model-level
|
|
3482
|
-
* `compat.
|
|
3483
|
-
*
|
|
3484
|
-
* openai-completions
|
|
3485
|
-
*
|
|
3486
|
-
*
|
|
3487
|
-
*
|
|
3490
|
+
* Whether this entry's wire protocol takes the model-level
|
|
3491
|
+
* openai-completions compat fields (`compat.thinkingFormat`,
|
|
3492
|
+
* `compat.supportsReasoningEffort`). The host llm-pi-ai gate (`COMPAT_GATES`)
|
|
3493
|
+
* offers them ONLY on openai-completions, and a MODEL-level write carrying one
|
|
3494
|
+
* on a Responses/Anthropic route fails the WHOLE providers payload
|
|
3495
|
+
* (`not configurable here`). An absent `api` keeps pi-ai's
|
|
3496
|
+
* openai-completions default, so the row stays editable.
|
|
3497
|
+
*
|
|
3498
|
+
* Scoped to the FIELD, never to thinking: the thinking DECLARATION
|
|
3499
|
+
* (`reasoningEfforts`) is protocol-neutral and stays editable everywhere — a
|
|
3500
|
+
* non-completions route merely must not carry the completions-only compat
|
|
3501
|
+
* fields alongside it (issue #6).
|
|
3502
|
+
* (exported for the gate's unit regression, issues #2/#6)
|
|
3488
3503
|
*/
|
|
3489
|
-
function
|
|
3504
|
+
function completionsCompatConfigurable(entry) {
|
|
3490
3505
|
return typeof entry.providerApi !== "string" || entry.providerApi === "openai-completions";
|
|
3491
3506
|
}
|
|
3507
|
+
/**
|
|
3508
|
+
* Write the Thinking checkbox's declaration onto ONE model row (the caller
|
|
3509
|
+
* hands the row inside its cloned providers payload). Protocol-aware on
|
|
3510
|
+
* purpose (issue #6):
|
|
3511
|
+
*
|
|
3512
|
+
* - `reasoningEfforts` is protocol-NEUTRAL: the host llm-pi-ai resolves it to
|
|
3513
|
+
* `reasoning: true` + `thinkingLevelMap` for every wire protocol, and pi-ai
|
|
3514
|
+
* then maps the levels natively (Anthropic thinking budget, Responses
|
|
3515
|
+
* reasoning effort). Thinking is therefore declarable on all three protocol
|
|
3516
|
+
* families — it is the prerequisite of the effort selector.
|
|
3517
|
+
* - the `off` wire value is where the protocols DIVERGE. `off: null` marks the
|
|
3518
|
+
* level unsupported to pi-ai (`getSupportedThinkingLevels` drops it), which
|
|
3519
|
+
* is the completions transport's "send nothing" toggle — fine there, but on
|
|
3520
|
+
* a pi-ai-served route it would leave thinking un-turn-off-able. A
|
|
3521
|
+
* non-completions route therefore keeps `off` SELECTABLE with the
|
|
3522
|
+
* providers' own "no reasoning" token: Anthropic only needs it non-null
|
|
3523
|
+
* (`thinking: {type:'disabled'}`), Responses sends `effort: 'none'`.
|
|
3524
|
+
* - the qwen `thinkingFormat` autofill is an openai-completions-ONLY compat
|
|
3525
|
+
* field: writing it on a Responses/Anthropic route makes the host reject the
|
|
3526
|
+
* whole providers payload, so it is skipped there and the format simply
|
|
3527
|
+
* stays inherited.
|
|
3528
|
+
* @param entry - the capability entry whose provider protocol decides the gate.
|
|
3529
|
+
* @param row - the model row to mutate.
|
|
3530
|
+
* @param next - the new Thinking state.
|
|
3531
|
+
*/
|
|
3532
|
+
function writeThinkingRow(entry, row, next) {
|
|
3533
|
+
if (!next) {
|
|
3534
|
+
row["reasoningEfforts"] = false;
|
|
3535
|
+
return;
|
|
3536
|
+
}
|
|
3537
|
+
const effortCapable = supportsEffortOf(row);
|
|
3538
|
+
const completions = completionsCompatConfigurable(entry);
|
|
3539
|
+
if (effortCapable) row["reasoningEfforts"] = effortTableOf({ high: "high" });
|
|
3540
|
+
else if (completions) row["reasoningEfforts"] = {
|
|
3541
|
+
off: null,
|
|
3542
|
+
high: "high"
|
|
3543
|
+
};
|
|
3544
|
+
else row["reasoningEfforts"] = {
|
|
3545
|
+
off: "none",
|
|
3546
|
+
high: "high"
|
|
3547
|
+
};
|
|
3548
|
+
if (!effortCapable && completions) patchCompat(row, (compat) => {
|
|
3549
|
+
if (compat["thinkingFormat"] === void 0) compat["thinkingFormat"] = "qwen-chat-template";
|
|
3550
|
+
});
|
|
3551
|
+
}
|
|
3492
3552
|
/** Flatten the user-layer providers into capability entries (models arrays only). */
|
|
3493
3553
|
function entriesOf(providers) {
|
|
3494
3554
|
return Object.entries(providers).flatMap(([providerId, profile]) => {
|
|
@@ -3761,20 +3821,14 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
3761
3821
|
return current;
|
|
3762
3822
|
});
|
|
3763
3823
|
};
|
|
3764
|
-
/**
|
|
3824
|
+
/**
|
|
3825
|
+
* Toggle whether a model is a thinking model (`reasoningEfforts` table vs
|
|
3826
|
+
* false). Delegates the row patch to {@link writeThinkingRow}: thinking is
|
|
3827
|
+
* declared on every protocol, only the completions-only format autofill is
|
|
3828
|
+
* protocol-gated.
|
|
3829
|
+
*/
|
|
3765
3830
|
const toggleThinking = (entry, next) => {
|
|
3766
|
-
patchModel(entry.providerId, entry.index, (row) =>
|
|
3767
|
-
if (next) {
|
|
3768
|
-
const effortCapable = supportsEffortOf(row);
|
|
3769
|
-
row["reasoningEfforts"] = effortCapable ? effortTableOf({ high: "high" }) : {
|
|
3770
|
-
off: null,
|
|
3771
|
-
high: "high"
|
|
3772
|
-
};
|
|
3773
|
-
if (!effortCapable) patchCompat(row, (compat) => {
|
|
3774
|
-
if (compat["thinkingFormat"] === void 0) compat["thinkingFormat"] = "qwen-chat-template";
|
|
3775
|
-
});
|
|
3776
|
-
} else row["reasoningEfforts"] = false;
|
|
3777
|
-
});
|
|
3831
|
+
patchModel(entry.providerId, entry.index, (row) => writeThinkingRow(entry, row, next));
|
|
3778
3832
|
};
|
|
3779
3833
|
/** Toggle whether a model accepts reasoning_effort levels. */
|
|
3780
3834
|
const toggleEffortCapable = (entry, next) => {
|
|
@@ -4051,7 +4105,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4051
4105
|
const thinking = typeof effortsOf(entry.model) === "object";
|
|
4052
4106
|
const compat = compatOf(entry);
|
|
4053
4107
|
const supportsEffort = compat["supportsReasoningEffort"] === true;
|
|
4054
|
-
const
|
|
4108
|
+
const compatGated = !completionsCompatConfigurable(entry);
|
|
4055
4109
|
const meta = summaryOf(entry);
|
|
4056
4110
|
const format = typeof compat["thinkingFormat"] === "string" ? compat["thinkingFormat"] : void 0;
|
|
4057
4111
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -4118,7 +4172,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4118
4172
|
borderTop: "1px solid var(--dsw-alias-border-l2)"
|
|
4119
4173
|
},
|
|
4120
4174
|
children: [
|
|
4121
|
-
|
|
4175
|
+
compatGated && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
4122
4176
|
style: hintStyle,
|
|
4123
4177
|
children: t("card.capabilities.apiUnsupported")
|
|
4124
4178
|
}),
|
|
@@ -4137,11 +4191,11 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4137
4191
|
gap: "6px",
|
|
4138
4192
|
fontSize: "12px"
|
|
4139
4193
|
},
|
|
4140
|
-
title:
|
|
4194
|
+
title: compatGated ? t("card.capabilities.thinkingNative") : void 0,
|
|
4141
4195
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
4142
4196
|
type: "checkbox",
|
|
4143
4197
|
checked: thinking,
|
|
4144
|
-
disabled: readonly || busy
|
|
4198
|
+
disabled: readonly || busy,
|
|
4145
4199
|
onChange: (event) => toggleThinking(entry, event.currentTarget.checked)
|
|
4146
4200
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("card.capabilities.thinking") })]
|
|
4147
4201
|
}),
|
|
@@ -4189,11 +4243,11 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4189
4243
|
fontSize: "12px",
|
|
4190
4244
|
margin: "0 0 8px"
|
|
4191
4245
|
},
|
|
4192
|
-
title:
|
|
4246
|
+
title: compatGated ? t("card.capabilities.apiUnsupported") : void 0,
|
|
4193
4247
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
4194
4248
|
type: "checkbox",
|
|
4195
4249
|
checked: supportsEffort,
|
|
4196
|
-
disabled: readonly || busy ||
|
|
4250
|
+
disabled: readonly || busy || compatGated,
|
|
4197
4251
|
onChange: (event) => toggleEffortCapable(entry, event.currentTarget.checked)
|
|
4198
4252
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("card.capabilities.supportsEffort") })]
|
|
4199
4253
|
}) : null,
|
|
@@ -4303,8 +4357,8 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4303
4357
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
4304
4358
|
style: controlStyle,
|
|
4305
4359
|
value: format ?? "inherit",
|
|
4306
|
-
disabled: readonly || busy ||
|
|
4307
|
-
title:
|
|
4360
|
+
disabled: readonly || busy || compatGated,
|
|
4361
|
+
title: compatGated ? t("card.capabilities.apiUnsupported") : void 0,
|
|
4308
4362
|
onChange: (event) => {
|
|
4309
4363
|
const next = event.currentTarget.value;
|
|
4310
4364
|
patchModel(entry.providerId, entry.index, (row) => {
|
|
@@ -4730,13 +4784,12 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4730
4784
|
htmlFor: "plugin-config-thinking-levels-enabled",
|
|
4731
4785
|
style: labelStyle,
|
|
4732
4786
|
children: t("card.enabled")
|
|
4733
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
4787
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
4734
4788
|
id: "plugin-config-thinking-levels-enabled",
|
|
4735
|
-
type: "checkbox",
|
|
4736
4789
|
checked: viewValue.enabled ?? true,
|
|
4737
4790
|
disabled: readonly,
|
|
4738
|
-
onChange: (
|
|
4739
|
-
writeTl("enabled",
|
|
4791
|
+
onChange: (next) => {
|
|
4792
|
+
writeTl("enabled", next);
|
|
4740
4793
|
}
|
|
4741
4794
|
})]
|
|
4742
4795
|
}),
|
|
@@ -4747,14 +4800,13 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4747
4800
|
style: labelStyle,
|
|
4748
4801
|
title: t("card.masterTakeoverHint"),
|
|
4749
4802
|
children: t("card.masterTakeover")
|
|
4750
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
4803
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
4751
4804
|
id: "plugin-config-thinking-levels-takeover",
|
|
4752
|
-
type: "checkbox",
|
|
4753
4805
|
checked: viewValue.takeover ?? false,
|
|
4754
4806
|
disabled: readonly,
|
|
4755
4807
|
title: t("card.masterTakeoverHint"),
|
|
4756
|
-
onChange: (
|
|
4757
|
-
writeTl("takeover",
|
|
4808
|
+
onChange: (next) => {
|
|
4809
|
+
writeTl("takeover", next);
|
|
4758
4810
|
}
|
|
4759
4811
|
})]
|
|
4760
4812
|
}),
|
|
@@ -4775,19 +4827,25 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4775
4827
|
}
|
|
4776
4828
|
})]
|
|
4777
4829
|
}),
|
|
4830
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
4831
|
+
style: {
|
|
4832
|
+
...hintStyle,
|
|
4833
|
+
margin: "2px 0 10px"
|
|
4834
|
+
},
|
|
4835
|
+
children: t("card.takeoverUiHint")
|
|
4836
|
+
}),
|
|
4778
4837
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4779
4838
|
style: rowStyle,
|
|
4780
4839
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
4781
4840
|
htmlFor: "plugin-config-thinking-levels-downgrade",
|
|
4782
4841
|
style: labelStyle,
|
|
4783
4842
|
children: t("card.allowDowngrade")
|
|
4784
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
4843
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
4785
4844
|
id: "plugin-config-thinking-levels-downgrade",
|
|
4786
|
-
type: "checkbox",
|
|
4787
4845
|
checked: viewValue.allowDowngrade ?? true,
|
|
4788
4846
|
disabled: readonly || viewValue.level !== "auto",
|
|
4789
|
-
onChange: (
|
|
4790
|
-
writeTl("allowDowngrade",
|
|
4847
|
+
onChange: (next) => {
|
|
4848
|
+
writeTl("allowDowngrade", next);
|
|
4791
4849
|
}
|
|
4792
4850
|
})]
|
|
4793
4851
|
}),
|
|
@@ -4797,13 +4855,12 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4797
4855
|
htmlFor: "plugin-config-thinking-levels-upgrade",
|
|
4798
4856
|
style: labelStyle,
|
|
4799
4857
|
children: t("card.allowUpgrade")
|
|
4800
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
4858
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
4801
4859
|
id: "plugin-config-thinking-levels-upgrade",
|
|
4802
|
-
type: "checkbox",
|
|
4803
4860
|
checked: viewValue.allowUpgrade ?? false,
|
|
4804
4861
|
disabled: readonly || viewValue.level !== "auto",
|
|
4805
|
-
onChange: (
|
|
4806
|
-
writeTl("allowUpgrade",
|
|
4862
|
+
onChange: (next) => {
|
|
4863
|
+
writeTl("allowUpgrade", next);
|
|
4807
4864
|
}
|
|
4808
4865
|
})]
|
|
4809
4866
|
}),
|