dsh-thinking-levels 4.7.0 → 4.7.2
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.md +4 -0
- package/dsh.plugin.json +1 -1
- package/lib/client.js +199 -195
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.7.1 (2026-11-25)
|
|
4
|
+
|
|
5
|
+
- feat(guide): 「重新查看引导」入口从卡底移到卡顶(`GuidePanel` 之前),与其他八个接了统一引导的插件同形态。跳过标记与三步正文逐字未动(`dsh.guide.thinking-levels.skipped`)。
|
|
6
|
+
|
|
3
7
|
## 4.7.0 (2026-11-24)
|
|
4
8
|
|
|
5
9
|
- **新增首次使用引导(3 步)**:设置卡顶部三步——按难度挑档位(简单问答降 low、复杂任务抬 high,默认自动就够用)、允许上浮(别一上来钉死 max,贵且慢)、圆环读数怎么看。底部恒定重开入口;Skip 与「开始使用」都写 `dsh.guide.thinking-levels.skipped`。
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.2",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "thinking-level (reasoning_effort) control — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
6
6
|
"engines": {
|
package/lib/client.js
CHANGED
|
@@ -4638,7 +4638,8 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4638
4638
|
.sgGuideBtn{appearance:none;font:inherit;font-size:12px;padding:5px 12px;border-radius:8px;border:1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.3));background:transparent;color:var(--dsw-alias-label-primary, currentColor);cursor:pointer}
|
|
4639
4639
|
.sgGuideBtn-primary{background:var(--dsw-alias-button-primary-fill, #4d6bfe);border-color:transparent;color:#fff}
|
|
4640
4640
|
.sgGuideBtn-skip{margin-right:auto;color:var(--dsw-alias-label-tertiary, rgba(127,127,127,.9));border-color:transparent;text-decoration:underline}
|
|
4641
|
-
.sgGuideRestart{appearance:none;font:inherit;font-size:12px;padding:
|
|
4641
|
+
.sgGuideRestart{appearance:none;font:inherit;font-size:12px;line-height:1.4;padding:4px 12px;border-radius:999px;border:1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35));background:var(--dsw-alias-bg-layer-2, rgba(127,127,127,.06));color:var(--dsw-alias-label-primary, currentColor);cursor:pointer;text-decoration:none}
|
|
4642
|
+
.sgGuideRestart:hover{border-color:var(--dsw-alias-button-primary-fill, #4d6bfe);color:var(--dsw-alias-button-primary-fill, #4d6bfe)}
|
|
4642
4643
|
`;
|
|
4643
4644
|
function injectGuideCss() {
|
|
4644
4645
|
try {
|
|
@@ -4672,7 +4673,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
4672
4673
|
}, []);
|
|
4673
4674
|
}
|
|
4674
4675
|
/**
|
|
4675
|
-
*
|
|
4676
|
+
* 引导主体:≤10 步的小教学(惯例:末条讲「用量端点」贴士)+ 恒定可见的 Skip。
|
|
4676
4677
|
*
|
|
4677
4678
|
* `onClose` 由宿主卡面传:Skip/Done 都会调用它(Skip 同时写标记)。
|
|
4678
4679
|
*/
|
|
@@ -6552,215 +6553,218 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
|
|
|
6552
6553
|
})]
|
|
6553
6554
|
}), open ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6554
6555
|
style: { padding: "12px 16px" },
|
|
6555
|
-
children: [
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
style: {
|
|
6563
|
-
fontSize: "13px",
|
|
6564
|
-
color: "var(--dsw-alias-label-tertiary)"
|
|
6565
|
-
},
|
|
6566
|
-
children: t("card.unavailable")
|
|
6567
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
6568
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6569
|
-
style: rowStyle,
|
|
6570
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6571
|
-
htmlFor: "plugin-config-thinking-levels-level",
|
|
6572
|
-
style: labelStyle,
|
|
6573
|
-
children: t("card.level")
|
|
6574
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
|
|
6575
|
-
id: "plugin-config-thinking-levels-level",
|
|
6576
|
-
value: level,
|
|
6577
|
-
disabled: readonly,
|
|
6578
|
-
style: controlStyle,
|
|
6579
|
-
onChange: (event) => {
|
|
6580
|
-
writeTl("level", event.currentTarget.value);
|
|
6581
|
-
},
|
|
6582
|
-
children: EFFORT_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
6583
|
-
value: option,
|
|
6584
|
-
children: t(`card.level.${option}`)
|
|
6585
|
-
}, option))
|
|
6586
|
-
})]
|
|
6587
|
-
}),
|
|
6588
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6589
|
-
style: rowStyle,
|
|
6590
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6591
|
-
htmlFor: "plugin-config-thinking-levels-enabled",
|
|
6592
|
-
style: labelStyle,
|
|
6593
|
-
children: t("card.enabled")
|
|
6594
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6595
|
-
id: "plugin-config-thinking-levels-enabled",
|
|
6596
|
-
checked: viewValue.enabled ?? true,
|
|
6597
|
-
disabled: readonly,
|
|
6598
|
-
onChange: (next) => {
|
|
6599
|
-
writeTl("enabled", next);
|
|
6600
|
-
}
|
|
6601
|
-
})]
|
|
6602
|
-
}),
|
|
6603
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6604
|
-
style: rowStyle,
|
|
6605
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6606
|
-
htmlFor: "plugin-config-thinking-levels-takeover",
|
|
6607
|
-
style: labelStyle,
|
|
6608
|
-
title: t("card.masterTakeoverHint"),
|
|
6609
|
-
children: t("card.masterTakeover")
|
|
6610
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6611
|
-
id: "plugin-config-thinking-levels-takeover",
|
|
6612
|
-
checked: viewValue.takeover ?? false,
|
|
6613
|
-
disabled: readonly,
|
|
6614
|
-
title: t("card.masterTakeoverHint"),
|
|
6615
|
-
onChange: (next) => {
|
|
6616
|
-
writeTl("takeover", next);
|
|
6617
|
-
}
|
|
6618
|
-
})]
|
|
6619
|
-
}),
|
|
6620
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6621
|
-
style: rowStyle,
|
|
6622
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6623
|
-
htmlFor: "plugin-config-thinking-levels-takeover-ui",
|
|
6624
|
-
style: labelStyle,
|
|
6625
|
-
title: t("card.takeoverUiHint"),
|
|
6626
|
-
children: t("card.takeoverUi")
|
|
6627
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6628
|
-
id: "plugin-config-thinking-levels-takeover-ui",
|
|
6629
|
-
checked: viewValue.takeoverUi ?? false,
|
|
6630
|
-
disabled: readonly,
|
|
6631
|
-
title: t("card.takeoverUiHint"),
|
|
6632
|
-
onChange: (next) => {
|
|
6633
|
-
writeTl("takeoverUi", next);
|
|
6556
|
+
children: [
|
|
6557
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6558
|
+
style: { margin: "0 0 10px" },
|
|
6559
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuideRestartButton, {
|
|
6560
|
+
ns: "thinking-levels",
|
|
6561
|
+
onOpen: () => {
|
|
6562
|
+
setGuideOpen(true);
|
|
6634
6563
|
}
|
|
6635
|
-
})
|
|
6564
|
+
})
|
|
6636
6565
|
}),
|
|
6637
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
6566
|
+
guideOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuidePanel, {
|
|
6567
|
+
ns: "thinking-levels",
|
|
6568
|
+
steps: guideSteps(THINKING_GUIDE_STEPS),
|
|
6569
|
+
onClose: () => {
|
|
6570
|
+
setGuideOpen(false);
|
|
6571
|
+
}
|
|
6572
|
+
}) : null,
|
|
6573
|
+
unavailable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
6638
6574
|
style: {
|
|
6639
|
-
|
|
6640
|
-
|
|
6575
|
+
fontSize: "13px",
|
|
6576
|
+
color: "var(--dsw-alias-label-tertiary)"
|
|
6641
6577
|
},
|
|
6642
|
-
children: t("card.
|
|
6643
|
-
}),
|
|
6644
|
-
|
|
6645
|
-
style: rowStyle,
|
|
6646
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6647
|
-
htmlFor: "plugin-config-thinking-levels-downgrade",
|
|
6648
|
-
style: labelStyle,
|
|
6649
|
-
children: t("card.allowDowngrade")
|
|
6650
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6651
|
-
id: "plugin-config-thinking-levels-downgrade",
|
|
6652
|
-
checked: viewValue.allowDowngrade ?? true,
|
|
6653
|
-
disabled: readonly || viewValue.level !== "auto",
|
|
6654
|
-
onChange: (next) => {
|
|
6655
|
-
writeTl("allowDowngrade", next);
|
|
6656
|
-
}
|
|
6657
|
-
})]
|
|
6658
|
-
}),
|
|
6659
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6660
|
-
style: rowStyle,
|
|
6661
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6662
|
-
htmlFor: "plugin-config-thinking-levels-upgrade",
|
|
6663
|
-
style: labelStyle,
|
|
6664
|
-
children: t("card.allowUpgrade")
|
|
6665
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6666
|
-
id: "plugin-config-thinking-levels-upgrade",
|
|
6667
|
-
checked: viewValue.allowUpgrade ?? false,
|
|
6668
|
-
disabled: readonly || viewValue.level !== "auto",
|
|
6669
|
-
onChange: (next) => {
|
|
6670
|
-
writeTl("allowUpgrade", next);
|
|
6671
|
-
}
|
|
6672
|
-
})]
|
|
6673
|
-
}),
|
|
6674
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6675
|
-
style: rowStyle,
|
|
6676
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6677
|
-
htmlFor: "plugin-config-thinking-levels-default-pricing",
|
|
6678
|
-
style: labelStyle,
|
|
6679
|
-
title: t("card.defaultPricingHint"),
|
|
6680
|
-
children: t("card.defaultPricing")
|
|
6681
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
|
|
6682
|
-
id: "plugin-config-thinking-levels-default-pricing",
|
|
6683
|
-
value: defaultPricing,
|
|
6684
|
-
disabled: readonly,
|
|
6685
|
-
style: controlStyle,
|
|
6686
|
-
onChange: (event) => {
|
|
6687
|
-
writeTl("defaultPricing", event.currentTarget.value);
|
|
6688
|
-
},
|
|
6689
|
-
children: PRICING_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
6690
|
-
value: option,
|
|
6691
|
-
children: t(`card.defaultPricing.${option}`)
|
|
6692
|
-
}, option))
|
|
6693
|
-
})]
|
|
6694
|
-
}),
|
|
6695
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6696
|
-
style: fieldStyle,
|
|
6697
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6578
|
+
children: t("card.unavailable")
|
|
6579
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
6580
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6698
6581
|
style: rowStyle,
|
|
6699
6582
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6700
|
-
htmlFor: "plugin-config-thinking-levels-
|
|
6583
|
+
htmlFor: "plugin-config-thinking-levels-level",
|
|
6701
6584
|
style: labelStyle,
|
|
6702
|
-
children: t("card.
|
|
6703
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
6704
|
-
id: "plugin-config-thinking-levels-
|
|
6705
|
-
|
|
6706
|
-
style: controlStyle,
|
|
6585
|
+
children: t("card.level")
|
|
6586
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
|
|
6587
|
+
id: "plugin-config-thinking-levels-level",
|
|
6588
|
+
value: level,
|
|
6707
6589
|
disabled: readonly,
|
|
6708
|
-
|
|
6709
|
-
placeholder: "shell, pwsh, web_fetch",
|
|
6590
|
+
style: controlStyle,
|
|
6710
6591
|
onChange: (event) => {
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6592
|
+
writeTl("level", event.currentTarget.value);
|
|
6593
|
+
},
|
|
6594
|
+
children: EFFORT_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
6595
|
+
value: option,
|
|
6596
|
+
children: t(`card.level.${option}`)
|
|
6597
|
+
}, option))
|
|
6598
|
+
})]
|
|
6599
|
+
}),
|
|
6600
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6601
|
+
style: rowStyle,
|
|
6602
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6603
|
+
htmlFor: "plugin-config-thinking-levels-enabled",
|
|
6604
|
+
style: labelStyle,
|
|
6605
|
+
children: t("card.enabled")
|
|
6606
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6607
|
+
id: "plugin-config-thinking-levels-enabled",
|
|
6608
|
+
checked: viewValue.enabled ?? true,
|
|
6609
|
+
disabled: readonly,
|
|
6610
|
+
onChange: (next) => {
|
|
6611
|
+
writeTl("enabled", next);
|
|
6715
6612
|
}
|
|
6716
6613
|
})]
|
|
6717
|
-
}),
|
|
6614
|
+
}),
|
|
6615
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6616
|
+
style: rowStyle,
|
|
6617
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6618
|
+
htmlFor: "plugin-config-thinking-levels-takeover",
|
|
6619
|
+
style: labelStyle,
|
|
6620
|
+
title: t("card.masterTakeoverHint"),
|
|
6621
|
+
children: t("card.masterTakeover")
|
|
6622
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6623
|
+
id: "plugin-config-thinking-levels-takeover",
|
|
6624
|
+
checked: viewValue.takeover ?? false,
|
|
6625
|
+
disabled: readonly,
|
|
6626
|
+
title: t("card.masterTakeoverHint"),
|
|
6627
|
+
onChange: (next) => {
|
|
6628
|
+
writeTl("takeover", next);
|
|
6629
|
+
}
|
|
6630
|
+
})]
|
|
6631
|
+
}),
|
|
6632
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6633
|
+
style: rowStyle,
|
|
6634
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6635
|
+
htmlFor: "plugin-config-thinking-levels-takeover-ui",
|
|
6636
|
+
style: labelStyle,
|
|
6637
|
+
title: t("card.takeoverUiHint"),
|
|
6638
|
+
children: t("card.takeoverUi")
|
|
6639
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6640
|
+
id: "plugin-config-thinking-levels-takeover-ui",
|
|
6641
|
+
checked: viewValue.takeoverUi ?? false,
|
|
6642
|
+
disabled: readonly,
|
|
6643
|
+
title: t("card.takeoverUiHint"),
|
|
6644
|
+
onChange: (next) => {
|
|
6645
|
+
writeTl("takeoverUi", next);
|
|
6646
|
+
}
|
|
6647
|
+
})]
|
|
6648
|
+
}),
|
|
6649
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6718
6650
|
style: {
|
|
6719
6651
|
...hintStyle,
|
|
6720
6652
|
margin: "2px 0 10px"
|
|
6721
6653
|
},
|
|
6722
|
-
children: t("card.
|
|
6723
|
-
})
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6654
|
+
children: t("card.takeoverUiHint")
|
|
6655
|
+
}),
|
|
6656
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6657
|
+
style: rowStyle,
|
|
6658
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6659
|
+
htmlFor: "plugin-config-thinking-levels-downgrade",
|
|
6660
|
+
style: labelStyle,
|
|
6661
|
+
children: t("card.allowDowngrade")
|
|
6662
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6663
|
+
id: "plugin-config-thinking-levels-downgrade",
|
|
6664
|
+
checked: viewValue.allowDowngrade ?? true,
|
|
6665
|
+
disabled: readonly || viewValue.level !== "auto",
|
|
6666
|
+
onChange: (next) => {
|
|
6667
|
+
writeTl("allowDowngrade", next);
|
|
6668
|
+
}
|
|
6669
|
+
})]
|
|
6670
|
+
}),
|
|
6671
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6672
|
+
style: rowStyle,
|
|
6673
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6674
|
+
htmlFor: "plugin-config-thinking-levels-upgrade",
|
|
6675
|
+
style: labelStyle,
|
|
6676
|
+
children: t("card.allowUpgrade")
|
|
6677
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
|
|
6678
|
+
id: "plugin-config-thinking-levels-upgrade",
|
|
6679
|
+
checked: viewValue.allowUpgrade ?? false,
|
|
6680
|
+
disabled: readonly || viewValue.level !== "auto",
|
|
6681
|
+
onChange: (next) => {
|
|
6682
|
+
writeTl("allowUpgrade", next);
|
|
6683
|
+
}
|
|
6684
|
+
})]
|
|
6685
|
+
}),
|
|
6686
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6687
|
+
style: rowStyle,
|
|
6688
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6689
|
+
htmlFor: "plugin-config-thinking-levels-default-pricing",
|
|
6690
|
+
style: labelStyle,
|
|
6691
|
+
title: t("card.defaultPricingHint"),
|
|
6692
|
+
children: t("card.defaultPricing")
|
|
6693
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
|
|
6694
|
+
id: "plugin-config-thinking-levels-default-pricing",
|
|
6695
|
+
value: defaultPricing,
|
|
6696
|
+
disabled: readonly,
|
|
6697
|
+
style: controlStyle,
|
|
6698
|
+
onChange: (event) => {
|
|
6699
|
+
writeTl("defaultPricing", event.currentTarget.value);
|
|
6700
|
+
},
|
|
6701
|
+
children: PRICING_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
6702
|
+
value: option,
|
|
6703
|
+
children: t(`card.defaultPricing.${option}`)
|
|
6704
|
+
}, option))
|
|
6705
|
+
})]
|
|
6706
|
+
}),
|
|
6707
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6708
|
+
style: fieldStyle,
|
|
6709
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6710
|
+
style: rowStyle,
|
|
6711
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
6712
|
+
htmlFor: "plugin-config-thinking-levels-simple-tools",
|
|
6713
|
+
style: labelStyle,
|
|
6714
|
+
children: t("card.simpleTools")
|
|
6715
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
6716
|
+
id: "plugin-config-thinking-levels-simple-tools",
|
|
6717
|
+
type: "text",
|
|
6718
|
+
style: controlStyle,
|
|
6719
|
+
disabled: readonly,
|
|
6720
|
+
value: simpleToolsText,
|
|
6721
|
+
placeholder: "shell, pwsh, web_fetch",
|
|
6722
|
+
onChange: (event) => {
|
|
6723
|
+
const raw = event.currentTarget.value;
|
|
6724
|
+
setSimpleToolsText(raw);
|
|
6725
|
+
const parsed = Array.from(new Set(raw.split(/[,\s]+/).map((token) => token.trim()).filter((token) => token !== "")));
|
|
6726
|
+
writeTl("simpleTools", parsed);
|
|
6727
|
+
}
|
|
6728
|
+
})]
|
|
6729
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6730
|
+
style: {
|
|
6731
|
+
...hintStyle,
|
|
6732
|
+
margin: "2px 0 10px"
|
|
6733
|
+
},
|
|
6734
|
+
children: t("card.simpleToolsHint")
|
|
6735
|
+
})]
|
|
6736
|
+
}),
|
|
6737
|
+
writeErrorTl !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
6738
|
+
style: {
|
|
6739
|
+
margin: "8px 0 0",
|
|
6740
|
+
fontSize: "12px",
|
|
6741
|
+
color: "var(--dsw-alias-danger, #e5484d)"
|
|
6742
|
+
},
|
|
6743
|
+
role: "status",
|
|
6744
|
+
children: ["⚠ ", writeErrorTl]
|
|
6745
|
+
}),
|
|
6746
|
+
!snapshot.writable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6747
|
+
style: {
|
|
6748
|
+
margin: "8px 0 0",
|
|
6749
|
+
fontSize: "12px",
|
|
6750
|
+
color: "var(--dsw-alias-label-tertiary)"
|
|
6751
|
+
},
|
|
6752
|
+
children: t("card.readonly")
|
|
6753
|
+
}),
|
|
6754
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModelCapabilities, {
|
|
6755
|
+
scope: piAiScope,
|
|
6756
|
+
ocScope,
|
|
6757
|
+
tlScope: scope,
|
|
6758
|
+
t,
|
|
6759
|
+
readonly
|
|
6760
|
+
}),
|
|
6761
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DeepSeekContextSection, {
|
|
6762
|
+
scope: deepseekScope,
|
|
6763
|
+
t,
|
|
6764
|
+
readonly
|
|
6761
6765
|
})
|
|
6762
|
-
})
|
|
6763
|
-
]
|
|
6766
|
+
] })
|
|
6767
|
+
]
|
|
6764
6768
|
}) : null]
|
|
6765
6769
|
});
|
|
6766
6770
|
}
|