dsh-thinking-levels 4.1.0-beta.4 → 4.1.0-beta.6

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 CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
- ### 追加 — 思考レベルスライダー(鲸魚娘ランナーつまみ) — 4.1.0-beta.4
16
+ ### 追加 — 思考レベルスライダー(鲸魚娘ランナーつまみ) — 4.1.0-beta.6
17
17
 
18
18
  - 各行の思考レベル `<select>` をセグメントスライダーに改修:ストップ数はモデルの広告
19
19
  レベルに追従、`auto` は常に最左、つまみはポインターに連続追従・リリースでスナップ、
package/CHANGELOG.ko.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
- ### 추가 — 사고 레벨 슬라이더(고래소녀 러너 썸) — 4.1.0-beta.4
16
+ ### 추가 — 사고 레벨 슬라이더(고래소녀 러너 썸) — 4.1.0-beta.6
17
17
 
18
18
  - 각 행의 사고 레벨 `<select>`를 세그먼트 슬라이더로 개편: 스톱 수는 모델이 광고하는
19
19
  레벨에 적응, `auto`는 항상 최좌측, 썸은 포인터 연속 추적 후 놓을 때 스냅,
package/CHANGELOG.md CHANGED
@@ -13,7 +13,7 @@ All notable changes to `dsh-thinking-levels` are documented here.
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
- ### Added — effort slider (whale-girl runner thumb) — 4.1.0-beta.4
16
+ ### Added — effort slider (whale-girl runner thumb) — 4.1.0-beta.6
17
17
 
18
18
  - **The model panel's per-line effort `<select>` became a segment slider.** Click a line's
19
19
  effort chip and a full-width slider expands under that line: the stop count adapts to the
package/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-external/dsh-thinking-levels",
3
- "version": "4.1.0-beta.4",
3
+ "version": "4.1.0-beta.6",
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
@@ -820,9 +820,10 @@ window.__ModuleLoader__.load({
820
820
  * back to the shipped selector.
821
821
  */
822
822
  /** Editor-row zone height: label row + track + headroom for the standing girl. */
823
- const ZONE_H = 70;
824
- /** Track thickness; sits `TRACK_B` px above the zone bottom (above the 14px label row). */
825
- const TRACK_H = 16;
823
+ const ZONE_H = 74;
824
+ /** Track thickness; sits `TRACK_B` px above the zone bottom (above the 14px label row).
825
+ * Proportioned like the reference (track ≈ knob height), not a thin wire. */
826
+ const TRACK_H = 24;
826
827
  const TRACK_B = 16;
827
828
  /** Horizontal inset keeping the thumb fully visible at both endpoint stops. */
828
829
  const PAD_MASCOT = 18;
@@ -830,8 +831,11 @@ window.__ModuleLoader__.load({
830
831
  /** Thumb metrics. */
831
832
  const GIRL_W = WHALE_RUN_STRIP.frameW / 2;
832
833
  const GIRL_H = WHALE_RUN_STRIP.frameH / 2;
833
- const GIRL_B = 21;
834
+ const GIRL_B = 24;
834
835
  const KNOB = 28;
836
+ /** Flare pill sized to OUR track (the reference's 78×46 assumed a 30px track). */
837
+ const FLARE_W = 60;
838
+ const FLARE_H = 36;
835
839
  /** Label row height under the track. */
836
840
  const LABEL_H = 14;
837
841
  /** Strip footprint in CSS px (asset is 2x). */
@@ -865,7 +869,7 @@ window.__ModuleLoader__.load({
865
869
  inset 0 -1px 0 rgba(0, 0, 0, .55),
866
870
  0 3px 10px rgba(12, 17, 55, .34);
867
871
  }
868
- .${TRACK_CLASS}::after {
872
+ body[data-ds-dark-theme] .${TRACK_CLASS}::after {
869
873
  content: "";
870
874
  position: absolute;
871
875
  inset: 0;
@@ -903,14 +907,16 @@ body:not([data-ds-dark-theme]) .${FILL_CLASS} { display: block; }
903
907
  pointer-events: none;
904
908
  transition: filter 140ms ease;
905
909
  }
910
+ /* Screen only LIGHTENS — over the pale light-theme track it would wash the
911
+ radiation out; paint it directly there. */
912
+ body:not([data-ds-dark-theme]) .${CANVAS_CLASS} { mix-blend-mode: normal; }
906
913
  .${FLARE_CLASS} {
907
914
  position: absolute;
908
- top: 50%;
909
- width: 78px;
910
- height: 46px;
915
+ width: ${FLARE_W}px;
916
+ height: ${FLARE_H}px;
911
917
  border-radius: 50%;
912
918
  background: radial-gradient(ellipse at 100% 50%, rgba(255,255,255,.96) 0 4%, rgba(188,189,255,.8) 11%, rgba(106,87,255,.5) 28%, rgba(105,31,255,.2) 49%, transparent 74%);
913
- filter: blur(2px) saturate(1.25);
919
+ filter: blur(1.5px) saturate(1.25);
914
920
  mix-blend-mode: screen;
915
921
  transform: translate(-100%, -50%);
916
922
  transition: left 70ms linear, filter 140ms ease;
@@ -1039,7 +1045,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
1039
1045
  const columnEnergy = trail * (wave * 1.04 + pillar + crest * .32);
1040
1046
  if (columnEnergy > .012) {
1041
1047
  const nearness = Math.max(0, 1 - distance / Math.max(1, width * .78));
1042
- context.fillStyle = `rgba(${isDark ? Math.round(42 + 124 * nearness + 75 * wave) : Math.round(28 + 58 * nearness + 15 * wave)}, ${isDark ? Math.round(56 + 58 * nearness + 44 * crest) : Math.round(88 + 72 * nearness + 30 * crest)}, ${isDark ? Math.round(175 + 72 * nearness + 8 * wave) : Math.round(182 + 62 * nearness)}, ${isDark ? Math.min(.88, columnEnergy * .72) : Math.min(.62, columnEnergy * .54)})`;
1048
+ context.fillStyle = `rgba(${isDark ? Math.round(42 + 124 * nearness + 75 * wave) : Math.round(28 + 58 * nearness + 15 * wave)}, ${isDark ? Math.round(56 + 58 * nearness + 44 * crest) : Math.round(88 + 72 * nearness + 30 * crest)}, ${isDark ? Math.round(175 + 72 * nearness + 8 * wave) : Math.round(182 + 62 * nearness)}, ${isDark ? Math.min(.88, columnEnergy * .72) : Math.min(.9, columnEnergy * .85)})`;
1043
1049
  context.fillRect(x, 0, 3, height);
1044
1050
  }
1045
1051
  for (let y = 0; y < height; y += cell) {
@@ -1051,7 +1057,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
1051
1057
  const alpha = Math.min(.96, (columnEnergy * .88 + halo + crest * .19) * verticalShape * grain);
1052
1058
  if (alpha < .035) continue;
1053
1059
  const hot = Math.max(0, 1 - radial / 2.4);
1054
- context.fillStyle = `rgba(${isDark ? Math.round(54 + 148 * hot + 42 * wave + 35 * crest) : Math.round(25 + 72 * hot + 12 * wave)}, ${isDark ? Math.round(68 + 78 * hot + 46 * crest) : Math.round(98 + 72 * hot + 24 * crest)}, ${isDark ? Math.round(186 + 64 * hot) : Math.round(194 + 56 * hot)}, ${isDark ? alpha : alpha * .72})`;
1060
+ context.fillStyle = `rgba(${isDark ? Math.round(54 + 148 * hot + 42 * wave + 35 * crest) : Math.round(20 + 92 * hot + 18 * wave)}, ${isDark ? Math.round(68 + 78 * hot + 46 * crest) : Math.round(78 + 80 * hot + 30 * crest)}, ${isDark ? Math.round(186 + 64 * hot) : Math.round(188 + 62 * hot)}, ${isDark ? alpha : alpha * .95})`;
1055
1061
  context.fillRect(x, y, 3, 3);
1056
1062
  }
1057
1063
  }
@@ -1302,7 +1308,8 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
1302
1308
  left: `${pad}px`,
1303
1309
  right: `${pad}px`,
1304
1310
  bottom: `${TRACK_B}px`,
1305
- height: `${TRACK_H}px`
1311
+ height: `${TRACK_H}px`,
1312
+ "--dsh-tl-progress": `${shownFraction * 100}%`
1306
1313
  },
1307
1314
  children: [
1308
1315
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: FILL_CLASS }),
@@ -1310,26 +1317,32 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
1310
1317
  ref: canvasRef,
1311
1318
  className: CANVAS_CLASS
1312
1319
  }),
1313
- stops.map((stop, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
1314
- position: "absolute",
1315
- bottom: `${TRACK_H / 2 - 3.5}px`,
1316
- left: `${index / Math.max(1, count - 1) * 100}%`,
1317
- width: "7px",
1318
- height: "7px",
1319
- borderRadius: "50%",
1320
- background: "#fff",
1321
- border: "1px solid var(--dsw-alias-border-l2)",
1322
- boxSizing: "border-box",
1323
- transform: "translateX(-50%)",
1324
- pointerEvents: "none",
1325
- zIndex: 2,
1326
- opacity: index <= shownIndex ? 1 : .65
1327
- } }, stop.id))
1320
+ stops.slice(1, -1).map((stop, offset) => {
1321
+ const index = offset + 1;
1322
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
1323
+ position: "absolute",
1324
+ bottom: `${TRACK_H / 2 - 3.5}px`,
1325
+ left: `${index / Math.max(1, count - 1) * 100}%`,
1326
+ width: "7px",
1327
+ height: "7px",
1328
+ borderRadius: "50%",
1329
+ background: "#fff",
1330
+ border: "1px solid var(--dsw-alias-border-l2)",
1331
+ boxSizing: "border-box",
1332
+ transform: "translateX(-50%)",
1333
+ pointerEvents: "none",
1334
+ zIndex: 2,
1335
+ opacity: index <= shownIndex ? 1 : .65
1336
+ } }, stop.id);
1337
+ })
1328
1338
  ]
1329
1339
  }),
1330
1340
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1331
1341
  className: FLARE_CLASS,
1332
- style: { left: at(shownFraction) }
1342
+ style: {
1343
+ left: at(shownFraction),
1344
+ top: `46px`
1345
+ }
1333
1346
  }),
1334
1347
  mascot ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1335
1348
  className: `${RUN_CLASS} ${GIRL_CLASS}`,
@@ -1343,7 +1356,7 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
1343
1356
  style: {
1344
1357
  ...knobStyle,
1345
1358
  left: at(shownFraction),
1346
- bottom: `${24 - KNOB / 2}px`
1359
+ bottom: `${28 - KNOB / 2}px`
1347
1360
  }
1348
1361
  }),
1349
1362
  count <= 6 && stops.map((stop, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {