dsh-thinking-levels 4.7.0 → 4.7.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.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/lib/client.js CHANGED
@@ -4672,7 +4672,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
4672
4672
  }, []);
4673
4673
  }
4674
4674
  /**
4675
- * 引导主体:3 步以内的小教学 + 恒定可见的 Skip。
4675
+ * 引导主体:≤10 步的小教学(惯例:末条讲「用量端点」贴士)+ 恒定可见的 Skip。
4676
4676
  *
4677
4677
  * `onClose` 由宿主卡面传:Skip/Done 都会调用它(Skip 同时写标记)。
4678
4678
  */
@@ -6552,215 +6552,218 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
6552
6552
  })]
6553
6553
  }), open ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6554
6554
  style: { padding: "12px 16px" },
6555
- children: [guideOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuidePanel, {
6556
- ns: "thinking-levels",
6557
- steps: guideSteps(THINKING_GUIDE_STEPS),
6558
- onClose: () => {
6559
- setGuideOpen(false);
6560
- }
6561
- }) : null, unavailable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
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);
6555
+ children: [
6556
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6557
+ style: { margin: "0 0 10px" },
6558
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuideRestartButton, {
6559
+ ns: "thinking-levels",
6560
+ onOpen: () => {
6561
+ setGuideOpen(true);
6634
6562
  }
6635
- })]
6563
+ })
6636
6564
  }),
6637
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6565
+ guideOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuidePanel, {
6566
+ ns: "thinking-levels",
6567
+ steps: guideSteps(THINKING_GUIDE_STEPS),
6568
+ onClose: () => {
6569
+ setGuideOpen(false);
6570
+ }
6571
+ }) : null,
6572
+ unavailable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6638
6573
  style: {
6639
- ...hintStyle,
6640
- margin: "2px 0 10px"
6574
+ fontSize: "13px",
6575
+ color: "var(--dsw-alias-label-tertiary)"
6641
6576
  },
6642
- children: t("card.takeoverUiHint")
6643
- }),
6644
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
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", {
6577
+ children: t("card.unavailable")
6578
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
6579
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6698
6580
  style: rowStyle,
6699
6581
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6700
- htmlFor: "plugin-config-thinking-levels-simple-tools",
6582
+ htmlFor: "plugin-config-thinking-levels-level",
6701
6583
  style: labelStyle,
6702
- children: t("card.simpleTools")
6703
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
6704
- id: "plugin-config-thinking-levels-simple-tools",
6705
- type: "text",
6706
- style: controlStyle,
6584
+ children: t("card.level")
6585
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
6586
+ id: "plugin-config-thinking-levels-level",
6587
+ value: level,
6707
6588
  disabled: readonly,
6708
- value: simpleToolsText,
6709
- placeholder: "shell, pwsh, web_fetch",
6589
+ style: controlStyle,
6710
6590
  onChange: (event) => {
6711
- const raw = event.currentTarget.value;
6712
- setSimpleToolsText(raw);
6713
- const parsed = Array.from(new Set(raw.split(/[,\s]+/).map((token) => token.trim()).filter((token) => token !== "")));
6714
- writeTl("simpleTools", parsed);
6591
+ writeTl("level", event.currentTarget.value);
6592
+ },
6593
+ children: EFFORT_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
6594
+ value: option,
6595
+ children: t(`card.level.${option}`)
6596
+ }, option))
6597
+ })]
6598
+ }),
6599
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6600
+ style: rowStyle,
6601
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6602
+ htmlFor: "plugin-config-thinking-levels-enabled",
6603
+ style: labelStyle,
6604
+ children: t("card.enabled")
6605
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
6606
+ id: "plugin-config-thinking-levels-enabled",
6607
+ checked: viewValue.enabled ?? true,
6608
+ disabled: readonly,
6609
+ onChange: (next) => {
6610
+ writeTl("enabled", next);
6715
6611
  }
6716
6612
  })]
6717
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6613
+ }),
6614
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6615
+ style: rowStyle,
6616
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6617
+ htmlFor: "plugin-config-thinking-levels-takeover",
6618
+ style: labelStyle,
6619
+ title: t("card.masterTakeoverHint"),
6620
+ children: t("card.masterTakeover")
6621
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
6622
+ id: "plugin-config-thinking-levels-takeover",
6623
+ checked: viewValue.takeover ?? false,
6624
+ disabled: readonly,
6625
+ title: t("card.masterTakeoverHint"),
6626
+ onChange: (next) => {
6627
+ writeTl("takeover", next);
6628
+ }
6629
+ })]
6630
+ }),
6631
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6632
+ style: rowStyle,
6633
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6634
+ htmlFor: "plugin-config-thinking-levels-takeover-ui",
6635
+ style: labelStyle,
6636
+ title: t("card.takeoverUiHint"),
6637
+ children: t("card.takeoverUi")
6638
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
6639
+ id: "plugin-config-thinking-levels-takeover-ui",
6640
+ checked: viewValue.takeoverUi ?? false,
6641
+ disabled: readonly,
6642
+ title: t("card.takeoverUiHint"),
6643
+ onChange: (next) => {
6644
+ writeTl("takeoverUi", next);
6645
+ }
6646
+ })]
6647
+ }),
6648
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6718
6649
  style: {
6719
6650
  ...hintStyle,
6720
6651
  margin: "2px 0 10px"
6721
6652
  },
6722
- children: t("card.simpleToolsHint")
6723
- })]
6724
- }),
6725
- writeErrorTl !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
6726
- style: {
6727
- margin: "8px 0 0",
6728
- fontSize: "12px",
6729
- color: "var(--dsw-alias-danger, #e5484d)"
6730
- },
6731
- role: "status",
6732
- children: ["⚠ ", writeErrorTl]
6733
- }),
6734
- !snapshot.writable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6735
- style: {
6736
- margin: "8px 0 0",
6737
- fontSize: "12px",
6738
- color: "var(--dsw-alias-label-tertiary)"
6739
- },
6740
- children: t("card.readonly")
6741
- }),
6742
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModelCapabilities, {
6743
- scope: piAiScope,
6744
- ocScope,
6745
- tlScope: scope,
6746
- t,
6747
- readonly
6748
- }),
6749
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DeepSeekContextSection, {
6750
- scope: deepseekScope,
6751
- t,
6752
- readonly
6753
- }),
6754
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6755
- style: { margin: "10px 0 0" },
6756
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuideRestartButton, {
6757
- ns: "thinking-levels",
6758
- onOpen: () => {
6759
- setGuideOpen(true);
6760
- }
6653
+ children: t("card.takeoverUiHint")
6654
+ }),
6655
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6656
+ style: rowStyle,
6657
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6658
+ htmlFor: "plugin-config-thinking-levels-downgrade",
6659
+ style: labelStyle,
6660
+ children: t("card.allowDowngrade")
6661
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
6662
+ id: "plugin-config-thinking-levels-downgrade",
6663
+ checked: viewValue.allowDowngrade ?? true,
6664
+ disabled: readonly || viewValue.level !== "auto",
6665
+ onChange: (next) => {
6666
+ writeTl("allowDowngrade", next);
6667
+ }
6668
+ })]
6669
+ }),
6670
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6671
+ style: rowStyle,
6672
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6673
+ htmlFor: "plugin-config-thinking-levels-upgrade",
6674
+ style: labelStyle,
6675
+ children: t("card.allowUpgrade")
6676
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PillToggle, {
6677
+ id: "plugin-config-thinking-levels-upgrade",
6678
+ checked: viewValue.allowUpgrade ?? false,
6679
+ disabled: readonly || viewValue.level !== "auto",
6680
+ onChange: (next) => {
6681
+ writeTl("allowUpgrade", next);
6682
+ }
6683
+ })]
6684
+ }),
6685
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6686
+ style: rowStyle,
6687
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6688
+ htmlFor: "plugin-config-thinking-levels-default-pricing",
6689
+ style: labelStyle,
6690
+ title: t("card.defaultPricingHint"),
6691
+ children: t("card.defaultPricing")
6692
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
6693
+ id: "plugin-config-thinking-levels-default-pricing",
6694
+ value: defaultPricing,
6695
+ disabled: readonly,
6696
+ style: controlStyle,
6697
+ onChange: (event) => {
6698
+ writeTl("defaultPricing", event.currentTarget.value);
6699
+ },
6700
+ children: PRICING_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
6701
+ value: option,
6702
+ children: t(`card.defaultPricing.${option}`)
6703
+ }, option))
6704
+ })]
6705
+ }),
6706
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6707
+ style: fieldStyle,
6708
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6709
+ style: rowStyle,
6710
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
6711
+ htmlFor: "plugin-config-thinking-levels-simple-tools",
6712
+ style: labelStyle,
6713
+ children: t("card.simpleTools")
6714
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
6715
+ id: "plugin-config-thinking-levels-simple-tools",
6716
+ type: "text",
6717
+ style: controlStyle,
6718
+ disabled: readonly,
6719
+ value: simpleToolsText,
6720
+ placeholder: "shell, pwsh, web_fetch",
6721
+ onChange: (event) => {
6722
+ const raw = event.currentTarget.value;
6723
+ setSimpleToolsText(raw);
6724
+ const parsed = Array.from(new Set(raw.split(/[,\s]+/).map((token) => token.trim()).filter((token) => token !== "")));
6725
+ writeTl("simpleTools", parsed);
6726
+ }
6727
+ })]
6728
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6729
+ style: {
6730
+ ...hintStyle,
6731
+ margin: "2px 0 10px"
6732
+ },
6733
+ children: t("card.simpleToolsHint")
6734
+ })]
6735
+ }),
6736
+ writeErrorTl !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
6737
+ style: {
6738
+ margin: "8px 0 0",
6739
+ fontSize: "12px",
6740
+ color: "var(--dsw-alias-danger, #e5484d)"
6741
+ },
6742
+ role: "status",
6743
+ children: ["⚠ ", writeErrorTl]
6744
+ }),
6745
+ !snapshot.writable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6746
+ style: {
6747
+ margin: "8px 0 0",
6748
+ fontSize: "12px",
6749
+ color: "var(--dsw-alias-label-tertiary)"
6750
+ },
6751
+ children: t("card.readonly")
6752
+ }),
6753
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModelCapabilities, {
6754
+ scope: piAiScope,
6755
+ ocScope,
6756
+ tlScope: scope,
6757
+ t,
6758
+ readonly
6759
+ }),
6760
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DeepSeekContextSection, {
6761
+ scope: deepseekScope,
6762
+ t,
6763
+ readonly
6761
6764
  })
6762
- })
6763
- ] })]
6765
+ ] })
6766
+ ]
6764
6767
  }) : null]
6765
6768
  });
6766
6769
  }